Skip to contentSkip to conversation

building glibc

Linux-ia64 Alan Au 4 participants 5 messages Aug 16, 2000 – Aug 17, 2000

lore
Share & tools
lore

Alan Au

author
#0 lore raw

Hi,

I'm having trouble building glibc. I'm using the current turbolinux SRPM, glibc-2.1.3-hjl000629p1.src.rpm.

My build environment is HP's NUE.
After applying all the patches, doing configure and then make, I get:

....

make -C misc subdir_lib
make[2]: Entering directory /home/alanau/src/glibc/glibc-2.1-hjl/misc' make[2]: *** No rule to make target /home/alanau/glibc-build/misc/mincore.o', needed by `/home/alanau/glibc-build/misc/stamp.o'. Stop.
make[2]: Leaving directory `/home/alanau/src/glibc/glibc-2.1-hjl/misc' make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/home/alanau/src/glibc/glibc-2.1-hjl'
make: *** [all] Error 2

Does anyone know what the problem is? Has anyone successfully built these sources from within NUE?

Thanks.

Alan
__________
[email protected]
School of Computer Science and Engineering
University of New South Wales

#1 lore raw
Quoted 10 lines · Alan Au

Hi,

I'm having trouble building glibc. I'm using the current turbolinux SRPM, glibc-2.1.3-hjl000629p1.src.rpm.

My build environment is HP's NUE.
After applying all the patches, doing configure and then make, I get:

....

Quoted 10 lines

make -C misc subdir_lib
make[2]: Entering directory /home/alanau/src/glibc/glibc-2.1-hjl/misc' make[2]: *** No rule to make target /home/alanau/glibc-build/misc/mincore.o', needed by `/home/alanau/glibc-build/misc/stamp.o'. Stop.
make[2]: Leaving directory `/home/alanau/src/glibc/glibc-2.1-hjl/misc' make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/home/alanau/src/glibc/glibc-2.1-hjl'
make: *** [all] Error 2

Your kernel header files are too old.

Signature · 1 line
H.J. Lu ([email protected])
author
#2 lore raw
In reply to Alan Au
Quoted 1 line · H . J . Lu

Your kernel header files are too old.

Thanks. You were right.

It gets a bit furthur now but gets the following error:

make[2]: Entering directory `/home/alanau/src/glibc/glibc-2.1-hjl/sunrpc'
/home/alanau/glibc-build/elf/ld-linux.so.2 --library-path /home/alanau/glibc-build:/home/alanau/glibc-build/math:/home/alanau/glibc-build/elf:/home/alanau/glibc-build/nss:/home/alanau/glibc-build/nis:/home/alanau/glibc-build/db2:/home/alanau/glibc-build/rt:/home/alanau/glibc-build/resolv /home/alanau/glibc-build/sunrpc/rpcgen -Y `gcc -print-file-name=cpp | sed
"s|/cpp$||"` -c rpcsvc/bootparam_prot.x -o
/home/alanau/glibc-build/sunrpc/xbootparam_prot.T
doSyscall: unimplemented system call 1212
/home/alanau/glibc-build/sunrpc/rpcgen: error in loading shared
libraries: /home/alanau/glibc-build/sunrpc/rpcgen: cannot stat shared
object: Error 38
make[2]: *** [/home/alanau/glibc-build/sunrpc/xbootparam_prot.stmp] Error
127

In fact, get the same error if I invoke the newly built ld.so directly:

bash$ pwd
/home/alanau/glibc-build/elf
bash$ ./ld.so ~/tmp/a.out
doSyscall: unimplemented system call 1212 /home/alanau/tmp/a.out: error in loading shared
libraries: /home/alanau/tmp/a.out: cannot stat shared object: Error 38

Not sure if this is an NUE problem.

Thanks.

Alan
__________
[email protected]
School of Computer Science and Engineering
University of New South Wales

#3 lore raw
In reply to Alan Au
Quoted 14 lines · Alan Au

It gets a bit furthur now but gets the following error:

make[2]: Entering directory `/home/alanau/src/glibc/glibc-2.1-hjl/sunrpc'
/home/alanau/glibc-build/elf/ld-linux.so.2 --library-path /home/alanau/glibc-build:/home/alanau/glibc-build/math:/home/alanau/glibc-build/elf:/home/alanau/glibc-build/nss:/home/alanau/glibc-build/nis:/home/alanau/glibc-build/db2:/home/alanau/glibc-build/rt:/home/alanau/glibc-build/resolv /home/alanau/glibc-build/sunrpc/rpcgen -Y `gcc -print-file-name=cpp | sed
"s|/cpp$||"` -c rpcsvc/bootparam_prot.x -o
/home/alanau/glibc-build/sunrpc/xbootparam_prot.T
doSyscall: unimplemented system call 1212
/home/alanau/glibc-build/sunrpc/rpcgen: error in loading shared
libraries: /home/alanau/glibc-build/sunrpc/rpcgen: cannot stat shared
object: Error 38
make[2]: *** [/home/alanau/glibc-build/sunrpc/xbootparam_prot.stmp] Error
127

I saw this when building glibc on 2.4.0-test1 kernels when IA-64 patch introduced new stat/fstat/lstat interfaces. You need an extra patch (included below courtesy of David M) which solves the problem.

Uros

--
Uros Prestor
[email protected]

unix/sysv/linux/ia64/syscalls.list renamed from unix/sysv/linux/ia64/syscalls.list~ +3 -3
@@ -72,11 +72,11 @@
 s_getdents	getdents getdents	3	__syscall_getdents	getdents
 
 # System calls with wrappers.
-sys_fstat	fxstat	fstat		2	__syscall_fstat
-sys_lstat	lxstat	lstat		2	__syscall_lstat
+sys_fstat	fxstat	old_fstat	2	__syscall_fstat
+sys_lstat	lxstat	old_lstat	2	__syscall_lstat
 sys_mknod	xmknod	mknod		3	__syscall_mknod
 sys_readv	readv	readv		3	__syscall_readv
-sys_stat	xstat	stat		2	__syscall_stat
+sys_stat	xstat	old_stat	2	__syscall_stat
 sys_writev	writev	writev		3	__syscall_writev
 s_getpagesize	getpagesize getpagesize	0	__syscall_getpagesize
 s_poll		poll	poll		3	__syscall_poll
#4 lore raw
In reply to Alan Au
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Uros Prestor

Uros> I saw this when building glibc on 2.4.0-test1 kernels when Uros> IA-64 patch introduced new stat/fstat/lstat interfaces. You Uros> need an extra patch (included below courtesy of David M) which Uros> solves the problem.

Yes, that should fix the problem. We should also update the simulator to support the new system calls. I'll put it on my todo list.

	--david