[lfs-support] Newbie need help - bus error in 5.5. GCC-4.8.1 - Pass 1

akhiezer lfs65 at cruziero.com
Wed Oct 23 14:46:23 PDT 2013


> From lfs-support-bounces at linuxfromscratch.org Wed Oct 23 21:34:56 2013
> Date: Wed, 23 Oct 2013 16:16:23 -0400
> From: Viola Zoltán <violazoli at gmail.com>
> To: akhiezer <lfs65 at cruziero.com>,
>         LFS Support List <lfs-support at linuxfromscratch.org>
> Subject: Re: [lfs-support] Newbie need help - bus error in 5.5. GCC-4.8.1 -
>  Pass 1
>
>
>
> Sorry, nothing change. I was deleted all GCC source, begin from first the
> 5.5 chapter (compiling of GCC), with this command (after the configure):
>
>  CFLAGS="-fno-exceptions -fno-rtti" make
>
> but it write me this error message:
>
>
> /bin/sh ../../gcc-4.8.1/gcc/../move-if-change tmp-latencytab.c
> insn-latencytab.c
> echo timestamp > s-attrtab
> g++ -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions
> -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
> -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic
> -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
> -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.8.1/gcc -I../../gcc-4.8.1/gcc/.
> -I../../gcc-4.8.1/gcc/../include -I../../gcc-4.8.1/gcc/../libcpp/include
> -I/Mount/Simplicity/sources/gcc-build/./gmp
> -I/Mount/Simplicity/sources/gcc-4.8.1/gmp
> -I/Mount/Simplicity/sources/gcc-build/../gcc-4.8.1/mpfr/src
> -I/Mount/Simplicity/sources/gcc-4.8.1/mpc/src
> -I../../gcc-4.8.1/gcc/../libdecnumber
> -I../../gcc-4.8.1/gcc/../libdecnumber/dpd -I../libdecnumber
> -I../../gcc-4.8.1/gcc/../libbacktrace    insn-attrtab.c -o insn-attrtab.o
> g++ -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions
> -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
> -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic
> -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
> -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.8.1/gcc
> -I../../gcc-4.8.1/gcc/build -I../../gcc-4.8.1/gcc/../include
> -I../../gcc-4.8.1/gcc/../libcpp/include
> -I/Mount/Simplicity/sources/gcc-build/./gmp
> -I/Mount/Simplicity/sources/gcc-4.8.1/gmp
> -I/Mount/Simplicity/sources/gcc-build/../gcc-4.8.1/mpfr/src
> -I/Mount/Simplicity/sources/gcc-4.8.1/mpc/src
> -I../../gcc-4.8.1/gcc/../libdecnumber
> -I../../gcc-4.8.1/gcc/../libdecnumber/dpd -I../libdecnumber
> -I../../gcc-4.8.1/gcc/../libbacktrace    \
>     -o build/genautomata.o ../../gcc-4.8.1/gcc/genautomata.c
> g++   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions
> -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
> -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic
> -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
> -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc  -o
> build/genautomata \
>     build/genautomata.o build/rtl.o build/read-rtl.o build/ggc-none.o
> build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o
> build/read-md.o build/errors.o
> ../build-i686-pc-linux-gnu/libiberty/libiberty.a -lm
> build/genautomata ../../gcc-4.8.1/gcc/config/i386/i386.md \
>   insn-conditions.md > tmp-automata.c
> /bin/sh: line 1: 12525 Bus error               build/genautomata
> ../../gcc-4.8.1/gcc/config/i386/i386.md insn-conditions.md > tmp-automata.c
> make[2]: *** [s-automata] Error 135
> make[2]: Leaving directory `/Mount/Simplicity/sources/gcc-build/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory `/Mount/Simplicity/sources/gcc-build'
> make: *** [all] Error 2
>
>
>
> 2013/10/23 akhiezer <lfs65 at cruziero.com>
>
> > > Date: Wed, 23 Oct 2013 10:01:40 +0100
> > > From: (akhiezer)
> > > To: LFS Support List <lfs-support at linuxfromscratch.org>
> > > Subject: Re: [lfs-support] Newbie need help - bus error in 5.5.
> > GCC-4.8.1 -
> > >  Pass 1
> > >
> > > > Date: Tue, 22 Oct 2013 19:41:24 -0400
> > > > From: Viola Zoltán <violazoli at gmail.com>
> > > > To: LFS Support List <lfs-support at linuxfromscratch.org>
> > > > Subject: Re: [lfs-support] Newbie need help - bus error in 5.5.
> > GCC-4.8.1 -
> > > >  Pass 1
> > > >
> > > >
> > > >
> > > > Excuse me, I am very newbie and very idiotic... I tryed it:
> > > >
> > > > CFLAGS="-fno-exceptions -fno-rtti"; make
> > > >
> > > > CFLAGS="--fno-exceptions --fno-rtti"; make
> > > >
> > > > but nothing changed, the compile not succeeded, same error message...
> > > >
> > >
> > >
> > >  - shouldn't that be:
> > >
> > >   CFLAGS="-fno-exceptions -fno-rtti" make
> > >
> > >  - i.e. without the semi-colon (';') ; and normally just use the
> > single-dash ('-')
> > > format for those options (i.e. '-f...' instead of '--f...')  .
> > >
> > > (Also, fwiw, for a make command-line I'd normally put such variables
> > _after_ the
> > > 'make': make [ -f makefile ] [ options ] ... [ targets ] ... ).
> > >
> > >
> > > hth
> > > akh
> > >
> > > p.s. also try to avoid top-posting.
> > >
> >
> >
> >  - although, as Ken says, he's asking you to retry the make with the
> > '-fno-exceptions -fno-rtti' options omitted - iff certain conditions are
> > met -
> > per details of Ken's 2+ messages (the stuff re '-O2 -g', etc).
> >
> >
> > akh
> >


Sorry to howevermuch-inadvertently partway-hijack a thread, but given 
time-differences &c, here goes:

Can you give the output of 'printenv'  .

Can you go 'round the loop again - i.e. fresh tarball-unpack, etc - and do:

  CFLAGS="-O2 -g" make

(i.e. this time _don't_ do: CFLAGS="-fno-exceptions -fno-rtti" make )

That's _basically_ what, aiui, was one of the suggestions from Ken's messages.


rgds,
akh





--



More information about the lfs-support mailing list