public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* RE: Build Failure for PowerPC using crosstool-ng 1.9.3
@ 2012-03-09  0:40 Van Rafelghem Dominique
  2012-03-09  8:45 ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Van Rafelghem Dominique @ 2012-03-09  0:40 UTC (permalink / raw)
  To: crossgcc

Hi everyone,

I just started using crosstool-ng to try and build a newer toolchain for a PowerPC platform.   

The first question I have is if what I'm trying to do is at all possible.  I have a PowerPC platform that is running an older Linux kernel 2.4.18 for which I downloaded the tar.gz file.

I executed "ct-ng menubuild" and left all setting at default except for the target being changed to ppc and I pointed to the tarball for the kernel on my development machine.

Next, I executed "ct-ng build".  The build started but then it error'd out with the following messages on the console:

[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20120308.152529
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in 152.51s (at 02:33)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[INFO ]  Extracting and patching toolchain components: done in 90.92s (at 04:04)
[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[ERROR]    Build failed in step 'Installing kernel headers'
[ERROR]    Error happened in '/usr/local/lib/ct-ng-1.9.3/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from '/usr/local/lib/ct-ng-1.9.3/scripts/build/kernel/linux.sh' at line # 98 in function 'do_kernel_install'
[ERROR]          called from '/usr/local/lib/ct-ng-1.9.3/scripts/build/kernel/linux.sh' at line # 75 in function 'do_kernel_headers'
[ERROR]          called from '/usr/local/lib/ct-ng-1.9.3/scripts/crosstool-NG.sh' at line # 597 in function 'main'
[ERROR]    Look at '/home/dtitest/x-tools/powerpc-unknown-linux-gnu/build.log' for more info on this error.
[ERROR]  (elapsed: 4:05.22)
[04:05] / make: *** [build] Error 2


The end of the build.log file has the following information:

[INFO ]  Extracting and patching toolchain components: done in 90.92s (at 04:04)
[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[DEBUG]    Using kernel's headers_install
[EXTRA]    Installing kernel headers
[DEBUG]    ==> Executing: 'make -C /home/dtitest/powerpc/.build/src/linux-custom O=/home/dtitest/powerpc/.build/powerpc-unknown-linux-gnu/build/build-kernel-headers ARCH=powerpc INSTALL_HDR_PATH=/home/dtitest/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu//sys-root/usr V=0 headers_install'
[ALL  ]    make[1]: Entering directory `/home/dtitest/powerpc/.build/src/linux-custom'
[ALL  ]    Makefile:244: arch/powerpc/Makefile: No such file or directory
[ALL  ]    make[1]: *** No rule to make target `arch/powerpc/Makefile'.  Stop.
[ALL  ]    make[1]: Leaving directory `/home/dtitest/powerpc/.build/src/linux-custom'
[ERROR]    Build failed in step 'Installing kernel headers'
[ERROR]    Error happened in '/usr/local/lib/ct-ng-1.9.3/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from '/usr/local/lib/ct-ng-1.9.3/scripts/build/kernel/linux.sh' at line # 98 in function 'do_kernel_install'
[ERROR]          called from '/usr/local/lib/ct-ng-1.9.3/scripts/build/kernel/linux.sh' at line # 75 in function 'do_kernel_headers'
[ERROR]          called from '/usr/local/lib/ct-ng-1.9.3/scripts/crosstool-NG.sh' at line # 597 in function 'main'
[ERROR]    Look at '/home/dtitest/x-tools/powerpc-unknown-linux-gnu/build.log' for more info on this error.
[ERROR]  (elapsed: 4:05.22)

I'm using Ubuntu 10.10 as my build machine.  I saw another post on the mailing list which was similar to this but that person had a different problem which was that the version of make needed to be 3.81 instead of 3.82 as there is a bug in make 3.82.  This is not the case for me as my Ubuntu workstation has make 3.81.  Here is a link to that thread http://sourceware.org/ml/crossgcc/2011-01/msg00041.html.

Any help would be greatly appreciated.

Dominique



Dominique Van Rafelghem
DTI Software Inc.
Lake Forest, CA


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Build Failure for PowerPC using crosstool-ng 1.9.3
  2012-03-09  0:40 Build Failure for PowerPC using crosstool-ng 1.9.3 Van Rafelghem Dominique
@ 2012-03-09  8:45 ` Yann E. MORIN
  2012-03-09 18:31   ` Build Failure for PowerPC using crosstool-ng 1.14.1 Van Rafelghem Dominique
  0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2012-03-09  8:45 UTC (permalink / raw)
  To: crossgcc; +Cc: Van Rafelghem Dominique

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Build Failure for PowerPC using crosstool-ng 1.14.1
  2012-03-09  8:45 ` Yann E. MORIN
@ 2012-03-09 18:31   ` Van Rafelghem Dominique
  0 siblings, 0 replies; 3+ messages in thread
From: Van Rafelghem Dominique @ 2012-03-09 18:31 UTC (permalink / raw)
  To: crossgcc

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-09 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-09  0:40 Build Failure for PowerPC using crosstool-ng 1.9.3 Van Rafelghem Dominique
2012-03-09  8:45 ` Yann E. MORIN
2012-03-09 18:31   ` Build Failure for PowerPC using crosstool-ng 1.14.1 Van Rafelghem Dominique

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).