All of lore.kernel.org
 help / color / mirror / Atom feed
* compiling glibc
@ 2003-05-09 19:45 Benjamin Menküc
  2003-05-09 21:45 ` Thiemo Seufer
  0 siblings, 1 reply; 16+ messages in thread
From: Benjamin Menküc @ 2003-05-09 19:45 UTC (permalink / raw)
  To: linux-mips

Hi,

I cross-compiled binutils 2.13 and gcc-3.2.3 successfully for mips.

[benmen@linuxpc1 mipsel-glibc] LD_LIBRARY_PATH="" CFLAGS="-O2 -g 
-finline-limit=10000" ../glibc-2.3.2/configure --build=i686-linux 
--host=mipsel-linux --enable-add-ons --prefix=/home/benmen/mipsel

...

When I try to compile glibc I get this error:

[benmen@linuxpc1 mipsel-glibc] make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.2 objdir=`pwd` all
...
make[2]: Leaving directory `/home/benmen/mips/glibc-2.3.2/csu'
make[2]: Entering directory `/home/benmen/mips/glibc-2.3.2/csu'
gcc ../sysdeps/unix/sysv/linux/init-first.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -finline-limit=10000 -g      -I../include 
-I. -I/home/benmen/mips/mipsel-glibc/csu -I.. -I../libio  
-I/home/benmen/mips/mipsel-glibc -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 -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 
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/mips/mipsel 
-I../sysdeps/mips/fpu -I../sysdeps/mips -I../sysdeps/wordsize-32 
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 
-I../sysdeps/generic/elf -I../sysdeps/generic   -D_LIBC_REENTRANT -include 
../include/libc-symbols.h       -DHAVE_INITFINI -o 
/home/benmen/mips/mipsel-glibc/csu/init-first.o
In file included from ../linuxthreads/descr.h:42,
                 from ../linuxthreads/internals.h:29,
                 from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
                 from ../sysdeps/generic/ldsodefs.h:38,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from ../sysdeps/mips/elf/ldsodefs.h:25,
                 from ../sysdeps/unix/sysv/linux/init-first.c:30:
../linuxthreads/sysdeps/mips/pt-machine.h:48: invalid register name for 
`stack_pointer'
In file included from ../sysdeps/unix/sysv/linux/mips/sys/procfs.h:29,
                 from ../linuxthreads_db/proc_service.h:20,
                 from ../linuxthreads_db/thread_dbP.h:7,
                 from ../linuxthreads/descr.h:43,
                 from ../linuxthreads/internals.h:29,
                 from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
                 from ../sysdeps/generic/ldsodefs.h:38,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from ../sysdeps/mips/elf/ldsodefs.h:25,
                 from ../sysdeps/unix/sysv/linux/init-first.c:30:
../sysdeps/unix/sysv/linux/mips/sys/user.h:26:21: asm/reg.h: Datei oder 
Verzeichnis nicht gefunden
In file included from ../sysdeps/unix/sysv/linux/mips/sys/procfs.h:29,
                 from ../linuxthreads_db/proc_service.h:20,
                 from ../linuxthreads_db/thread_dbP.h:7,
                 from ../linuxthreads/descr.h:43,
                 from ../linuxthreads/internals.h:29,
                 from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
                 from ../sysdeps/generic/ldsodefs.h:38,
                 from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                 from ../sysdeps/mips/elf/ldsodefs.h:25,
                 from ../sysdeps/unix/sysv/linux/init-first.c:30:
