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

Cannot compile from source #181

Open
MohamedLEGH opened this issue Mar 4, 2024 · 1 comment
Open

Cannot compile from source #181

MohamedLEGH opened this issue Mar 4, 2024 · 1 comment

Comments

@MohamedLEGH
Copy link

Hello,
I have the following error when I try to compile the software (same error when I try to install from AUR).

sudo make install
/home/mohamed/enroot/deps/dist/musl/bin/musl-gcc -std=c99 -O2 -fstack-protector -fPIE -pedantic -Wall -Wextra -Wcast-align -Wpointer-arith -Wmissing-prototypes -Wnonnull -Wwrite-strings -Wlogical-op -Wformat=2 -Wmissing-format-attribute -Winit-self -Wshadow -Wstrict-prototypes -Wunreachable-code -Wconversion -Wsign-conversion  -s -D_FORTIFY_SOURCE=2 -isystem /home/mohamed/enroot/deps/dist/libbsd/include/bsd -DLIBBSD_OVERLAY  -Wl,-zrelro -Wl,-znow -Wl,-zdefs -Wl,--as-needed -Wl,--gc-sections -L/home/mohamed/enroot/deps/dist/libbsd/lib  -pie -static-pie  bin/enroot-mount.c  -l:libbsd.a -o bin/enroot-mount
/usr/bin/ld: /home/mohamed/enroot/deps/dist/libbsd/lib/libbsd.a(strtoi.o): in function `strtoi':
strtoi.c:(.text.strtoi+0x56): undefined reference to `__isoc23_strtoimax'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: bin/enroot-mount] Error 1

I'm on ArchLinux and the output of of ./enroot-check_*.run --verify is :

Kernel version:

Linux version 6.7.5-arch1-1 (linux@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Sat, 17 Feb 2024 14:02:33 +0000

Kernel configuration:

CONFIG_NAMESPACES                 : OK
CONFIG_USER_NS                    : OK
CONFIG_SECCOMP_FILTER             : OK
CONFIG_OVERLAY_FS                 : OK (module)
CONFIG_X86_VSYSCALL_EMULATION     : OK
CONFIG_VSYSCALL_EMULATE           : KO (required if glibc <= 2.13)
CONFIG_VSYSCALL_NATIVE            : KO (required if glibc <= 2.13)

Kernel command line:

vsyscall=native                   : KO (required if glibc <= 2.13)
vsyscall=emulate                  : KO (required if glibc <= 2.13)

Kernel parameters:

kernel.unprivileged_userns_clone  : OK
user.max_user_namespaces          : OK
user.max_mnt_namespaces           : OK

Extra packages:

nvidia-container-cli              : OK

Any idea what the problem is ?

@3XX0
Copy link
Member

3XX0 commented Mar 8, 2024

Sorry I haven't had time to look into it yet, not sure how we end up with C23 references in a C11 build, there must be something going on within the libc headers

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