This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compiling error for version 4.9.0 and 4.9.2


On 21 April 2016 at 20:03, Kevin Abbey wrote:
> Hi,
>
> I'm experience the similar error as discussed previously:
>
> https://gcc.gnu.org/ml/gcc-help/2015-03/msg00115.html
>
>
> This is where my build stops.  Any idea why this happens?
>
>
> 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
> -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 '%'

The only explanation I've seen for this is having bad settings in the
environment, see https://gcc.gnu.org/ml/gcc-help/2015-06/msg00060.html

Make sure you haven't got anything in your environment interfering
with the build.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]