This is the mail archive of the gcc-regression@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: GCC build failed for native with your patch on 2002-06-02T22:30:03Z.


On Mon, Jun 03, 2002 at 01:21:06PM +0100, Neil Booth wrote:
> neil@cat:~/src/gcc/build/i686-pc-linux-gnu/libstdc++-v3/src$
> /home/neil/src/gcc/build/gcc/xgcc -shared-libgcc
> -B/home/neil/src/gcc/build/gcc/ -nostdinc++
> -L/home/neil/src/gcc/build/i686-pc-linux-gnu/libstdc++-v3/src
> -L/home/neil/src/gcc/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs
> -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/
> -isystem /usr/local/i686-pc-linux-gnu/include -nostdinc++
> -I/home/neil/src/gcc/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu
> -I/home/neil/src/gcc/build/i686-pc-linux-gnu/libstdc++-v3/include
> -I../../../../libstdc++-v3/libsupc++ -I../../../../libstdc++-v3/libmath
> -g -O2 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W
> -Wwrite-strings -Winline -fdiagnostics-show-location=once
> -ffunction-sections -fdata-sections -g -Wp,-MD,.deps/functexcept.pp -c
> ../../../../libstdc++-v3/src/functexcept.cc -o functexcept.o >/dev/null
> ../../../../libstdc++-v3/src/functexcept.cc: In destructor `virtual 
>    std::domain_error::~domain_error()':
> ../../../../libstdc++-v3/src/functexcept.cc:61: Internal compiler error
> in 
>    remove_insn, at emit-rtl.c:3537
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> 
> This is how it died for me.  Why do we pipe stderr to /dev/null?

Look at the previous [two] command[s].  The makefile is calling libtool
to build a .lo file.  Libtool, in turn, runs (and echos) the build twice.
The first time, it passes -fPIC -DPIC and lets the user see diagnostics.
The second time, it doesn't pass any PIC options, and sinks the output on the
assumption that the user won't want to see the (presumably) same diags twice.

The assumption is a reasonably good one, but it falls down when the
presence/absence of -fPIC makes a difference.  Which seems to be the case
here, since there's no other difference.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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