LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-07-2009, 10:38 AM   #1
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Rep: Reputation: 30
I can not figure out what this command should be.


I am trying to do the linux from scratch here.http://www.linuxfromscratch.org/ Eveything works great until I get to the binutils part.http://www.linuxfromscratch.org/lfs/...ils-pass1.html

The command it says to run is.
Code:
../binutils-2.19.1/configure \
    --target=$LFS_TGT --prefix=/tools \
    --disable-nls --disable-werror
Since everything else has worked it is a sure thing I am missing something here. But what. I am the binutils-build directory which is where I think the directions state. I did a copy and paste. should I run the commands one at a time. Will someone help me out here.
 
Old 12-07-2009, 10:44 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

These are not separate commands. The \ at the end of the line means that the command continues on the next one, the --target, --prefix and so on are parameters you are passing on to the configure command.. Try deleting the \ and put the command as this:
Code:
../binutils-2.19.1/configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-werror
Also it's very important that you are in the correct directory when executing the command. For future reference it's always handy to post the error(s) you are getting when executing a command.

Kind regards,

Eric
 
Old 12-07-2009, 12:56 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739
The way that command is written, it says: "run binutils*/configure starting in the directory one up from the current working directory". Is it possible there is only supposed to be one leading "."?
Regardless, just get into binutils*, and then run:
./configure <stuff>
 
Old 12-07-2009, 01:11 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by pixellany View Post
Is it possible there is only supposed to be one leading "."?
If you read the page the OP gave the link to, you will see that you are supposed to make a "binutils-build" directory at the same level as "binutils-2.19.1". So your tree would look like
Code:
[use@machine:/path/to/work]:tree
.
|-- binutils-2.19.1
`-- binutils-build

2 directories, 0 files
After cding into binutils-build, you would have to run "../binutils-2.19.1/whatever". It is a common technique used in cross-compiling.
 
Old 12-08-2009, 12:41 PM   #5
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Question

Quote:
Originally Posted by pixellany View Post
The way that command is written, it says: "run binutils*/configure starting in the directory one up from the current working directory". Is it possible there is only supposed to be one leading "."?
Regardless, just get into binutils*, and then run:
./configure <stuff>
You are right that was what the problem was not for sure why they have it in the book that way unless they are trying to be sure that you learn the commands by typing them in but even when the directory path is in the middle of commands it is like that. I worked that out and then found out something else is wrong with the os on my machine. I think it is because my os is deb 13 and the lfs is for an older os.
I downloaded the lfslivecd and am going to try it again. I am also going to download the most current version of the files and do it on this comp again. I included the log file in this post. It is big but I think the error that killed it was at line 268. Sounds like the build is not finding the source files I was told to open in earlier in the proccess. Symlink problem? But I think by the time I get something built and updated I should be more able to deo command lines. Thanks for your help.
 
Old 12-08-2009, 12:48 PM   #6
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Lightbulb

Quote:
Originally Posted by David1357 View Post
If you read the page the OP gave the link to, you will see that you are supposed to make a "binutils-build" directory at the same level as "binutils-2.19.1". So your tree would look like
Code:
[use@machine:/path/to/work]:tree
.
|-- binutils-2.19.1
`-- binutils-build

2 directories, 0 files
After cding into binutils-build, you would have to run "../binutils-2.19.1/whatever". It is a common technique used in cross-compiling.
So what you are saying is I should have the program I am compiling outside biutils-build directory. I knew I missed something!
 
Old 12-08-2009, 01:13 PM   #7
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by dvdljns View Post
So what you are saying is I should have the program I am compiling outside biutils-build directory. I knew I missed something!
Yes. The first time I saw this method, I thought it was a mistake. Your post confirms that this method confuses people.

It is yet another one of those computer things that once you know it, it seems obvious. Unfortunately, it presents a barrier to entry to new users because it is not obvious, and will cause many people to waste time doing it the wrong way until they figure out (or get told) the right way.
 
Old 12-08-2009, 02:46 PM   #8
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Talking

Quote:
Originally Posted by David1357 View Post
Yes. The first time I saw this method, I thought it was a mistake. Your post confirms that this method confuses people.

