So a temporary work around was to install binutils binary, next, I compile
gcc35 and install that, ln -s /openpkg/bin/gcc35 /usr/ccs/bin/cc to link
cc to gcc.  Next, I attempted to rebuild binutils with openpkg's gcc and
the result is below.  I know it's only binutils and I can use the binary,
but just curious why I'm running into such problems with binutils.


- Mike


# openpkg rpm --rebuild binutils-2.14-2.0.0.src.rpm
Installing binutils-2.14-2.0.0.src.rpm
Executing(%prep): env -i /openpkg/lib/openpkg/bash --norc --noprofile
--posix -e
 /openpkg/RPM/TMP/rpm-tmp.23682
+ cd /openpkg/RPM/TMP
+ cd /openpkg/RPM/TMP
+ rm -rf binutils-2.14
+ /openpkg/lib/openpkg/bzip2 -dc
/openpkg/RPM/SRC/binutils/binutils-2.14.tar.bz2
+ /openpkg/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd binutils-2.14
+ echo 'Patch #0 (binutils.patch):'
Patch #0 (binutils.patch):
+ /openpkg/lib/openpkg/patch -p0 -s -b
+ exit 0
Executing(%build): env -i /openpkg/lib/openpkg/bash --norc --noprofile
--posix -
e /openpkg/RPM/TMP/rpm-tmp.17747
+ cd /openpkg/RPM/TMP
+ cd binutils-2.14
+ CC=cc
+ export CC
+ CFLAGS=-O2 -pipe
+ export CFLAGS
+ CFLAGS=-O2 -pipe -DOPENPKG_OS_SOLARIS
+ ./configure --prefix=/openpkg
creating cache ./config.cache
checking host system type... i386-pc-solaris2.9
checking target system type... i386-pc-solaris2.9
checking build system type... i386-pc-solaris2.9
/openpkg/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
*** The command 'cc -o conftest -O2 -pipe -DOPENPKG_OS_SOLARIS
conftest.c' fai
led.
*** You must set the environment variable CC to a working compiler.
error: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.17747 (%build)


RPM build errors:
    Bad exit status from /openpkg/RPM/TMP/rpm-tmp.17747 (%build)


______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to