[LFS Trac] #2661: GMP incorrectly detects CPU-VENDOR-OS triplet on some x86_64 architectures.

LFS Trac trac at linuxfromscratch.org
Fri May 14 03:17:49 PDT 2010


#2661: GMP incorrectly detects CPU-VENDOR-OS triplet on some x86_64 architectures.
---------------------------+------------------------------------------------
 Reporter:  itakingiteasy  |       Owner:  lfs-book@…                   
     Type:  defect         |      Status:  new                          
 Priority:  normal         |   Milestone:  6.7                          
Component:  Book           |     Version:  SVN                          
 Severity:  blocker        |    Keywords:  GMP                          
---------------------------+------------------------------------------------
 On my x86_64 machine ./config.guess script of GMP 5.01 (and 5.00 as well)
 returns 'athlon-unknown-linux-gnu' which is incorrectly considered by
 ./configure script as 32-bit platform, so it expects sizeof(long) to be 4,
 when it is actually 8:

 {{{
 checking compiler cc -O2 -pedantic -fomit-frame-pointer has sizeof
 (long)==4... no
 }}}

 which results in a compiler error:

 {{{
 configure: error: could not find a working compiler, see config.log for
 details
 }}}

 This bug can be avoided by specifying --build=x86_64-unknown-linux-gnu
 option to ./configure script, but without knowing that your whole LFS
 assembly stops.


 I am aware of the ticket http://wiki.linuxfromscratch.org/lfs/ticket/2648
 , but i decided to make a separate one because it has nothing to do with
 CFLAGS or ABI environment variables.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2661>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.



More information about the lfs-book mailing list