LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-07-2013, 04:12 AM   #1
potterius
Member
 
Registered: May 2013
Posts: 39

Rep: Reputation: Disabled
GMP-5.1.1: ABI=32 ./configure --prefix=/usr --enable-cxx


excuse me, sorry I always asking again, again and again. :Peace:

Im now at chapter 6.14 GMP-5.1.1.
and I have a problem about this
Code:
ABI=32 ./configure --prefix=/usr --enable-cxx
and the output show like this
Code:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking whether cc is gcc... yes
checking compiler cc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler cc -O2 -pedantic -fomit-frame-pointer ... no
configure: error: could not find a working compiler, see config.log for details
when I ignore it, and continue to make.
show the notification on my terminal
Code:
make: *** No targets specified and no makefile found.  Stop.
please help me

Last edited by potterius; 05-07-2013 at 07:21 AM.
 
Old 05-07-2013, 04:18 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Why are you running:
Code:
ABI=32 ./configure --prefix=/usr --enable-cxx
instead of:
Code:
./configure --prefix=/usr --enable-cxx
Does this apply to you (quote from the book):
Quote:
Note

If you are building for 32-bit x86, but you have a CPU which is capable of running 64-bit code and you have specified CFLAGS in the environment, the configure script will attempt to configure for 64-bits and fail. Avoid this by invoking the configure command below with
Code:
ABI=32 ./configure ...
 
Old 05-07-2013, 04:30 AM   #3
potterius
Member
 
Registered: May 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
Why are you running:
Code:
ABI=32 ./configure --prefix=/usr --enable-cxx
instead of:
Code:
./configure --prefix=/usr --enable-cxx
Does this apply to you (quote from the book):
I running
Code:
ABI=32 ./configure --prefix=/usr --enable-cxx
coz in my book tutorial says that. my referensi tutorial http://pastebin.com/zz77D7uw

I also runing this code
Code:
./configure --prefix=/usr --enable-cxx
, but still error, and the notif same like before.
 
Old 05-07-2013, 04:47 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by potterius View Post
I running
Code:
ABI=32 ./configure --prefix=/usr --enable-cxx
coz in my book tutorial says that. my referensi tutorial http://pastebin.com/zz77D7uw
That's not the LFS book, that's a collection of commands, which might not be correct for your situation. Follow the real LFS book

Quote:
I also runing this code
Code:
./configure --prefix=/usr --enable-cxx
, but still error, and the notif same like before.
Did you remove the source directory first and start from extracting the gmp package?
 
Old 05-07-2013, 05:21 AM   #5
potterius
Member
 
Registered: May 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
That's not the LFS book, that's a collection of commands, which might not be correct for your situation. Follow the real LFS book

Did you remove the source directory first and start from extracting the gmp package?
what directory?
I remove direcory on binutils
Code:
rm -rf $LFS/sources/binutils-build/
rm -rf $LFS/sources/binutils-2.23.1/
and then continue to next step(GMP-5.1.1)
 
Old 05-07-2013, 05:47 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by potterius View Post
what directory?
The /sources/gmp-5.1.1 directory.

If a package build fails and you need to redo that specific package you first need to remove the created source directory, untar the package again, enter the created directory and start form the to of the chapter.
Quote:
I remove direcory on binutils
Code:
rm -rf $LFS/sources/binutils-build/
rm -rf $LFS/sources/binutils-2.23.1/
and then continue to next step(GMP-5.1.1)
If you need to use $LFS while doing chapter 6 then something is really wrong! Once you are inside the chrooted environment this variable is not longer needed/set.
 
Old 05-07-2013, 06:30 AM   #7
potterius
Member
 
Registered: May 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
The /sources/gmp-5.1.1 directory.

If a package build fails and you need to redo that specific package you first need to remove the created source directory, untar the package again, enter the created directory and start form the to of the chapter.
If you need to use $LFS while doing chapter 6 then something is really wrong! Once you are inside the chrooted environment this variable is not longer needed/set.
I was doing again, untar, n tar again, but still error.

and I using root in chapter 6, I don't use lfs user anymnore.
 
Old 05-07-2013, 06:43 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I notice this in the output shown in post #1:
Quote:
configure: error: could not find a working compiler, see config.log for details
This might point to an earlier problem.

I'm not able to point you to anything specific, things that come to mind are:

- a mistake was made in chapter 5, probably the gcc package,
- forgetting to mount before (re)entering chrooted environment (6.2.2 and 6.2.3),
- not using the correct chroot command (6.4),
- adjusting the toolchain did not go as planned,
- ???

Maybe it would be a good idea to remove everything, restore the backup made in chapter 5.34 and start from the top of chapter 6 (6.2).

Also: did you check the mentioned config.log?

EDIT: I just had a look at the so called book you use and it _does_ use $LFS for building in chapter 6, which is wrong!!

Last edited by druuna; 05-07-2013 at 06:49 AM.
 
1 members found this post helpful.
Old 05-07-2013, 07:21 AM   #9
potterius
Member
 
Registered: May 2013
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
I notice this in the output shown in post #1: This might point to an earlier problem.

I'm not able to point you to anything specific, things that come to mind are:

- a mistake was made in chapter 5, probably the gcc package,
- forgetting to mount before (re)entering chrooted environment (6.2.2 and 6.2.3),
- not using the correct chroot command (6.4),
- adjusting the toolchain did not go as planned,
- ???

Maybe it would be a good idea to remove everything, restore the backup made in chapter 5.34 and start from the top of chapter 6 (6.2).

Also: did you check the mentioned config.log?

EDIT: I just had a look at the so called book you use and it _does_ use $LFS for building in chapter 6, which is wrong!!
druuna, I forget to input this code
Code:
chroot "$LFS" /tools/bin/env -i \
    HOME=/root                  \
    TERM="$TERM"                \
    PS1='\u:\w\$ '              \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /tools/bin/bash --login +h
hahaha, sorry druuna, it's my foult.
thanks to remember me about chroot.hahahaha
thx again druuna
 
Old 02-25-2016, 11:32 AM   #10
CoolDown
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Rep: Reputation: Disabled
I'm having the same problem, don't know what to do ;(

I posted a new thread instead here - click

Last edited by CoolDown; 02-25-2016 at 11:39 AM.
 
  


Reply



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
[SOLVED] problem with "./configure --prefix=usr/local/apache --enable-module=so" dynamiteboy Linux - Newbie 12 09-15-2009 11:42 AM
Compiling GMP 4.2.2 with ABI=64 on Mac OS X 10.5.3, (Darwin 9.3.0) apmarsenault Linux - Software 0 05-29-2008 12:17 PM
./configure --prefix=/usr [default: /usr/local] why??? stevesk Slackware 14 07-03-2006 06:28 AM
gcc 4.0.2 v.s. CXX ABI SKelem Linux - Software 2 11-07-2005 04:10 PM
MySQL setup stops at command "./configure --prefix=/usr/local/mysql" k41184 Linux - Software 1 05-20-2004 02:44 PM

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

All times are GMT -5. The time now is 06:15 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