LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 04-08-2009, 01:10 AM   #1
Bolts
LQ Newbie
 
Registered: Apr 2009
Location: Moorhead, MN
Distribution: Arch
Posts: 1

Rep: Reputation: 5
CLFS ch10.43: module-init-tools-3.4 testing fails - "Unknown endian"


RESOLVED

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 check-TESTS
make[1]: Entering directory `/sources/module-init-tools-3.4'
Building with --enable-zlib...
Testing with --enable-zlib...
Unknown endian!
FAIL: tests/runtests
===================
1 of 1 tests failed
===================
make[1]: *** [check-TESTS] Error 1
make[1]: 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:
Code:
    # Create endianness links
    case `file modprobe` in
	*MSB*) ENDIAN=be;;
	*LSB*) ENDIAN=le;;
	*) echo Unknown endian! >&2; exit 1;;
    esac
I ran 'file modprobe', and it returned:
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.

edit:
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.

Last edited by Bolts; 04-08-2009 at 02:01 AM. Reason: Problem resolved
 
Old 10-29-2010, 04:04 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Thumbs up

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:
  • It generates e-mail to anyone who subscribed to either the thread or the forum.
  • It avoids the creation of oxymoronic 0-reply solved threads.
 
  


Reply

Tags
clfs, compile error, endian


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
Urgent help on "Glibc make error with clfs" rushadrenaline Linux From Scratch 11 03-01-2010 12:14 PM
initrd error - "error inserting'/lib/uhci-hcd.ko' : -1 Unknown symbol in module" os.techie Fedora 2 02-04-2009 11:36 AM
"ImportError: No module named gobject", Exaile fails to run. Python problem. kummiliim Linux - Software 1 12-11-2008 01:12 PM
Perl's "www::mechanize" module fails to upload file having large size paragkalra Programming 2 10-24-2008 08:21 AM
Install ati-drivers fails with "Failed to compile kernel module" erpe Debian 2 06-13-2006 05:09 AM


All times are GMT -5. The time now is 07:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration