LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-21-2010, 01:56 AM   #1
kamleshk1
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Rep: Reputation: 0
CLFS Embedded SVN-0.0.1-20090726-arm, error in uClibc-0.9.30.1


Hi,

I'm trying CLFS for the first time.
trying to build CLFS for ARM available at http://cross-lfs.org/view/clfs-embedded/arm/
Cross-Compiled Linux From Scratch - Embedded - Version
SVN-0.0.1-20090726-arm

However In chapter 6.10 uClibc-0.9.30.1 when i issue the "make oldconfig" command I get the following
clfs:/mnt/clfs/sources/uClibc-0.9.30.1$ make oldconfig
MKDIR incldue/config
../../.config:3: *** multiple target patterns. Stop
make: *** [extera/config/conf] Error 2
clfs:/mnt/clfs/sources/uClibc-0.9.30.1$


For Information only, even the next two commands in the same chapter i.e.
(i) make CROSS=${CLFS_TARGET}- CC="${CLFS_TARGET}-gcc ${BUILD}"
(ii) make PREFIX=${CLFS} install
give error as .config:3: *** multiple target patterns. Stop

Also not able to download CLFS-Bootscripts (1.0 pre5) in chapter 3.2 All Packages
http://cross-lfs.org/files/packages/...0-pre5.tar.bz2
3.4 Needed Patches http://patches.cross-lfs.org/embedde...update-1.patch
12.2 Beyond CLFS Packages http://cross-lfs.org/~mlankhorst/libnl-git.tar.bz2
http://cross-lfs.org/~mlankhorst/hostap-git.tar.bz2
and the patch files for all the packages fail.
Please let me know from where can I download them.

I'm using LFS live CD(lfslivecd-x86-6.3-r2160.iso) as the host which has a LFS Version 6.3 book in it
My PC details are AMD Athlon Processor, Asus Motherboard
In chapter 6.3 ABI Variables my input was export BUILD=aapcs-linux
for 6.4 Build Variables input was export CLFS_TARGET=arm-unknown-linux-uclibc
Not sure about what should be the exact values for the above two variables, please suggest if something else works well
MACH_TYPE is i486-pc-linux-gnu (automatically generated)

Thanks for your time,
Kamlesh Kumar..
 
Old 01-21-2010, 05:19 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,008

Rep: Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276
Hi. I've done LFS, BLFS, and HLFS. best place to inquire usually is their mailing lists. If the book is stable, and you can't build it, generally it's you. That said, let's go through the errors

multiple target platforms must mean you have different definitions, or 2 cpu types in your definition. Go to the top source dir and try
grep -r triplet Makefile*

Your MACH_TYPE may be a problem. You can't have an arm cpu in a 486! I would specify exactly what the book suggests.

FWIW, I have a google android running an arm cpu. uname -a reports

Linux localhost 2.6.29.cm42 #1 PREEMPT
Wed Nov 11 18:44:03 EST 2009 armv6l GNU/linux

If you can't get stuff, keep trying and post on the lfs lists. If they don't answer, it's a stupid question answwered 1000s of times in the archives or the FAQ
 
Old 01-21-2010, 08:47 AM   #3
kamleshk1
LQ Newbie
 
Registered: Nov 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the reply business kid.
I have already sent the mail to clfs-support guys (http://www.mail-archive.com/clfs-sup.../msg02039.html), but I did not get any reply from them, I even looked into their archives (No idea about CLFS FAQs, where do we find them??). So I decided to post over here.

what should be the ideal MACHTYPE as they don't specify anything in the CLFS embedded arm book, please suggest.
The only things which I can find in the book are BUILD and CLFS_TARGET variables.
So to set the CLFS_HOST variable is issue the command export CLFS_HOST="${MACHTYPE}" as its given in the book.
Hence the CLFS_HOST variable gets set to i486-pc-linux-gnu, I have mentioned in my previous post that MACHTYPE is automatically generated, also my host system is LFS live CD


>>Go to the top source dir and try
>>grep -r triplet Makefile*

where do I run this, is it at /mnt/clfs/sources$
and Do you want me to run this command as CLFS user or root user

Thanks,
Kamlesh Kumar..
 
Old 01-22-2010, 04:40 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,008

Rep: Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276Reputation: 2276
Quote:
Originally Posted by kamleshk1 View Post
Thanks for the reply business kid.
I have already sent the mail to clfs-support guys (http://www.mail-archive.com/clfs-sup.../msg02039.html), but I did not get any reply from them, I even looked into their archives (No idea about CLFS FAQs, where do we find them??). So I decided to post over here.
There is an LFS FAQ which covers the common issues in all areas. Some of the lfs projects are basically dead, but not killed off. HLFS, for instance, and clfs. When that's the case, often it's not the best way to go. They are not up to date, and people have left them behind. Then the book stops building. Do you have a stable book?

Quote:
Originally Posted by kamleshk1 View Post
what should be the ideal MACHTYPE as they don't specify anything in the CLFS embedded arm book, please suggest.
The only things which I can find in the book are BUILD and CLFS_TARGET variables.
So to set the CLFS_HOST variable is issue the command export CLFS_HOST="${MACHTYPE}" as its given in the book.
Hence the CLFS_HOST variable gets set to i486-pc-linux-gnu, I have mentioned in my previous post that MACHTYPE is automatically generated, also my host system is LFS live CD
I would try armv6l-linux-uclibc. You should know what type of arm cpu you want to accomodate. There is an arm 7 series. I really don't know a lot about them.

Quote:
Originally Posted by kamleshk1 View Post
>>Go to the top source dir and try
>>grep -r triplet Makefile*

where do I run this, is it at /mnt/clfs/sources$
and Do you want me to run this command as CLFS user or root user
It absolutely doesn't matter. Depends on who has write permissions. I'd like you to hunt in the Makefile. I would try this: copy the uclibc sources elsewhere and configure them for your own pc. Don't build. Then configure them in clfs and you can compare the Makefiles. I am suspicious of make oldconfig. What type of cpu was the old config for? I would allow host=x86 or that sort of thing, but MACH_TYPE.

Hack those makefiles, and then try it.
 
  


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
arm-linux-uclibc-gcc: error trying to exec 'cc1': execvp: No such directory saurabh.jain162 Linux - Newbie 0 06-05-2009 09:26 AM
Help.....Embedded Linux uClibc, unable to run shared executables. jackson312 Linux - Mobile 6 03-21-2009 01:15 PM
Error-triggering on Embedded (ARM) running PostgreSQL billygotee Linux - Networking 0 10-19-2006 06:02 PM
/arm-linux-uclibc/bin/ld: cannot find -lcrypto tosatishpatel Linux - Software 0 03-21-2006 12:53 AM
Problem with shared libraries (uClibc) on small embedded system. Help ! Mike Davies Linux - Software 0 08-12-2005 09:59 AM

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

All times are GMT -5. The time now is 04:13 AM.

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
Open Source Consulting | Domain Registration