Hi,

I'm trying to build kolab, which uses the OpenPKG system, on an HP A500 
PA-RISC 2.0 server, running Debian Sarge.
The A500 uses a 64bit-kernel, but as far as I understand, only the kernel is 
64bit. In other words, the 64bit compiler and linker is only used to compile 
kernels and kernel modules, while a 32bit compiler linker is used for 
everything else.

As part of the kolab install, OpenPKG tries to compile and install the 
binutils package (version 2.16 - as of the current 2.1 development server). 
After compiling and installing this package, all the configure scripts that 
are called by OpenPKG for all subsequent packages fail.

The first package after binutils is gcc-4.0.2 - and the configure script fails 
with:

+ ../configure --cache-file=./config.cache 
--srcdir=/kolab/RPM/TMP/gcc-4.0.2/obj/.. --prefix=/kolab --exec-pres
loading cache ./config.cache
checking host system type... hppa64-unknown-linux-gnu
checking target system type... hppa64-unknown-linux-gnu
checking build system type... hppa64-unknown-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... cc
checking whether the C compiler (cc  ) works... no
configure: error: installation or configuration problem: C compiler cannot 
create executables.
error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.46442 (%build)

Checking the /kolab/RPM/TMP/gcc-4.0.2/obj/config.log file reveals the 
following error:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1808: checking for gcc
configure:1921: checking whether the C compiler (cc  ) works
configure:1937: cc -o conftest    conftest.c  1>&5
/usr/lib/gcc-lib/hppa-linux/3.3.5/../../../crt1.o: file not recognized: File 
format not recognized
collect2: ld returned 1 exit status
configure: failed program was:

#line 1932 "configure"
#include "confdefs.h"

main(){return(0);}

According to the parisc-linux mailing list, the problem with crt1.o is 
indicative of a 64bit linker trying to link anything but a kernel or kernel 
module. In other words, it seems OpenPKG has generated a 64bit ld, instead of 
a 32bit ld, as would've been necessary.

Two questions:
- Is this behavior intentional?
- Is there a way for me to patch OpenPKG, so it generates a 32bit linker on 
the 64bit hppa-linux kernel?

Thanks so much for any hints...

        Kai
-- 
Hofstadter's Law:
  "It always takes longer than you expect,
   even when you take into account Hofstadter's Law."
                             -- Douglas R. Hofstadter

kmh.AT.sonic.net

Check out Mission Octagon - a new, exciting novel!
http://www.missionoctagon.com

Attachment: pgpiqJ0EqCog3.pgp
Description: PGP signature

Reply via email to