On 02/01/2019 07:00, DJ Lucas via lfs-dev wrote:


On 01/01/2019 10:50 AM, spiky0011 via lfs-dev wrote:

DJ Lucas.

I have tried building your multilib sysV version I get a error in building libcap-2.25 x32bit.

So far no problems upto here, I have restarted from ch6 a 2nd time incase I made a mistake.

Error

libcap-2.25# make CC="gcc -mx32"
make -C libcap all
make[1]: Entering directory '/sources/libcap-2.25/libcap'
=> making cap_names.list.h from /sources/libcap-2.25/libcap/../libcap/include/uapi/linux/capability.h perl -e 'while ($l=<>) { if ($l =~ /^\#define[ \t](CAP[_A-Z]+)[ \t]+([0-9]+)\s+$/) { $tok=$1; $val=$2; $tok =~ tr/A-Z/a-z/; print "{\"$tok\",$val},\n"; } }' /sources/libcap-2.25/libcap/../libcap/include/uapi/linux/capability.h | fgrep -v 0x > cap_names.list.h gcc -mx32 -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -I/sources/libcap-2.25/libcap/../libcap/include/uapi -I/sources/libcap-2.25/libcap/../libcap/include _makenames.c -o _makenames
./_makenames > cap_names.h
/bin/sh: ./_makenames: cannot execute binary file: Exec format error
make[1]: *** [Makefile:41: cap_names.h] Error 126
make[1]: Leaving directory '/sources/libcap-2.25/libcap'
make: *** [Makefile:12: all] Error 2


I have no idea how to check what is wrong. If this error could stem back to ch5 then ok.

Both of the other parts built fine from libcap


Maybe double check the kernel config for x32 support (CONFIG_X86_X32). That said, and unrelated, you should be building from Thomas's patch at https://io.ax.lt/ as it is kept up to date (automated). Only need my patch for jhalfs (if you are using jhalfs).

--DJ

Thks that fixed it (CONFIG_X86_X32). I,m not using jhalfs, I,m doing by hand.
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to