crosstool ng 1.5.2: using custom kernel headers

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

crosstool ng 1.5.2: using custom kernel headers

zvivered
Hello,

Using crosstool 1.5.2 I'm trying to build gcc 4.1.2 + glibc 2.5 but
with kernel: 3.4.18

I specified the path of "kernel headers"

I'm getting the following error:

[INFO ]  Installing C library headers
[EXTRA]    Configuring C library
[ERROR]    Linux version is unavailable in installed headers files
[ERROR]    Build failed in step 'Installing C library headers'
[ERROR]    Error happened in
'/home/zvivered/ct-ng-1.5.2/lib/ct-ng-1.5.2/scripts/build/libc/glibc.sh'
in function 'do_libc_headers' (line unknown, sorry)
[ERROR]          called from
'/home/zvivered/ct-ng-1.5.2/lib/ct-ng-1.5.2/scripts/crosstool-NG.sh'
at line # 544 in function 'main'
[ERROR]    Look at '/root/ct-ng-1.5.2/release/build.log' for more info
on this error.

I'm aware this combination was not tested.

But for some reason, my application can be built only with gcc 4.1.2
and glibc 2.5
With glibc 2.9, gcc 4.3.2 (for example) I'm getting
/i686-nptl-linux-gnu/sys-root-usr/lib/librt.so: undefined reference to
'__fortify_fail@GLIBC_PRIVATE'

Attached .config

When I chose kernel 2.6.27.35, the build is OK.

Can you help ?


Thanks,
Zvika

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

config.txt (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: crosstool ng 1.5.2: using custom kernel headers

Yann E. MORIN-2
Zvi, All,

On Thursday 08 November 2012 Zvi Vered wrote:
> Using crosstool 1.5.2 I'm trying to build gcc 4.1.2 + glibc 2.5 but
> with kernel: 3.4.18

crosstool-NG 1.5.2 is really old. 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