Discussion:
Please advise: (new toolkit) crossgcc fails on ubuntu 32/64 bit fresh installs
Mark Mc
2013-09-08 01:44:16 UTC
Permalink
Hi, just checking if anyone has any experience with this problem, my output
is:

:~/coreboot$ make crossgcc
Warning: no suitable GCC for armv7.
Welcome to the coreboot cross toolchain builder v1.22 (July 9th, 2013)

Target arch is now i386-elf
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (downloading)
* mpfr-3.1.2.tar.bz2 (downloading)
* mpc-1.0.1.tar.gz (downloading)
* libelf-0.8.13.tar.gz (downloading)
* gcc-4.8.1.tar.bz2 (downloading)
* binutils-2.23.2.tar.bz2 (downloading)
* acpica-unix-20130626.tar.gz (downloading)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.1.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.1.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20130626.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.1 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.1 ... ok
Skipping Expat (Python scripting not enabled)
Skipping Python (Python scripting not enabled)
Skipping GDB (GDB support not enabled)
Building IASL 20130626 ... ok
Cleaning up... ok

You can now run your i386-elf cross toolchain from
/home/mark/coreboot/util/crossgcc/xgcc.
Welcome to the coreboot cross toolchain builder v1.22 (July 9th, 2013)

Target arch is now armv7a-eabi
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (cached)
* mpfr-3.1.2.tar.bz2 (cached)
* mpc-1.0.1.tar.gz (cached)
* libelf-0.8.13.tar.gz (cached)
* gcc-4.8.1.tar.bz2 (cached)
* binutils-2.23.2.tar.bz2 (cached)
* acpica-unix-20130626.tar.gz (cached)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.1.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.1.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20130626.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.1 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.1 ... failed
make[1]: *** [build-without-gdb] Error 1
make: *** [crossgcc] Error 2
Andrew Wu
2013-09-08 06:00:22 UTC
Permalink
Hi,

I remember that crossgcc will output error log into file
util/crossgcc/build-gcc/crossgcc-build.log , you can check it first.

Also it seems crossgcc for i386-elf target is already successfully
built, only armv7 is failed. If you don't need to build ARM target, I
think you can ignore it.
Post by Mark Mc
Hi, just checking if anyone has any experience with this problem, my output
:~/coreboot$ make crossgcc
Warning: no suitable GCC for armv7.
Welcome to the coreboot cross toolchain builder v1.22 (July 9th, 2013)
Target arch is now i386-elf
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (downloading)
* mpfr-3.1.2.tar.bz2 (downloading)
* mpc-1.0.1.tar.gz (downloading)
* libelf-0.8.13.tar.gz (downloading)
* gcc-4.8.1.tar.bz2 (downloading)
* binutils-2.23.2.tar.bz2 (downloading)
* acpica-unix-20130626.tar.gz (downloading)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.1.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.1.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20130626.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.1 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.1 ... ok
Skipping Expat (Python scripting not enabled)
Skipping Python (Python scripting not enabled)
Skipping GDB (GDB support not enabled)
Building IASL 20130626 ... ok
Cleaning up... ok
You can now run your i386-elf cross toolchain from
/home/mark/coreboot/util/crossgcc/xgcc.
Welcome to the coreboot cross toolchain builder v1.22 (July 9th, 2013)
Target arch is now armv7a-eabi
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (cached)
* mpfr-3.1.2.tar.bz2 (cached)
* mpc-1.0.1.tar.gz (cached)
* libelf-0.8.13.tar.gz (cached)
* gcc-4.8.1.tar.bz2 (cached)
* binutils-2.23.2.tar.bz2 (cached)
* acpica-unix-20130626.tar.gz (cached)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.1.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.1.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20130626.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.1 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.1 ... failed
make[1]: *** [build-without-gdb] Error 1
make: *** [crossgcc] Error 2
--
http://www.coreboot.org/mailman/listinfo/coreboot
--
coreboot mailing list: ***@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot
Mark Mc
2013-09-08 14:27:26 UTC
Permalink
Unfortunately it wont compile the rom without crossgcc compiling for both
platforms, my crossgcc-build.log ends with and appears to have no other
failures than:

cc1: fatal error: .vis: No such file or directory
compilation terminated.
make[5]: *** [libunwind.o] Error 1
make[4]: *** [multi-do] Error 1
make[3]: *** [all-multi] Error 2
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: cannot stat ‘libgcc.a’: No such file or directory
make[3]: *** [install-leaf] Error 1
make[2]: *** [install-target-libgcc] Error 2

Is there any way to exclude crossgcc for compiling for armv7?

---------- Forwarded message ----------
From: Andrew Wu <***@gmail.com>
Date: Sun, Sep 8, 2013 at 6:56 AM
Subject: Re: [coreboot] Please advise: (new toolkit) crossgcc fails on
ubuntu 32/64 bit fresh installs
To: Mark Mc <***@gmail.com>


Hi,

I remember that crossgcc will output error log into file
util/crossgcc/build-gcc/crossgcc-build.log , you can check it first.

