LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2017, 04:01 PM   #1
bahjat93
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Rep: Reputation: Disabled
gcc: error: unrecognized command line option '-V'


This is the 3rd time i am trying to follow the LFS book and each time i fail miserably.

I'm trying to build the gcc as described in seciton 5.5.

I keep on running into errors, rather then posting the entire config.log file i'm going to post the relevant snippets. I can't seem to figure out why the error is occuring, i have a functioning gcc complier (i executed a simple helloworld.c file). This error message doesn't make sense to a noob like me. Hopefully someone can help me out

Code:
configure:4394: $? = 0
configure:4383: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.2.0-5ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12) 
configure:4394: $? = 0
configure:4383: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4394: $? = 1
configure:4383: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:4394: $? = 1
configure:4414: checking for C compiler default output file name
configure:4436: gcc    conftest.c  >&5
configure:4440: $? = 0
configure:4477: result: a.out
configure:4493: checking whether the C compiler works
configure:4502: ./a.out
configure:4506: $? = 0
configure:4521: result: yes
configure:4528: checking whether we are cross compiling
configure:4530: result: no
configure:4533: checking for suffix of executables
configure:4540: gcc -o conftest    conftest.c  >&5
configure:4544: $? = 0
configure:4566: result: 
configure:4572: checking for suffix of object files
configure:4594: gcc -c   conftest.c >&5
configure:4598: $? = 0
configure:4619: result: o
configure:4623: checking whether we are using the GNU C compiler
configure:4642: gcc -c   conftest.c >&5
configure:4642: $? = 0
configure:4651: result: yes
configure:4660: checking whether gcc accepts -g
configure:4680: gcc -c -g  conftest.c >&5
configure:4680: $? = 0
configure:4721: result: yes
configure:4738: checking for gcc option to accept ISO C89
configure:4802: gcc  -c -g -O2  conftest.c >&5
configure:4802: $? = 0
configure:4815: result: none needed
configure:4893: checking for g++
configure:4909: found /usr/bin/g++
configure:4920: result: g++
configure:4947: checking for C++ compiler version
configure:4956: g++ --version >&5
g++ (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005
Copyright (C) 2016 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.

configure:4967: $? = 0
configure:4956: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.2.0-5ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12) 
configure:4967: $? = 0
configure:4956: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4967: $? = 1
configure:4956: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
compilation terminated.
configure:4967: $? = 1
configure:4971: checking whether we are using the GNU C++ compiler
configure:4990: g++ -c   conftest.cpp >&5
configure:4990: $? = 0
configure:4999: result: yes
configure:5008: checking whether g++ accepts -g
configure:5028: g++ -c -g  conftest.cpp >&5
configure:5028: $? = 0
configure:5069: result: yes
configure:5118: checking whether g++ accepts -static-libstdc++ -static-libgcc
configure:5135: g++ -o conftest -g -O2   -static-libstdc++ -static-libgcc conftest.cpp  >&5
configure:5135: $? = 0
configure:5136: result: yes
configure:5200: checking for gnatbind
configure:5230: result: no
configure:5292: checking for gnatmake
configure:5322: result: no
configure:5341: checking whether compiler driver understands Ada
configure:5364: result: no
configure:5373: checking how to compare bootstrapped objects
configure:5398: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5458: checking for objdir
configure:5473: result: .libs
configure:6024: checking for isl 0.16, 0.15, or deprecated 0.14
configure:6037: gcc -o conftest -g -O2  -I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src -I$$s/mpc/src     -lisl -L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/mpfr/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp conftest.c  -lisl -lgmp >&5
conftest.c:10:21: fatal error: isl/ctx.h: No such file or directory
 #include <isl/ctx.h>

Last edited by bahjat93; 04-05-2017 at 02:23 PM.
 
Old 04-02-2017, 04:41 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bahjat93 View Post
This is the 3rd time i am trying to follow the LFS book and each time i fail miserably.

