2012/11/1 <[email protected]>: > Thank you for this tip. > > I followed the instructions (make crossgcc), but got stuck while building gcc > on a 'bus error' of genautomata. > > Details (total of 3): > > 1. Output of make crossgcc: > > Indus ~ # cd /usr/src/coreboot/ > Indus coreboot # make crossgcc > Welcome to the coreboot cross toolchain builder v1.17 (October 26th, 2012) > > Will skip GDB ... ok > Downloading tar balls ... > * gmp-5.0.5.tar.bz2 (downloading) > * mpfr-3.1.1.tar.bz2 (downloading) > * mpc-1.0.1.tar.gz (downloading) > * libelf-0.8.13.tar.gz (downloading) > * gcc-4.7.2.tar.bz2 (downloading) > * binutils-2.23.tar.gz (downloading) > * acpica-unix-20120420.tar.gz (downloading) > Downloaded tar balls ... ok > Unpacking and patching ... > * gmp-5.0.5.tar.bz2 > * mpfr-3.1.1.tar.bz2 > * mpc-1.0.1.tar.gz > * libelf-0.8.13.tar.gz > * gcc-4.7.2.tar.bz2 > * binutils-2.23.tar.gz > o binutils-2.23_no-bfd-doc.patch > * acpica-unix-20120420.tar.gz > o acpica-unix-20120420_unknown_warnings.patch > Unpacked and patched ... ok > Building GMP 5.0.5 ... ok > Building MPFR 3.1.1 ... ok > Building MPC 1.0.1 ... ok > Building libelf 0.8.13 ... ok > Building binutils 2.23 ... ok > Building GCC 4.7.2 ... failed > make[1]: *** [build-without-gdb] Error 1 > make: *** [crossgcc] Error 2 > > > 2. Tail of the logfile: > > checking whether byte ordering is bigendian... no > configure: updating cache ./config.cache > configure: creating ./config.status > config.status: creating Makefile > config.status: creating config.h > config.status: executing gstdint.h commands > ../../gcc-4.7.2/gcc/genhooks.c: In function ■emit_documentation■: > ../../gcc-4.7.2/gcc/genhooks.c:141:14: warning: ignoring return value of > ■fscanf■, declared with attribute warn_unused_result > ../../gcc-4.7.2/gcc/genhooks.c:132:17: warning: ignoring return value of > ■fscanf■, declared with attribute warn_unused_result > ../../gcc-4.7.2/gcc/genhooks.c:195:14: warning: ignoring return value of > ■fscanf■, declared with attribute warn_unused_result > ../../gcc-4.7.2/gcc/genhooks.c:201:14: warning: ignoring return value of > ■fscanf■, declared with attribute warn_unused_result > ../../gcc-4.7.2/gcc/c-family/c-ppoutput.c: In function > ■scan_translation_unit_trad■: > ../../gcc-4.7.2/gcc/c-family/c-ppoutput.c:297:7: warning: ignoring return > value of ■fwrite_unlocked■, declared with attribute warn_unused_result > ../../gcc-4.7.2/gcc/c-family/c-ppoutput.c: In function > ■print_lines_directives_only■: > ../../gcc-4.7.2/gcc/c-family/c-ppoutput.c:264:3: warning: ignoring return > value of ■fwrite_unlocked■, declared with attribute warn_unused_result > /bin/sh: line 1: 15425 Bus error build/genautomata > ../../gcc-4.7.2/gcc/config/i386/i386.md insn-conditions.md > tmp-automata.c > make[4]: *** [s-automata] Error 135 > make[3]: *** [all-gcc] Error 2 > make[2]: *** [all] Error 2 > mkdir -p -- > /usr/src/coreboot/util/crossgcc/xgcc/lib/gcc/i386-elf/4.7.2/install-tools > mkdir -p -- > /usr/src/coreboot/util/crossgcc/xgcc/lib/gcc/i386-elf/4.7.2/install-tools/include > /bin/sh ./libtool --tag=disable-static --mode=install /usr/bin/install -c > liblto_plugin.la '/usr/src/coreboot/util/crossgcc/xgcc/lib/gcc/i386-elf/4.7.2' > libtool: install: /usr/bin/install -c .libs/liblto_plugin.so.0.0.0 > /usr/src/coreboot/util/crossgcc/xgcc/lib/gcc/i386-elf/4.7.2/liblto_plugin.so.0.0.0 > libtool: install: (cd > /usr/src/coreboot/util/crossgcc/xgcc/lib/gcc/i386-elf/4.7.2 && { ln -s -f > liblto_plugin.so.0.0.0 liblto_plugin.so.0 || { rm -f > liblto_plugin.so.0 && ln -s liblto_plugin.so.0.0.0 liblto_plugin.so.0; }; }) > libtool: install: (cd > /usr/src/coreboot/util/crossgcc/xgcc/lib/gcc/i386-elf/4.7.2 && { ln -s -f > liblto_plugin.so.0.0.0 liblto_plugin.so || { rm -f > liblto_plugin.so && ln -s liblto_plugin.so.0.0.0 liblto_plugin.so; }; }) > libtool: install: /usr/bin/install -c .libs/liblto_plugin.lai > /usr/src/coreboot/util/crossgcc/xgcc/lib/gcc/i386-elf/4.7.2/liblto_plugin.la > libtool: finish: > PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.4:/usr/i686-pc-linux-gnu/gnat-gcc-bin/4.3:/usr/libexec/gnat-gcc/i686-pc-linux-gnu/4.3:/usr/libexec/gpc/i686-pc-linux-gnu/3.4:/usr/lib/subversion/bin:/opt/eagle-5.11.0/bin:/var/qmail/bin:/var/vpopmail/bin:.:/usr/src/coreboot/util/crossgcc/xgcc/bin:/sbin" > ldconfig -n /usr/src/coreboot/util/crossgcc/xgcc/lib/gcc/i386-elf/4.7.2 > ---------------------------------------------------------------------- > Libraries have been installed in: > /usr/src/coreboot/util/crossgcc/xgcc/lib/gcc/i386-elf/4.7.2 > > If you ever happen to want to link against installed libraries > in a given directory, LIBDIR, you must either use libtool, and > specify the full pathname of the library, or use the `-LLIBDIR' > flag during linking and do at least one of the following: > - add LIBDIR to the `LD_LIBRARY_PATH' environment variable > during execution > - add LIBDIR to the `LD_RUN_PATH' environment variable > during linking > - use the `-Wl,-rpath -Wl,LIBDIR' linker flag > - have your system administrator add LIBDIR to `/etc/ld.so.conf' > > See any operating system documentation about shared libraries for > more information, such as the ld(1) and ld.so(8) manual pages. > ---------------------------------------------------------------------- > /bin/sh: line 1: 15626 Bus error build/genautomata > ../../gcc-4.7.2/gcc/config/i386/i386.md insn-conditions.md > tmp-automata.c > make[4]: *** [s-automata] Error 135 > make[3]: *** [install-gcc] Error 2 > make[2]: *** [install] Error 2 > > > > 3. Running genautomata by hand does not reveal much: > > Indus build-gcc # cd gcc/ > Indus gcc # build/genautomata ../../gcc-4.7.2/gcc/config/i386/i386.md > insn-conditions.md > tmp-automata.c > Bus error > Indus gcc # > > > > > Again, someone with a suggestion? Thank you! > > Jeroen Krabbendam
That.. sounds like something is 'wrong' with your machine, either in a software or a hardware way (or both): ancient OS/userland, bad memory. Is there anything useful in dmesg output? http://stackoverflow.com/questions/3789089/bus-error-in-cron-job -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

