Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, am trying to build linuxfromscratch. i am just at the first compile of glibc-2.3.6, and i get this weird error in the ./configure stage:
Code:
../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
....
....
....
....
....
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.
i have found many references on the web to this, but am yet to find an answer. I am building from a fedora core 6 host system, and have followed the guide as precisely as i can.
Hello dude
I am doing LFS for my project (My college minor project ) to build my own Distro. Now this is my 3rd time when I am going to build this and I was faced this problem in 5th Chapter.I am using Red Hat-9 version.
Dear Mr. [or Ms/Mrs?] leedude,
I faced axactly the same problem some time ago.
I do not remember exactly what it was about, but it had to do with the links within the temporary toolchain. Probably, something with the /bin directory in the toolschain and in the host system.
Not sure it helps, but still like to know about your progress.
Vitalie CIUBOTARU
P.S.: [Just a thought] redeye1, your post definitely does not contain an answer to leedude's question, nor does it contain a question in itself. Consider revising your post or opening a new thread.
Last edited by Vitalie Ciubotaru; 01-28-2007 at 03:40 PM.
configure:1706: checking build system type
configure:1724: result: i686-pc-linux-gnu
configure:1732: checking host system type
configure:1746: result: i686-pc-linux-gnu
configure:1878: result: running configure fragment for add-on nptl
configure:1998: checking sysdep dirs
configure:2214: result: sysdeps/generic/elf sysdeps/generic
configure:2233: checking for a BSD-compatible install
configure:2288: result: /usr/bin/install -c
configure:2303: checking whether ln -s works
configure:2307: result: yes
configure:2361: checking for gcc
configure:2377: found /tools/bin/gcc
configure:2387: result: gcc
configure:2631: checking for C compiler version
configure:2634: gcc --version </dev/null >&5
gcc (GCC) 4.0.3
Copyright (C) 2006 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:2637: $? = 0
configure:2639: gcc -v </dev/null >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
Thread model: posix
gcc version 4.0.3
configure:2642: $? = 0
configure:2644: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2647: $? = 1
configure:2651: checking for suffix of object files
configure:2672: gcc -c conftest.c >&5
configure:2675: $? = 0
configure:2697: result: o
configure:2701: checking whether we are using the GNU C compiler
configure:2725: gcc -c conftest.c >&5
configure:2731: $? = 0
configure:2735: test -z
|| test ! -s conftest.err
configure:2738: $? = 0
configure:2741: test -s conftest.o
configure:2744: $? = 0
configure:2757: result: yes
configure:2763: checking whether gcc accepts -g
configure:2784: gcc -c -g conftest.c >&5
configure:2790: $? = 0
configure:2794: test -z
|| test ! -s conftest.err
configure:2797: $? = 0
configure:2800: test -s conftest.o
configure:2803: $? = 0
configure:2814: result: yes
configure:2831: checking for gcc option to accept ANSI C
configure:2901: gcc -c -g -O2 conftest.c >&5
configure:2907: $? = 0
configure:2911: test -z
|| test ! -s conftest.err
configure:2914: $? = 0
configure:2917: test -s conftest.o
configure:2920: $? = 0
configure:2938: result: none needed
configure:2956: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before 'me'
configure:2962: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3143: checking how to run the C preprocessor
configure:3178: gcc -E conftest.c
configure:3184: $? = 0
configure:3216: gcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:3222: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3261: result: gcc -E
configure:3285: gcc -E conftest.c
configure:3291: $? = 0
configure:3323: gcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:3329: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3425: checking for g++
configure:3441: found /usr/bin/g++
configure:3451: result: g++
configure:3467: checking for C++ compiler version
configure:3470: g++ --version </dev/null >&5
g++ (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 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:3473: $? = 0
configure:3475: g++ -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
configure:3478: $? = 0
configure:3480: g++ -V </dev/null >&5
g++: argument to `-V' missing
configure:3483: $? = 1
configure:3486: checking whether we are using the GNU C++ compiler
configure:3510: g++ -c conftest.cc >&5
configure:3516: $? = 0
configure:3520: test -z
|| test ! -s conftest.err
configure:3523: $? = 0
configure:3526: test -s conftest.o
configure:3529: $? = 0
configure:3542: result: yes
configure:3548: checking whether g++ accepts -g
configure:3569: g++ -c -g conftest.cc >&5
configure:3575: $? = 0
configure:3579: test -z
|| test ! -s conftest.err
configure:3582: $? = 0
configure:3585: test -s conftest.o
configure:3588: $? = 0
configure:3599: result: yes
configure:3641: g++ -c -g -O2 conftest.cc >&5
configure:3647: $? = 0
configure:3651: test -z
|| test ! -s conftest.err
configure:3654: $? = 0
configure:3657: test -s conftest.o
configure:3660: $? = 0
configure:3686: g++ -c -g -O2 conftest.cc >&5
conftest.cc: In function `int main()':
conftest.cc:14: `exit' undeclared (first use this function)
conftest.cc:14: (Each undeclared identifier is reported only once for each
function it appears in.)
configure:3692: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:3641: g++ -c -g -O2 conftest.cc >&5
configure:3647: $? = 0
configure:3651: test -z
|| test ! -s conftest.err
configure:3654: $? = 0
configure:3657: test -s conftest.o
configure:3660: $? = 0
configure:3686: g++ -c -g -O2 conftest.cc >&5
configure:3692: $? = 0
configure:3696: test -z
|| test ! -s conftest.err
configure:3699: $? = 0
configure:3702: test -s conftest.o
configure:3705: $? = 0
configure:3832: checking whether /tools/bin/as is GNU as
configure:3846: result: yes
configure:3851: checking whether /tools/bin/ld is GNU ld
configure:3865: result: yes
configure:3875: checking for /tools/bin/as
configure:3901: result: /tools/bin/as
configure:3915: checking version of /tools/bin/as
configure:3925: result: 2.16.1, ok
configure:3936: checking for /tools/bin/ld
configure:3962: result: /tools/bin/ld
configure:3976: checking version of /tools/bin/ld
configure:3986: result: 2.16.1, ok
configure:4001: checking for pwd
configure:4019: found /bin/pwd
configure:4032: result: /bin/pwd
configure:4051: checking for gcc
configure:4077: result: gcc -B/tools/bin/
configure:4091: checking version of gcc -B/tools/bin/
configure:4101: result: 4.0.3, ok
configure:4112: checking for gnumake
configure:4141: result: no
configure:4112: checking for gmake
configure:4128: found /usr/bin/gmake
configure:4138: result: gmake
configure:4152: checking version of gmake
configure:4162: result: 3.79.1, ok
configure:4174: checking for gnumsgfmt
configure:4203: result: no
configure:4174: checking for gmsgfmt
configure:4203: result: no
configure:4174: checking for msgfmt
configure:4190: found /usr/bin/msgfmt
configure:4200: result: msgfmt
configure:4214: checking version of msgfmt
configure:4224: result: 0.11.4, ok
configure:4235: checking for makeinfo
configure:4251: found /usr/bin/makeinfo
configure:4261: result: makeinfo
configure:4275: checking version of makeinfo
configure:4285: result: 4.3, ok
configure:4296: checking for sed
configure:4312: found /bin/sed
configure:4322: result: sed
configure:4336: checking version of sed
configure:4346: result: 4.0.5, ok
configure:4358: checking for autoconf
configure:4374: found /usr/bin/autoconf
configure:4384: result: autoconf
configure:4398: checking whether autoconf works
configure:4409: result: yes
configure:4447: checking whether ranlib is necessary
configure:4468: result: no
configure:4481: checking LD_LIBRARY_PATH variable
configure:4491: result: ok
configure:4505: checking whether GCC supports -static-libgcc
configure:4516: result: -static-libgcc
configure:4522: checking for bash
configure:4553: result: /bin/sh
configure:4626: checking for gawk
configure:4642: found /bin/gawk
configure:4652: result: gawk
configure:4664: checking for perl
configure:4682: found /usr/bin/perl
configure:4695: result: /usr/bin/perl
configure:4708: checking for install-info
configure:4727: found /sbin/install-info
configure:4740: result: /sbin/install-info
configure:4749: checking for bison
configure:4768: found /usr/bin/bison
configure:4781: result: /usr/bin/bison
configure:4789: checking for signed size_t type
configure:4804: result: no
configure:4814: checking for libc-friendly stddef.h
configure:4843: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:25: warning: incompatible implicit declaration of built-in function 'abort'
configure:4849: $? = 0
configure:4853: test -z
|| test ! -s conftest.err
configure:4856: $? = 0
configure:4859: test -s conftest.o
configure:4862: $? = 0
configure:4873: result: yes
configure:4880: checking whether we need to use -P to assemble .S files
configure:4890: gcc -B/tools/bin/ -c conftest.S 1>&5
configure:4893: $? = 0
configure:4901: result: no
configure:4908: checking whether .text pseudo-op must be used
configure:4918: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:4921: $? = 0
configure:4932: result: yes
configure:4936: checking for assembler global-symbol directive
configure:4949: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:4952: $? = 0
configure:4960: result: .globl
configure:4973: checking for .set assembler directive
configure:4999: result: yes
configure:5008: checking for assembler .type directive prefix
configure:5024: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:5027: $? = 0
configure:5035: result: @
configure:5044: checking for .symver assembler directive
configure:5061: result: yes
configure:5063: checking for ld --version-script
configure:5089: gcc -B/tools/bin/ -g -O2 -shared
-o conftest.so conftest.o
-nostartfiles -nostdlib
-Wl,--version-script,conftest.map
1>&5
configure:5092: $? = 0
configure:5107: result: yes
configure:5131: checking for .previous assembler directive
configure:5141: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:5144: $? = 0
configure:5152: result: yes
configure:5190: checking for .protected and .hidden assembler directive
configure:5202: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:5205: $? = 0
configure:5213: result: yes
configure:5226: checking whether __attribute__((visibility())) is supported
configure:5237: gcc -B/tools/bin/ -Werror -S conftest.c -o conftest.s 1>&5
configure:5240: $? = 0
configure:5251: result: yes
configure:5262: checking for broken __attribute__((visibility()))
configure:5274: gcc -B/tools/bin/ -Werror -S conftest.c -o conftest.s1>&5
configure:5277: $? = 0
configure:5286: result: no
configure:5296: checking for broken __attribute__((alias()))
configure:5311: gcc -B/tools/bin/ -Werror -S conftest.c -o conftest.s 1>&5
configure:5314: $? = 0
configure:5324: result: no
configure:5334: checking whether to put _rtld_local into .sdata section
configure:5348: result: no
configure:5358: checking for .preinit_array/.init_array/.fini_array support
configure:5371: gcc -B/tools/bin/ -g -O2 -o conftest conftest.c
-static -nostartfiles -nostdlib 1>&5
configure:5374: $? = 0
configure:5387: result: yes
configure:5397: checking for libunwind-support in compiler
configure:5414: result: no
configure:5424: checking for -z nodelete option
configure:5436: gcc -B/tools/bin/ -g -O2
-shared -o conftest.so conftest.c
-nostartfiles -nostdlib
-Wl,--enable-new-dtags,-z,nodelete 1>&5
configure:5439: $? = 0
configure:5448: result: yes
configure:5452: checking for -z nodlopen option
configure:5464: gcc -B/tools/bin/ -g -O2
-shared -o conftest.so conftest.c
-nostartfiles -nostdlib
-Wl,--enable-new-dtags,-z,nodlopen 1>&5
configure:5467: $? = 0
configure:5476: result: yes
configure:5480: checking for -z initfirst option
configure:5492: gcc -B/tools/bin/ -g -O2
-shared -o conftest.so conftest.c
-nostartfiles -nostdlib
-Wl,--enable-new-dtags,-z,initfirst 1>&5
configure:5495: $? = 0
configure:5504: result: yes
configure:5508: checking for -z relro option
configure:5515: gcc -B/tools/bin/ -v --help 2>&1|grep z relro 1>&5
-z relro Create RELRO program header
configure:5518: $? = 0
configure:5522: gcc -B/tools/bin/ -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5
. = DATA_SEGMENT_RELRO_END (12, .);
configure:5525: $? = 0
configure:5532: result: yes
configure:5542: checking for -Bgroup option
configure:5553: gcc -B/tools/bin/ -g -O2
-shared -o conftest.so conftest.c
-Wl,-Bgroup -nostdlib 1>&5
configure:5556: $? = 0
configure:5565: result: yes
configure:5569: checking for libgcc_s suffix
configure:5583: result:
configure:5587: checking for --as-needed option
configure:5599: gcc -B/tools/bin/ -g -O2
-shared -o conftest.so conftest.c
-lgcc_s -Wl,--as-needed
-nostdlib 1>&5
configure:5602: $? = 0
configure:5611: result: yes
configure:5616: checking whether --noexecstack is desirable for .S files
configure:5626: gcc -B/tools/bin/ -g -O2
-S -o conftest.s conftest.c 1>&5
configure:5629: $? = 0
configure:5634: gcc -B/tools/bin/ -g -O2 -Wa,--noexecstack
-c -o conftest.o conftest.s 1>&5
configure:5637: $? = 0
configure:5646: result: yes
configure:5653: checking for -z combreloc
configure:5667: gcc -B/tools/bin/ -g -O2
-shared -o conftest.so conftest.c
-nostdlib -nostartfiles
-Wl,-z,combreloc 1>&5
configure:5670: $? = 0
configure:5683: result: yes
configure:5693: checking for -z execstack
configure:5705: gcc -B/tools/bin/ -g -O2
-shared -o conftest.so conftest.c
-Wl,-z,execstack -nostdlib
1>&5
configure:5708: $? = 0
configure:5717: result: yes
configure:5721: checking for -fpie
configure:5732: gcc -B/tools/bin/ -g -O2 -pie -fpie
-o conftest conftest.c 1>&5
/tools/bin/ld: Scrt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:5735: $? = 1
configure:5744: result: no
configure:5750: checking for -fno-unit-at-a-time
configure:5760: gcc -B/tools/bin/ -g -O2 -S -fno-unit-at-a-time
conftest.c 1>&5
configure:5763: $? = 0
configure:5772: result: yes
configure:5844: checking whether cc puts quotes around section names
configure:5865: result: no
configure:5982: checking for assembler .weak directive
configure:5995: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:5998: $? = 0
configure:6006: result: yes
configure:6053: checking whether CFI directives are supported
configure:6068: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:6071: $? = 0
configure:6079: result: yes
configure:6088: checking if -g produces usable source locations for assembler-with-cpp
configure:6111: gcc -B/tools/bin/ -g -c conftest.S 1>&5
configure:6114: $? = 0
configure:6119: readelf --debug-dump=line conftest.o |
grep conftest\.S 1>&5
1 0 0 0 conftest.S
configure:6122: $? = 0
configure:6131: result: yes
configure:6140: checking for ld --no-whole-archive
configure:6153: gcc -B/tools/bin/ -g -O2
-nostdlib -nostartfiles -Wl,--no-whole-archive
-o conftest conftest.c 1>&5
configure:6156: $? = 0
configure:6164: result: yes
configure:6170: checking for gcc -fexceptions
configure:6183: gcc -B/tools/bin/ -g -O2
-nostdlib -nostartfiles -fexceptions
-o conftest conftest.c 1>&5
configure:6186: $? = 0
configure:6194: result: yes
configure:6264: checking for DWARF2 unwind info support
configure:6302: gcc -B/tools/bin/ -g -O2 -DCHECK__register_frame_info -nostdlib -nostartfiles -o conftest conftest.c -lgcc >&5
configure:6284: warning: conflicting types for built-in function 'malloc'
configure: In function 'strcmp':
configure:6285: warning: number of arguments doesn't match built-in prototype
configure: At top level:
configure:6286: warning: conflicting types for built-in function 'strlen'
configure:6287: warning: conflicting types for built-in function 'memcpy'
configure:6288: warning: conflicting types for built-in function 'memset'
configure:6290: warning: conflicting types for built-in function 'abort'
/tmp/ccUCnq6p.o: In function `_start':
/mnt/lfs/sources/glibc-build/configure:6277: undefined reference to `__register_frame_info'
/mnt/lfs/sources/glibc-build/configure:6278: undefined reference to `__deregister_frame_info'
collect2: ld returned 1 exit status
configure:6305: $? = 1
configure:6308: gcc -B/tools/bin/ -g -O2 -DCHECK__register_frame_info -nostdlib -nostartfiles -o conftest conftest.c -lgcc -lgcc_eh -lgcc >&5
configure:6284: warning: conflicting types for built-in function 'malloc'
configure: In function 'strcmp':
configure:6285: warning: number of arguments doesn't match built-in prototype
configure: At top level:
configure:6286: warning: conflicting types for built-in function 'strlen'
configure:6287: warning: conflicting types for built-in function 'memcpy'
configure:6288: warning: conflicting types for built-in function 'memset'
configure:6290: warning: conflicting types for built-in function 'abort'
configure:6311: $? = 0
configure:6339: result: no_registry_needed
configure:6360: checking for __builtin_expect
configure:6375: gcc -B/tools/bin/ -g -O2 -nostdlib -nostartfiles
-o conftest conftest.c -lgcc >&5
/tools/bin/ld: warning: cannot find entry symbol _start; defaulting to 080480a0
configure:6378: $? = 0
configure:6386: result: yes
configure:6395: checking for __builtin_memset
configure:6407: gcc -B/tools/bin/ -O3 -S conftest.c -o - | fgrep memset > /dev/null
configure:6410: $? = 0
configure:6419: result: no
configure:6428: checking for redirection of built-in functions
configure:6441: gcc -B/tools/bin/ -O3 -S conftest.c -o - | fgrep my_strstr > /dev/null
configure:6444: $? = 0
configure:6453: result: yes
configure:6462: checking for local label subtraction
configure:6482: gcc -B/tools/bin/ -g -O2 -nostdlib -nostartfiles
-o conftest conftest.c -lgcc >&5
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.