I just installed gcc35 with gcc enable, attempted to compile binutils
and got the error below, note, ls -l /openpkg/bin/cc (below)

# ls -l /openpkg/bin/cc
-rwxr-xr-x   2 opkg     opkg       94560 Apr 28 03:29 /openpkg/bin/cc

# openpkg rpm --rebuild binutils-2.14-20040207.src.rpm
Installing binutils-2.14-20040207.src.rpm
Executing(%prep): env -i /openpkg/lib/openpkg/bash --norc --noprofile
--posix -e
 /openpkg/RPM/TMP/rpm-tmp.6250
+ 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.16245
+ cd /openpkg/RPM/TMP
+ cd binutils-2.14
+ CC=/openpkg/bin/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 '/openpkg/bin/cc -o conftest -O2 -pipe -DOPENPKG_OS_SOLARIS
 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
error: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.16245 (%build)


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


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

Reply via email to