maestro-os / blimp

Maestro operating system's package manager
MIT License
21 stars 3 forks source link

Fail to compile musl in cross #3

Open Marsman1996 opened 1 month ago

Marsman1996 commented 1 month ago

Hi,

I'm trying to build and run maestro from source code. And I use this Dockerfile build maestro kernel successfully but met some problems with blimp cross building.

When the cross/build.sh built the musl, it failed during the link time:

obj/compat/time32/utimensat_time32.lo obj/compat/time32/utimes_time32.lo obj/compat/time32/wait3_time32.lo obj/compat/time32/wait4_time32.lo obj/ldso/dlstart.lo obj/ldso/dynlink.lo -lgcc -lgcc_eh
ld.lld: error: unable to find library -lgcc
ld.lld: error: unable to find library -lgcc_eh
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:162: lib/libc.so] Error 1
make: *** Waiting for unfinished jobs....
i686-unknown-linux-musl-ranlib lib/libc.a
blimp-builder: error: Package build failed!
root@0c2a48b97ecd:~/maestro/maestro-install/blimp/cross#
Marsman1996 commented 1 month ago

~OK, I forgot to install gcc-multilib and g++-multilib...~ Weird, I create a new docker image and the error happens again 🤔.

llenotre commented 4 weeks ago

Did your PR fix this issue?

Marsman1996 commented 4 weeks ago

Nope, the PR only fix the path of the toolchain, and during the time of compiling musl, the toolchain path only contains the compiled binutils.