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

Build failed on Ubuntu 22.04 ( WSL ), Arch Linux ( Both WSL and Laptop ) #284

Open
ksajolaer opened this issue May 23, 2023 · 3 comments
Open

Comments

@ksajolaer
Copy link

ksajolaer commented May 23, 2023

This is what the terminal throws.
nt@Windows-PC:~/bedrocklinux-userland$ sudo make SKIPSIGN=true rm -rf /home/nt/bedrocklinux-userland/build/x86_64/src/crossfs cp -r src/crossfs/ /home/nt/bedrocklinux-userland/build/x86_64/src cd /home/nt/bedrocklinux-userland/build/x86_64/src/crossfs && \ make CC=/home/nt/bedrocklinux-userland/build/x86_64/support/bin/musl-gcc CFLAGS="" && \ cp ./crossfs /home/nt/bedrocklinux-userland/build/x86_64/bedrock/libexec/crossfs make[1]: Entering directory '/home/nt/bedrocklinux-userland/build/x86_64/src/crossfs' /home/nt/bedrocklinux-userland/build/x86_64/support/bin/musl-gcc -std=c99 -D_FILE_OFFSET_BITS=64 crossfs.c -o crossfs -lfuse3 -lpthread In file included from /home/nt/bedrocklinux-userland/build/x86_64/support/include/fuse3/fuse.h:19, from crossfs.c:78: /home/nt/bedrocklinux-userland/build/x86_64/support/include/fuse3/fuse_common.h:21:10: fatal error: libfuse_config.h: No such file or directory 21 | #include "libfuse_config.h" | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[1]: *** [Makefile:12: crossfs] Error 1 make[1]: Leaving directory '/home/nt/bedrocklinux-userland/build/x86_64/src/crossfs' make: *** [Makefile:854: /home/nt/bedrocklinux-userland/build/x86_64/bedrock/libexec/crossfs] Error 2
I guess the problem was WSL fault.

@ksajolaer
Copy link
Author

ksajolaer commented May 23, 2023

I also tried on Arch Linux ( Laptop ) and it still give the same error messages. I guess it is because make or crossfs since it throws.
make[1]: *** [Makefile:12: crossfs] Error 1 make[1]: Leaving directory '/home/nt/bedrocklinux-userland/build/x86_64/src/crossfs' make: *** [Makefile:854: /home/nt/bedrocklinux-userland/build/x86_64/bedrock/libexec/crossfs] Error 2

@ksajolaer ksajolaer changed the title Build failed on Ubuntu 22.04 ( WSL ) Build failed on Ubuntu 22.04 ( WSL ), Arch Linux ( Both WSL and Laptop ) May 23, 2023
@paradigm
Copy link
Member

I was able to reproduce a build failure. The key thing to know is that Bedrock's Makefile pulls down build dependencies.

One of the dependencies no longer accessible. In the past I found libcap's source was hosted at https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/ but that no longer seems to be the case. I'll need to do some digging to find where libcap's source is currently hosted.

Additionally, it looks like lvm2 and fuse both had updates which break the build system. I'll need to update it to handle those.

I'm going to have limited time for Bedrock development for a number of days, but I'll dig into this and push an update when I can; possibly next weekend.

@ksajolaer
Copy link
Author

ksajolaer commented Jun 3, 2023

I was able to reproduce a build failure. The key thing to know is that Bedrock's Makefile pulls down build dependencies.

One of the dependencies no longer accessible. In the past I found libcap's source was hosted at https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/ but that no longer seems to be the case. I'll need to do some digging to find where libcap's source is currently hosted.

Additionally, it looks like lvm2 and fuse both had updates which break the build system. I'll need to update it to handle those.

I'm going to have limited time for Bedrock development for a number of days, but I'll dig into this and push an update when I can; possibly next weekend.

I guess you should try these link instead
git://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git https://kernel.googlesource.com/pub/scm/linux/kernel/git/morgan/libcap.git

I tried to replace the original link with https://kernel.googlesource.com/pub/scm/linux/kernel/git/morgan/libcap.git and it works. Until the crossfs or make error occur again.

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