Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to compile musl in cross #3

Open
Marsman1996 opened this issue Oct 17, 2024 · 3 comments
Open

Fail to compile musl in cross #3

Marsman1996 opened this issue Oct 17, 2024 · 3 comments

Comments

@Marsman1996
Copy link
Contributor

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
Copy link
Contributor Author

Marsman1996 commented Oct 17, 2024

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

@llenotre
Copy link
Member

Did your PR fix this issue?

@Marsman1996
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants