crosstool-NG breaks

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

crosstool-NG breaks

Stefano Ricci
I apologize in advance for my English.
I have a problem when using the tool crosstool-ng 1.2.4.
I'm using the distribution of ubuntu 8.04 32bit version and I'm
compiling a toolchain for x86 when the tool will stop reporting the
following error:

[INFO ]  Build started 20081014.111650
[INFO ]  Checking environment sanity
[INFO ]  Building environment variables
[WARN ]  You did not specify the build system. That's OK, I can guess...
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in
0.08s (at 00:02)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[INFO ]  Extracting and patching toolchain components: done in 0.13s (at 00:02)
[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[INFO ]  Installing kernel headers: done in 6.38s (at 00:08)
[INFO ]  =================================================================
[INFO ]  Installing binutils
[INFO ]  Installing binutils: done in 81.42s (at 01:30)
[INFO ]  =================================================================
[INFO ]  Installing static core C compiler
[INFO ]  Installing static core C compiler: done in 137.82s (at 03:48)
[INFO ]  =================================================================
[INFO ]  Installing C library headers
[INFO ]  Installing C library headers: done in 29.33s (at 04:17)
[INFO ]  =================================================================
[INFO ]  Installing C library start files
[INFO ]  Installing C library start files: done in 20.55s (at 04:38)
[INFO ]  =================================================================
[INFO ]  Installing shared core C compiler
[INFO ]  Installing shared core C compiler: done in 140.41s (at 06:58)
[INFO ]  =================================================================
[INFO ]  Installing C library
[ERROR]    ../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:29: error:
conflicting types for '__lll_lock_wait'
[ERROR]    ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:448:
error: previous declaration of '__lll_lock_wait' was here
[ERROR]    Build failed in step 'Installing C library'
[ERROR]    Error happened in
'/home/stefano/Xcross/lib/ct-ng-1.2.4/scripts/build/libc_glibc.sh' in
function 'do_libc' (line unknown, sorry)
[ERROR]          called from
'/home/stefano/Xcross/lib/ct-ng-1.2.4/scripts/crosstool.sh' at line #
508 in function 'main'
[ERROR]    Look at
'/home/stefano/x-tools/i386-unknown-linux-gnu/build.log' for more info
on this error.
[ERROR]  (elapsed: 11:14.18)
[11:14] / make: *** [build] Error 2

Someone can give me a solution to the problem?
Thank you in advance

Regards
Stefano

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

Reply | Threaded
Open this post in threaded view
|

Re: crosstool-NG breaks

Yann E. MORIN
Hello Stefano!
Hello All!

On Tuesday 14 October 2008 11:58:10 Stefano Ricci wrote:
> I apologize in advance for my English.

Good English as far as I, a French man, can tell! :-)

> I have a problem when using the tool crosstool-ng 1.2.4.
> I'm using the distribution of ubuntu 8.04 32bit version and I'm compiling a
> toolchain for x86 when the tool will stop reporting the following error:

> [INFO ]  Build started 20081014.111650
[--SNIP--]

> [INFO ]  Installing C library
> [ERROR]    ../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:29: error:
> conflicting types for '__lll_lock_wait'
> [ERROR]    ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:448: error:
> previous declaration of '__lll_lock_wait' was here
> [ERROR]    Build failed in step 'Installing C library'
> [ERROR]    Error happened in
> '/home/stefano/Xcross/lib/ct-ng-1.2.4/scripts/build/libc_glibc.sh' in
> function 'do_libc' (line unknown, sorry)
> [ERROR]          called from
> '/home/stefano/Xcross/lib/ct-ng-1.2.4/scripts/crosstool.sh' at line # 508 in
> function 'main'
> [ERROR]    Look at '/home/stefano/x-tools/i386-unknown-linux-gnu/build.log'
> for more info on this error.
> [ERROR]  (elapsed: 11:14.18)
> [11:14] / make: *** [build] Error 2

Not enough information:
 - what crosstool-NG options did you use?
 - what kernel headers version are you using?
 - what binutils version?
 - what gcc version?
 - what C library? What version? (seems glibc-2.7 ?)

At least, sending your .config could help us try to reproduce the problem...

Also your build.log has much more info and could help in diagnosis. Don't
send it as is, it's *huge*! Compress it with bzip2 (or lzma) beforehand.

Did you try the SVN trunk? If not, have a go, and especially look at
docs/known-issues.txt. If I'm not mistaken, you'll find the answer there! ;-)

Regards,
Yann E. MORIN.

--
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  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

Reply | Threaded
Open this post in threaded view
|

Re: crosstool-NG breaks

Stefano Ricci
Hi,
As instructed by you, I tried to make a new compilation with the svn
trunk of crosstool-ng with ubuntu 8.04 32bit with negative results.
We enclosed mine .Config and build.log as required to be able to play
my situation.
However the error continues to be the following:

