LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-13-2018, 03:01 PM   #1
budrz89
LQ Newbie
 
Registered: Apr 2017
Distribution: Xubuntu
Posts: 6

Rep: Reputation: Disabled
all libffi tests fail


Hi,

I've been following the book pretty closely so far and now I'm up to chapter 6.49 on libffi-3.2.1. After executing the sed commands as described in the book, I did

Code:
./configure --prefix=/usr --disable-static
and

Code:
make; make check
with the following output

Code:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gsed... sed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /tools/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking size of size_t... 8
checking for C compiler vendor... gnu
checking whether C compiler accepts -fstrict-aliasing... yes
checking whether C compiler accepts -ffast-math... yes
checking for gcc architecture flag... 
checking for x86 cpuid 0 output... b:756e6547:6c65746e:49656e69
checking for x86 cpuid 1 output... 20655:4100800:9ae3bd:bfebfbff
checking whether C compiler accepts -march=corei7... yes
checking for gcc architecture flag... -march=corei7
checking whether C compiler accepts -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=corei7... yes
checking CFLAGS for maximum warnings... -Wall
checking whether to enable maintainer-specific portions of Makefiles... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking for mkostemp... yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... yes
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking for ANSI C header files... (cached) yes
checking for memcpy... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking size of double... 8
checking size of long double... 16
checking whether byte ordering is bigendian... no
checking assembler .cfi pseudo-op support... yes
checking assembler supports pc related relocs... yes
checking assembler .ascii pseudo-op support... yes
checking assembler .string pseudo-op support... yes
checking for _ prefix in compiled symbols... no
checking toolchain supports unwind section type... yes
checking whether .eh_frame section should be read-only... yes
checking for __attribute__((visibility("hidden")))... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating include/Makefile
config.status: creating include/ffi.h
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating man/Makefile
config.status: creating libffi.pc
config.status: creating fficonfig.h
config.status: linking ../src/x86/ffitarget.h to include/ffitarget.h
config.status: executing buildir commands
config.status: create top_srcdir/Makefile guessed from local Makefile
config.status: build in x86_64-unknown-linux-gnu (HOST=)
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include commands
config.status: executing src commands
and for the 'make check' I'm basically getting (output is too long):

Code:
		=== libffi tests ===

Schedule of variations:
    unix

...
		=== libffi Summary ===

# of unexpected failures	685
# of unresolved testcases	685
make[3]: Leaving directory '/sources/libffi-3.2.1/x86_64-unknown-linux-gnu/testsuite'
make[2]: Leaving directory '/sources/libffi-3.2.1/x86_64-unknown-linux-gnu/testsuite'
make[1]: Leaving directory '/sources/libffi-3.2.1/x86_64-unknown-linux-gnu'
It seems like all of the tests fail. What can I do about this and should I worry about it or move on?

Last edited by budrz89; 07-13-2018 at 03:02 PM.
 
Old 07-14-2018, 04:14 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 9,365

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
That's a failure.

I would remove the source, download the archive afresh, check the md5sum and try it again. Is your host system a Red Hat system, by any chance (Centos, Fedora, Scientific Linux,etc)? They have more patches than I've had hot dinners, and LFS does not build on them, unless things have changed drastically.
 
Old 07-14-2018, 08:56 PM   #3
budrz89
LQ Newbie
 
Registered: Apr 2017
Distribution: Xubuntu
Posts: 6

Original Poster
Rep: Reputation: Disabled
The host was Knoppix (64 bit). I did end up deciding to redoing the whole thing again as you suggested business_kid. Luckily I copied and pasted the commands as shell scripts. I am double checking them though in the off chance that there is an error... cross your fingers that this will be fixed.
 
Old 07-15-2018, 01:58 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 9,365

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
If not, you have to further back, all the way unless something before fixes it. Moving from static libs to dynamic ones is(or was) particularly hazard prone. I had to do that once with a basically complete LFS. It's irritating when you have the finish in sight and start over, but you're much quicker second time.
 
Old 07-16-2018, 12:23 AM   #5
budrz89
LQ Newbie
 
Registered: Apr 2017
Distribution: Xubuntu
Posts: 6

Original Poster
Rep: Reputation: Disabled
After redoing everything carefully, I got my LFS up and running!

Apparently I forgot to write a script that installed diffutils package in chapter 5. I can't really imagine it causing issues with a test that seems to use DejaGNU but whatever the problem was before, I fixed it.

Thanks for your help business_kid. Now on to BLFS...
 
1 members found this post helpful.
Old 07-18-2018, 04:45 AM   #6
tujv77
LQ Newbie
 
Registered: Jul 2018
Distribution: Linux from Scratch
Posts: 1

Rep: Reputation: Disabled
Just ran into this exact same error, but it was caused by the virtual file systems not being mounted before entering chroot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BLFS 8.1: libsoup tests fail jr_bob_dobbs Linux From Scratch 1 02-12-2018 06:46 PM
apr-util, one third of the tests fail jr_bob_dobbs Linux From Scratch 2 01-22-2018 05:11 PM
[SOLVED] Where can I get the source for an old version of libffi - libffi.so.3? for Haskell mimosa Linux - Software 3 10-28-2012 08:04 AM
[SOLVED] LFS 6.8 Chapter 6.9 Glibc 2.13 All Tests Fail! eliadk Linux From Scratch 2 10-11-2011 02:23 AM
SASL Auth Tests Fail on Mail Server carlosinfl Linux - Server 3 11-24-2009 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration