[RPL/2] compile fails dues to -Wno-pointer-sign
BERTRAND Joël
joel.bertrand at systella.fr
Mer 3 Jan 21:59:00 CET 2007
DEMAINE Benoit-Pierre a écrit :
> cc1: error: unrecognized command line option "-Wno-pointer-sign"
>
> using
> gcc version 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.9)
>
> Found this on the topic:
> http://www.mail-archive.com/mahogany-developers@lists.sourceforge.net/msg03873.html
> http://ubuntuforums.org/showthread.php?t=105437&page=7
>
> root at moon_gen:/mnt/big/portage/doublehp/rpl2-4.0.0.8.0.17/work/rpl-4.00pre8q#
> gcc-config -l
> [1] i686-pc-linux-gnu-3.3.6
> [2] i686-pc-linux-gnu-3.3.6-hardened
> [3] i686-pc-linux-gnu-3.3.6-hardenednopie
> [4] i686-pc-linux-gnu-3.3.6-hardenednopiessp
> [5] i686-pc-linux-gnu-3.3.6-hardenednossp
> [6] i686-pc-linux-gnu-3.4.6 *
> [7] i686-pc-linux-gnu-3.4.6-hardened
> [8] i686-pc-linux-gnu-3.4.6-hardenednopie
> [9] i686-pc-linux-gnu-3.4.6-hardenednopiessp
> [10] i686-pc-linux-gnu-3.4.6-hardenednossp
> [11] i686-pc-linux-gnu-4.1.1
>
> root at moon_gen:/mnt/big/portage/doublehp/rpl2-4.0.0.8.0.17/work/rpl-4.00pre8q#
> grep -nr Wno-pointer-sign *
> build/config.log:1670:CFLAGS='-O2 -march=pentium3 -pipe -malign-double
> -mieee-fp -Wall -fstrength-reduce -O3 -funsigned-char
> -Wno-pointer-sign'
> build/tools/Makefile:62:CFLAGS = -O2 -march=pentium3 -pipe
> -malign-double -mieee-fp -Wall -fstrength-reduce -O3
> -funsigned-char -Wno-pointer-sign
> build/Makefile:100:CFLAGS = -O2 -march=pentium3 -pipe -malign-double
> -mieee-fp -Wall -fstrength-reduce -O3 -funsigned-char
> -Wno-pointer-sign
> build/config.status:570:s, at CFLAGS@,|#_!!_#|-O2 -march=pentium3 -pipe
> -malign-double -mieee-fp -Wall -fstrength-reduce -O3 -funsigned-char
> -Wno-pointer-sign,g
> build/lapack-3.0/Makefile:70:CFLAGS = -O2 -march=pentium3 -pipe
> -malign-double -mieee-fp -Wall -fstrength-reduce -O3 -funsigned-char
> -Wno-pointer-sign
> build/lapack-3.0/lapack/Makefile:296:CFLAGS = -O2 -march=pentium3 -pipe
> -malign-double -mieee-fp -Wall -fstrength-reduce -O3 -funsigned-char
> -Wno-pointer-sign
> build/lapack-3.0/blas/Makefile:105:CFLAGS = -O2 -march=pentium3 -pipe
> -malign-double -mieee-fp -Wall -fstrength-reduce -O3 -funsigned-char
> -Wno-pointer-sign
> build/src/Makefile:350:CFLAGS = -O2 -march=pentium3 -pipe -malign-double
> -mieee-fp -Wall -fstrength-reduce -O3 -funsigned-char
> -Wno-pointer-sign
> build/man/Makefile:74:CFLAGS = -O2 -march=pentium3 -pipe -malign-double
> -mieee-fp -Wall -fstrength-reduce -O3 -funsigned-char
> -Wno-pointer-sign
> build/man/fr_FR/Makefile:72:CFLAGS = -O2 -march=pentium3 -pipe
> -malign-double -mieee-fp -Wall -fstrength-reduce -O3 -funsigned-char
> -Wno-pointer-sign
> build/doc/Makefile:62:CFLAGS = -O2 -march=pentium3 -pipe -malign-double
> -mieee-fp -Wall -fstrength-reduce -O3 -funsigned-char
> -Wno-pointer-sign
> configure:30371: -funsigned-char -Wno-pointer-sign"
> configure:30379: CFLAGS="$CFLAGS -mieee -funsigned-char
> -Wno-pointer-sign"
> configure:30386: -funsigned-char -Wno-pointer-sign"
> configure.in:364: -funsigned-char -Wno-pointer-sign"
> configure.in:372: CFLAGS="$CFLAGS -mieee -funsigned-char
> -Wno-pointer-sign"
> configure.in:379: -funsigned-char -Wno-pointer-sign"
>
> This happens after 15mn on 'make' (AMD Athlon 1.6GHz); usually, compleet
> make takes 20-30mn.
>
> ********** tail of logs:
>
> ranlib .libs/libgsl.a
> rm -fr .libs/libgsl.lax
> creating libgsl.la
> (cd .libs && rm -f libgsl.la && ln -s ../libgsl.la libgsl.la)
> gcc -DHAVE_CONFIG_H -I. -I../../../tools/gsl-1.8 -I. -g -O2 -c
> ../../../tools/gsl-1.8/gsl-randist.c
> /bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o gsl-randist
> gsl-randist.o libgsl.la cblas/libgslcblas.la -lm
> gcc -g -O2 -o .libs/gsl-randist gsl-randist.o ./.libs/libgsl.so
> cblas/.libs/libgslcblas.so -lm
> creating gsl-randist
> gcc -DHAVE_CONFIG_H -I. -I../../../tools/gsl-1.8 -I. -g -O2 -c
> ../../../tools/gsl-1.8/gsl-histogram.c
> /bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o gsl-histogram
> gsl-histogram.o libgsl.la cblas/libgslcblas.la -lm
> gcc -g -O2 -o .libs/gsl-histogram gsl-histogram.o ./.libs/libgsl.so
> cblas/.libs/libgslcblas.so -lm
> creating gsl-histogram
> make[5]: Leaving directory `/tmp/rpl-4.00pre8q_2/build/tools/gsl-1.8'
> make[4]: Leaving directory `/tmp/rpl-4.00pre8q_2/build/tools/gsl-1.8'
> make[3]: Leaving directory `/tmp/rpl-4.00pre8q_2/build/tools/gsl-1.8'
> Making all in gpp-2.24
> make[3]: Entering directory `/tmp/rpl-4.00pre8q_2/build/tools/gpp-2.24'
> make all-recursive
> make[4]: Entering directory `/tmp/rpl-4.00pre8q_2/build/tools/gpp-2.24'
> Making all in src
> make[5]: Entering directory `/tmp/rpl-4.00pre8q_2/build/tools/gpp-2.24/src'
> if gcc -DHAVE_CONFIG_H -I. -I../../../../tools/gpp-2.24/src -I.. -g
> -O2 -MT gpp.o -MD -MP -MF ".deps/gpp.Tpo" -c -o gpp.o
> ../../../../tools/gpp-2.24/src/gpp.c; \
> then mv -f ".deps/gpp.Tpo" ".deps/gpp.Po"; else rm -f
> ".deps/gpp.Tpo"; exit 1; fi
> gcc -g -O2 -o gpp gpp.o
> make[5]: Leaving directory `/tmp/rpl-4.00pre8q_2/build/tools/gpp-2.24/src'
> make[5]: Entering directory `/tmp/rpl-4.00pre8q_2/build/tools/gpp-2.24'
> make[5]: Nothing to be done for `all-am'.
> make[5]: Leaving directory `/tmp/rpl-4.00pre8q_2/build/tools/gpp-2.24'
> make[4]: Leaving directory `/tmp/rpl-4.00pre8q_2/build/tools/gpp-2.24'
> make[3]: Leaving directory `/tmp/rpl-4.00pre8q_2/build/tools/gpp-2.24'
> make[2]: Leaving directory `/tmp/rpl-4.00pre8q_2/build/tools'
> Making all in src
> make[2]: Entering directory `/tmp/rpl-4.00pre8q_2/build/src'
> iconv -f us-ascii\
> -t ISO-8859-15 ../../src/completion.h >
> completion.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/convert.h > convert.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/copyright.h >
> copyright.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/garanties.h >
> garanties.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/gnuplot.h > gnuplot.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/licence.h > licence.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/processus.h >
> processus.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/rpl.h > rpl.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/rplargs.h > rplargs.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/rpltypes.h >
> rpltypes.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/simplification.h >
> simplification.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/tex.h > tex.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/usages.h > usages.conv.h
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/vim.h > vim.conv.h
> make all-am
> make[3]: Entering directory `/tmp/rpl-4.00pre8q_2/build/src'
> iconv -f iso-8859-1\
> -t ISO-8859-15 ../../src/algebre_lineaire1.c >
> algebre_lineaire1.conv.c
> if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
> -Dd_version_rpl=\"4.00pre8q\" -DMOTIF_SUPPORT -DPOSTSCRIPT_SUPPORT
> -UGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT -UEXPERIMENTAL_CODE
> -Dd_date_rpl="\"Sunday 17/12/06, 23:28:13 CET\""
> -Dd_date_en_rpl="\"Sunday 12/17/06, 23:28:13 CET\"" -g -I. -I../../src
> -I.. -I../../src -I.. -I../../tools/readline-5.1 -I../tools/readline-5.1
> -DREADLINE_LIBRARY -I../tools/gsl-1.8 -g -O2 -malign-double
> -mieee-fp -Wall -fstrength-reduce -O3
> -funsigned-char -Wno-pointer-sign -MT
> librpl_la-algebre_lineaire1.conv.lo -MD -MP -MF
> ".deps/librpl_la-algebre_lineaire1.conv.Tpo" -c -o
> librpl_la-algebre_lineaire1.conv.lo `test -f 'algebre_lineaire1.conv.c'
> || echo '../../src/'`algebre_lineaire1.conv.c; \
> then mv -f ".deps/librpl_la-algebre_lineaire1.conv.Tpo"
> ".deps/librpl_la-algebre_lineaire1.conv.Plo"; else rm -f
> ".deps/librpl_la-algebre_lineaire1.conv.Tpo"; exit 1; fi
> mkdir .libs
> gcc -DHAVE_CONFIG_H -Dd_version_rpl=\"4.00pre8q\" -DMOTIF_SUPPORT
> -DPOSTSCRIPT_SUPPORT -UGNUPLOT_SUPPORT -DVIM_SUPPORT -UMYSQL_SUPPORT
> -UEXPERIMENTAL_CODE "-Dd_date_rpl=\"Sunday 17/12/06, 23:28:13 CET\""
> "-Dd_date_en_rpl=\"Sunday 12/17/06, 23:28:13 CET\"" -g -I. -I../../src
> -I.. -I../../src -I.. -I../../tools/readline-5.1 -I../tools/readline-5.1
> -DREADLINE_LIBRARY -I../tools/gsl-1.8 -g -O2 -malign-double -mieee-fp
> -Wall -fstrength-reduce -O3 -funsigned-char -Wno-pointer-sign -MT
> librpl_la-algebre_lineaire1.conv.lo -MD -MP -MF
> .deps/librpl_la-algebre_lineaire1.conv.Tpo -c algebre_lineaire1.conv.c
> -fPIC -DPIC -o .libs/librpl_la-algebre_lineaire1.conv.o
> cc1: error: unrecognized command line option "-Wno-pointer-sign"
> make[3]: *** [librpl_la-algebre_lineaire1.conv.lo] Error 1
> make[3]: Leaving directory `/tmp/rpl-4.00pre8q_2/build/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/tmp/rpl-4.00pre8q_2/build/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/rpl-4.00pre8q_2/build'
> make: *** [all] Error 2
>
> real 15m31.256s
> user 9m34.860s
> sys 2m23.041s
Hello,
Sorry, I have received your three mails the 3rd of january (!). You
have to delete Wno-pointer-sign to build RPL/2 with your compiler. This
option is only used to avoid some warning messages with gcc-4.1.
Warning, you must have gfortran (and NOT g77) to build the last release
due to f90 source code...
Regards,
JKB
Plus d'informations sur la liste de diffusion RPL2