-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels