CLFS ch10.43: module-init-tools-3.4 testing fails - "Unknown endian"
Host system: Ubuntu x64 (jaunty)
Cross-compile tools built with gcc-3.4
Deviations: bzip2-1.0.5 used in lieu of 1.0.4
chrooted into temporary system
When performing the tests as per the instructions, the testing fails and the following is returned:
make: Entering directory `/sources/module-init-tools-3.4'
Building with --enable-zlib...
Testing with --enable-zlib...
1 of 1 tests failed
make: *** [check-TESTS] Error 1
make: Leaving directory `/sources/module-init-tools-3.4'
make: *** [check-am] Error 2
This is the portion of tests/runtests that is causing the failure. Lines 60-65:
modprobe: ERROR: Cannot allocate memory for note (Cannot allocate memory)
Why is it unable to determine my system's endianness, and how can I fix it?
Thanks in advance.
Ran 'file modprobe.*' and received the following:
modprobe.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
Changed line 61 from 'case 'file modprobe' in' to 'case 'file modprobe.o' in'.
The test passed after making this change.
Thanks for posting the solution. That's the LQ spirit.
A suggestion for the future: If you answer your own question, put the solution in a separate post; this does 2 good things:
|All times are GMT -5. The time now is 11:53 AM.|