This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compiling error for version 4.9.0 and 4.9.2
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: kevin dot abbey at rutgers dot edu
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>, Pengcheng Yang <yangpc at mail dot biols dot ac dot cn>
- Date: Thu, 21 Apr 2016 22:11:13 +0100
- Subject: Re: compiling error for version 4.9.0 and 4.9.2
- Authentication-results: sourceware.org; auth=none
- References: <571923FB dot 2070001 at rutgers dot edu>
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.