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

Can't build in Alpine chroot on FreeBSD #36

Open
probonopd opened this issue Sep 17, 2022 · 0 comments
Open

Can't build in Alpine chroot on FreeBSD #36

probonopd opened this issue Sep 17, 2022 · 0 comments

Comments

@probonopd
Copy link
Owner

probonopd commented Sep 17, 2022

Can't build in Alpine chroot on FreeBSD. Why?

# Run the commands from chroot_build.sh but use instead:

FreeBSD% sudo mount -t linprocfs linprocfs miniroot/proc 
FreeBSD% sudo mount -t linsysfs linsysfs miniroot/sys
FreeBSD% sudo mount -t devfs devfs miniroot/dev
FreeBSD% sudo mount -t tmpfs tmpfs miniroot/dev/shm
FreeBSD% sudo mount -t tmpfs tmpfs miniroot/tmp

FreeBSD% sudo cp -p /etc/resolv.conf miniroot/etc/

FreeBSD% sudo chroot miniroot /bin/sh
# Then run the commands from build.sh

# To work quickly around certificate issues
sed -ie "s/https/http/g" /etc/apk/repositories # Needed?
apk add --no-cache ca-certificates

# Still getting
# wget -c -q "https://github.com/vasi/squashfuse/archive/e51978c.tar.gz"
# ssl_client: github.com: certificate verification failed: unable to get local issuer certificate
# Workaround:
# wget --no-check-certificate "https://github.com/vasi/squashfuse/archive/e51978c.tar.gz"

# At the following step:
# ./configure CFLAGS=-no-pie LDFLAGS=-static
# getting
# configure: error: C compiler cannot create executables
# See `config.log' for more details

tail config.log
# /squashfuse-e51978cd6bb5c4d16fae9eee43d0b258f570bb0f # cat config.log | grep missing
# configure:2612: looking for aux files: ltmain.sh compile ar-lib missing install-sh config.guess config.sub
# configure:2654:   ./build-aux/missing found
# ACLOCAL='${SHELL} '\''/squashfuse-e51978cd6bb5c4d16fae9eee43d0b258f570bb0f/build-aux/missing'\'' aclocal-1.16'
# AUTOCONF='${SHELL} '\''/squashfuse-e51978cd6bb5c4d16fae9eee43d0b258f570bb0f/build-aux/missing'\'' autoconf'
# AUTOHEADER='${SHELL} '\''/squashfuse-e51978cd6bb5c4d16fae9eee43d0b258f570bb0f/build-aux/missing'\'' autoheader'
# AUTOMAKE='${SHELL} '\''/squashfuse-e51978cd6bb5c4d16fae9eee43d0b258f570bb0f/build-aux/missing'\'' automake-1.16'
# MAKEINFO='${SHELL} '\''/squashfuse-e51978cd6bb5c4d16fae9eee43d0b258f570bb0f/build-aux/missing'\'' makeinfo'

Why?

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

1 participant