Also it seems crossgcc for i386-elf target is already successfully
built, only armv7 is failed. If you don't need to build ARM target, I
think you can ignore it.
Post by Mark Mc
Hi, just checking if anyone has any experience with this problem, my
output
Post by Mark Mc
:~/coreboot$ make crossgcc
Warning: no suitable GCC for armv7.
Welcome to the coreboot cross toolchain builder v1.22 (July 9th, 2013)
Target arch is now i386-elf
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (downloading)
* mpfr-3.1.2.tar.bz2 (downloading)
* mpc-1.0.1.tar.gz (downloading)
* libelf-0.8.13.tar.gz (downloading)
* gcc-4.8.1.tar.bz2 (downloading)
* binutils-2.23.2.tar.bz2 (downloading)
* acpica-unix-20130626.tar.gz (downloading)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.1.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.1.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20130626.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.1 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.1 ... ok
Skipping Expat (Python scripting not enabled)
Skipping Python (Python scripting not enabled)
Skipping GDB (GDB support not enabled)
Building IASL 20130626 ... ok
Cleaning up... ok
You can now run your i386-elf cross toolchain from
/home/mark/coreboot/util/crossgcc/xgcc.
Welcome to the coreboot cross toolchain builder v1.22 (July 9th, 2013)
Target arch is now armv7a-eabi
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (cached)
* mpfr-3.1.2.tar.bz2 (cached)
* mpc-1.0.1.tar.gz (cached)
* libelf-0.8.13.tar.gz (cached)
* gcc-4.8.1.tar.bz2 (cached)
* binutils-2.23.2.tar.bz2 (cached)
* acpica-unix-20130626.tar.gz (cached)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.1.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.1.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20130626.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.1 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.1 ... failed
make[1]: *** [build-without-gdb] Error 1
make: *** [crossgcc] Error 2
--
http://www.coreboot.org/mailman/listinfo/coreboot
Andrew Wu
2013-09-09 08:26:07 UTC
Permalink
Hi,

You can see util/crossgcc/Makefile :


all: build

build:
bash ./buildgcc -G -p i386-elf
bash ./buildgcc -G -p armv7a-eabi

.PHONY: build-without-gdb
build-without-gdb:
bash ./buildgcc -p i386-elf
bash ./buildgcc -p armv7a-eabi

clean:
rm -rf xgcc

.PHONY: all build clean


So, I think you only need to run "bash ./buildgcc -G -p i386-elf" to
build crossgcc for i386 only.
Post by Mark Mc
Unfortunately it wont compile the rom without crossgcc compiling for both
platforms, my crossgcc-build.log ends with and appears to have no other
cc1: fatal error: .vis: No such file or directory
compilation terminated.
make[5]: *** [libunwind.o] Error 1
make[4]: *** [multi-do] Error 1
make[3]: *** [all-multi] Error 2
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: cannot stat ‘libgcc.a’: No such file or directory
make[3]: *** [install-leaf] Error 1
make[2]: *** [install-target-libgcc] Error 2
Is there any way to exclude crossgcc for compiling for armv7?
---------- Forwarded message ----------
Date: Sun, Sep 8, 2013 at 6:56 AM
Subject: Re: [coreboot] Please advise: (new toolkit) crossgcc fails on
ubuntu 32/64 bit fresh installs
Hi,
I remember that crossgcc will output error log into file
util/crossgcc/build-gcc/crossgcc-build.log , you can check it first.
Also it seems crossgcc for i386-elf target is already successfully
built, only armv7 is failed. If you don't need to build ARM target, I
think you can ignore it.
Post by Mark Mc
Hi, just checking if anyone has any experience with this problem, my
output
:~/coreboot$ make crossgcc
Warning: no suitable GCC for armv7.
Welcome to the coreboot cross toolchain builder v1.22 (July 9th, 2013)
Target arch is now i386-elf
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (downloading)
* mpfr-3.1.2.tar.bz2 (downloading)
* mpc-1.0.1.tar.gz (downloading)
* libelf-0.8.13.tar.gz (downloading)
* gcc-4.8.1.tar.bz2 (downloading)
* binutils-2.23.2.tar.bz2 (downloading)
* acpica-unix-20130626.tar.gz (downloading)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.1.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.1.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20130626.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.1 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.1 ... ok
Skipping Expat (Python scripting not enabled)
Skipping Python (Python scripting not enabled)
Skipping GDB (GDB support not enabled)
Building IASL 20130626 ... ok
Cleaning up... ok
You can now run your i386-elf cross toolchain from
/home/mark/coreboot/util/crossgcc/xgcc.
Welcome to the coreboot cross toolchain builder v1.22 (July 9th, 2013)
Target arch is now armv7a-eabi
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (cached)
* mpfr-3.1.2.tar.bz2 (cached)
* mpc-1.0.1.tar.gz (cached)
* libelf-0.8.13.tar.gz (cached)
* gcc-4.8.1.tar.bz2 (cached)
* binutils-2.23.2.tar.bz2 (cached)
* acpica-unix-20130626.tar.gz (cached)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.1.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.1.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20130626.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.1 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.1 ... failed
make[1]: *** [build-without-gdb] Error 1
make: *** [crossgcc] Error 2
--
http://www.coreboot.org/mailman/listinfo/coreboot
--
http://www.coreboot.org/mailman/listinfo/coreboot
--
coreboot mailing list: ***@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot
Peter Stuge
2013-09-10 04:17:07 UTC
Permalink
Post by Andrew Wu
all: build
bash ./buildgcc -G -p i386-elf
bash ./buildgcc -G -p armv7a-eabi
IMNSHO this is a stupid problem seriously in need of an intelligent
solution.

I can not understand the rationale for defaulting to what is clearly
NOT the common case; i386 *and* armv7a.

This is not the first time that the above has caused problems, I can
not understand why this was introduced in the first place (it seems
pretty obvious that it will cause problems) and I can not understand
why it is *still* there even after multiple problem reports.

Is every single developer suffering from total tunnel vision? Come on.


//Peter
--
coreboot mailing list: ***@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot
David Hubbard
2013-09-10 06:11:40 UTC
Permalink
Post by Peter Stuge
Post by Andrew Wu
all: build
bash ./buildgcc -G -p i386-elf
bash ./buildgcc -G -p armv7a-eabi
IMNSHO this is a stupid problem seriously in need of an intelligent
solution.
I can not understand the rationale for defaulting to what is clearly
NOT the common case; i386 *and* armv7a.
This is not the first time that the above has caused problems, I can
not understand why this was introduced in the first place (it seems
pretty obvious that it will cause problems) and I can not understand
why it is *still* there even after multiple problem reports.
Is every single developer suffering from total tunnel vision? Come on.
I didn't want to say anything.

My locally modified util/crossgcc/Makefile does not do armv7, but instead:

bash ./buildgcc -j $(shell awk '/^processor/{n=n+1}END{print n+1}'
/proc/cpuinfo) -p i386-elf

It would be preferable to read /sys/devices/system/cpu/online but the
format is not machine-friendly which would make for a lot of coding to work
around it.

Who is the maintainer of the build system? I assume someone who also
administers gerrit, yes?

David
Peter Stuge
2013-09-10 06:30:29 UTC
Permalink
bash ./buildgcc -j $(shell awk '/^processor/{n=n+1}END{print n+1}' /proc/cpuinfo) -p i386-elf
This is great on Linux but unfortunately not portable.
Who is the maintainer of the build system?
Nobody really. Everybody generally works wherever and complaints
are dealt with (or not) lazily rather than proactively.


//Peter
--
coreboot mailing list: ***@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot
Scott Duplichan
2013-09-09 04:40:27 UTC
Permalink
Mark Mc wrote:

...
] Is there any way to exclude crossgcc for compiling for armv7?
...

Try launching buildgcc directly with no arguments. i386-elf is the default
target.
Lines 5 and 10 of util/crossgcc/Makefile are where the ARM builds are
triggered.

Thanks,
Scott
--
coreboot mailing list: ***@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot
Paul Menzel
2015-02-26 00:24:45 UTC
Permalink
Dear coreboot folks,
Post by Mark Mc
Unfortunately it wont compile the rom without crossgcc compiling for both
platforms, my crossgcc-build.log ends with and appears to have no other
cc1: fatal error: .vis: No such file or directory
compilation terminated.
make[5]: *** [libunwind.o] Error 1
make[4]: *** [multi-do] Error 1
make[3]: *** [all-multi] Error 2
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: cannot stat ‘libgcc.a’: No such file or directory
make[3]: *** [install-leaf] Error 1
make[2]: *** [install-target-libgcc] Error 2
trying to build the recommended toolchain for Google Rush, I am hitting
the same problem in latest master at commit 6529c33a (build: mipsel
cross compiler support).

`make crossgcc-aarch64` succeeds, but `make crossgcc-arm` fails.

$ make crossgcc-arm
Warning: no suitable GCC for arm.
Warning: no suitable GCC for arm64.
Warning: no suitable GCC for riscv.
Warning: no suitable GCC for mipsel.
fatal: Repository '/home/paul/src/nvidia-cbootimage.git' existiert nicht.
Klonen von '/home/paul/src/nvidia-cbootimage.git' in Submodul-Pfad 'util/nvidia/cbootimage' fehlgeschlagen
Welcome to the coreboot cross toolchain builder v1.26 (February 23th, 2015)

Target arch is now armv7-a-eabi
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (downloading)
* mpfr-3.1.2.tar.bz2 (downloading)
* mpc-1.0.3.tar.gz (downloading)
* libelf-0.8.13.tar.gz (downloading)
* gcc-4.8.3.tar.bz2 (downloading)
* binutils-2.23.2.tar.bz2 (downloading)
* acpica-unix-20140114.tar.gz (downloading)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.3.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.3.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20140114.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.3 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.3 ... failed
Makefile:21: recipe for target 'build-armv7a-without-gdb' failed
make[1]: *** [build-armv7a-without-gdb] Error 1
Makefile.inc:455: recipe for target 'crossgcc-arm' failed
make: *** [crossgcc-arm] Error 2

Please find the log attached. I am using Debian Sid/unstable.

