Subject: [alpine-devel] linux hardened kernel build fails for alpine-3.6

From: Harshal Govind <[email-masked]>
Date: Tue, 6 Mar 2018 23:57:00 -0800

Hi,

I am trying to build the kernel hardened for alpine-3.6. But it fails at
autoconf build which is one of the dependency. I am using alpine-3.6 VM to
build the kernel using sdk(abuild).

PATH="../tests:../build-aux:$PATH"; \
export PATH; \
/bin/bash
/home/alpine/aports/main/autoconf/src/autoconf-2.69/build-aux/missing --run
help2man \
    --include=config.sub.x \
    --include=./common.x \
    --source='GNU Autoconf 2.69' \
    --output=config.sub.1.t `echo 'config.sub' | sed 's,.*/,,'`
help2man: can't get `--help' info from config.sub
Try `--no-discard-stderr' if option outputs to stderr
make[2]: *** [Makefile:461: config.sub.1] Error 1
make[2]: Leaving directory
'/home/alpine/aports/main/autoconf/src/autoconf-2.69/man'
make[1]: *** [Makefile:357: all-recursive] Error 1
make[1]: Leaving directory
'/home/alpine/aports/main/autoconf/src/autoconf-2.69'
make: *** [Makefile:292: all] Error 2
>>> ERROR: autoconf: abuildindex failed
>>> ERROR: linux-hardened: all failed

Am I missing anything in my build environment while building the kernel?

Thanks,
Harshal

---

From: "A. Wilcox" <[email-masked]>
Date: Wed, 7 Mar 2018 14:29:19 -0600

On 03/07/18 01:57, Harshal Govind wrote:
> autoconf build which is one of the dependency. I am using alpine-3.6 VM
> to build the kernel using sdk(abuild).
> 
> /home/alpine/aports/main/autoconf/src/autoconf-2.69/build-aux/missing
> --run help2man \
>     --include=config.sub.x \
>     --include=./common.x \

This usually means config.sub doesn't have executable permissions[1].
What file system are you using to build?  Are you doing a cross-compile
or is this native?

Best,
--arw

[1]: https://mail-index.netbsd.org/pkgsrc-users/2015/07/10/msg021812.html

-- 
A. Wilcox (awilfox)
Project Lead, Adélie Linux
http://adelielinux.org