Skip to content

unable to build mipsel glibc: fatal error: 'entry.h' file not found #4927

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

Closed
andrewrk opened this issue Apr 3, 2020 · 4 comments
Closed
Labels
arch-mips 32-bit and 64-bit MIPS os-linux
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Apr 3, 2020

[nix-shell:~/Downloads/zig/build]$ ./zig test ../test/stage1/behavior.zig -target mipsel-linux-gnueabihf -lc
Build Dependencies.../home/andy/Downloads/zig/lib/libc/glibc/sysdeps/mips/start.S:37:10: fatal error: 'entry.h' file not found
#include <entry.h>
         ^~~~~~~~~
@andrewrk andrewrk added os-linux arch-mips 32-bit and 64-bit MIPS labels Apr 3, 2020
@andrewrk andrewrk added this to the 0.7.0 milestone Apr 3, 2020
@mikdusan
Copy link
Member

mikdusan commented Apr 4, 2020

hint:

from zig/lib/libc/glibc/

find . -name entry.h

from git://sourceware.org/git/glibc.git

find . -name entry.h
./sysdeps/ia64/entry.h
./sysdeps/powerpc/powerpc64/entry.h
./sysdeps/hppa/entry.h
./sysdeps/unix/mips/entry.h
./sysdeps/generic/entry.h

@andrewrk
Copy link
Member Author

andrewrk commented Dec 16, 2021

Here's where we are after #10339:

$ ./zig test ../test/behavior.zig -I ../test -target mipsel-linux-gnueabihf -lc --test-cmd qemu-mipsel --test-cmd -L --test-cmd ~/Downloads/glibc/multi-2.34/install/glibcs/mipsel-linux-gnu --test-cmd-bin 
ld.lld: error: undefined symbol: __mips_syscall5
>>> referenced by fstatat64.c
>>>               /home/andy/.cache/zig/o/4ddbca24965193154ce25fdd6f209b95/fstatat64.o:(__fstatat64_time64) in archive /home/andy/.cache/zig/o/8fe3a479208f8d39ca3f553d3cc5e465/libc_nonshared.a
>>> referenced by fstatat64.c
>>>               /home/andy/.cache/zig/o/4ddbca24965193154ce25fdd6f209b95/fstatat64.o:(__fstatat64_time64) in archive /home/andy/.cache/zig/o/8fe3a479208f8d39ca3f553d3cc5e465/libc_nonshared.a
thread 655127 panic: attempt to unwrap error: LLDReportedFailure

@lars18th
Copy link

Hi @andrewrk ,

Any advance with the ld.lld: error: undefined symbol: __mips_syscall5 linking error ?

@lars18th
Copy link

Hi @andrewrk ,

When compiling with zig cc -target mipsel-linux-gnueabihf.2.33 (or up) the error doesn't appear.
But when using zig cc -target mipsel-linux-gnueabihf.2.32 or lower: undefined symbol: __mips_syscall5.

I need to compile with a GLIBC 2.30 and this bug seems to be the only obstacle to do it.
Any idea to fix it?
Thank you.

alexrp added a commit to alexrp/zig that referenced this issue Aug 14, 2024
richerfu pushed a commit to richerfu/zig that referenced this issue Oct 28, 2024
@alexrp alexrp modified the milestones: 0.16.0, 0.14.0 Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-mips 32-bit and 64-bit MIPS os-linux
Projects
None yet
Development

No branches or pull requests

4 participants