This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

crosstool-ng 1.16.0: Error building glibc 2.8


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

Attachment: config.txt
Description: Text document

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]