* mips linux glibc-2.3.3 build - Unknown ABI problem
@ 2004-10-04 5:50 T. P. Saravanan
2004-10-04 16:19 ` David Daney
0 siblings, 1 reply; 9+ messages in thread
From: T. P. Saravanan @ 2004-10-04 5:50 UTC (permalink / raw)
To: linux-mips
Hi,
When I try to build glibc-2.3.3 on mips linux - it breaks as shown below:
.
.
.
sara@eyeore: [over] ~/build/glibc/objdir3$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.3 objdir=`pwd` all
make[1]: Entering directory `/home/sara/build/glibc/glibc-2.3.3'
make -C csu subdir_lib
.
.
.
make -C gmon subdir_lib
make[2]: Entering directory `/home/sara/build/glibc/glibc-2.3.3/gmon'
make[2]: Leaving directory `/home/sara/build/glibc/glibc-2.3.3/gmon'
make[2]: Entering directory `/home/sara/build/glibc/glibc-2.3.3/gmon'
gcc -mabi=32 mcount.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -g -mips32
-fno-omit-frame-pointer -I../include -I.
-I/home/sara/build/glibc/objdir3/gmon -I.. -I../libio
-I/home/sara/build/glibc/objdir3 -I../sysdeps/mips/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/mips
-I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread
-I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix
-I../linuxthreads/sysdeps/mips -I../sysdeps/unix/sysv/linux/mips/mips32
-I../sysdeps/unix/sysv/linux/mips -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv
-I../sysdeps/unix/mips/mips32 -I../sysdeps/unix/mips -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/mips/mips32 -I../sysdeps/mips
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/wordsize-32 -I../sysdeps/mips/fpu -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/home/sara/usr/local/lib/gcc/mipsel-unknown-linux-gnu/3.4.2/include
-isystem /home/sara/build/linux/linux-2.4.25mips/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -o
/home/sara/build/glibc/objdir3/gmon/mcount.o -MD -MP -MF
/home/sara/build/glibc/objdir3/gmon/mcount.o.dt
In file included from mcount.c:40:
../sysdeps/mips/machine-gmon.h:91:3: #error "Unknown ABI"
mcount.c:180: error: parse error before "PTR_SUBU_STRING"
make[2]: *** [/home/sara/build/glibc/objdir3/gmon/mcount.o] Error 1
make[2]: Leaving directory `/home/sara/build/glibc/glibc-2.3.3/gmon'
make[1]: *** [gmon/subdir_lib] Error 2
make[1]: Leaving directory `/home/sara/build/glibc/glibc-2.3.3'
make: *** [all] Error 2
System details:
Host type: mipsel-unknown-linux-gnu
System: Linux eyeore 2.4.25 #20 Wed Sep 29 09:01:29 IST 2004 mips unknown
Architecture: mips
Addons: linuxthreads
Build CFLAGS: -mips32 -O2 -g
Build CC: gcc
Compiler version: 3.4.2
Kernel headers: 2.4.25
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: yes
Build profile: yes
Build omitfp: no
Build bounded: no
Build static-nss: no
sara@eyeore: [over] ~/tmp$ cat /proc/cpuinfo
system type : ITE QED-4N-S01B
processor : 0
cpu model : Nevada V3.1 FPU V3.0
BogoMIPS : 299.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 48
extra interrupt vector : yes
hardware watchpoint : no
VCED exceptions : not available
VCEI exceptions : not available
sara@eyeore: [over] ~/tmp$
Some experimentation with "gcc -E" revealed that in the compiler I am using
(by default),
_MIPS_SIM is set to 1
_ABI032 is set to 1
_ABIN32 is not defined
_ABI64 is not defined
I tried compiling a "hello world" program with "gcc -mabi=32" and it works.
If I try "gcc -mabi=n32" it breaks at the linking stage as below:
sara@eyeore: [over] ~/tmp$ gcc -mabi=n32 -o v v.c
/home/sara/usr/local/lib/gcc/mipsel-unknown-linux-gnu/3.4.2/../../../../mipsel-unknown-linux-gnu/bin/ld:
/tmp/ccnz0jlk.o: ABI is incompatible with that of the selected emulation
/home/sara/usr/local/lib/gcc/mipsel-unknown-linux-gnu/3.4.2/../../../../mipsel-unknown-linux-gnu/bin/ld:
failed to merge target specific data of file /tmp/ccnz0jlk.o
/home/sara/usr/local/lib/gcc/mipsel-unknown-linux-gnu/3.4.2/../../../../mipsel-unknown-linux-gnu/bin/ld:
BFD 2.15 assertion fail elfxx-mips.c:1899
collect2: ld returned 1 exit status
sara@eyeore: [over] ~/tmp$
What should I do to fix the build?
-Saravanan.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mips linux glibc-2.3.3 build - Unknown ABI problem
2004-10-04 5:50 T. P. Saravanan
@ 2004-10-04 16:19 ` David Daney
2004-10-05 9:03 ` T. P. Saravanan
0 siblings, 1 reply; 9+ messages in thread
From: David Daney @ 2004-10-04 16:19 UTC (permalink / raw)
To: T. P. Saravanan; +Cc: linux-mips
T. P. Saravanan wrote:
> Hi,
>
> When I try to build glibc-2.3.3 on mips linux - it breaks as shown below:
>
> .
> .
> .
> sara@eyeore: [over] ~/build/glibc/objdir3$ make
> make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.3 objdir=`pwd` all
> make[1]: Entering directory `/home/sara/build/glibc/glibc-2.3.3'
> make -C csu subdir_lib
> .
> .
> .
> make -C gmon subdir_lib
> make[2]: Entering directory `/home/sara/build/glibc/glibc-2.3.3/gmon'
> make[2]: Leaving directory `/home/sara/build/glibc/glibc-2.3.3/gmon'
> make[2]: Entering directory `/home/sara/build/glibc/glibc-2.3.3/gmon'
> gcc -mabi=32 mcount.c -c -std=gnu99 -O2 -Wall -Winline
> -Wstrict-prototypes -Wwrite-strings -g -mips32
> -fno-omit-frame-pointer -I../include -I.
> -I/home/sara/build/glibc/objdir3/gmon -I.. -I../libio
> -I/home/sara/build/glibc/objdir3 -I../sysdeps/mips/elf
> -I../linuxthreads/sysdeps/unix/sysv/linux/mips
> -I../linuxthreads/sysdeps/unix/sysv/linux
> -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread
> -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix
> -I../linuxthreads/sysdeps/mips -I../sysdeps/unix/sysv/linux/mips/mips32
> -I../sysdeps/unix/sysv/linux/mips -I../sysdeps/unix/sysv/linux
> -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
> -I../sysdeps/unix/inet -I../sysdeps/unix/sysv
> -I../sysdeps/unix/mips/mips32 -I../sysdeps/unix/mips -I../sysdeps/unix
> -I../sysdeps/posix -I../sysdeps/mips/mips32 -I../sysdeps/mips
> -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64
> -I../sysdeps/wordsize-32 -I../sysdeps/mips/fpu -I../sysdeps/ieee754
> -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
> /home/sara/usr/local/lib/gcc/mipsel-unknown-linux-gnu/3.4.2/include
> -isystem /home/sara/build/linux/linux-2.4.25mips/include
> -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -o
> /home/sara/build/glibc/objdir3/gmon/mcount.o -MD -MP -MF
> /home/sara/build/glibc/objdir3/gmon/mcount.o.dt
> In file included from mcount.c:40:
> ../sysdeps/mips/machine-gmon.h:91:3: #error "Unknown ABI"
> mcount.c:180: error: parse error before "PTR_SUBU_STRING"
> make[2]: *** [/home/sara/build/glibc/objdir3/gmon/mcount.o] Error 1
> make[2]: Leaving directory `/home/sara/build/glibc/glibc-2.3.3/gmon'
> make[1]: *** [gmon/subdir_lib] Error 2
> make[1]: Leaving directory `/home/sara/build/glibc/glibc-2.3.3'
> make: *** [all] Error 2
>
>
>
> System details:
>
> Host type: mipsel-unknown-linux-gnu
> System: Linux eyeore 2.4.25 #20 Wed Sep 29 09:01:29 IST 2004 mips unknown
> Architecture: mips
>
> Addons: linuxthreads
> Build CFLAGS: -mips32 -O2 -g
> Build CC: gcc
> Compiler version: 3.4.2
> Kernel headers: 2.4.25
> Symbol versioning: yes
> Build static: yes
> Build shared: yes
> Build pic-default: yes
> Build profile: yes
> Build omitfp: no
> Build bounded: no
> Build static-nss: no
>
> sara@eyeore: [over] ~/tmp$ cat /proc/cpuinfo
> system type : ITE QED-4N-S01B
> processor : 0
> cpu model : Nevada V3.1 FPU V3.0
> BogoMIPS : 299.00
> wait instruction : yes
> microsecond timers : yes
> tlb_entries : 48
> extra interrupt vector : yes
> hardware watchpoint : no
> VCED exceptions : not available
> VCEI exceptions : not available
> sara@eyeore: [over] ~/tmp$
>
>
>
> Some experimentation with "gcc -E" revealed that in the compiler I am using
> (by default),
>
> _MIPS_SIM is set to 1
> _ABI032 is set to 1
> _ABIN32 is not defined
> _ABI64 is not defined
>
> I tried compiling a "hello world" program with "gcc -mabi=32" and it works.
>
> If I try "gcc -mabi=n32" it breaks at the linking stage as below:
>
> sara@eyeore: [over] ~/tmp$ gcc -mabi=n32 -o v v.c
> /home/sara/usr/local/lib/gcc/mipsel-unknown-linux-gnu/3.4.2/../../../../mipsel-unknown-linux-gnu/bin/ld:
> /tmp/ccnz0jlk.o: ABI is incompatible with that of the selected emulation
> /home/sara/usr/local/lib/gcc/mipsel-unknown-linux-gnu/3.4.2/../../../../mipsel-unknown-linux-gnu/bin/ld:
> failed to merge target specific data of file /tmp/ccnz0jlk.o
> /home/sara/usr/local/lib/gcc/mipsel-unknown-linux-gnu/3.4.2/../../../../mipsel-unknown-linux-gnu/bin/ld:
> BFD 2.15 assertion fail elfxx-mips.c:1899
> collect2: ld returned 1 exit status
> sara@eyeore: [over] ~/tmp$
>
> What should I do to fix the build?
get the most recent machine-gmon.h from glibc CVS.
You will probably find a problem linking libc at a later step. But the
newer machine-gmon.h will fix this problem.
I have sucessfully build with gcc-3.3.1, still working on 3.4.2
David Daney.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mips linux glibc-2.3.3 build - Unknown ABI problem
2004-10-04 16:19 ` David Daney
@ 2004-10-05 9:03 ` T. P. Saravanan
2004-10-06 4:14 ` T. P. Saravanan
0 siblings, 1 reply; 9+ messages in thread
From: T. P. Saravanan @ 2004-10-05 9:03 UTC (permalink / raw)
To: David Daney; +Cc: linux-mips
David Daney wrote:
>>What should I do to fix the build?
>>
>>
>
>get the most recent machine-gmon.h from glibc CVS.
>
>You will probably find a problem linking libc at a later step. But the
>newer machine-gmon.h will fix this problem.
>
>
OK. That worked. Thanks a lot.
(But now there are some assembler errors in rtld.c. It seems like an
unrelated
problem - so I will post that seperately.)
>I have sucessfully build with gcc-3.3.1, still working on 3.4.2
>
>
Ah! Nice to know that.
Do you by any chance have the diffs (against
ftp://ftp.gnu.org/glibc/glibc-2.3.3...).
If so, can you send it to me?
>David Daney.
>
>
Thanks again,
Saravanan.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mips linux glibc-2.3.3 build - Unknown ABI problem
2004-10-05 9:03 ` T. P. Saravanan
@ 2004-10-06 4:14 ` T. P. Saravanan
2004-10-07 4:05 ` T. P. Saravanan
0 siblings, 1 reply; 9+ messages in thread
From: T. P. Saravanan @ 2004-10-06 4:14 UTC (permalink / raw)
To: David Daney; +Cc: linux-mips
T. P. Saravanan wrote:
> David Daney wrote:
>
>>> What should I do to fix the build?
>>>
>>
>>
>> get the most recent machine-gmon.h from glibc CVS.
>>
>> You will probably find a problem linking libc at a later step. But the
>> newer machine-gmon.h will fix this problem.
>>
>>
> OK. That worked. Thanks a lot.
>
Oops! I will take that back. I suspect it is not working.
When you said CVS I assumed the one in http://linux-mips/cvsweb/libc.
On closer
look it looks very old. From discussions in another thread I gather CVS
means http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/?cvsroot=glibc.
(Correct me
if this is wrong.) If I take the machine-gmon.h from here - It still has
the
same problem :-(
-Saravanan.
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: mips linux glibc-2.3.3 build - Unknown ABI problem
@ 2004-10-06 4:35 ` David Daney
0 siblings, 0 replies; 9+ messages in thread
From: David Daney @ 2004-10-06 4:35 UTC (permalink / raw)
To: T. P. Saravanan; +Cc: linux-mips
Sorry for the horked up mail message format, but these web based e-mail clients make it difficult...
sysdeps/mips/machine-gmon.h version 1.8 has the #include <sgidefs.h> which will solve the problem when using gcc 3.4.x.
Others have reported that recent versions of glibc from the glibc CVS server will compile without patching. Perhaps you should try it. That is what I am going to do right now.
David Daney.
-----Original Message-----
From: T. P. Saravanan [mailto:sara@procsys.com]
Sent: Tue 10/5/2004 9:14 PM
To: David Daney
Cc: linux-mips@linux-mips.org
Subject: Re: mips linux glibc-2.3.3 build - Unknown ABI problem
T. P. Saravanan wrote:
> David Daney wrote:
>
>>> What should I do to fix the build?
>>>
>>
>>
>> get the most recent machine-gmon.h from glibc CVS.
>>
>> You will probably find a problem linking libc at a later step. But the
>> newer machine-gmon.h will fix this problem.
>>
>>
> OK. That worked. Thanks a lot.
>
Oops! I will take that back. I suspect it is not working.
When you said CVS I assumed the one in http://linux-mips/cvsweb/libc.
On closer
look it looks very old. From discussions in another thread I gather CVS
means http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/?cvsroot=glibc.
(Correct me
if this is wrong.) If I take the machine-gmon.h from here - It still has
the
same problem :-(
-Saravanan.
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: mips linux glibc-2.3.3 build - Unknown ABI problem
@ 2004-10-06 4:35 ` David Daney
0 siblings, 0 replies; 9+ messages in thread
From: David Daney @ 2004-10-06 4:35 UTC (permalink / raw)
To: T. P. Saravanan; +Cc: linux-mips
Sorry for the horked up mail message format, but these web based e-mail clients make it difficult...
sysdeps/mips/machine-gmon.h version 1.8 has the #include <sgidefs.h> which will solve the problem when using gcc 3.4.x.
Others have reported that recent versions of glibc from the glibc CVS server will compile without patching. Perhaps you should try it. That is what I am going to do right now.
David Daney.
-----Original Message-----
From: T. P. Saravanan [mailto:sara@procsys.com]
Sent: Tue 10/5/2004 9:14 PM
To: David Daney
Cc: linux-mips@linux-mips.org
Subject: Re: mips linux glibc-2.3.3 build - Unknown ABI problem
T. P. Saravanan wrote:
> David Daney wrote:
>
>>> What should I do to fix the build?
>>>
>>
>>
>> get the most recent machine-gmon.h from glibc CVS.
>>
>> You will probably find a problem linking libc at a later step. But the
>> newer machine-gmon.h will fix this problem.
>>
>>
> OK. That worked. Thanks a lot.
>
Oops! I will take that back. I suspect it is not working.
When you said CVS I assumed the one in http://linux-mips/cvsweb/libc.
On closer
look it looks very old. From discussions in another thread I gather CVS
means http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/?cvsroot=glibc.
(Correct me
if this is wrong.) If I take the machine-gmon.h from here - It still has
the
same problem :-(
-Saravanan.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mips linux glibc-2.3.3 build - Unknown ABI problem
2004-10-06 4:14 ` T. P. Saravanan
@ 2004-10-07 4:05 ` T. P. Saravanan
0 siblings, 0 replies; 9+ messages in thread
From: T. P. Saravanan @ 2004-10-07 4:05 UTC (permalink / raw)
To: T. P. Saravanan; +Cc: David Daney, linux-mips
T. P. Saravanan wrote:
> T. P. Saravanan wrote:
>
>> David Daney wrote:
>>
>>>> What should I do to fix the build?
>>>>
>>>
>>>
>>>
>>> get the most recent machine-gmon.h from glibc CVS.
>>>
>>> You will probably find a problem linking libc at a later step. But the
>>> newer machine-gmon.h will fix this problem.
>>>
>>>
>> OK. That worked. Thanks a lot.
>>
> Oops! I will take that back. I suspect it is not working.
>
> When you said CVS I assumed the one in http://linux-mips/cvsweb/libc.
> On closer
> look it looks very old. From discussions in another thread I gather
> CVS means
> http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/?cvsroot=glibc.
> (Correct me
> if this is wrong.) If I take the machine-gmon.h from here - It still
> has the
> same problem :-(
>
Correction Again: It works. I got the machine-gmon.h and builds all
mixed up. I did
a fresh compile and it went past this point.
[Sorry for all the confusion. I will post more carefully in future.]
-Sa.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mips linux glibc-2.3.3 build - Unknown ABI problem
2004-10-06 4:35 ` David Daney
(?)
@ 2004-10-07 4:10 ` T. P. Saravanan
2004-10-08 10:55 ` T. P. Saravanan
-1 siblings, 1 reply; 9+ messages in thread
From: T. P. Saravanan @ 2004-10-07 4:10 UTC (permalink / raw)
To: David Daney; +Cc: linux-mips
David Daney wrote:
>
>
>Others have reported that recent versions of glibc from the glibc CVS server will compile without patching. Perhaps you should try it. That is what I am going to do right now.
>
>
OK. I will give the recent CVS version a try some time.
-Sa.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mips linux glibc-2.3.3 build - Unknown ABI problem
2004-10-07 4:10 ` T. P. Saravanan
@ 2004-10-08 10:55 ` T. P. Saravanan
0 siblings, 0 replies; 9+ messages in thread
From: T. P. Saravanan @ 2004-10-08 10:55 UTC (permalink / raw)
To: David Daney; +Cc: linux-mips
T. P. Saravanan wrote:
> OK. I will give the recent CVS version a try some time.
> -Sa.
>
The CVS version fails right at the configure stage itself. It comes out
with no
error, but no Makefile too. Below is the transcript:
sara@eyeore: [over] ~/build/glibc/objdir7$ export CFLAGS="-mips32
-fno-unit-at-a--time -O2 -g"
sara@eyeore: [over] ~/build/glibc/objdir7$ ../glibc_cvs/configure
--prefix=/home/sara/usr/local --enable-add-ons=linuxthreads
--with-headers=/home/sara/build/linux/linux-2.4.25mips/include
checking build system type... mipsel-unknown-linux-gnu
checking host system type... mipsel-unknown-linux-gnu
running configure fragment for add-on linuxthreads
sara@eyeore: [over] ~/build/glibc/objdir7$ make
make: *** No targets specified and no makefile found. Stop.
sara@eyeore: [over] ~/build/glibc/objdir7$
I there something I missed?
-Sa.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-10-08 11:01 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-06 4:35 mips linux glibc-2.3.3 build - Unknown ABI problem David Daney
2004-10-06 4:35 ` David Daney
2004-10-07 4:10 ` T. P. Saravanan
2004-10-08 10:55 ` T. P. Saravanan
-- strict thread matches above, loose matches on Subject: below --
2004-10-04 5:50 T. P. Saravanan
2004-10-04 16:19 ` David Daney
2004-10-05 9:03 ` T. P. Saravanan
2004-10-06 4:14 ` T. P. Saravanan
2004-10-07 4:05 ` T. P. Saravanan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.