I'm trying to build the gcc as described in seciton 5.5.

I keep on running into errors, rather then posting the entire config.log file i'm going to post the relevant snippets.
I can't seem to figure out why the error is occuring, i have a functioning gcc complier (i executed a simple helloworld.c file).
This error message doesn't make sense to a noob like me. Hopefully someone can help me out


gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.


somewhere within that code that is something calling for -V that is not within the code to take such a call. look through your code to find it then comment it out.
check over your code again to see what it is you are doing with it and why it has such a thing in there, it maybe needed just not properly defined and coded to take a argv '-V'

example
Code:
int main (int argc, char **argv){

if (strcmp (argv[i], "-alpha") == 0)

.....
..........

return 0;
}
Or are you passing a -V in the command line for configure? if yes then stop that. rethink how it is to be ran.

I do not know why you're using a configre file for a simple hello world

Code:
#include <stdio.h>


void main (){
printf("hello world\n");

}

gcc main.c 
./a.out
for that second line why are you trying to compile a gcc whats wrong with the one you got?

Last edited by BW-userx; 04-02-2017 at 04:57 PM.
 
Old 04-03-2017, 06:33 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@bahjat93 : Welcome to LQ.
Quote:
This is the 3rd time i am trying to follow the LFS book
? Which LFS version ? (8.0 ?) And which OS are you using ? Name and version, please.

Note : Please do not use 'php code'.
Hit the 'Edit' button in post #1 and change to [code]code text[/code]


-
 
Old 04-03-2017, 07:31 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Oh sorry I didn't catch the LFS. it didn't click in my brain. I keep forgetting what that acronym stands for. by bag


PS and please take that long line in your first post that is really long and slice it up a bit, it is making this post in here rather wider then it needs to be.

Last edited by BW-userx; 04-03-2017 at 08:14 AM.
 
Old 04-03-2017, 09:17 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
That -V error isn't serious. During the configure stage of a gcc build, all sorts of things are tried out to see whether
or not your system can build them. If not, that particular test gives an error. As you can see from the overall output, the
configuration process goes on normally after that.

The error that has stopped configuration is the one at the end. isl is part of something called graphite, but your system
shouldn't be trying to build that since you haven't asked for it. At least, I assume you haven't; it's not part of the
gcc build instructions in 5.5.

Are you building out of Ubuntu? It's not a very good host for LFS. In particular, it uses dash and mawk instead of bash and
gawk. It may also have later versions of gcc and binutils than the recommended ones. Did you go carefully through the
system requirements at the beginning of the book?
 
1 members found this post helpful.
Old 04-03-2017, 12:39 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #4, @BW-userx
Quote:
PS and please take that long line in your first post
That's caused by the php code tags, see #3.
 
Old 04-05-2017, 02:38 PM   #7
bahjat93
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Apologies all for the late reply, before posting any replies i wanted to make sure i hadn't been stupid and missed out a step. So i pulled up LFS 8.0 (making sure i was using the latest LFS book) and repeated everything. Still got the same error.
Also thanks all for the replies, much appreciated

Quote:
Originally Posted by BW-userx View Post
somewhere within that code that is something calling for -V that is not within the code to take such a call. look through your code to find it then comment it out.
check over your code again to see what it is you are doing with it and why it has such a thing in there, it maybe needed just not properly defined and coded to take a argv '-V'
for that second line why are you trying to compile a gcc whats wrong with the one you got?
I had a look through the code i was entering and no where do i pass a variable "-V". If it is passed it is passed by a file that i have gotten in accordance to the LFS pdf.


Quote:
Originally Posted by knudfl View Post
@bahjat93 : Welcome to LQ.

? Which LFS version ? (8.0 ?) And which OS are you using ? Name and version, please.