[INFO ]  Build started 20081015.095208
[INFO ]  Checking environment sanity
[INFO ]  Building environment variables
[WARN ]  Directory '' does not exist. Will not save downloaded
tarballs to local storage.
[WARN ]  You did not specify the build system. That's OK, I can guess...
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in
0.08s (at 00:02)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[INFO ]  Extracting and patching toolchain components: done in 0.28s (at 00:02)
[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[INFO ]  Installing kernel headers: done in 22.07s (at 00:24)
[INFO ]  =================================================================
[INFO ]  Installing binutils
[INFO ]  Installing binutils: done in 79.62s (at 01:44)
[INFO ]  =================================================================
[INFO ]  Installing static core C compiler
[INFO ]  Installing static core C compiler: done in 137.12s (at 04:01)
[INFO ]  =================================================================
[INFO ]  Installing C library headers
[INFO ]  Installing C library headers: done in 30.78s (at 04:32)
[INFO ]  =================================================================
[INFO ]  Installing C library start files
[INFO ]  Installing C library start files: done in 20.01s (at 04:52)
[INFO ]  =================================================================
[INFO ]  Installing shared core C compiler
[INFO ]  Installing shared core C compiler: done in 137.58s (at 07:09)
[INFO ]  =================================================================
[INFO ]  Installing C library
[ERROR]    ../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:29: error:
conflicting types for '__lll_lock_wait'
[ERROR]    ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:448:
error: previous declaration of '__lll_lock_wait' was here
[ERROR]    make[3]: ***
[/home/stefano/svil/targets/i386-unknown-linux-gnu/build/build-libc/nptl/libc-lowlevellock.o]
Error 1
[ERROR]    make[2]: *** [nptl/subdir_lib] Error 2
[ERROR]    make[1]: *** [all] Error 2
[ERROR]    Build failed in step 'Installing C library'
[ERROR]    Error happened in
'/home/stefano/xcross/lib/ct-ng-1.2.0+svn_trunk@1090/scripts/functions'
in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from
'/home/stefano/xcross/lib/ct-ng-1.2.0+svn_trunk@1090/scripts/build/libc/glibc.sh'
at line # 479 in function 'do_libc'
[ERROR]          called from
'/home/stefano/xcross/lib/ct-ng-1.2.0+svn_trunk@1090/scripts/crosstool.sh'
at line # 421 in function 'main'
[ERROR]    Look at
'/home/stefano/x-tools/i386-unknown-linux-gnu/build.log' for more info
on this error.
[ERROR]  (elapsed: 11:17.40)
[11:17] / make: *** [build] Error 2

The configuration of Ubuntu is as follows:
kernel headers version is 2.6.24-21 generic
binutils version 2.18.1
gcc version 4.2.3
glibc version 2.7

Regards
Stefano

2008/10/14 Yann E. MORIN <[hidden email]>:

> Hello Stefano!
> Hello All!
>
> On Tuesday 14 October 2008 11:58:10 Stefano Ricci wrote:
>> I apologize in advance for my English.
>
> Good English as far as I, a French man, can tell! :-)
>
>> I have a problem when using the tool crosstool-ng 1.2.4.
>> I'm using the distribution of ubuntu 8.04 32bit version and I'm compiling a
>> toolchain for x86 when the tool will stop reporting the following error:
>
>> [INFO ]  Build started 20081014.111650
> [--SNIP--]
>> [INFO ]  Installing C library
>> [ERROR]    ../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:29: error:
>> conflicting types for '__lll_lock_wait'
>> [ERROR]    ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:448: error:
>> previous declaration of '__lll_lock_wait' was here
>> [ERROR]    Build failed in step 'Installing C library'
>> [ERROR]    Error happened in
>> '/home/stefano/Xcross/lib/ct-ng-1.2.4/scripts/build/libc_glibc.sh' in
>> function 'do_libc' (line unknown, sorry)
>> [ERROR]          called from
>> '/home/stefano/Xcross/lib/ct-ng-1.2.4/scripts/crosstool.sh' at line # 508 in
>> function 'main'
>> [ERROR]    Look at '/home/stefano/x-tools/i386-unknown-linux-gnu/build.log'
>> for more info on this error.
>> [ERROR]  (elapsed: 11:14.18)
>> [11:14] / make: *** [build] Error 2
>
> Not enough information:
>  - what crosstool-NG options did you use?
>  - what kernel headers version are you using?
>  - what binutils version?
>  - what gcc version?
>  - what C library? What version? (seems glibc-2.7 ?)
>
> At least, sending your .config could help us try to reproduce the problem...
>
> Also your build.log has much more info and could help in diagnosis. Don't
> send it as is, it's *huge*! Compress it with bzip2 (or lzma) beforehand.
>
> Did you try the SVN trunk? If not, have a go, and especially look at
> docs/known-issues.txt. If I'm not mistaken, you'll find the answer there! ;-)
>
> Regards,
> Yann E. MORIN.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | --==< ^_^ >==-- `------------.-------:  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

.config (8K) Download Attachment
build.tar.bz2 (172K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: crosstool-NG breaks

Gerhard Jaeger
On Wednesday 15 October 2008 10:56:42 Stefano Ricci wrote:
[SNIPSNAP]

> [INFO ]  Installing C library
> [ERROR]    ../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:29: error:
> conflicting types for '__lll_lock_wait'
> [ERROR]    ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:448:
> error: previous declaration of '__lll_lock_wait' was here
> [ERROR]    make[3]: ***
> [/home/stefano/svil/targets/i386-unknown-linux-gnu/build/build-libc/nptl/libc-lowlevellock.o]
> Error 1
> [ERROR]    make[2]: *** [nptl/subdir_lib] Error 2
> [ERROR]    make[1]: *** [all] Error 2
> [ERROR]    Build failed in step 'Installing C library'
> [ERROR]    Error happened in
[SNIPSNAP]
> The configuration of Ubuntu is as follows:
> kernel headers version is 2.6.24-21 generic
> binutils version 2.18.1
> gcc version 4.2.3
> glibc version 2.7

Hi,

from what I see here, you tried to build for an "i386" target.
You can't build NPTL for i386; it requires i486 or higher.

HTH
Gerhard

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

Reply | Threaded
Open this post in threaded view
|

Re: crosstool-NG breaks

Yann E. MORIN
In reply to this post by Stefano Ricci
Hello Stefano!
Hello All!

On Wednesday 15 October 2008 10:56:42 Stefano Ricci wrote:
> However the error continues to be the following:
> [INFO ]  Installing C library
> [ERROR]    ../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:29: error:
> conflicting types for '__lll_lock_wait'
> [ERROR]    ../nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h:448:
> error: previous declaration of '__lll_lock_wait' was here
> [ERROR]    make[3]: ***
> [/home/stefano/svil/targets/i386-unknown-linux-gnu/build/build-libc/nptl/libc-lowlevellock.o]
> Error 1

OK. I see you're using gcc-4.0.4 anf glibc-2.5. Do you have to use those
versions? They are quite old now.

glibc-2.6 and onward have a fix for the __lll_lock_wait problem. You could
try to backport that to glibc-2.5, or just use glibc-2.6 (or 2.6.1).

Also, as pointed to by Gerhard, you should instruct crosstool-NG to use i486
(or above) with the following option:
  Target options  --->  (i486)  Architecture level

Regards,
Yann E. MORIN.
 
--
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  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

Reply | Threaded
Open this post in threaded view
|

Re: crosstool-NG breaks

Yann E. MORIN
In reply to this post by Gerhard Jaeger
Hello Gerhard!
Hello All!

On Wednesday 15 October 2008 11:24:11 Gerhard Jaeger wrote:
> You can't build NPTL for i386; it requires i486 or higher.

Oh... What is missing in i386 that prevents using NPTL?

Regards,
Yann E. MORIN.

--
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  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

Reply | Threaded
Open this post in threaded view
|

Re: crosstool-NG breaks

Brian Dessent
"Yann E. MORIN" wrote:

> Oh... What is missing in i386 that prevents using NPTL?

It's probably because the 386 lacks the cmpxchg instruction, commonly
used to implement atomic synchronization primitives.

Brian

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

Reply | Threaded
Open this post in threaded view
|

Re: crosstool-NG breaks

Gerhard Jaeger
In reply to this post by Yann E. MORIN
On Wednesday 15 October 2008 11:38:54 Yann E. MORIN wrote:
> Hello Gerhard!
> Hello All!
>
> On Wednesday 15 October 2008 11:24:11 Gerhard Jaeger wrote:
> > You can't build NPTL for i386; it requires i486 or higher.
>
> Oh... What is missing in i386 that prevents using NPTL?
Hi Yann,

AFAIK the support for i386 has been skipped from glibc-2.6
on and I had the same problem, when building glibc-2.7.

I fixed it by tweaking the CFLAGS:
echo "CFLAGS += -march=i486 -mtune=native" > configparms

See also here:
http://sourceware.org/ml/libc-ports/2006-03/msg00030.html

- Gerhard

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

Reply | Threaded
Open this post in threaded view
|

Re: crosstool-NG breaks

Stefano Ricci
In reply to this post by Brian Dessent
I put the target i486 and I used the glibc 2.6.1 with gcc 4.2.4 and I
managed to finish the compilation crosstool-ng.
Thank you all for your willingness to solve my problem.
Thanks again

Stefano


2008/10/15 Brian Dessent <[hidden email]>:
> "Yann E. MORIN" wrote:
>
>> Oh... What is missing in i386 that prevents using NPTL?
>
> It's probably because the 386 lacks the cmpxchg instruction, commonly
> used to implement atomic synchronization primitives.
>
> Brian
>

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

Reply | Threaded
Open this post in threaded view
|

Re: crosstool-NG breaks

Enrico Weigelt, metux IT service
In reply to this post by Yann E. MORIN
* Yann E. MORIN <[hidden email]> wrote:

> Also, as pointed to by Gerhard, you should instruct crosstool-NG to use i486
> (or above) with the following option:
>   Target options  --->  (i486)  Architecture level

also had the same problem :(

Perhaps we should add some config-test script which warns on
known troublemakers ?


cu
--
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
  http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
        http://patches.metux.de/
---------------------------------------------------------------------

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