crosstool-ng 1.16.0: Error building glibc 2.8

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

crosstool-ng 1.16.0: Error building glibc 2.8

zvivered
Dear Members,

Using crosstool-ng 1.16.0 I'm trying to build an i686-nptl-linux-gnu toolchain.

After setting all parameters according to the i686-nptl-linux-gnu
sample I changed glibc to 2.8, gcc 4.2.2:

with gcc 4.2.2 I got the following error:

[ALL  ]    /home/zvivered/ct-ng-1.16.0/bin/.build/src/gcc-4.2.2/gcc/regrename.c:
In function 'copyprop_hardreg_forward_1':
[ERROR]    /home/zvivered/ct-ng-1.16.0/bin/.build/src/gcc-4.2.2/gcc/regrename.c:1646:
error: 'IFCVT_ALLOW_MODIFY_TEST_IN_INSN' undeclared (first use in this
function)
[ERROR]    /home/zvivered/ct-ng-1.16.0/bin/.build/src/gcc-4.2.2/gcc/regrename.c:1646:
error: (Each undeclared identifier is reported only once
[ERROR]    /home/zvivered/ct-ng-1.16.0/bin/.build/src/gcc-4.2.2/gcc/regrename.c:1646:
error: for each function it appears in.)

I googled the problem and found I should upgrade to gcc 4.2.4

with gcc 4.2.4 I got the following error:

bin/.build/i686-nptl-linux-gnu/build/build-libc-final/math/s_isnanf.os
[ALL  ]    ../sysdeps/i386/fpu/s_frexp.S: Assembler messages:
[ALL  ]    ../sysdeps/i386/fpu/s_frexp.S:66: Error: invalid identifier
for ".ifdef"
[ALL  ]    ../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of
line, first unrecognized character is `1'
[ALL  ]    ../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of
line, first unrecognized character is `1'
[ALL  ]    ../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of
line, first unrecognized character is `1'
[ALL  ]    ../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of
line, first unrecognized character is `.'
[ALL  ]    ../sysdeps/i386/fpu/s_frexp.S:66: Error: junk at end of
line, first unrecognized character is `1'
[ALL  ]    ../sysdeps/i386/fpu/s_frexp.S:66: Error: expected comma
after name `' in .size directive
[ALL  ]    ../sysdeps/i386/fpu/s_frexp.S:66: Error: ".endif" without ".if"

I googled the problem and found a patch for eglibc 2.8:
http://www.eglibc.org/archives/patches/msg00073.html

After applying the patch to glibc2.8 the build is OK.

I think the patch should be added to the next version of crosstool.
Am I right ?

Attached .config used for the build.

Thanks,
Zvika

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

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

Re: crosstool-ng 1.16.0: Error building glibc 2.8

Yann E. MORIN-2
Zvi, All,

On Friday 02 November 2012 Zvi Vered wrote:
> Using crosstool-ng 1.16.0 I'm trying to build an i686-nptl-linux-gnu toolchain.
>
> After setting all parameters according to the i686-nptl-linux-gnu
> sample I changed glibc to 2.8, gcc 4.2.2:

glibc-2.8 is old. Can't you try a more recent one (glibc-2.16 is now
out, IIRC)?

> with gcc 4.2.4 I got the following error:
>
> bin/.build/i686-nptl-linux-gnu/build/build-libc-final/math/s_isnanf.os
> [ALL  ]    ../sysdeps/i386/fpu/s_frexp.S: Assembler messages:
> [ALL  ]    ../sysdeps/i386/fpu/s_frexp.S:66: Error: invalid identifier
> for ".ifdef"
[--SNIP--]
> I googled the problem and found a patch for eglibc 2.8:
> http://www.eglibc.org/archives/patches/msg00073.html

There's already a patch for this for some glibc versions, but not
for 2.8, indeed.

> I think the patch should be added to the next version of crosstool.

Too late for next version, but yes for the one after.
Care to send a properly-formatted patch, please?

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

Reply | Threaded
Open this post in threaded view
|

Re: crosstool-ng 1.16.0: Error building glibc 2.8

zvivered
Dear Mr. Morin,

Attached the patch (for eglibc)
Not sure it is properly formatted.
I copied it from:
http://www.eglibc.org/archives/patches/msg00073.html

Thanks,
Zvika

On Fri, Nov 9, 2012 at 4:21 PM, Yann E. MORIN <[hidden email]> wrote:

> Zvi, All,
>
> On Friday 02 November 2012 Zvi Vered wrote:
>> Using crosstool-ng 1.16.0 I'm trying to build an i686-nptl-linux-gnu toolchain.
>>
>> After setting all parameters according to the i686-nptl-linux-gnu
>> sample I changed glibc to 2.8, gcc 4.2.2:
>
> glibc-2.8 is old. Can't you try a more recent one (glibc-2.16 is now
> out, IIRC)?
>
>> with gcc 4.2.4 I got the following error:
>>
>> bin/.build/i686-nptl-linux-gnu/build/build-libc-final/math/s_isnanf.os
>> [ALL  ]    ../sysdeps/i386/fpu/s_frexp.S: Assembler messages:
>> [ALL  ]    ../sysdeps/i386/fpu/s_frexp.S:66: Error: invalid identifier
>> for ".ifdef"
> [--SNIP--]
>> I googled the problem and found a patch for eglibc 2.8:
>> http://www.eglibc.org/archives/patches/msg00073.html
>
> There's already a patch for this for some glibc versions, but not
> for 2.8, indeed.
>
>> I think the patch should be added to the next version of crosstool.
>
> Too late for next version, but yes for the one after.
> Care to send a properly-formatted patch, please?
>
> 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

glibc2.8_patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: crosstool-ng 1.16.0: Error building glibc 2.8

Yann E. MORIN-2
Zvika, All,

On Saturday 10 November 2012 Zvi Vered wrote:
> Dear Mr. Morin,

Yann will be enough! ;-)

> Attached the patch (for eglibc)
> Not sure it is properly formatted.
> I copied it from:
> http://www.eglibc.org/archives/patches/msg00073.html

Please, provide a patch against crosstool-NG.
See "docs/C - Misc. tutorials.txt" on how to submit patches.

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