* when using the Compaq C compiler, the cflag -ieee is needed else you get an error building libiberty. I changed the gcc34.spec to read: l_libcflags="-g -ieee". Obviously this is only needed when using the Compaq C compiler (not when you already have a gcc build).
* Tru64 has no GNU as/ld. So I had to set with_binutils=no. Using a platform check in the spec would be cleaner I guess.
This got me until the install phase, where I bumped into problems with install-sh again. Apparently the Makefile uses INSTALL=../install-sh, however as soon as the 'make install' moves in another directory, the install-sh script isn't found anymore. I manually changed the Makefile and put the full path to the install-sh script in the INSTALL= variable.
2 ways to fix this, I think... either use a subst to put the full path to install-sh in the Makefile, or have a build dependency to coreutils, which has a proper 'install' binary. (I haven't tried this last option yet... hope to do this tomorrow).
Install failure:
Executing(%install): env -i /tmp/openpkg/lib/openpkg/bash --norc --noprofile --posix -e /tmp/openpkg/RPM/TMP/rpm-tmp.24894
+ cd /tmp/openpkg/RPM/TMP
+ cd gcc-3.4-20040414
+ rm -rf /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root
++ ./config.guess
+ triple=alphaev68-dec-osf5.1
++ ./config.sub alphaev68-dec-osf5.1
+ triple=alphaev68-dec-osf5.1
+ cd obj
+ /tmp/openpkg/bin/make --no-print-directory install DESTDIR=/tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root
/bin/sh ../mkinstalldirs /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg
mkdir /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root
mkdir /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp
mkdir /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg
/bin/sh ../../gcc/mkinstalldirs /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/lib/gcc34/alphaev68-dec-osf5.1/3.4.0
mkdir -p -- /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/lib/gcc34/alphaev68-dec-osf5.1/3.4.0
/bin/sh ../../gcc/mkinstalldirs /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/libexec/gcc34/gcc/alphaev68-dec-osf5.1/3.4.0
mkdir -p -- /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/libexec/gcc34/gcc/alphaev68-dec-osf5.1/3.4.0
/bin/sh ../../gcc/mkinstalldirs /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin
mkdir -p -- /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin
/bin/sh ../../gcc/mkinstalldirs /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/include/gcc34
mkdir -p -- /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/include/gcc34
/bin/sh ../../gcc/mkinstalldirs /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/info
mkdir -p -- /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/info
/bin/sh ../../gcc/mkinstalldirs /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/lib
/bin/sh ../../gcc/mkinstalldirs /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/man/man1
mkdir -p -- /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/man/man1
/bin/sh ../../gcc/mkinstalldirs /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/man/man7
mkdir -p -- /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/man/man7
rm -f /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin/g++
../install-sh -c g++ /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin/g++
make[1]: ../install-sh: Command not found
make[1]: [c++.install-common] Error 127 (ignored)
chmod a+x /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin/g++
chmod: /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin/g++: No such file or directory
make[1]: [c++.install-common] Error 4 (ignored)
rm -f /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin/c++
( cd /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin && \
ln g++ c++ )
g++: No such file or directory
make[1]: [c++.install-common] Error 1 (ignored)
if [ -f cc1plus ] ; then \
if [ -f g++-cross ] ; then \
if [ -d /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/lib/gcc34/alphaev68-dec-osf5.1/3.4.0/../../../../alphaev68-dec-osf5.1/bin/. ] ; then \
rm -f /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/lib/gcc34/alphaev68-dec-osf5.1/3.4.0/../../../../alphaev68-dec-osf5.1/bin/g++; \
../install-sh -c g++-cross /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/lib/gcc34/alphaev68-dec-osf5.1/3.4.0/../../../../alphaev68-dec-osf5.1/bin/g++; \
rm -f /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/lib/gcc34/alphaev68-dec-osf5.1/3.4.0/../../../../alphaev68-dec-osf5.1/bin/c++; \
( cd /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/lib/gcc34/alphaev68-dec-osf5.1/3.4.0/../../../../alphaev68-dec-osf5.1/bin && \
ln g++ c++ ); \
else true; fi; \
else \
rm -f /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin/alphaev68-dec-osf5.1-g++; \
( cd /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin && \
ln g++ alphaev68-dec-osf5.1-g++ ); \
rm -f /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin/alphaev68-dec-osf5.1-c++; \
( cd /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/bin && \
ln c++ alphaev68-dec-osf5.1-c++ ); \
fi ; \
fi
g++: No such file or directory
c++: No such file or directory
make[1]: [c++.install-common] Error 1 (ignored)
for file in cc1 cc1plus; do \
if [ -f $file ] ; then \
rm -f /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/libexec/gcc34/gcc/alphaev68-dec-osf5.1/3.4.0/$file; \
../install-sh -c $file /tmp/openpkg/RPM/TMP/gcc34-3.4s20040414-root/tmp/openpkg/libexec/gcc34/gcc/alphaev68-dec-osf5.1/3.4.0/$file; \
else true; \
fi; \
done
/bin/sh: ../install-sh: not found
/bin/sh: ../install-sh: not found
make[1]: *** [install-common] Error 1
make: *** [install-gcc] Error 2
+ exit 2
error: Bad exit status from /tmp/openpkg/RPM/TMP/rpm-tmp.24894 (%install)
RPM build errors: Bad exit status from /tmp/openpkg/RPM/TMP/rpm-tmp.24894 (%install) ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List [EMAIL PROTECTED]
