binutils bug or glibc bug

Khem Raj khem@mvista.com
Sun Mar 26 16:38:00 GMT 2006


Niklaus wrote:
> Hi,
>  Can anyone tell me what causes this error. glibc or binutils.
> Below is attached mail
>   
you might define libc_cv_forced_unwind=yes  in environment to get around 
this issue.
> - Hide quoted text -
>
>
>
> On 3/25/06, Lior Balkohen <balkohen@gmail.com> wrote:
>   
>> 2006/3/25, Niklaus <niklaus@gmail.com>:
>>     
>>> Hi,
>>>  I am getting the same error ,
>>>  I tried build glibc for headers with gcc 4.1 but still it is giving
>>> the same error. Can someone help me out .
>>>
>>>  gcc -v
>>> Using built-in specs.
>>> Target: i686-pc-linux-gnu
>>> Configured with: /home/nik/cross/gcc-4.1.0/configure
>>> --prefix=/home/nik/utils/ --enable-languages=c,c++
>>> Thread model: posix
>>> gcc version 4.1.0
>>>       
>> This is your HOSTCC, but you want to crosscompile for target powerpc-linux.
>>
>>     
>>> [nik@localhost glibcheaders]$ libc_cv_ppc_machine=yes
>>> CC=i686-pc-linux-gnu-gcc-4.1.0  ~/cross/glibc-2.4/configure
>>> --prefix=/usr --host=powerpc-deb-linux --without-cvs
>>> --disable-sanity-checks
>>> --with-headers=/home/nik/utils/powerpc-deb-linux/include
>>> --enable-hacker-mode
>>> configure: WARNING: If you wanted to set the --build type, don't use --host.
>>>     If a cross compiler is detected then cross compile mode will be used.
>>> checking build system type... i686-pc-linux-gnu
>>> checking host system type... powerpc-deb-linux-gnu
>>> configure: running configure fragment for add-on nptl
>>> checking sysdep dirs... sysdeps/powerpc/powerpc32/elf
>>> sysdeps/powerpc/elf sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu
>>> sysdeps/powerpc/powerpc32/fpu
>>> nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32
>>> sysdeps/unix/sysv/linux/powerpc/powerpc32
>>> nptl/sysdeps/unix/sysv/linux/powerpc sysdeps/unix/sysv/linux/powerpc
>>> sysdeps/ieee754/ldbl-128ibm sysdeps/ieee754/ldbl-opt
>>> nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread
>>> sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common
>>> sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv
>>> sysdeps/unix/sysv sysdeps/unix/powerpc nptl/sysdeps/unix sysdeps/unix
>>> sysdeps/posix sysdeps/powerpc/powerpc32 sysdeps/wordsize-32
>>> sysdeps/powerpc/fpu nptl/sysdeps/powerpc sysdeps/powerpc
>>> sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754
>>> sysdeps/generic/elf sysdeps/generic
>>> checking for a BSD-compatible install... /usr/bin/install -c
>>> checking whether ln -s works... yes
>>> checking for powerpc-deb-linux-gcc... i686-pc-linux-gnu-gcc-4.1.0
>>>       
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>
>> So, the configure script cannot detect a "powerpc-deb-linux"
>> cross-compiler.  Go, read some documentation about cross compiling.
>>
>> http://www.linuxfromscratch.org/clfs/view/cross-lfs/ppc is a good start!
>>
>>     
>
> actually this was the procedure i always used for cross-compilation.
> Now i know it is wrong, But for gcc3.4 and glibc 2.3.4 , it used to
> work very well. I used to build the entire toolchain in this manner
> and the executables worked fine .Anyways i have built the new
> powerpc-deb-linux-gcc and it supports the -mlong-double-128 options .
> thanks for the help Daniel and Lior.
> But now a new problem has cropped up namely forced unwind . On few of
> the threads i see that it is binutils bug, but i am not sure in this
> case.Can you help me in this regard.
>
> [nik@localhost glibcheaders]$ powerpc-deb-linux-gcc -v
> Using built-in specs.
> Target: powerpc-deb-linux
> Configured with: /home/nik/cross/gcc-4.1.0/configure
> --target=powerpc-deb-linux --prefix=/home/nik/utils --disable-multilib
> --with-newlib --disable-nls --enable-threads=no --enable-symvers=gnu
> --disable-shared --enable-languages=c --enable-__cxa_atexit
> --with-sysroot=/home/nik/utils/powerpc-deb-linux
> Thread model: single
> gcc version 4.1.0
> [nik@localhost glibcheaders]$ libc_cv_ppc_machine=yes
> CC=powerpc-deb-linux-gcc ~/cross/glibc-2.4/configure --prefix=/usr
> --host=powerpc-deb-linux  --without-cvs --disable-sanity-checks
> --enable-hacker-mode --disable-threads
> configure: WARNING: If you wanted to set the --build type, don't use --host.
>    If a cross compiler is detected then cross compile mode will be used.
> checking build system type... i686-pc-linux-gnulibc1
> checking host system type... powerpc-deb-linux-gnu
> configure: running configure fragment for add-on nptl
> checking sysdep dirs... sysdeps/powerpc/powerpc32/elf
> sysdeps/powerpc/elf sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu
> sysdeps/powerpc/powerpc32/fpu
> nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32
> sysdeps/unix/sysv/linux/powerpc/powerpc32
> nptl/sysdeps/unix/sysv/linux/powerpc sysdeps/unix/sysv/linux/powerpc
> sysdeps/ieee754/ldbl-128ibm sysdeps/ieee754/ldbl-opt
> nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread
> sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common
> sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv
> sysdeps/unix/sysv sysdeps/unix/powerpc nptl/sysdeps/unix sysdeps/unix
> sysdeps/posix sysdeps/powerpc/powerpc32 sysdeps/wordsize-32
> sysdeps/powerpc/fpu nptl/sysdeps/powerpc sysdeps/powerpc
> sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754
> sysdeps/generic/elf sysdeps/generic
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln -s works... yes
> checking for powerpc-deb-linux-gcc... powerpc-deb-linux-gcc
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether powerpc-deb-linux-gcc accepts -g... yes
> checking for powerpc-deb-linux-gcc option to accept ANSI C... none needed
> checking for gcc... gcc
> checking how to run the C preprocessor... powerpc-deb-linux-gcc -E
> checking for powerpc-deb-linux-g++... no
> checking for powerpc-deb-linux-c++... no
> checking for powerpc-deb-linux-gpp... no
> checking for powerpc-deb-linux-aCC... no
> checking for powerpc-deb-linux-CC... no
> checking for powerpc-deb-linux-cxx... no
> checking for powerpc-deb-linux-cc++... no
> checking for powerpc-deb-linux-cl... no
> checking for powerpc-deb-linux-FCC... no
> checking for powerpc-deb-linux-KCC... no
> checking for powerpc-deb-linux-RCC... no
> checking for powerpc-deb-linux-xlC_r... no
> checking for powerpc-deb-linux-xlC... no
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... no
> checking whether g++ accepts -g... no
> checking whether
> /home/nik/utils/lib/gcc/powerpc-deb-linux/4.1.0/../../../../powerpc-deb-linux/bin/as
> is GNU as... yes
> checking whether
> /home/nik/utils/lib/gcc/powerpc-deb-linux/4.1.0/../../../../powerpc-deb-linux/bin/ld
> is GNU ld... yes
> checking for /home/nik/utils/lib/gcc/powerpc-deb-linux/4.1.0/../../../../powerpc-deb-linux/bin/as...
> /home/nik/utils/lib/gcc/powerpc-deb-linux/4.1.0/../../../../powerpc-deb-linux/bin/as
> checking version of
> /home/nik/utils/lib/gcc/powerpc-deb-linux/4.1.0/../../../../powerpc-deb-linux/bin/as...
> 2.16, ok
> checking for /home/nik/utils/lib/gcc/powerpc-deb-linux/4.1.0/../../../../powerpc-deb-linux/bin/ld...
> /home/nik/utils/lib/gcc/powerpc-deb-linux/4.1.0/../../../../powerpc-deb-linux/bin/ld
> checking version of
> /home/nik/utils/lib/gcc/powerpc-deb-linux/4.1.0/../../../../powerpc-deb-linux/bin/ld...
> 2.16, ok
> checking for pwd... /bin/pwd
> checking for powerpc-deb-linux-gcc... (cached) powerpc-deb-linux-gcc
> checking version of powerpc-deb-linux-gcc... 4.1.0, ok
> - Hide quoted text -
> checking for gnumake... no
> checking for gmake... gmake
> checking version of gmake... 3.80, ok
> checking for gnumsgfmt... no
> checking for gmsgfmt... no
> checking for msgfmt... msgfmt
> checking version of msgfmt... 0.14.3, ok
> checking for makeinfo... makeinfo
> checking version of makeinfo... 4.8, ok
> checking for sed... sed
> checking version of sed... 4.1.4, ok
> checking for autoconf... autoconf
> checking whether autoconf works... yes
> checking whether ranlib is necessary... no
> checking LD_LIBRARY_PATH variable... ok
> checking whether GCC supports -static-libgcc... -static-libgcc
> checking for bash... /bin/sh
> checking for gawk... gawk
> checking for perl... /usr/bin/perl
> checking for install-info... /sbin/install-info
> checking for bison... /usr/bin/bison
> checking for signed size_t type... no
> checking for libc-friendly stddef.h... yes
> checking whether we need to use -P to assemble .S files... no
> checking whether .text pseudo-op must be used... yes
> checking for assembler global-symbol directive... .globl
> checking for .set assembler directive... yes
> checking for assembler .type directive prefix... @
> checking for .symver assembler directive... yes
> checking for ld --version-script... yes
> 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... yes
> checking for .preinit_array/.init_array/.fini_array support... yes
> checking for libunwind-support in compiler... no
> checking for -z nodelete option... yes
> checking for -z nodlopen option... yes
> checking for -z initfirst option... yes
> checking for -z relro option... yes
> checking for -Bgroup option... yes
> checking for libgcc_s suffix...
> checking for --as-needed option... no
> checking whether --noexecstack is desirable for .S files... yes
> checking for -z combreloc... yes
> checking for -z execstack... yes
> checking for -fpie... no
> checking for -fno-toplevel-reorder... no
> checking for -fstack-protector... no
> checking whether cc puts quotes around section names... no
> checking for assembler .weak directive... yes
> checking whether CFI directives are supported... yes
> checking for ld --no-whole-archive... yes
> checking for gcc -fexceptions... yes
> checking whether clobbering cr0 causes problems... no
> checking for __builtin_expect... yes
> checking for __builtin_memset... no
> checking for redirection of built-in functions... yes
> 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... no
> checking for sys/stat.h... no
> checking for stdlib.h... no
> checking for string.h... no
> checking for memory.h... no
> checking for strings.h... no
> checking for inttypes.h... no
> checking for stdint.h... no
> checking for unistd.h... no
> checking for long double... no
> checking size of long double... 0
> running configure fragment for sysdeps/powerpc/powerpc32/elf
> checking for powerpc32 TLS support... yes
> running configure fragment for sysdeps/unix/sysv/linux/powerpc
> checking whether powerpc-deb-linux-gcc -g -O2 -mlong-double-128 uses
> IBM extended format... yes
> running configure fragment for sysdeps/ieee754/ldbl-opt
> checking whether powerpc-deb-linux-gcc -g -O2 supports -mlong-double-128... yes
> running configure fragment for nptl/sysdeps/pthread
> checking for forced unwind support... no
> configure: error: forced unwind support is required
> [nik@localhost glibcheaders]$
>
>
> Thank you,
> Nik
>   


-- 
Khem Raj <khem@mvista.com>
MontaVista Software, Inc.
www.mvista.com




More information about the Binutils mailing list