[haiku-development] x86gcc2 Hybrid Build Question

  • From: "Andrew Lindesay" <apl@xxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 12 Jul 2020 10:39:49 +1200

Hello;

My x86gcc2 cross-build has not been working for some time and I'm having 
trouble understanding the problem.  Can anybody give me some pointers?

When I run the usual...

```
../haiku/configure --build-cross-tools x86_gcc2 ../buildtools 
--build-cross-tools x86
```

...on an ubuntu host with gcc-7 installed and in the path I get the following...

```
...
Created "Makefile" in 
/home/apl/Development/haiku-proj/generated.x86gcc2/cross-tools-x86_gcc2-build/gcc
 using "mt-frag"
/usr/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/7/libgcc.a 
when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/x86_64-linux-gnu/7/libgcc_s.so.1 when searching for libgcc_s.so.1
/usr/bin/ld: cannot find libgcc_s.so.1
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/7/libgcc.a 
when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
*** The command 'gcc -m32 -o conftest -O2 -U_FORTIFY_SOURCE   conftest.c' 
failed.
*** You must set the environment variable CC to a working compiler.
```

Any advice appreciated.

Regards.

-- 
Andrew Lindesay

Other related posts: