LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   6.9. Glibc-2.19 configure error on LFS 7.5 (https://www.linuxquestions.org/questions/linux-newbie-8/6-9-glibc-2-19-configure-error-on-lfs-7-5-a-4175506156/)

m.lorenzano 05-27-2014 01:14 AM

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?

dijetlo 05-28-2014 02:02 AM

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.

m.lorenzano 05-28-2014 07:42 AM

When i type "uname -m" i have the output: i686...so i think it's ok...
What should i do with the config file?

grail 05-28-2014 09:21 AM

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.

m.lorenzano 05-28-2014 09:27 AM

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...

Ztcoracat 05-28-2014 10:29 AM

Quote:

Originally Posted by dijetlo (Post 5177932)
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.

m.lorenzano 05-28-2014 10:33 AM

I haven't any output when i type #cat /proc/cpuinfo....

Ztcoracat 05-28-2014 10:38 AM

Quote:

Originally Posted by m.lorenzano (Post 5178128)
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


m.lorenzano 05-28-2014 10:43 AM

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:


Ztcoracat 05-28-2014 10:50 AM

Quote:

Originally Posted by m.lorenzano (Post 5178135)
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-;)

m.lorenzano 05-28-2014 10:53 AM

Yes but how can i fix my problem?

grail 05-28-2014 11:23 AM

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

Ztcoracat 05-28-2014 11:24 AM

Quote:

Originally Posted by m.lorenzano (Post 5178141)
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

m.lorenzano 05-28-2014 11:27 AM

Ok, now it's working!!! Thanks a lot

Ztcoracat 05-28-2014 11:36 AM

Quote:

Originally Posted by m.lorenzano (Post 5178162)
Ok, now it's working!!! Thanks a lot

Is this what made it work?
Code:

install -dv -m 1777 /tmp /var/tmp


All times are GMT -5. The time now is 08:54 PM.