Note : Please do not use 'php code'.
Hit the 'Edit' button in post #1 and change to [code]code text[/code]
-
Apologies for that, i have corrected my mistake. In the future i will be more mindful.
uname -r gives me "4.8.0-45-generic", this tells me it's kernel 4xxxx
cat /etc/*-release, telss me i'm running Ubuntu 16.10



Quote:
Originally Posted by hazel View Post
That -V error isn't serious. During the configure stage of a gcc build, all sorts of things are tried out to see whether
or not your system can build them. If not, that particular test gives an error. As you can see from the overall output, the
configuration process goes on normally after that.

The error that has stopped configuration is the one at the end. isl is part of something called graphite, but your system
shouldn't be trying to build that since you haven't asked for it. At least, I assume you haven't; it's not part of the
gcc build instructions in 5.5.

Are you building out of Ubuntu? It's not a very good host for LFS. In particular, it uses dash and mawk instead of bash and
gawk. It may also have later versions of gcc and binutils than the recommended ones. Did you go carefully through the
system requirements at the beginning of the book?
When checking system requirements i ensured that i had all the required packages.
It's worth me pointing out that in section 5.5 it does not tell you how to extract the gcc-6.3.0.tar.bz2. I extracted this by entering the command tar -xvf gcc-6.3.0.tar.bz2 which created the gcc-6.3.0 folder and i went in that to prepare gcc for compilation.
I am using Ubuntu unfortunately because it was the easiest one to load onto my system. I tried fatdog64 but for some reason it wasn't saving data onto my HDD so my fall back was Ubuntu
 
Old 04-06-2017, 09:00 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by bahjat93 View Post
When checking system requirements i ensured that i had all the required packages.
It's worth me pointing out that in section 5.5 it does not tell you how to extract the gcc-6.3.0.tar.bz2. I extracted this by entering the command tar -xvf gcc-6.3.0.tar.bz2 which created the gcc-6.3.0 folder and i went in that to prepare gcc for compilation.
I am using Ubuntu unfortunately because it was the easiest one to load onto my system. I tried fatdog64 but for some reason it wasn't saving data onto my HDD so my fall back was Ubuntu
Your extraction command is fine. Did you remember to create a build subdirectory to work in?

The reason I mentioned Ubuntu is that I know that people who use it to build LFS have run into problems before now. Apparently if you don't have an existing LFS to build from, the best build host is supposed to be Slackware.
 
Old 04-06-2017, 09:13 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #7, #1.

"4.8.0-45-generic" : Kernel version doesn't matter.

Ubuntu 16.10 : May be usable ?
? What's the output from ./version-check.sh


Quote:
fatal error: isl/ctx.h: No such file or directory
Obviously a missing libisl-dev http://packages.ubuntu.com/yakkety/libisl-dev
* http://packages.ubuntu.com/yakkety/a...l-dev/filelist


-
 
Old 04-06-2017, 01:10 PM   #10
bahjat93
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Your extraction command is fine. Did you remember to create a build subdirectory to work in?

The reason I mentioned Ubuntu is that I know that people who use it to build LFS have run into problems before now. Apparently if you don't have an existing LFS to build from, the best build host is supposed to be Slackware.
Yeah, the sub directory gets built for me when i open the .tar file. I go into that directory and then the build directory to compile the source code.

Quote:
Originally Posted by knudfl View Post
Re #7, #1.

"4.8.0-45-generic" : Kernel version doesn't matter.

Ubuntu 16.10 : May be usable ?
? What's the output from ./version-check.sh



Obviously a missing libisl-dev http://packages.ubuntu.com/yakkety/libisl-dev
* http://packages.ubuntu.com/yakkety/a...l-dev/filelist


-
My output is shown below. I can't seem to see a problem with it but if there is please let me know. Also you mentioned a few packages. How can i download them from the command line?

Code:
sh version-check.sh
bash, version 4.3.46(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.27
bison (GNU Bison) 3.0.4
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.25
diff (GNU diffutils) 3.3
find (GNU findutils) 4.7.0-git
GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.5, GNU MP 6.1.1)
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005
g++ (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005
(Ubuntu GLIBC 2.24-3ubuntu1) 2.24
grep (GNU grep) 2.25
gzip 1.6
Linux version 4.8.0-46-generic (buildd@lcy01-16) (gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12) ) #49-Ubuntu SMP Fri Mar 31 13:57:14 UTC 2017
m4 (GNU M4) 1.4.17
GNU Make 4.1
GNU patch 2.7.5
Perl version='5.22.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.29
xz (XZ Utils) 5.1.0alpha
g++ compilation OK

Last edited by bahjat93; 04-06-2017 at 01:12 PM.
 
Old 04-06-2017, 01:27 PM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
I can already see one thing that is definitely wrong: /bin/sh points to dash and not bash. This is standard on all Debian-based systems nowadays, but it's no good for LFS. There may be other things too. You should check each line of your output against the specifications in Section 2.2 and make corrections where necessary. Then start again from the beginning.

;-) You often have to do that with LFS, especially if it's your first one. Think of it as a learning experience.
 
1 members found this post helpful.
Old 04-06-2017, 02:22 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #10.

HOWTO install missing packages :
sudo apt install libisl-dev flex binutils-dev libelf-dev

HOWTO change to bash :
Code:
cd /bin/
sudo rm sh
sudo ln -s bash sh

-

Last edited by knudfl; 04-06-2017 at 02:28 PM.
 
Old 04-06-2017, 02:32 PM   #13
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by knudfl View Post
Re #10.

HOWTO install missing packages :
sudo apt install libisl-dev flex binutils-dev libelf-dev

HOWTO change to bash :
Code:
cd /bin/
sudo rm sh
sudo ln -s bash sh

-
been a long time since i used debian but unless things have changed you should use the update-alternative command to change your default shell otherwise a system update may overwrite your changes, and yes Slackware is the best distro to use for building LFS.

P.S.
this thread really needs to go in the LFS forum.
 
Old 04-06-2017, 02:34 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@bahjat93 :

Using a wrong "shell" like 'dash' :

! You will have to start from scratch : binutils, with a new build folder for binutils !
http://www.linuxfromscratch.org/lfs/...ils-pass1.html


-

Last edited by knudfl; 04-06-2017 at 02:36 PM.
 
Old 04-07-2017, 07:51 AM   #15
bahjat93
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
I can already see one thing that is definitely wrong: /bin/sh points to dash and not bash. This is standard on all Debian-based systems nowadays, but it's no good for LFS. There may be other things too. You should check each line of your output against the specifications in Section 2.2 and make corrections where necessary. Then start again from the beginning.

;-) You often have to do that with LFS, especially if it's your first one. Think of it as a learning experience.
Quote:
Originally Posted by knudfl View Post
@bahjat93 :

Using a wrong "shell" like 'dash' :

! You will have to start from scratch : binutils, with a new build folder for binutils !
http://www.linuxfromscratch.org/lfs/...ils-pass1.html


-

I deleted the binutils folder and started the build again. Unfortunately i still got the same error message.
Is there anything else i missed, in my output for version-check.sh
 
  


Reply

Tags
lfs



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
unrecognized command line option ‘-r8’ sryzdn Linux - Newbie 7 05-28-2013 11:23 AM
cc: error: unrecognized command line option ‘-m-L../lib’ shumbamajachani Linux - Software 6 02-09-2013 12:05 PM
use gcc command to compile a *.c file error:unrecognized option '--eh-frame-hdr' just2012 Linux - Software 2 06-30-2011 10:19 AM
cc1: error: unrecognized command line option "-mapcs-32" vengat Linux - Hardware 0 04-29-2008 02:18 AM
gcc-giving error as as: unrecognized option `-Qy' nidhimittal Linux - Newbie 4 03-27-2008 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 PM.

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