It is yet another one of those computer things that once you know it, it seems obvious. Unfortunately, it presents a barrier to entry to new users because it is not obvious, and will cause many people to waste time doing it the wrong way until they figure out (or get told) the right way.
Since you checked out the link I posted could you look at the log file I attached and see if I am right and the compile did not see the gmp I am using and what was my mistake there. Since a lot of people use this method to learn if I follow the directions right it should work. I am making copies of the commands I run with notes and it is important to what I am doing that I understand all my mistakes. I have a 14 year old daughter that wants the notes to study afterward. She does a lot of advanced stuff on the web and in windows and I am trying to get her to move her stuff to linux. She uses photoshop and photofiltre right now for most of her stuff and I am hoping a basic understanding of linux will help her understand gimp. Right now she says the info on gimp she has found does not make any sense.
 
Old 12-08-2009, 04:45 PM   #9
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by dvdljns View Post
Since you checked out the link I posted could you look at the log file I attached and see if I am right and the compile did not see the gmp I am using and what was my mistake there.
Did you forget to attach the log file?
 
Old 12-11-2009, 07:56 AM   #10
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by David1357 View Post
Did you forget to attach the log file?
not sure why this is so hard to upload.
Attached Files
File Type: txt gccbuild.txt (1.9 KB, 5 views)
 
Old 12-11-2009, 07:59 AM   #11
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by dvdljns View Post
Since you checked out the link I posted could you look at the log file I attached and see if I am right and the compile did not see the gmp I am using and what was my mistake there. Since a lot of people use this method to learn if I follow the directions right it should work. I am making copies of the commands I run with notes and it is important to what I am doing that I understand all my mistakes. I have a 14 year old daughter that wants the notes to study afterward. She does a lot of advanced stuff on the web and in windows and I am trying to get her to move her stuff to linux. She uses photoshop and photofiltre right now for most of her stuff and I am hoping a basic understanding of linux will help her understand gimp. Right now she says the info on gimp she has found does not make any sense.
here is the whole thing unedited.
Attached Files
File Type: txt config.log.txt (17.3 KB, 7 views)

Last edited by dvdljns; 12-11-2009 at 08:02 AM.
 
Old 12-13-2009, 12:24 PM   #12
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by dvdljns View Post
here is the whole thing unedited.
It looks like your problem is an incorrect version of GNU MP:
Code:
|   #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
|   choke me
|   #endif
You either have a version less than 4, or less than 4.1. Can you check your version somehow?
 
Old 12-13-2009, 02:35 PM   #13
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by David1357 View Post
It looks like your problem is an incorrect version of GNU MP:
Code:
|   #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
|   choke me
|   #endif
You either have a version less than 4, or less than 4.1. Can you check your version somehow?
no I do not know how to check that but I did download,compile and install version 4.3.x. It seems to be working allright. I will try again and see what happens.
thanks for all the help.
 
Old 12-13-2009, 03:18 PM   #14
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
It failed again and the error was a gcc error.
Code:
onfigure:3715: $? = 0
configure:3718: test -s conftest.o
configure:3721: $? = 0
configure:3739: result: none needed
configure:3757: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:3763: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:3948: checking for g++
configure:3964: found /usr/bin/g++
configure:3974: result: g++
configure:3990: checking for C++ compiler version
configure:3993: g++ --version </dev/null >&5
g++ (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Is there a list somewhere of what I need. I will update everything I can to the latest version. I am going to do some research. Can I force this to configure some way.
Attached Files
File Type: txt configlog.txt (18.1 KB, 3 views)

Last edited by dvdljns; 12-13-2009 at 03:21 PM. Reason: problem with attach.
 
Old 12-13-2009, 04:04 PM   #15
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
The problem was mfpr. I downloaded and compiled the current version mfpr and it worked after that. I needed version 2.4.2.
 
  


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
not able to figure out what does this mean manya Programming 5 11-29-2009 11:45 PM
Cant figure out what i need for this Hart02 Linux - General 1 11-25-2009 01:13 PM
trying to figure this out? dale504 Linux - Newbie 2 02-27-2008 11:04 AM
Can anyone figure this out? Nicksan Linux - General 1 08-17-2003 07:15 PM
cant figure this out. Must be m$ wlfdgcrkz Linux - Networking 1 07-16-2003 04:34 PM

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

All times are GMT -5. The time now is 04:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration