LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Problem in chapter 6.9 Error Checking size of long double (https://www.linuxquestions.org/questions/linux-from-scratch-13/problem-in-chapter-6-9-error-checking-size-of-long-double-526738/)

calling_u3 02-08-2007 09:23 AM

Problem in chapter 6.9 Error Checking size of long double
 
:scratch: Hello everybody i am facing problem in chapter 6.9. I am using Live CD as a host system.When i am configure glibc-2.3.6 i get the error message checking for long double... yes checking size of long double... configure: error: can not ...

Please tell me how can solve this problem..?

biniou 02-08-2007 09:25 AM

Please, give the full error message ...

calling_u3 02-08-2007 09:27 AM

actually i have loss the error message so just i have remebre that last line.
Please help me i can't do anything. without solving this problem

calling_u3 02-08-2007 09:56 AM

Hello to All
I am try second time that found this error when runing this command

code:
Quote:

../glibc-2.3.6/configure --prefix=/tools \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --with-binutils=/tools/bin \
--without-gd --with-headers=/tools/include \
--without-selinux
After I do that I get an error: checking size of long double... configure: error: cannot compute sizeof (long double), 77

Then I try make and get: make: *** No targets specified an no makefile found. Stop.

Any ideas?
Please Help me
Thanx...

biniou 02-08-2007 01:34 PM

Maybe you could try as follow :

LD_LIBRARY_PATH=/tools/lib ../glibc-2.3.6/configure --prefix=/tools (and the rest of the command as described in the book)

calling_u3 02-08-2007 10:27 PM

Hi Biniou
Thanx for help its working but now i have faced other problem..
when i run this command
Quote:

make -k check 2>&1 | tee glibc-check-log
Then i have faced this error please tell me what can i do next.

code:
Quote:

g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
g++: /dev/fd/63: No such file or directory
g++: warning: '-x c++' after last input file has no effect
g++: no input files
make[1]: *** [/sources/glibc/c++-types-check.out] Error 1
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/sources/glibc/glibc-2.3.6'
make: *** [check] Error 2
root:/sources/glibc#
And when run this command
Quote:

grep Error glibc-check-log
I am roalling huge error
code:
Quote:

root:/sources/glibc# grep Error glibc-check-log
make[2]: *** [/sources/glibc/stdlib/isomac] Error 1
make[1]: *** [stdlib/tests] Error 2
make[2]: *** [/sources/glibc/posix/annexc] Error 1
make[1]: *** [posix/tests] Error 2
make[2]: *** [/sources/glibc/elf/check-textrel] Error 1
make[1]: *** [elf/tests] Error 2
make[1]: *** [/sources/glibc/c++-types-check.out] Error 1
make: *** [check] Error 2
root:/sources/glibc#
So help me please tell me what can i do.
Thanx

biniou 02-09-2007 01:56 AM

Did you quit your chrooted environment at any moment ?

If so, consider populating /dev again (as described in the book) ... Maybe you'll have to build glibc again (I feel sorry for you as it takes much time) with chrooted environment properly set ...

calling_u3 02-09-2007 03:33 AM

Thanx Biniou
I hope you will be not laugh at my stupid work
Actually when I was restart my pc and then continue with LFS then I was forgot to build a Virtual Kernel File Systems and Populating /dev
Now Thanx for the help please read continue this thread because if I have any problem further then I will be contact u .

biniou 02-09-2007 03:44 AM

no prob, glad I can help !

calling_u3 02-09-2007 10:45 PM

Hi Biniou
I am really sorry to say that,But i have bad luck when i am doing every thing correct till i have face problem. When run this command "make -k check 2>&1 | tee glibc-check-log" i have faced this error.

Eror is: -
code:
Quote:

/tools/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld: warning: ld-linux.so.2, needed by /tools/lib/libc.so.6, not found (try using -rpath or -rpath-link)
/tools/lib/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE'
/tools/lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE'
/tools/lib/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_2.1'
/tools/lib/libc.so.6: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE'
/tools/lib/libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_PRIVATE'
/tools/lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3'
/tools/lib/libc.so.6: undefined reference to `_r_debug@GLIBC_2.0'
/tools/lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
make[2]: *** [/sources/glibc/elf/check-textrel] Error 1
make[2]: Target `tests' not remade because of errors.
make[2]: Leaving directory `/sources/glibc/glibc-2.3.6/elf'
make[1]: *** [elf/tests] Error 2
scripts/check-c++-types.sh scripts/data/c++-types-i386-linux-gnu.data g++ -O2 -Wall -Winline -Wwrite-strings -g -mpreferred-stack-boundary=2 -Iinclude -I. -I/sources/glibc -Ilibio -Inptl -I/sources/glibc -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Inptl/sysdeps/unix/sysv -Inptl/sysdeps/unix -Inptl/sysdeps/i386/i686 -Inptl/sysdeps/i386 -Isysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include include/libc-symbols.h > /sources/glibc/c++-types-check.out
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/sources/glibc/glibc-2.3.6'
make: *** [check] Error 2
root:/sources/glibc#
I have been spet lot of time on LFS project becouse this is very important for me but every time i have faced some problem. Please help me
I hope u will give me right suggestion..
Thanx

calling_u3 02-09-2007 10:57 PM

And know When run this command "grep Error glibc-check-log"
then this error appear..
Quote:

root:/sources/glibc# grep Error glibc-check-log
make[2]: *** [/sources/glibc/stdlib/isomac] Error 1
make[1]: *** [stdlib/tests] Error 2
make[2]: *** [/sources/glibc/posix/annexc] Error 1
make[1]: *** [posix/tests] Error 2
make[2]: *** [/sources/glibc/elf/check-textrel] Error 1
make[1]: *** [elf/tests] Error 2
make: *** [check] Error 2
root:/sources/glibc#
And when run make install then
code:
Quote:

collect2: ld returned 1 exit status
Execution of gcc failed!
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong,
libm.so should point to the newly installed glibc file - and there should be
only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [install] Error 1
make[1]: Leaving directory `/sources/glibc/glibc-2.3.6'
make: *** [install] Error 2
root:/sources/glibc#
I hope this will help u to find the problem..
Tell me biniou what should i do next
Thanx>>>>>>>>

calling_u3 02-09-2007 11:17 PM

Hi Biniou
According to LFS-book6.2 when i have patched the "glibc-libidn-2.3.6" with this command "patch -Np1 -i ../glibc-2.3.6-linux_types-1.patch"then i have found this messages that: -
Quote:

can't find file to patch at input line 11
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By: DJ Lucas <dj at linuxfromscratch dot org>
|Date: 2006-04-05
|Initial Package Version: 2.3.6
|Upstream Status: Committed
|Origin: Glibc CVS
|Description: Fixes build errors where linux/types.h is included after sys/kd.h.
|
|diff -Naur glibc-2.3.6-orig/sysdeps/unix/sysv/linux/sys/kd.h glibc-2.3.6/sysdeps/unix/sysv/linux/sys/kd.h
|--- glibc-2.3.6-orig/sysdeps/unix/sysv/linux/sys/kd.h 2001-07-05 23:56:21.000000000 -0500
|+++ glibc-2.3.6/sysdeps/unix/sysv/linux/sys/kd.h 2006-04-04 21:40:50.000000000 -0500
--------------------------
File to patch:
Now then i looked up in directory of glibc-libidn then i have not found any "sys directory and kd.h file".
And when patch with this command
"patch -Np1 -i ../glibc-2.3.6-inotify-1.patch" then its going to successful.
And according to LFS-book i am not patch glibc-2.3.6 in chapter 6.9
Now tell me am i going to wrong or not.

biniou 02-12-2007 07:20 AM

(sorry for late reply : weekend away from computer)

This is quite tricky ... Seems your toolchain has not been adjusted properly ... Maybe you could try to remake to "adjusting toolchain" stuff from the book ... Sources on the net suggest to begin from start :s ...

I admit it's near from my limit for understanding (and support providing)

Wish you luck !

calling_u3 02-12-2007 09:31 AM

Hello biniou

Now i am going to begin from start... LFS system,
so i hope i am not distrubed u for short time till some error comes...
Please read this thread continue..
Thanx biniou..
Have a nice time.

calling_u3 02-15-2007 03:30 AM

Hello dear
Now this time i am trap in the end of 5th chapter...
when i am run this command for changing Ownership "chown -R root:root $LFS/tools"
then i have faced this error message...
Quote:

chown: changing ownership of `/mnt/lfs/tools/lib/libanl.so.1': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libnss_dns-2.3.6.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libmenu.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libbfd.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/tclConfig.sh': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libpthread.so.0': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libtclstub8.4.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libform.so.5': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libmenu.so.5': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libopcodes.la': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/librt.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libcurses.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libutil.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libresolv.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/crti.o': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libpthread_nonshared.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libanl-2.3.6.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libpthread.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libmudflapth.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libcrypt.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libnsl.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libm-2.3.6.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libnss_compat-2.3.6.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/Scrt1.o': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libncurses.so.5': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libform.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libpthread-2.3.6.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libmudflap.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libform.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libresolv.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libmudflapth.so.0.0.0': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libc-2.3.6.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libnss_nis.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libnss_nisplus.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libcrypt.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libstdc++.a': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libtcl8.4.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libBrokenLocale.so': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib/libpanel.so.5.5': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/lib': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools': Operation not permitted
lfs:~$
Its too long messages then i think this indicate that it can not going write..
So tell me what can i do next.
Thanx.


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