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: