compiling error for version 4.9.0 and 4.9.2

Pengcheng Yang yangpc@mail.biols.ac.cn
Tue Mar 31 10:17:00 GMT 2015


Hi all,

I have compiled gcc-4.9.2, but the same error reoccurred.

the command is:
./configure --prefix=/panfs/home/kang/yangpc/soft/lib/gcc-4.9.2/ 
--with-gmp=/panfs/home/kang/yangpc/soft/lib/gmp-5.1.3/ 
--with-mpfr=/panfs/home/kang/yangpc/soft/lib/packages/mpfr-3.1.2/ 
--with-mpc=/panfs/home/kang/yangpc/soft/lib/mpc/ --disable-multilib
make

the following is the error message just before the stop position.
===========================

rm -f include/stdint.h
if [ wrap = wrap ]; then \
           rm -f include/stdint-gcc.h; \
           cp ../.././gcc/ginclude/stdint-gcc.h include/stdint-gcc.h; \
           chmod a+r include/stdint-gcc.h; \
           cp ../.././gcc/ginclude/stdint-wrap.h include/stdint.h; \
           chmod a+r include/stdint.h; \
         elif [ wrap = provide ]; then \
           cp ../.././gcc/ginclude/stdint-gcc.h include/stdint.h; \
           chmod a+r include/stdint.h; \
         fi
set -e; for ml in `cat fixinc_list`; do \
           sysroot_headers_suffix=`echo ${ml} | sed -e 's/;.*$//'`; \
           multi_dir=`echo ${ml} | sed -e 's/^[^;]*;//'`; \
           fix_dir=include-fixed${multi_dir}; \
           if [ -f `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' 
-e ta`/limits.h ] ; then \
             cat ../.././gcc/limitx.h ../.././gcc/glimits.h 
../.././gcc/limity.h > tmp-xlimits.h; \
           else \
             cat ../.././gcc/glimits.h > tmp-xlimits.h; \
           fi; \
           /bin/sh ../.././gcc/../mkinstalldirs ${fix_dir}; \
           chmod a+rx ${fix_dir} || true; \
           /bin/sh ../.././gcc/../move-if-change \
             tmp-xlimits.h  tmp-limits.h; \
           rm -f ${fix_dir}/limits.h; \
           cp -p tmp-limits.h ${fix_dir}/limits.h; \
           chmod a+r ${fix_dir}/limits.h; \
         done
rm -f include-fixed/README
cp ../.././gcc/../fixincludes/README-fixinc include-fixed/README
chmod a+r include-fixed/README
echo timestamp > stmp-int-hdrs
TARGET_CPU_DEFAULT="" \
         HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
         /bin/sh ../.././gcc/mkconfig.sh tconfig.h