../sysdeps/unix/sysv/linux/mips/sys/user.h:30: `EF_SIZE' undeclared here (not 
in a function)
../sysdeps/unix/sysv/linux/mips/sys/user.h:41: confused by earlier errors, 
bailing out
make[2]: *** [/home/benmen/mips/mipsel-glibc/csu/init-first.o] Fehler 1
make[2]: Leaving directory `/home/benmen/mips/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Fehler 2
make[1]: Leaving directory `/home/benmen/mips/glibc-2.3.2'
make: *** [all] Fehler 2
Verzeichnis: ~/mips/mipsel-glibc
[benmen@linuxpc1 mipsel-glibc]

The headers including asm/reg.h are located in /home/benmen/mipsel/include ...
the mipsel-linux-gcc + binutils stuff is in /home/benmen/mipsel/bin ...

Thanks for Your help.

regards,

Ben

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Compiling glibc
@ 2004-08-11 10:10 DervishD
  0 siblings, 0 replies; 16+ messages in thread
From: DervishD @ 2004-08-11 10:10 UTC (permalink / raw)
  To: Linux-kernel

    Hi all :)

    Per section 1.8 of the glibc FAQ, I understand that if I build a
glibc using headers from 2.4.26, it not necessarily will run
correctly on 2.4.27. Is this true or this maybe-incompatibility
applies only for releases and not patchlevels (I mean, compiling in a
2.2.x and running on a 2.4.x)?

    I want to build a new version of the glibc (I use 2.2.4 and I
want to upgrade to 2.3.3) and I need the headers of the kernel I'm
running (2.4.26 or .27 in my case) but, where? I mean: should I
install them under /usr/include? Now I have /usr/include/linux and
/usr/include/asm from my old 2.4.10 kernel, back when I built my old
glibc, they're not symlinks to my current kernel headers, as
recommended here a time ago.

    I'm not sure if I have to put kernel headers from 2.4.26 in
/usr/include/linux and /usr/include/asm when building the new library
or after building it. In the glibc FAQ I cannot find an answer.

    Could anyone help? Any help will be greatly appreciated :) Thanks
a lot in advance.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: compiling glibc
@ 2000-03-27 12:01 kd
  0 siblings, 0 replies; 16+ messages in thread
From: kd @ 2000-03-27 12:01 UTC (permalink / raw)
  To: Michael A. Peters; +Cc: linuxppc-dev


There is a patch floating on the linuxppc-dev or linuxppc-embedded mailing
list that fixes this.

You can also fix it your self. There is one comma (,) and one semicolon (;)
missing in the C-ctype.c file.

K.D.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* compiling glibc
@ 2000-03-27  1:38 Michael A. Peters
  2000-03-27 15:09 ` Matt Porter
  0 siblings, 1 reply; 16+ messages in thread
From: Michael A. Peters @ 2000-03-27  1:38 UTC (permalink / raw)
  To: linuxppc-dev


I'm having trouble compiling glibc-2.1.3

I grabbed the source from ftp.gnu.org and added the linux-threads and
crypt add ons. I am building the source from a seperate directory.

When I give the make command, it chews away for awhile- and the exits
with parsing errors on line 379 and 382 of C-ctype.c (in
glibc-2.1.3/locale/)

Those lines are at the very end of that file, but I didn't see any
obvious problem with that file.

I've looked and looked and looked in the FAQ included with the
source, and I can't seem to find the problem.

I'm running LinuxPPC 2000 Lite with all the development packages
added (mostly from fswirl) including

gcc-2.95.2-1i
glibc-2.1.3-5a/glibc-devel-2.1.3-5a
binutils-2.9.5.0.19-0a

My kernel is a 2.2.14 kernel from ftp.kernel.org with the 2.3.50-usb
backport patch, rage128 patch, and mol patch before building.

I've had no problems compiling other stuff, such as gcc-2.95.2 or
binutils-2.95.2-29 from source. I just can't seem to get glibc-2.1.3
to completely build, always giving the parse errors mentioned above
when it quits.

I would appreciate any tips- I'm trying to apply the Linux From
Scratch project and, well, this is what I'm stuck on at the moment...

Thanks, Michael

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-08-11 10:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-09 19:45 compiling glibc Benjamin Menküc
2003-05-09 21:45 ` Thiemo Seufer
2003-05-10  1:03   ` Benjamin Menküc
2003-05-10  4:25     ` Daniel Jacobowitz
2003-05-10  9:56       ` Benjamin Menküc
2003-05-10 11:21         ` Benjamin Menküc
2003-05-10 19:43           ` Daniel Jacobowitz
2003-05-11  0:35             ` Benjamin Menküc
2003-05-11  9:28               ` Guido Guenther
2003-05-11 10:52                 ` Benjamin Menküc
2003-05-11 11:00                   ` Benjamin Menküc
2003-05-11 21:48                     ` Guido Guenther
  -- strict thread matches above, loose matches on Subject: below --
2004-08-11 10:10 Compiling glibc DervishD
2000-03-27 12:01 compiling glibc kd
2000-03-27  1:38 Michael A. Peters
2000-03-27 15:09 ` Matt Porter

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.