Build Failure for PowerPC using crosstool-ng 1.14.1

Van Rafelghem Dominique dvanrafelghem@dtisoft.com
Fri Mar 9 18:31:00 GMT 2012


Hi Yann, everyone,

Thanks for the information.  Unfortunately my build is still failing.

Here is what I did:

I upgraded to crosstool-ng version 1.14.1 per your suggestion.

I followed your suggestion for the C-library in setting the supported kernel version to 2.4.18.
I did this since I'm not able to update the kernel version :(.

I did set an additional item which was the CT_OLDEST_ABI, I set this to 2.2.3 and I don't know if 
This caused the build to fail.

Here is the section of the .config file that shows the changes I made:
----------------------------------------------------------------------------------------
#
# Common C library options
#
CT_THREADS_NPTL=y
CT_LIBC_XLDD=y
CT_LIBC_glibc_familly=y
CT_LIBC_GLIBC_EXTRA_CONFIG_ARRAY=""
CT_LIBC_GLIBC_CONFIGPARMS=""
CT_LIBC_GLIBC_EXTRA_CFLAGS=""
CT_LIBC_EXTRA_CC_ARGS=""
# CT_LIBC_DISABLE_VERSIONING is not set
CT_LIBC_OLDEST_ABI="2.2.3"
CT_LIBC_GLIBC_FORCE_UNWIND=y
# CT_LIBC_GLIBC_USE_PORTS is not set
CT_LIBC_ADDONS_LIST=""
# CT_LIBC_LOCALES is not set
# CT_LIBC_GLIBC_KERNEL_VERSION_NONE is not set
# CT_LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS is not set
CT_LIBC_GLIBC_KERNEL_VERSION_CHOSEN=y
CT_LIBC_GLIBC_MIN_KERNEL_VERSION="2.4.18"
CT_LIBC_GLIBC_MIN_KERNEL="2.4.18"
----------------------------------------------------------------------------------------

Here is the tail end (last 30 lines) of the build.log file:
----------------------------------------------------------------------------------------
[ALL  ]    a - debug/warning-nop.oS
[ALL  ]    a - debug/stack_chk_fail_local.oS
[ALL  ]    :
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
libc_nonshared.a
[ALL  ]    powerpc-unknown-linux-gnu-gcc       -nostdlib -nostartfiles -r -o
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
libc_pic.os   -Wl,-d -Wl,--whole-archive
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
libc_pic.a
[ALL  ]    powerpc-unknown-linux-gnu-gcc       -shared -Wl,-O1        -nostdlib
-nostartfiles          -Wl,-dynamic-linker=/lib/ld.so.1 -Wl,-z,combreloc
-Wl,-z,relro -Wl,--hash-style=both           -Wl,--verbose 2>&1 |    sed >
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
shlib.ldsT          -e '/^=========/,/^=========/!d;/^=========/d'           -e
's/^.*.gnu.hash[  ]*:.*$/  .note.ABI-tag : { *(.note.ABI-tag) } &/' -e '/^[  
]*.hash[    ]*:.*$/{h;d;}' -e '/DATA_SEGMENT_ALIGN/{H;g}'         -e
's/^.**(.dynbss).*$/&       PROVIDE(__start___libc_freeres_ptrs = .);      
*(__libc_freeres_ptrs)          PROVIDE(__stop___libc_freeres_ptrs = .);/'      
-e 's@^.**(.jcr).*$@&          PROVIDE(__start___libc_subfreeres = .);        
__libc_subfreeres : { *(__libc_subfreeres) }       
PROVIDE(__stop___libc_subfreeres = .);      PROVIDE(__start___libc_atexit = .); 
       __libc_atexit : { *(__libc_atexit) }        PROVIDE(__stop___libc_atexit
= .);      PROVIDE(__start___libc_thread_subfreeres = .);     
__libc_thread_subfreeres : { *(__libc_thread_subfreeres) }     
PROVIDE(__stop___libc_thread_subfreeres = .);       /DISCARD/ : {
*(.gnu.glibc-stub.*) }@'
[ALL  ]    mv -f
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
shlib.ldsT
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
shlib.lds
[ALL  ]    powerpc-unknown-linux-gnu-gcc       -shared -static-libgcc -Wl,-O1 
-Wl,-z,defs -Wl,-dynamic-linker=/lib/ld.so.1 
-B/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
csu/ 
-Wl,--version-script=/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/
build/build-libc-final/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc
-Wl,-z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main
-L/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final
-L/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
math
-L/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
elf
-L/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
dlfcn
-L/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
nss
-L/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
nis
-L/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
rt
-L/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
resolv
-L/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
crypt
-L/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
nptl
-Wl,-rpath-link=/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/
build-libc-final:/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/
build-libc-final/math:/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/
build/build-libc-final/elf:/home/dtitest/powerpc/.build/powerpc-unknown-linux-
gnu/build/build-libc-final/dlfcn:/home/dtitest/powerpc/.build/powerpc-unknown-
linux-gnu/build/build-libc-final/nss:/home/dtitest/powerpc/.build/powerpc-
unknown-linux-gnu/build/build-libc-final/nis:/home/dtitest/powerpc/.build/
powerpc-unknown-linux-gnu/build/build-libc-final/rt:/home/dtitest/powerpc/.build
/powerpc-unknown-linux-gnu/build/build-libc-final/resolv:/home/dtitest/powerpc/.
build/powerpc-unknown-linux-gnu/build/build-libc-final/crypt:/home/dtitest/
powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/nptl -o
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
libc.so -T
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
shlib.lds
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
csu/abi-note.o
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
elf/soinit.os
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
libc_pic.os
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
elf/sofini.os
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
elf/interp.os
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
elf/ld.so -lgcc
[ALL  ]   
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/gcc-core-shared/lib
/gcc/powerpc-unknown-linux-gnu/4.4.5/../../../../powerpc-unknown-linux-gnu/bin/
ld:
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
libc.so: version node not found for symbol _longjmp@GLIBC_2.0
[ALL  ]   
/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/gcc-core-shared/lib
/gcc/powerpc-unknown-linux-gnu/4.4.5/../../../../powerpc-unknown-linux-gnu/bin/
ld: failed to set dynamic section sizes: Bad value
[ALL  ]    collect2: ld returned 1 exit status
[ERROR]    make[2]: ***
[/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final/
libc.so] Error 1
[ALL  ]    make[2]: Leaving directory
`/home/dtitest/powerpc/.build/src/glibc-2.9'
[ERROR]    make[1]: *** [all] Error 2
[ALL  ]    make[1]: Leaving directory
`/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-libc-final'
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@172]
[ERROR]  >>        called from:
do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@442]
[ERROR]  >>        called from:
do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@144]
[ERROR]  >>        called from:
do_libc[scripts/build/libc/glibc-eglibc.sh-common@65]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@597]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/local/share/doc/crosstool-ng/ct-ng.1.14.1/B - Known
issues.txt'
[ERROR]  
[ERROR]  (elapsed: 43:28.42)
----------------------------------------------------------------------------------------


Any help would be greatly appreciated.

Dominique



-----Original Message-----
From: Yann E. MORIN [mailto:yann.morin.1998@free.fr] 
Sent: Friday, March 09, 2012 12:45 AM
To: crossgcc@sourceware.org
Cc: Van Rafelghem Dominique
Subject: Re: Build Failure for PowerPC using crosstool-ng 1.9.3

Dominique, All,

Please, wrap lines at <80 chars, it's easier to read.

On Friday 09 March 2012 01:40:35 Van Rafelghem Dominique wrote:
> I have a PowerPC platform that is running an older Linux kernel
> 2.4.18 for which I downloaded the tar.gz file.

The 2.4 series of Linux is not supported by crosstool-NG. It's a too old
version. Only starting around 2.6.18 (dpeending on the target architecture)
was Linux capable of exporting its headers.

My first suggestion would be to update your target kernel. 2.4.18 is really
old, by nowadays standards: it was released more than 10 years ago!

If you really can't update, then you *might* be able to get a toolchain for
your system anyway. Just select the oldest kernel available in crosstool-NG
and tell glibc that it should support back to linux-2.4.18:

    C-library  --->
      Minimum supported kernel version (Specific kernel version)  --->
        Specific kernel version
          (2.4.18) Minimum kernel version to support

But you may encounter some rough edges...

Also, crosstool-NG 1.9.3 is old, no longer maintained, and no longer
supported. Latest is 1.14.1. Please upgrade.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list