g++ -c  -DSTANDARD_STARTFILE_PREFIX=\"../../../\" 
-DSTANDARD_EXEC_PREFIX=\"/panfs/home/kang/yangpc/soft/lib/gcc-4.9.2/lib/gcc/\" 
-DSTANDARD_LIBEXEC_PREFIX=\"/panfs/home/kang/yangpc/soft/lib/gcc-4.9.2/libexec/gcc/\" 
-DDEFAULT_TARGET_VERSION=\"4.9.2\" 
-DDEFAULT_TARGET_MACHINE=\"x86_64-unknown-linux-gnu\" 
-DSTANDARD_BINDIR_PREFIX=\"/panfs/home/kang/yangpc/soft/lib/gcc-4.9.2/bin/\" 
-DTOOLDIR_BASE_PREFIX=\"../../../../\"  -DENABLE_SHARED_LIBGCC 
-DCONFIGURE_SPECS="\"\"" -DIN_GCC_FRONTEND -g -DIN_GCC -fno-exceptions 
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings 
-Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  
-DHAVE_CONFIG_H -I. -Icp -I../.././gcc -I../.././gcc/cp 
-I../.././gcc/../include -I../.././gcc/../libcpp/include 
-I/panfs/home/kang/yangpc/soft/lib/gmp-5.1.3//include 
-I/panfs/home/kang/yangpc/soft/lib/packages/mpfr-3.1.2//include 
-I/panfs/home/kang/yangpc/soft/lib/mpc//include 
-I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid 
-I../libdecnumber -I../.././gcc/../libbacktrace    -o cp/g++spec.o -MT 
cp/g++spec.o -MMD -MP -MF cp/.deps/g++spec.TPo ../.././gcc/cp/g++spec.c
g++   -g -DIN_GCC    -fno-exceptions -fno-rtti 
-fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual 
-Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long 
-Wno-variadic-macros -Wno-overlength-strings -fno-common 
-DHAVE_CONFIG_H  -o xg++ \
           gcc.o ggc-none.o cp/g++spec.o driver-i386.o libcommon-target.a \
            libcommon.a ../libcpp/libcpp.a 
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a 
../libdecnumber/libdecnumber.a
g++: braced spec '%:sanitize(address):%{!shared:libasan_preinit%O%s} 
%{static-libasan:%{!shared:-Bstatic --whole-archive -lasan 
--no-whole-archive -Bdynamic}}%{!static-libasan:-lasan}} 
%{%:sanitize(thread):%{static-libtsan:%{!shared:-Bstatic --whole-archive 
-ltsan --no-whole-archive -Bdynamic}}%{!static-libtsan:-ltsan}} 
%{%:sanitize(leak):%{static-liblsan:%{!shared:-Bstatic --whole-archive 
-llsan --no-whole-archive -Bdynamic}}%{!static-liblsan:-llsan}}' is 
invalid at '%'
make[3]: *** [xg++] Error 1
make[3]: Leaving directory 
`/panfs/home/kang/yangpc/soft/lib/packages/gcc-4.9.2/host-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory 
`/panfs/home/kang/yangpc/soft/lib/packages/gcc-4.9.2'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory 
`/panfs/home/kang/yangpc/soft/lib/packages/gcc-4.9.2'
make: *** [all] Error 2

On 2015/3/31 17:25, Pengcheng Yang wrote:
> Hi,
>
> I install gcc-4.9.0 with the following command:
>
> ./configure --prefix=/panfs/home/kang/yangpc/soft/lib/gcc-4.9.0 
> --with-gmp=/panfs/home/kang/yangpc/soft/lib/gmp-5.1.3/ 
> --with-mpfr=/panfs/home/kang/yangpc/soft/lib/packages/mpfr-3.1.2/ 
> --with-mpc=/panfs/home/kang/yangpc/soft/lib/mpc/ --disable-multilib
> make
> And got the following error message. I will try version 4.9.2.
>
> =========================================
>         HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
>         /bin/sh ../.././gcc/mkconfig.sh tconfig.h
> g++ -c  -DSTANDARD_STARTFILE_PREFIX=\"../../../\" 
> -DSTANDARD_EXEC_PREFIX=\"/panfs/home/kang/yangpc/soft/lib/gcc-4.9.0/lib/gcc/\" 
> -DSTANDARD_LIBEXEC_PREFIX=\"/panfs/home/kang/yangpc/soft/lib/gcc-4.9.0/libexec/gcc/\" 
> -DDEFAULT_TARGET_VERSION=\"4.9.0\" 
> -DDEFAULT_TARGET_MACHINE=\"x86_64-unknown-linux-gnu\" 
> -DSTANDARD_BINDIR_PREFIX=\"/panfs/home/kang/yangpc/soft/lib/gcc-4.9.0/bin/\" 
> -DTOOLDIR_BASE_PREFIX=\"../../../../\"  -DENABLE_SHARED_LIBGCC 
> -DCONFIGURE_SPECS="\"\"" -DIN_GCC_FRONTEND -g -DIN_GCC -fno-exceptions 
> -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings 
> -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic 
> -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings 
> -fno-common  -DHAVE_CONFIG_H -I. -Icp -I../.././gcc -I../.././gcc/cp 
> -I../.././gcc/../include -I../.././gcc/../libcpp/include 
> -I/panfs/home/kang/yangpc/soft/lib/gmp-5.1.3//include 
> -I/panfs/home/kang/yangpc/soft/lib/packages/mpfr-3.1.2//include 
> -I/panfs/home/kang/yangpc/soft/lib/mpc//include 
> -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid 
> -I../libdecnumber -I../.././gcc/../libbacktrace    -o cp/g++spec.o -MT 
> cp/g++spec.o -MMD -MP -MF cp/.deps/g++spec.TPo ../.././gcc/cp/g++spec.c
> g++   -g -DIN_GCC    -fno-exceptions -fno-rtti 
> -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual 
> -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long 
> -Wno-variadic-macros -Wno-overlength-strings -fno-common 
> -DHAVE_CONFIG_H  -o xg++ \
>           gcc.o ggc-none.o cp/g++spec.o driver-i386.o 
> libcommon-target.a \
>            libcommon.a ../libcpp/libcpp.a 
> ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a 
> ../libdecnumber/libdecnumber.a
> g++: braced spec '%:sanitize(address):%{!shared:libasan_preinit%O%s} 
> %{static-libasan:%{!shared:-Bstatic --whole-archive -lasan 
> --no-whole-archive -Bdynamic}}%{!static-libasan:-lasan}} 
> %{%:sanitize(thread):%{static-libtsan:%{!shared:-Bstatic 
> --whole-archive -ltsan --no-whole-archive 
> -Bdynamic}}%{!static-libtsan:-ltsan}}' is invalid at '%'
> make[3]: *** [xg++] Error 1
>




More information about the Gcc-help mailing list