* Building o32 glibc on mips64
@ 2005-06-11 18:54 Jim Gifford
2005-06-13 19:56 ` Daniel Jacobowitz
0 siblings, 1 reply; 8+ messages in thread
From: Jim Gifford @ 2005-06-11 18:54 UTC (permalink / raw)
To: Linux MIPS List
Anyone got any ideas on how to fix this. I'm using binutils 2.16, gcc
3.4.4, and glibc-2.3.5 with the syscall patch. Looks like socket.S is
not being generated.
mips64el-unknown-linux-gnu-gcc -mabi=32
../sysdeps/unix/sysv/linux/recv.S -c -
I../include -I. -I/usr/src/glibc-build/socket -I.. -I../libio
-I/usr/src/glibc-
build -I../sysdeps/mips/elf -I../libidn/sysdeps/unix
-I../linuxthreads/sysdeps/u
nix/sysv/linux/mips -I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/
sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../li
nuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/mips
-I../sysdeps/unix/sysv/li
nux/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/uni
x/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/mips/mips32
-I../sysdeps/unix/mi
ps -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/mips/mips32
-I../sysdeps/mi
ps -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../sys
deps/generic -D_LIBC_REENTRANT -include ../include/libc-symbols.h
-DPIC -D
ASSEMBLER -g -o /usr/src/glibc-build/socket/recv.o -MD -MP -MF
/usr/src/glibc
-build/socket/recv.o.dt -MT /usr/src/glibc-build/socket/recv.o
../sysdeps/unix/sysv/linux/recv.S:5:20: socket.S: No such file or directory
make[2]: *** [/usr/src/glibc-build/socket/recv.o] Error 1
make[2]: Leaving directory `/usr/src/glibc-2.3.5/socket'
make[1]: *** [socket/subdir_lib] Error 2
make[1]: Leaving directory `/usr/src/glibc-2.3.5'
make: *** [all] Error 2
root:/usr/src/glibc-build#
--
----
Jim Gifford
maillist@jg555.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Building o32 glibc on mips64
2005-06-11 18:54 Building o32 glibc on mips64 Jim Gifford
@ 2005-06-13 19:56 ` Daniel Jacobowitz
2005-06-13 20:05 ` Maciej W. Rozycki
0 siblings, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2005-06-13 19:56 UTC (permalink / raw)
To: Jim Gifford; +Cc: Linux MIPS List
On Sat, Jun 11, 2005 at 11:54:30AM -0700, Jim Gifford wrote:
> Anyone got any ideas on how to fix this. I'm using binutils 2.16, gcc
> 3.4.4, and glibc-2.3.5 with the syscall patch. Looks like socket.S is
> not being generated.
I have not tried the 2.3.x series glibcs on MIPS64. I recommend you
use glibc HEAD for now instead, unless you're interested in tracking
down this sort of problem.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Building o32 glibc on mips64
2005-06-13 19:56 ` Daniel Jacobowitz
@ 2005-06-13 20:05 ` Maciej W. Rozycki
2005-06-13 20:08 ` Christoph Hellwig
0 siblings, 1 reply; 8+ messages in thread
From: Maciej W. Rozycki @ 2005-06-13 20:05 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Jim Gifford, Linux MIPS List
On Mon, 13 Jun 2005, Daniel Jacobowitz wrote:
> I have not tried the 2.3.x series glibcs on MIPS64. I recommend you
> use glibc HEAD for now instead, unless you're interested in tracking
> down this sort of problem.
FYI, I've been able to build glibc 2.3.5 with GCC 4.0.0 for
mips64el-linux (n64) with minimal patching. I think what's only really
required is that patch by Richard Sandiford that stays suspended in the
glibc Bugzilla.
For o32 glibc may have to be configured for "mips{,el}-linux" (as o32
isn't MIPS64 at all), but that's a pure guess -- I haven't checked the
scripts for that requirement.
Do you think HEAD is stable enough for a non-glibc developer? It's soon
after a fork after all, so I'd expect more serious changes to be applied
nowadays.
Maciej
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Building o32 glibc on mips64
2005-06-13 20:05 ` Maciej W. Rozycki
@ 2005-06-13 20:08 ` Christoph Hellwig
2005-06-13 20:18 ` Maciej W. Rozycki
2005-06-13 20:55 ` Daniel Jacobowitz
0 siblings, 2 replies; 8+ messages in thread
From: Christoph Hellwig @ 2005-06-13 20:08 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Daniel Jacobowitz, Jim Gifford, Linux MIPS List
On Mon, Jun 13, 2005 at 09:05:59PM +0100, Maciej W. Rozycki wrote:
> On Mon, 13 Jun 2005, Daniel Jacobowitz wrote:
>
> > I have not tried the 2.3.x series glibcs on MIPS64. I recommend you
> > use glibc HEAD for now instead, unless you're interested in tracking
> > down this sort of problem.
>
> FYI, I've been able to build glibc 2.3.5 with GCC 4.0.0 for
> mips64el-linux (n64) with minimal patching. I think what's only really
> required is that patch by Richard Sandiford that stays suspended in the
> glibc Bugzilla.
>
> For o32 glibc may have to be configured for "mips{,el}-linux" (as o32
> isn't MIPS64 at all), but that's a pure guess -- I haven't checked the
> scripts for that requirement.
>
> Do you think HEAD is stable enough for a non-glibc developer? It's soon
> after a fork after all, so I'd expect more serious changes to be applied
> nowadays.
Btw, what is the chance to see a biarch toolchain for mips? It seems
all linux architectures with 32bit and 64bit variants seem to have one
these days, except mips.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Building o32 glibc on mips64
2005-06-13 20:08 ` Christoph Hellwig
@ 2005-06-13 20:18 ` Maciej W. Rozycki
2005-06-13 20:55 ` Daniel Jacobowitz
1 sibling, 0 replies; 8+ messages in thread
From: Maciej W. Rozycki @ 2005-06-13 20:18 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Daniel Jacobowitz, Jim Gifford, Linux MIPS List
On Mon, 13 Jun 2005, Christoph Hellwig wrote:
> > Do you think HEAD is stable enough for a non-glibc developer? It's soon
> > after a fork after all, so I'd expect more serious changes to be applied
> > nowadays.
>
> Btw, what is the chance to see a biarch toolchain for mips? It seems
> all linux architectures with 32bit and 64bit variants seem to have one
> these days, except mips.
What do you mean? Multilib, per chance? If so, please feel free to
build one yourself -- as of 4.0.0 GCC will build libraries for all three
ABIs (o32, (n)64 and n32) if configured for mips64{,el}-linux and
--enable-multilib is in effect (I think it is by default). Bi-endian is
probably tougher, but it should be possible -- GCC itself supports the
"-mabi=" and "-mel" and "-meb" switches all the time AFAIK.
Of course you may need to have system libraries installed in place for
all requested configurations as appropriate; at least glibc, but perhaps
others as well (gmp, mpfr for Fortran; zlib for Java).
Maciej
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Building o32 glibc on mips64
2005-06-13 20:08 ` Christoph Hellwig
2005-06-13 20:18 ` Maciej W. Rozycki
@ 2005-06-13 20:55 ` Daniel Jacobowitz
2005-06-14 8:00 ` Jim Gifford
1 sibling, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2005-06-13 20:55 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Maciej W. Rozycki, Jim Gifford, Linux MIPS List
On Mon, Jun 13, 2005 at 10:08:20PM +0200, Christoph Hellwig wrote:
> Btw, what is the chance to see a biarch toolchain for mips? It seems
> all linux architectures with 32bit and 64bit variants seem to have one
> these days, except mips.
As Maciej wrote, mips64-linux is already triarch. It's possible to
build a multiarch mips-linux toolchain, or a mips64-linux toolchain
which supports multilibs but defaults to o32, but neither's real easy.
I build mips64-linux toolchains all the time, though.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Building o32 glibc on mips64
2005-06-13 20:55 ` Daniel Jacobowitz
@ 2005-06-14 8:00 ` Jim Gifford
2005-06-14 10:36 ` Richard Sandiford
0 siblings, 1 reply; 8+ messages in thread
From: Jim Gifford @ 2005-06-14 8:00 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Christoph Hellwig, Maciej W. Rozycki, Linux MIPS List
From my understanding it's only supported when using IRIX shared
libraries, but the standard MIPS64 still only builds n32 and n64 only,
and not the o32 libraries.
I don't see why GCC didn't just allow all MIPS have that capability.
--
----
Jim Gifford
maillist@jg555.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Building o32 glibc on mips64
2005-06-14 8:00 ` Jim Gifford
@ 2005-06-14 10:36 ` Richard Sandiford
0 siblings, 0 replies; 8+ messages in thread
From: Richard Sandiford @ 2005-06-14 10:36 UTC (permalink / raw)
To: Jim Gifford
Cc: Daniel Jacobowitz, Christoph Hellwig, Maciej W. Rozycki,
Linux MIPS List
Jim Gifford <maillist@jg555.com> writes:
> From my understanding it's only supported when using IRIX shared
> libraries, but the standard MIPS64 still only builds n32 and n64 only,
> and not the o32 libraries.
No, that's not true (assuming "MIPS64" == mips64-linux-gnu).
What makes you think so?
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-06-14 10:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-11 18:54 Building o32 glibc on mips64 Jim Gifford
2005-06-13 19:56 ` Daniel Jacobowitz
2005-06-13 20:05 ` Maciej W. Rozycki
2005-06-13 20:08 ` Christoph Hellwig
2005-06-13 20:18 ` Maciej W. Rozycki
2005-06-13 20:55 ` Daniel Jacobowitz
2005-06-14 8:00 ` Jim Gifford
2005-06-14 10:36 ` Richard Sandiford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox