LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   I can not figure out what this command should be. (https://www.linuxquestions.org/questions/linux-from-scratch-13/i-can-not-figure-out-what-this-command-should-be-773997/)

dvdljns 12-07-2009 09:38 AM

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.

EricTRA 12-07-2009 09:44 AM

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

pixellany 12-07-2009 11:56 AM

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>

David1357 12-07-2009 12:11 PM

Quote:

Originally Posted by pixellany (Post 3782936)
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.

dvdljns 12-08-2009 11:41 AM

Quote:

Originally Posted by pixellany (Post 3782936)
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.

dvdljns 12-08-2009 11:48 AM

Quote:

Originally Posted by David1357 (Post 3782952)
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!

David1357 12-08-2009 12:13 PM

Quote:

Originally Posted by dvdljns (Post 3784253)
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.

dvdljns 12-08-2009 01:46 PM

Quote:

Originally Posted by David1357 (Post 3784285)
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.

David1357 12-08-2009 03:45 PM

Quote:

Originally Posted by dvdljns (Post 3784396)
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?

dvdljns 12-11-2009 06:56 AM

1 Attachment(s)
Quote:

Originally Posted by David1357 (Post 3784514)
Did you forget to attach the log file?

not sure why this is so hard to upload.

dvdljns 12-11-2009 06:59 AM

1 Attachment(s)
Quote:

Originally Posted by dvdljns (Post 3784396)
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.

David1357 12-13-2009 11:24 AM

Quote:

Originally Posted by dvdljns (Post 3787725)
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?

dvdljns 12-13-2009 01:35 PM

Quote:

Originally Posted by David1357 (Post 3789850)
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.

dvdljns 12-13-2009 02:18 PM

1 Attachment(s)
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.

dvdljns 12-13-2009 03:04 PM

The problem was mfpr. I downloaded and compiled the current version mfpr and it worked after that. I needed version 2.4.2.


All times are GMT -5. The time now is 11:48 PM.