$ more util/crossgcc/build-armv7-a-eabi-gcc/crossgcc-build.log
configure.ac:34: error: Please use exactly Autoconf 2.64 instead of 2.69.
config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from...
configure.ac:34: the top level
[
]
config.status: executing default commands
Adding multilib support to Makefile in ../../../../gcc-4.8.3/libgcc
with_multisubdir=fpu
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S: Assembler messages:
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S: Assembler messages:
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S: Assembler messages:
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S: Assembler messages:
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:97:1: warning: no previous prototype for '__gnu_h2f_internal' [-Wmissing-prototypes]
__gnu_h2f_internal(unsigned short a, int ieee)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:122:1: warning: no previous prototype for '__gnu_f2h_ieee' [-Wmissing-prototypes]
__gnu_f2h_ieee(unsigned int a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:128:1: warning: no previous prototype for '__gnu_h2f_ieee' [-Wmissing-prototypes]
__gnu_h2f_ieee(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:134:1: warning: no previous prototype for '__gnu_f2h_alternative' [-Wmissing-prototypes]
__gnu_f2h_alternative(unsigned int x)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:140:1: warning: no previous prototype for '__gnu_h2f_alternative' [-Wmissing-prototypes]
__gnu_h2f_alternative(unsigned short a)
^
In file included from ../../../../gcc-4.8.3/libgcc/config/arm/unwind-arm.c:143:0:
../../../../gcc-4.8.3/libgcc/unwind-arm-common.inc: In function 'get_eit_entry':
../../../../gcc-4.8.3/libgcc/unwind-arm-common.inc:245:29: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
ucbp->pr_cache.ehtp = (_Unwind_EHT_Header *)&eitp->content;
^
cc1: fatal error: .vis: No such file or directory
compilation terminated.
../../../../gcc-4.8.3/libgcc/static-object.mk:28: recipe for target 'libunwind.o' failed
make[5]: *** [libunwind.o] Error 1
Makefile:1104: recipe for target 'multi-do' failed
make[4]: *** [multi-do] Error 1
Makefile:113: recipe for target 'all-multi' failed
make[3]: *** [all-multi] Error 2
Makefile:9962: recipe for target 'all-target-libgcc' failed
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: der Aufruf von stat fÃŒr „libgcc.a“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Makefile:1066: recipe for target 'install-leaf' failed
make[3]: *** [install-leaf] Error 1
Makefile:10024: recipe for target 'install-target-libgcc' failed
make[config.status: executing default commands
Adding multilib support to Makefile in ../../../../gcc-4.8.3/libgcc
with_multisubdir=fpu
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S: Assembler messages:
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S: Assembler messages:
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S: Assembler messages:
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S: Assembler messages:
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:97:1: warning: no previous prototype for '__gnu_h2f_internal' [-Wmissing-prototypes]
__gnu_h2f_internal(unsigned short a, int ieee)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:122:1: warning: no previous prototype for '__gnu_f2h_ieee' [-Wmissing-prototypes]
__gnu_f2h_ieee(unsigned int a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:128:1: warning: no previous prototype for '__gnu_h2f_ieee' [-Wmissing-prototypes]
__gnu_h2f_ieee(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:134:1: warning: no previous prototype for '__gnu_f2h_alternative' [-Wmissing-prototypes]
__gnu_f2h_alternative(unsigned int x)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:140:1: warning: no previous prototype for '__gnu_h2f_alternative' [-Wmissing-prototypes]
__gnu_h2f_alternative(unsigned short a)
^
In file included from ../../../../gcc-4.8.3/libgcc/config/arm/unwind-arm.c:143:0:
../../../../gcc-4.8.3/libgcc/unwind-arm-common.inc: In function 'get_eit_entry':
../../../../gcc-4.8.3/libgcc/unwind-arm-common.inc:245:29: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
ucbp->pr_cache.ehtp = (_Unwind_EHT_Header *)&eitp->content;
^
cc1: fatal error: .vis: No such file or directory
compilation terminated.
../../../../gcc-4.8.3/libgcc/static-object.mk:28: recipe for target 'libunwind.o' failed
make[5]: *** [libunwind.o] Error 1
Makefile:1104: recipe for target 'multi-do' failed
make[4]: *** [multi-do] Error 1
Makefile:113: recipe for target 'all-multi' failed
make[3]: *** [all-multi] Error 2
Makefile:9962: recipe for target 'all-target-libgcc' failed
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: der Aufruf von stat fÃŒr „libgcc.a“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Makefile:1066: recipe for target 'install-leaf' failed
make[3]: *** [install-leaf] Error 1
Makefile:10024: recipe for target 'install-target-libgcc' failed
make[2]: *** [install-target-libgcc] Error 22]: *** [install-target-libgcc] Error 2

[
]


Thanks,

Paul
Paul Menzel
2015-02-26 01:04:52 UTC
Permalink
Dear coreboot folks,


I forgot to attach the log file.
Post by Paul Menzel
Post by Mark Mc
Unfortunately it wont compile the rom without crossgcc compiling for both
platforms, my crossgcc-build.log ends with and appears to have no other
cc1: fatal error: .vis: No such file or directory
compilation terminated.
make[5]: *** [libunwind.o] Error 1
make[4]: *** [multi-do] Error 1
make[3]: *** [all-multi] Error 2
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: cannot stat ‘libgcc.a’: No such file or directory
make[3]: *** [install-leaf] Error 1
make[2]: *** [install-target-libgcc] Error 2
trying to build the recommended toolchain for Google Rush, I am hitting
the same problem in latest master at commit 6529c33a (build: mipsel
cross compiler support).
`make crossgcc-aarch64` succeeds, but `make crossgcc-arm` fails.
$ make crossgcc-arm
Warning: no suitable GCC for arm.
Warning: no suitable GCC for arm64.
Warning: no suitable GCC for riscv.
Warning: no suitable GCC for mipsel.
fatal: Repository '/home/paul/src/nvidia-cbootimage.git' existiert nicht.
Klonen von '/home/paul/src/nvidia-cbootimage.git' in Submodul-Pfad 'util/nvidia/cbootimage' fehlgeschlagen
Welcome to the coreboot cross toolchain builder v1.26 (February 23th, 2015)
Target arch is now armv7-a-eabi
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (downloading)
* mpfr-3.1.2.tar.bz2 (downloading)
* mpc-1.0.3.tar.gz (downloading)
* libelf-0.8.13.tar.gz (downloading)
* gcc-4.8.3.tar.bz2 (downloading)
* binutils-2.23.2.tar.bz2 (downloading)
* acpica-unix-20140114.tar.gz (downloading)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.3.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.3.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20140114.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.3 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.3 ... failed
Makefile:21: recipe for target 'build-armv7a-without-gdb' failed
make[1]: *** [build-armv7a-without-gdb] Error 1
Makefile.inc:455: recipe for target 'crossgcc-arm' failed
make: *** [crossgcc-arm] Error 2
Please find the log attached. I am using Debian Sid/unstable.
$ more util/crossgcc/build-armv7-a-eabi-gcc/crossgcc-build.log
configure.ac:34: error: Please use exactly Autoconf 2.64 instead of 2.69.
config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from...
configure.ac:34: the top level
[
]
config.status: executing default commands
Adding multilib support to Makefile in ../../../../gcc-4.8.3/libgcc
with_multisubdir=fpu
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:97:1: warning: no previous prototype for '__gnu_h2f_internal' [-Wmissing-prototypes]
__gnu_h2f_internal(unsigned short a, int ieee)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:122:1: warning: no previous prototype for '__gnu_f2h_ieee' [-Wmissing-prototypes]
__gnu_f2h_ieee(unsigned int a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:128:1: warning: no previous prototype for '__gnu_h2f_ieee' [-Wmissing-prototypes]
__gnu_h2f_ieee(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:134:1: warning: no previous prototype for '__gnu_f2h_alternative' [-Wmissing-prototypes]
__gnu_f2h_alternative(unsigned int x)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:140:1: warning: no previous prototype for '__gnu_h2f_alternative' [-Wmissing-prototypes]
__gnu_h2f_alternative(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/unwind-arm-common.inc:245:29: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
ucbp->pr_cache.ehtp = (_Unwind_EHT_Header *)&eitp->content;
^
cc1: fatal error: .vis: No such file or directory
compilation terminated.
../../../../gcc-4.8.3/libgcc/static-object.mk:28: recipe for target 'libunwind.o' failed
make[5]: *** [libunwind.o] Error 1
Makefile:1104: recipe for target 'multi-do' failed
make[4]: *** [multi-do] Error 1
Makefile:113: recipe for target 'all-multi' failed
make[3]: *** [all-multi] Error 2
Makefile:9962: recipe for target 'all-target-libgcc' failed
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: der Aufruf von stat fÃŒr „libgcc.a“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Makefile:1066: recipe for target 'install-leaf' failed
make[3]: *** [install-leaf] Error 1
Makefile:10024: recipe for target 'install-target-libgcc' failed
make[config.status: executing default commands
Adding multilib support to Makefile in ../../../../gcc-4.8.3/libgcc
with_multisubdir=fpu
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:97:1: warning: no previous prototype for '__gnu_h2f_internal' [-Wmissing-prototypes]
__gnu_h2f_internal(unsigned short a, int ieee)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:122:1: warning: no previous prototype for '__gnu_f2h_ieee' [-Wmissing-prototypes]
__gnu_f2h_ieee(unsigned int a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:128:1: warning: no previous prototype for '__gnu_h2f_ieee' [-Wmissing-prototypes]
__gnu_h2f_ieee(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:134:1: warning: no previous prototype for '__gnu_f2h_alternative' [-Wmissing-prototypes]
__gnu_f2h_alternative(unsigned int x)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:140:1: warning: no previous prototype for '__gnu_h2f_alternative' [-Wmissing-prototypes]
__gnu_h2f_alternative(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/unwind-arm-common.inc:245:29: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
ucbp->pr_cache.ehtp = (_Unwind_EHT_Header *)&eitp->content;
^
cc1: fatal error: .vis: No such file or directory
compilation terminated.
../../../../gcc-4.8.3/libgcc/static-object.mk:28: recipe for target 'libunwind.o' failed
make[5]: *** [libunwind.o] Error 1
Makefile:1104: recipe for target 'multi-do' failed
make[4]: *** [multi-do] Error 1
Makefile:113: recipe for target 'all-multi' failed
make[3]: *** [all-multi] Error 2
Makefile:9962: recipe for target 'all-target-libgcc' failed
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: der Aufruf von stat fÃŒr „libgcc.a“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Makefile:1066: recipe for target 'install-leaf' failed
make[3]: *** [install-leaf] Error 1
Makefile:10024: recipe for target 'install-target-libgcc' failed
make[2]: *** [install-target-libgcc] Error 22]: *** [install-target-libgcc] Error 2
[
]
Thanks,
Paul
Aaron Durbin
2015-02-26 20:56:40 UTC
Permalink
I reproduced the error. I was trying to figure out how to debug it. I
entered into the util/crossgcc/build-armv7-a-eabi-gcc directory and
typed make. Everything worked... I'm trying again. I'm not really sure
why one way would fail and the other not.

On Wed, Feb 25, 2015 at 7:04 PM, Paul Menzel
Post by Paul Menzel
Dear coreboot folks,
I forgot to attach the log file.
Post by Paul Menzel
Post by Mark Mc
Unfortunately it wont compile the rom without crossgcc compiling for both
platforms, my crossgcc-build.log ends with and appears to have no other
cc1: fatal error: .vis: No such file or directory
compilation terminated.
make[5]: *** [libunwind.o] Error 1
make[4]: *** [multi-do] Error 1
make[3]: *** [all-multi] Error 2
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: cannot stat ‘libgcc.a’: No such file or directory
make[3]: *** [install-leaf] Error 1
make[2]: *** [install-target-libgcc] Error 2
trying to build the recommended toolchain for Google Rush, I am hitting
the same problem in latest master at commit 6529c33a (build: mipsel
cross compiler support).
`make crossgcc-aarch64` succeeds, but `make crossgcc-arm` fails.
$ make crossgcc-arm
Warning: no suitable GCC for arm.
Warning: no suitable GCC for arm64.
Warning: no suitable GCC for riscv.
Warning: no suitable GCC for mipsel.
fatal: Repository '/home/paul/src/nvidia-cbootimage.git' existiert nicht.
Klonen von '/home/paul/src/nvidia-cbootimage.git' in Submodul-Pfad 'util/nvidia/cbootimage' fehlgeschlagen
Welcome to the coreboot cross toolchain builder v1.26 (February 23th, 2015)
Target arch is now armv7-a-eabi
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (downloading)
* mpfr-3.1.2.tar.bz2 (downloading)
* mpc-1.0.3.tar.gz (downloading)
* libelf-0.8.13.tar.gz (downloading)
* gcc-4.8.3.tar.bz2 (downloading)
* binutils-2.23.2.tar.bz2 (downloading)
* acpica-unix-20140114.tar.gz (downloading)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.3.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.3.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20140114.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.3 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.3 ... failed
Makefile:21: recipe for target 'build-armv7a-without-gdb' failed
make[1]: *** [build-armv7a-without-gdb] Error 1
Makefile.inc:455: recipe for target 'crossgcc-arm' failed
make: *** [crossgcc-arm] Error 2
Please find the log attached. I am using Debian Sid/unstable.
$ more util/crossgcc/build-armv7-a-eabi-gcc/crossgcc-build.log
configure.ac:34: error: Please use exactly Autoconf 2.64 instead of 2.69.
config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from...
configure.ac:34: the top level
[…]
config.status: executing default commands
Adding multilib support to Makefile in ../../../../gcc-4.8.3/libgcc
with_multisubdir=fpu
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:97:1: warning: no previous prototype for '__gnu_h2f_internal' [-Wmissing-prototypes]
__gnu_h2f_internal(unsigned short a, int ieee)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:122:1: warning: no previous prototype for '__gnu_f2h_ieee' [-Wmissing-prototypes]
__gnu_f2h_ieee(unsigned int a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:128:1: warning: no previous prototype for '__gnu_h2f_ieee' [-Wmissing-prototypes]
__gnu_h2f_ieee(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:134:1: warning: no previous prototype for '__gnu_f2h_alternative' [-Wmissing-prototypes]
__gnu_f2h_alternative(unsigned int x)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:140:1: warning: no previous prototype for '__gnu_h2f_alternative' [-Wmissing-prototypes]
__gnu_h2f_alternative(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/unwind-arm-common.inc:245:29: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
ucbp->pr_cache.ehtp = (_Unwind_EHT_Header *)&eitp->content;
^
cc1: fatal error: .vis: No such file or directory
compilation terminated.
../../../../gcc-4.8.3/libgcc/static-object.mk:28: recipe for target 'libunwind.o' failed
make[5]: *** [libunwind.o] Error 1
Makefile:1104: recipe for target 'multi-do' failed
make[4]: *** [multi-do] Error 1
Makefile:113: recipe for target 'all-multi' failed
make[3]: *** [all-multi] Error 2
Makefile:9962: recipe for target 'all-target-libgcc' failed
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: der Aufruf von stat für „libgcc.a“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Makefile:1066: recipe for target 'install-leaf' failed
make[3]: *** [install-leaf] Error 1
Makefile:10024: recipe for target 'install-target-libgcc' failed
make[config.status: executing default commands
Adding multilib support to Makefile in ../../../../gcc-4.8.3/libgcc
with_multisubdir=fpu
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:97:1: warning: no previous prototype for '__gnu_h2f_internal' [-Wmissing-prototypes]
__gnu_h2f_internal(unsigned short a, int ieee)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:122:1: warning: no previous prototype for '__gnu_f2h_ieee' [-Wmissing-prototypes]
__gnu_f2h_ieee(unsigned int a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:128:1: warning: no previous prototype for '__gnu_h2f_ieee' [-Wmissing-prototypes]
__gnu_h2f_ieee(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:134:1: warning: no previous prototype for '__gnu_f2h_alternative' [-Wmissing-prototypes]
__gnu_f2h_alternative(unsigned int x)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:140:1: warning: no previous prototype for '__gnu_h2f_alternative' [-Wmissing-prototypes]
__gnu_h2f_alternative(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/unwind-arm-common.inc:245:29: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
ucbp->pr_cache.ehtp = (_Unwind_EHT_Header *)&eitp->content;
^
cc1: fatal error: .vis: No such file or directory
compilation terminated.
../../../../gcc-4.8.3/libgcc/static-object.mk:28: recipe for target 'libunwind.o' failed
make[5]: *** [libunwind.o] Error 1
Makefile:1104: recipe for target 'multi-do' failed
make[4]: *** [multi-do] Error 1
Makefile:113: recipe for target 'all-multi' failed
make[3]: *** [all-multi] Error 2
Makefile:9962: recipe for target 'all-target-libgcc' failed
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: der Aufruf von stat für „libgcc.a“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Makefile:1066: recipe for target 'install-leaf' failed
make[3]: *** [install-leaf] Error 1
Makefile:10024: recipe for target 'install-target-libgcc' failed
make[2]: *** [install-target-libgcc] Error 22]: *** [install-target-libgcc] Error 2
[…]
Thanks,
Paul
--
http://www.coreboot.org/mailman/listinfo/coreboot
--
coreboot mailing list: ***@coreboot.
Paul Menzel
2015-02-27 23:47:46 UTC
Permalink
Post by Aaron Durbin
I reproduced the error. I was trying to figure out how to debug it. I
entered into the util/crossgcc/build-armv7-a-eabi-gcc directory and
typed make. Everything worked... I'm trying again. I'm not really sure
why one way would fail and the other not.
Interesting.
Paul, could you try executing buildgcc manually (not through a make rule)?
Just for the archive, running `./buildgcc -G -p armv7a-eabi` worked.
If that works, there's some make environment stuff that survives and
breaks things.
Thank you for providing a patch [1]! I’ll test that tomorrow.


Thanks,

Paul


[1] http://review.coreboot.org/8545

Kevin Paul Herbert
2015-02-26 18:56:01 UTC
Permalink
I have the same issue building ARM compilers for my board. I wasn't able to figure out the cause, so I reverted to 4.7.3. I tried 4.9.2 as well, and it failed in the same way.

I am suspicious of gnu make as the cause. There is a pattern match base rule that is written as -include $*.vis - $* is null, so the compiler tries to include .vis, which obviously doesn't exist.

I had another issue building on ARM as well - my board does not use verstage but builds without verstage fail right now. I have a patch for this - I'll submit it later today.

Kevin
Post by Paul Menzel
Dear coreboot folks,
I forgot to attach the log file.
Post by Paul Menzel
Post by Mark Mc
Unfortunately it wont compile the rom without crossgcc compiling for both
platforms, my crossgcc-build.log ends with and appears to have no other
cc1: fatal error: .vis: No such file or directory
compilation terminated.
make[5]: *** [libunwind.o] Error 1
make[4]: *** [multi-do] Error 1
make[3]: *** [all-multi] Error 2
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: cannot stat ‘libgcc.a’: No such file or directory
make[3]: *** [install-leaf] Error 1
make[2]: *** [install-target-libgcc] Error 2
trying to build the recommended toolchain for Google Rush, I am hitting
the same problem in latest master at commit 6529c33a (build: mipsel
cross compiler support).
`make crossgcc-aarch64` succeeds, but `make crossgcc-arm` fails.
$ make crossgcc-arm
Warning: no suitable GCC for arm.
Warning: no suitable GCC for arm64.
Warning: no suitable GCC for riscv.
Warning: no suitable GCC for mipsel.
fatal: Repository '/home/paul/src/nvidia-cbootimage.git' existiert nicht.
Klonen von '/home/paul/src/nvidia-cbootimage.git' in Submodul-Pfad 'util/nvidia/cbootimage' fehlgeschlagen
Welcome to the coreboot cross toolchain builder v1.26 (February 23th, 2015)
Target arch is now armv7-a-eabi
Will skip GDB ... ok
Downloading tar balls ...
* gmp-5.1.2.tar.bz2 (downloading)
* mpfr-3.1.2.tar.bz2 (downloading)
* mpc-1.0.3.tar.gz (downloading)
* libelf-0.8.13.tar.gz (downloading)
* gcc-4.8.3.tar.bz2 (downloading)
* binutils-2.23.2.tar.bz2 (downloading)
* acpica-unix-20140114.tar.gz (downloading)
Downloaded tar balls ... ok
Unpacking and patching ...
* gmp-5.1.2.tar.bz2
* mpfr-3.1.2.tar.bz2
* mpc-1.0.3.tar.gz
* libelf-0.8.13.tar.gz
* gcc-4.8.3.tar.bz2
* binutils-2.23.2.tar.bz2
o binutils-2.23.2_armv7a.patch
o binutils-2.23.2_no-bfd-doc.patch
* acpica-unix-20140114.tar.gz
Unpacked and patched ... ok
Building GMP 5.1.2 ... ok
Building MPFR 3.1.2 ... ok
Building MPC 1.0.3 ... ok
Building libelf 0.8.13 ... ok
Building binutils 2.23.2 ... ok
Building GCC 4.8.3 ... failed
Makefile:21: recipe for target 'build-armv7a-without-gdb' failed
make[1]: *** [build-armv7a-without-gdb] Error 1
Makefile.inc:455: recipe for target 'crossgcc-arm' failed
make: *** [crossgcc-arm] Error 2
Please find the log attached. I am using Debian Sid/unstable.
$ more util/crossgcc/build-armv7-a-eabi-gcc/crossgcc-build.log
configure.ac:34: error: Please use exactly Autoconf 2.64 instead of 2.69.
config/override.m4:12: _GCC_AUTOCONF_VERSION_CHECK is expanded from...
configure.ac:34: the top level
[…]
config.status: executing default commands
Adding multilib support to Makefile in ../../../../gcc-4.8.3/libgcc
with_multisubdir=fpu
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:97:1: warning: no previous prototype for '__gnu_h2f_internal' [-Wmissing-prototypes]
__gnu_h2f_internal(unsigned short a, int ieee)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:122:1: warning: no previous prototype for '__gnu_f2h_ieee' [-Wmissing-prototypes]
__gnu_f2h_ieee(unsigned int a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:128:1: warning: no previous prototype for '__gnu_h2f_ieee' [-Wmissing-prototypes]
__gnu_h2f_ieee(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:134:1: warning: no previous prototype for '__gnu_f2h_alternative' [-Wmissing-prototypes]
__gnu_f2h_alternative(unsigned int x)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:140:1: warning: no previous prototype for '__gnu_h2f_alternative' [-Wmissing-prototypes]
__gnu_h2f_alternative(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/unwind-arm-common.inc:245:29: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
ucbp->pr_cache.ehtp = (_Unwind_EHT_Header *)&eitp->content;
^
cc1: fatal error: .vis: No such file or directory
compilation terminated.
../../../../gcc-4.8.3/libgcc/static-object.mk:28: recipe for target 'libunwind.o' failed
make[5]: *** [libunwind.o] Error 1
Makefile:1104: recipe for target 'multi-do' failed
make[4]: *** [multi-do] Error 1
Makefile:113: recipe for target 'all-multi' failed
make[3]: *** [all-multi] Error 2
Makefile:9962: recipe for target 'all-target-libgcc' failed
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: der Aufruf von stat für „libgcc.a“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Makefile:1066: recipe for target 'install-leaf' failed
make[3]: *** [install-leaf] Error 1
Makefile:10024: recipe for target 'install-target-libgcc' failed
make[config.status: executing default commands
Adding multilib support to Makefile in ../../../../gcc-4.8.3/libgcc
with_multisubdir=fpu
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/lib1funcs.S:351: use of r15 in bx in ARM mode is not really useful
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:97:1: warning: no previous prototype for '__gnu_h2f_internal' [-Wmissing-prototypes]
__gnu_h2f_internal(unsigned short a, int ieee)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:122:1: warning: no previous prototype for '__gnu_f2h_ieee' [-Wmissing-prototypes]
__gnu_f2h_ieee(unsigned int a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:128:1: warning: no previous prototype for '__gnu_h2f_ieee' [-Wmissing-prototypes]
__gnu_h2f_ieee(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:134:1: warning: no previous prototype for '__gnu_f2h_alternative' [-Wmissing-prototypes]
__gnu_f2h_alternative(unsigned int x)
^
../../../../gcc-4.8.3/libgcc/config/arm/fp16.c:140:1: warning: no previous prototype for '__gnu_h2f_alternative' [-Wmissing-prototypes]
__gnu_h2f_alternative(unsigned short a)
^
../../../../gcc-4.8.3/libgcc/unwind-arm-common.inc:245:29: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual]
ucbp->pr_cache.ehtp = (_Unwind_EHT_Header *)&eitp->content;
^
cc1: fatal error: .vis: No such file or directory
compilation terminated.
../../../../gcc-4.8.3/libgcc/static-object.mk:28: recipe for target 'libunwind.o' failed
make[5]: *** [libunwind.o] Error 1
Makefile:1104: recipe for target 'multi-do' failed
make[4]: *** [multi-do] Error 1
Makefile:113: recipe for target 'all-multi' failed
make[3]: *** [all-multi] Error 2
Makefile:9962: recipe for target 'all-target-libgcc' failed
make[2]: *** [all-target-libgcc] Error 2
/usr/bin/install: der Aufruf von stat für „libgcc.a“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Makefile:1066: recipe for target 'install-leaf' failed
make[3]: *** [install-leaf] Error 1
Makefile:10024: recipe for target 'install-target-libgcc' failed
make[2]: *** [install-target-libgcc] Error 22]: *** [install-target-libgcc] Error 2
[…]
Thanks,
Paul
<config.log>
<config.status>
<crossgcc-build.log>
--
http://www.coreboot.org/mailman/listinfo/coreboot
--
coreboot mailing list: ***@corebo
Mark Mc
2013-09-09 13:16:04 UTC
Permalink
Hi,

Removing armv7 target fromthe util/crossgcc/Makefile removed so much output
from the crossgcc-build.log that the actual problem became obvious I was
missing g++,
so now crossgcc compiles,
cheers for the help guys
Loading...