LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-02-2007, 03:11 PM   #1
profeta64
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
Angry glibc 2.3.6 on LFS 5.6


Hi there!
i've a problem while i use the command
../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

I've compiled and installed binutils, gcc and libc headers without error same version that's in the man.

This is the log:
[...]
*** WARNING: You should not compile GNU libc without versioning. Not using
*** versioning will introduce incompatibilities so that old binaries
*** will not run anymore.
*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer).
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... no
checking for libunwind-support in compiler... no
checking for -z nodelete option... no
checking for -z nodlopen option... no
checking for -z initfirst option... no
checking for -z relro option... no
checking for -Bgroup option... no
checking for libgcc_s suffix...
checking for --as-needed option... no
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... no
checking for -z execstack... no
checking for -fpie... no
checking for -fno-unit-at-a-time... yes
checking whether cc puts quotes around section names... no
checking for assembler .weak directive... yes
checking whether CFI directives are supported... yes
checking if -g produces usable source locations for assembler-with-cpp... yes
checking for ld --no-whole-archive... no
checking for gcc -fexceptions... no
checking for DWARF2 unwind info support... no
checking for __builtin_expect... no
checking for __builtin_memset... no
checking for redirection of built-in functions... yes
checking for local label subtraction... no
checking for __thread... yes
checking for tls_model attribute... yes
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking for egrep... grep -E
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long double... yes
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.

thanks
 
Old 12-02-2007, 04:21 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by profeta64 View Post
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.

thanks
Did you look at "config.log" to see why the compiler could not handle a "long double"?
 
Old 12-03-2007, 02:34 AM   #3
profeta64
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by David1357 View Post
Did you look at "config.log" to see why the compiler could not handle a "long double"?
i've found in configure:7509

configure: program exited with status 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
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define HAVE_PROTECTED 1
| #define HAVE_HIDDEN 1
| #define HAVE_VISIBILITY_ATTRIBUTE 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_CPP_ASM_DEBUGINFO 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (long double)); }
| unsigned long ulongval () { return (long) (sizeof (long double)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
| FILE *f = fopen ("conftest.val", "w");
| if (! f)
| exit (1);
| if (((long) (sizeof (long double))) < 0)
| {
| long i = longval ();
| if (i != ((long) (sizeof (long double))))
| exit (1);
| fprintf (f, "%ld\n", i);
| }
| else
| {
| unsigned long i = ulongval ();
| if (i != ((long) (sizeof (long double))))
| exit (1);
| fprintf (f, "%lu\n", i);
| }
| exit (ferror (f) || fclose (f) != 0);
|
| ;
| return 0;
| }
configure:7509: error: cannot compute sizeof (long double), 77


what can i do?
 
Old 12-03-2007, 04:12 AM   #4
profeta64
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
if i remove --with-binutils=/tools/bin
work...

I've followed the lfs...

after, when i use make

In file included from version.c:33:
/sources/glibc-build/csu/version-info.h:2: error: missing terminating " character
/sources/glibc-build/csu/version-info.h:3: error: missing terminating " character
/sources/glibc-build/csu/version-info.h:4: error: expected ‘,’ or ‘;’ before string constant
make[2]: *** [/sources/glibc-build/csu/version.o] Error 1
make[2]: Leaving directory `/sources/glibc-2.3.6/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/sources/glibc-2.3.6'
make: *** [all] Error 2
 
Old 12-03-2007, 05:28 PM   #5
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by profeta64 View Post
configure:7509: error: cannot compute sizeof (long double), 77


what can i do?
I do not know. I just wrote a little test program to compute the size of a long double, and it compiled and ran for me using Cygwin. You must have something misconfigured somewhere.
 
Old 12-04-2007, 01:42 AM   #6
profeta64
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
No error if i use LFS's LiveCD...

Thanks David for reply
 
  


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
Cross-lfs Glibc-2.4 EXS Linux From Scratch 1 06-09-2006 02:03 PM
LFS v6-installation of glibc; need help kartheekpn Linux From Scratch 31 04-26-2005 04:13 PM
Glibc-2.3.3-lfs-5.1 EPM_Students Linux From Scratch 1 02-12-2005 06:37 AM
glibc-2.3.3-lfs-5.1 error Zamochit Linux From Scratch 8 01-13-2005 06:00 AM
Glibc (2.3.3-lfs-5.1) Mystified Linux From Scratch 2 12-02-2004 05:14 PM

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

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