LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-27-2014, 01:14 AM   #1
m.lorenzano
LQ Newbie
 
Registered: May 2014
Posts: 9

Rep: Reputation: Disabled
6.9. Glibc-2.19 configure error on LFS 7.5


Hello!!
I'm at the point 6.9 GLIBC-2.19 of LFS 7.5 compilation, but i have these errors when i try to prepare the compilation with "configure":
"mkdir: cannot create directory '/tmp/cg15772-587' : no such file or directory
mkdir: cannot create directory '/tmp/cg15772' : no such file or directory
config.guess: cannot create a temporary directory in /tmp
configure: error: cannot guess build type: you must specify one"

can someone help me please?
 
Old 05-28-2014, 02:02 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
mkdir: cannot create directory '/tmp/cg15772-587' : no such file or directory
The most common reason you can't make a directory in temp is permissions.

Quote:
configure: error: cannot guess build type: you must specify one"
Hmmm... that one at first blush sounds more like a failed "uname -m" call, the word "guess" in that sentence leads me to believe it tried to find the arch (i686 for instance).
From the prompt, type in "uname -m" and see what kind of output it gives you.
Open the config file and just hard code it in. Rerun the script and see what happens.
 
1 members found this post helpful.
Old 05-28-2014, 07:42 AM   #3
m.lorenzano
LQ Newbie
 
Registered: May 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
When i type "uname -m" i have the output: i686...so i think it's ok...
What should i do with the config file?
 
Old 05-28-2014, 09:21 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,999

Rep: Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190
I would advise going back to the start of Chapter 6 and making sure you have followed all the instructions to the letter and check everything you had to create prior to compiling the first couple of packages.

Invariably most mistakes with any of the versions of LFS come from typos.
 
Old 05-28-2014, 09:27 AM   #5
m.lorenzano
LQ Newbie
 
Registered: May 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Mhh ok...another question: when in the chapter 6 for example i have to compile the gcc for the second time, i have to create another "gcc-build" or replace the last "gcc build"? because i think i have deleted some folders...
 
Old 05-28-2014, 10:29 AM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by dijetlo View Post
The most common reason you can't make a directory in temp is permissions.


Hmmm... that one at first blush sounds more like a failed "uname -m" call, the word "guess" in that sentence leads me to believe it tried to find the arch (i686 for instance).
From the prompt, type in "uname -m" and see what kind of output it gives you.
Open the config file and just hard code it in. Rerun the script and see what happens.
Over time I found out that "uname -m" is not reliable.
Running #cat /proc/cpuinfo confirmed I had a 64-bit machine.

If the "lm" flag is present in the output the cpu is 64-bit.
 
Old 05-28-2014, 10:33 AM   #7
m.lorenzano
LQ Newbie
 
Registered: May 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
I haven't any output when i type #cat /proc/cpuinfo....
 
Old 05-28-2014, 10:38 AM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by m.lorenzano View Post
I haven't any output when i type #cat /proc/cpuinfo....
Make sure you hit the spacebar after typing cat and than type the forward slash.
Also don't include the # sign in front of cat or bash will ignore it--
On my machine it looks like this:

Code:
bash-4.2$ cat /proc/cpuinfo
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 16
model		: 2
model name	: AMD Phenom(tm) 9850 Quad-Core Processor
stepping	: 3
microcode	: 0x1000083
cpu MHz		: 2500.000
cache size	: 512 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 4
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs hw_pstate npt lbrv svm_lock

Last edited by Ztcoracat; 05-28-2014 at 10:40 AM.
 
Old 05-28-2014, 10:43 AM   #9
m.lorenzano
LQ Newbie
 
Registered: May 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
ok i have this:
Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 42
model name      : Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz
stepping        : 7
microcode       : 0x28
cpu MHz         : 3092.994
cache size      : 3072 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss nx rdtscp lm
constant_tsc up arch_perfmon pebs bts xtopology tsc_reliable
nonstop_tsc aperfmperf pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2
x2apic popcnt xsave avx hypervisor lahf_lm arat epb xsaveopt pln pts
dts
bogomips        : 6185.98
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

Last edited by m.lorenzano; 05-28-2014 at 10:45 AM.
 
Old 05-28-2014, 10:50 AM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by m.lorenzano View Post
ok i have this:
Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 42
model name      : Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz
stepping        : 7
microcode       : 0x28
cpu MHz         : 3092.994
cache size      : 3072 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss nx rdtscp lm
constant_tsc up arch_perfmon pebs bts xtopology tsc_reliable
nonstop_tsc aperfmperf pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2
x2apic popcnt xsave avx hypervisor lahf_lm arat epb xsaveopt pln pts
dts
bogomips        : 6185.98
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:
Looking at this line:
Code:
x2apic popcnt xsave avx hypervisor lahf_lm arat epb xsaveopt pln pts
You have a 64-bit machine-
 
Old 05-28-2014, 10:53 AM   #11
m.lorenzano
LQ Newbie
 
Registered: May 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Yes but how can i fix my problem?
 
Old 05-28-2014, 11:23 AM   #12
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,999

Rep: Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190Reputation: 3190
No previous build directories should be used as each compile is individual to where you are up to in the overall build.

I personally have never had an issue with uname, but if you are returning i686 then the following will not get created:
Code:
case $(uname -m) in
 x86_64) ln -sv lib /lib64
         ln -sv lib /usr/lib64
         ln -sv lib /usr/local/lib64 ;;
esac
So that is a problem. Also you may also wish to check what the permissions are on /tmp they should be:
Code:
install -dv -m 1777 /tmp /var/tmp
 
1 members found this post helpful.
Old 05-28-2014, 11:24 AM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by m.lorenzano View Post
Yes but how can i fix my problem?
Your best bet is to give what our Guru in post #4 has suggested.

You mentioned in post # 5 that you thought you deleted some folders.
If you did that could be the culprit.

I've made typos myself and had to start all over again.
When I compile I write down every step I have completed to avoid mistakes as much as possible.
Since there are steps 6.9.1 through step 6.9.4 on that instructional page it's hard to determine where you
may have left off/where to begin again.

Thanks to what our member; dijetlo who said: "you can't make a direcory in tmp is because of permissions"
I didn't know that:-
With Fedora I have to run --prefix with ./configure (not sure if that helps)

Go through the guide and ensure you didn't miss anything.
http://www.linuxfromscratch.org/lfs/...r06/glibc.html
 
Old 05-28-2014, 11:27 AM   #14
m.lorenzano
LQ Newbie
 
Registered: May 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Ok, now it's working!!! Thanks a lot
 
Old 05-28-2014, 11:36 AM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by m.lorenzano View Post
Ok, now it's working!!! Thanks a lot
Is this what made it work?
Code:
install -dv -m 1777 /tmp /var/tmp
 
  


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
LFS 7.1 Glibc-2.14.1 make error samuraixp Linux From Scratch 3 03-18-2012 05:21 AM
[SOLVED] [LFS 6.6] Chap 5.7 - Glibc-2.11.1 configure WARNING igor012 Linux From Scratch 7 04-06-2010 03:06 PM
LFS 6.3- 6.9. Glibc-2.5.1 compilation error Vxplus Linux From Scratch 14 11-22-2008 04:46 PM
glibc-2.3.3-lfs-5.1 error Zamochit Linux From Scratch 8 01-13-2005 06:00 AM
LFS 3.3 - chapter 6 - glibc error fend88 Linux From Scratch 5 04-28-2002 11:06 PM

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

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