Hi,

I'd thought I'd let you all know that the glibc package hasn't been
building on the alpha platform for some time now. The latest version I
got compiling was 2.1.3-17mdk.

The problem looks as follows: Building the package exits with the
following error message:

running configure fragment for ../linuxthreads/sysdeps/unix/sysv/linux
running configure fragment for ../sysdeps/unix/sysv/linux/alpha
checking installed Linux kernel header files... TOO OLD!
configure: error: GNU libc requires kernel header files from
Linux 2.1.100 or later to be installed before configuring.
The kernel header files are found usually in /usr/include/asm and
/usr/include/linux; make sure these directories use files from
Linux 2.1.100 or later.  This check uses <linux/version.h>, so
make sure that file was built correctly when installing the kernel
header
files.  To use kernel headers not from /usr/include/linux, use the
configure option --with-headers.
Bad exit status from /users/cooker/tmp/rpm-tmp.25062 (%build)

Full buildoutput is available at:
http://d10179.dtk.chello.nl/build/cooker/alpha/problem/glibc-2.2-4mdk.src.rpm.txt

I've rebuilt the current rawhide (redhat) glibc package, and it went
fine (except for the fact that they use gzip to compress man pages,
resulting in a few "file not found"'s).

The problem lies in the fact that mandrake calls:

BuildFlags="-march=%{_target_cpu} -D__USE_STRING_INLINES
-fstrict-aliasing -mcpu=%{_target_cpu} -freorder-blocks -DNDEBUG=1"  

the -march=%{_target_cpu} and -mcpu=%{_target_cpu} cause this error.
Leaving them away lets the package build normally.

Could glibc be updated so it will build again on the alpha?

Attached is a suggestion on how this can be done.

http://d10179.dtk.chello.nl/build/fixes/cooker/glibc-2.2-5mdk.src.rpm
http://d10179.dtk.chello.nl/build/fixes/cooker/glibc.spec
http://d10179.dtk.chello.nl/build/fixes/cooker/glibc.spec.diff
http://d10179.dtk.chello.nl/build/fixes/cooker/glibc.spec.orig

Thanks!!

Stefan
--- glibc.spec.orig     Sat Nov 18 14:43:21 2000
+++ glibc.spec  Sun Nov 19 08:06:56 2000
@@ -1,5 +1,5 @@
 %define version        2.2
-%define release 4mdk
+%define release 5mdk
 %define serial 6
 %define url            ftp://sourceware.cygnus.com/pub/glibc/releases/
 
@@ -147,7 +147,11 @@
 mkdir build-%{_target_cpu}-linux ; cd build-%{_target_cpu}-linux
 
 %ifnarch ppc
+%ifarch alpha
+BuildFlags="-D__USE_STRING_INLINES -fstrict-aliasing -freorder-blocks -DNDEBUG=1"
+%else
 BuildFlags="-march=%{_target_cpu} -D__USE_STRING_INLINES -fstrict-aliasing 
-mcpu=%{_target_cpu} -freorder-blocks -DNDEBUG=1"
+%endif
 
 CC=gcc CFLAGS="$BuildFlags -g -O3" ../configure --prefix=%{_prefix} \
        --enable-add-ons=yes --without-cvs $EnableKernel \
@@ -417,6 +421,9 @@
 /usr/sbin/nscd_nischeck
 
 %changelog
+* Sun Nov 19 2000 Stefan van der Eijk <[EMAIL PROTECTED]> 2.2-5mdk
+- added ifarch alpha for modified BuildFlags for alpha
+
 * Thu Nov 16 2000 Frederic Lepied <[EMAIL PROTECTED]> 2.2-4mdk
 - don't strip ld-2.2.so
 - use sash in %%pre because bash needs the libc...

Reply via email to