[Bug 1126261] New: Cross-compilers are not able to compile a simple hello-world
http://bugzilla.opensuse.org/show_bug.cgi?id=1126261 Bug ID: 1126261 Summary: Cross-compilers are not able to compile a simple hello-world Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: guillaume.gardet@arm.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- If you use: * aarch64-suse-linuxgcc from cross-aarch64-gcc7 or cross-aarch64-gcc8 on x86_64 * x86_64-suse-linuxgcc from cross-x86_64-gcc7 or cross-x86_64-gcc8 on aarch64 you are not able to compile a simple hello world program: #include <stdio.h> int main(){ printf("Hello\n"); return 0; } Because it fails with: 'fatal error: stdio.h: No such file or directory' And if I remove the 'include', I get a hint to add it, and then fails with: /usr/lib64/gcc/aarch64-suse-linux/8/ld: cannot find crt1.o: No such file or directory /usr/lib64/gcc/aarch64-suse-linux/8/ld: cannot find crti.o: No such file or directory /usr/lib64/gcc/aarch64-suse-linux/8/ld: cannot find crtbegin.o: No such file or directory /usr/lib64/gcc/aarch64-suse-linux/8/ld: cannot find -lgcc /usr/lib64/gcc/aarch64-suse-linux/8/ld: cannot find -lgcc_s /usr/lib64/gcc/aarch64-suse-linux/8/ld: cannot find -lc /usr/lib64/gcc/aarch64-suse-linux/8/ld: cannot find -lgcc /usr/lib64/gcc/aarch64-suse-linux/8/ld: cannot find -lgcc_s /usr/lib64/gcc/aarch64-suse-linux/8/ld: cannot find crtend.o: No such file or directory /usr/lib64/gcc/aarch64-suse-linux/8/ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status whereas there are: /usr/lib64/gcc/x86_64-suse-linux/8/crtbegin.o /usr/lib64/gcc/x86_64-suse-linux/8/libgcc.a /usr/lib64/gcc/x86_64-suse-linux/8/libgcc_s.so -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1126261 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |afaerber@suse.com, | |dmueller@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1126261 http://bugzilla.opensuse.org/show_bug.cgi?id=1126261#c1 Andreas Färber <afaerber@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenther@suse.com OS|Other |openSUSE Factory --- Comment #1 from Andreas Färber <afaerber@suse.com> --- That's not a bug. Feel free to assign it to yourself if you want to work on implementing it. Richie had related experimental packages for Power in devel:gcc. For qemu-ipxe bug #1125964 I suggest you stick with aggregates. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1126261 http://bugzilla.opensuse.org/show_bug.cgi?id=1126261#c2 --- Comment #2 from Guillaume GARDET <guillaume.gardet@arm.com> --- (In reply to Andreas Färber from comment #1)
That's not a bug. Feel free to assign it to yourself if you want to work on implementing it. Richie had related experimental packages for Power in devel:gcc.
I will have a look.
For qemu-ipxe bug #1125964 I suggest you stick with aggregates.
qemu-ipxe cross-build properly. Only sgabios does not due to this bug / lack of feature. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1126261 http://bugzilla.opensuse.org/show_bug.cgi?id=1126261#c3 --- Comment #3 from Richard Biener <rguenther@suse.com> --- Most cross-$arch-gcc compilers are only suitable for building kernels since we lack "cross" glibc (and thus startfiles and target libraries). Exceptions are some crosses using newlib (cross-arm-none, cross-avr, cross-epiphany, cross-rx and cross-riscv64-elf). I've once had "hacks" to re-purpose native glibc as cross but never followed through on this due to lack of time. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1126261 Richard Biener <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|matz@suse.com |rguenther@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1126261 http://bugzilla.opensuse.org/show_bug.cgi?id=1126261#c4 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS|openSUSE Factory |All --- Comment #4 from Guillaume GARDET <guillaume.gardet@arm.com> --- I tried cross-aarch64-linux-glibc-devel (with cross-aarch64-gcc11) now it is available in Tumbleweed, but no header file are found by aarch64-suse-linux-gcc. If there is no header file included, I get: /usr/lib64/gcc/aarch64-suse-linux/11/ld: cannot find crt1.o: No such file or directory /usr/lib64/gcc/aarch64-suse-linux/11/ld: cannot find crti.o: No such file or directory /usr/lib64/gcc/aarch64-suse-linux/11/ld: cannot find crtbegin.o: No such file or directory /usr/lib64/gcc/aarch64-suse-linux/11/ld: cannot find -lgcc /usr/lib64/gcc/aarch64-suse-linux/11/ld: cannot find -lgcc_s /usr/lib64/gcc/aarch64-suse-linux/11/ld: cannot find -lc /usr/lib64/gcc/aarch64-suse-linux/11/ld: cannot find -lgcc /usr/lib64/gcc/aarch64-suse-linux/11/ld: cannot find -lgcc_s /usr/lib64/gcc/aarch64-suse-linux/11/ld: cannot find crtend.o: No such file or directory /usr/lib64/gcc/aarch64-suse-linux/11/ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com