Skip to content

Can't build in Alpine chroot on FreeBSD #36

@probonopd

Description

@probonopd

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions