Full_Name: Martin Sperl
Version: 1.2
OS: Tru64
Submission from: (NULL) (62.178.145.10)
Hi!
We have got a Problem bootstrapping gcc for Alpha-Tru64...
We know that gcc3.2.1 does not bootstrap on Tru64, se we decided to use the
version 3.02 from OpenPKG 1.0. But as far as looking at the spec files I see
that if gcc3.2 would compile then the problem would be the same.
Now to the basic facts:
rpm -ba gcc.spec
<GCC and the lib compile>
We get as far as this:
fi
+ exit 0
Executing(%install): env -i /cw/lib/openpkg/bash --norc --noprofile --posix -e
/cw/RPM/TMP/rpm-tmp.31622
+ cd /cw/RPM/TMP
+ cd gcc-3.0.2
+ rm -rf /cw/RPM/TMP/gcc-3.0.2-root
++ ./config.guess
+ triple=alphaev67-dec-osf5.1
++ ./config.sub alphaev67-dec-osf5.1
++ sed -e 's;-unknown-;--;'
+ triple=alphaev67-dec-osf5.1
+ cd obj
++ find . -name Makefile -type f -print
+ /cw/lib/openpkg/rpmtool subst -v -s 's;^\(prefix[ ]*=\).*;\1
/cw/RPM/TMP/gcc-3.0.2-root/cw;' 's;^\(exec_prefix[ ]*=\).*;\1
/cw/RPM/TMP/gcc-3.0.2-root/cw;' 's;^\(gcc_gxx_include_dir[ ]*=\).*;\1
/cw/RPM/TMP/gcc-3.0.2-root/cw/include/g++;' 's;^\(gxx_include_dir[ ]*=\).*;\1
/cw/RPM/TMP/gcc-3.0.2-root/cw/include/g++;' 's;^\(glibcppinstalldir[
]*=\).*;\1 /cw/RPM/TMP/gcc-3.0.2-root/cw/include/g++;' 's;^\(local_prefix[
]*=\).*;\1 /cw/RPM/TMP/gcc-3.0.2-root/cw/lib/gcc-lib;' --
./alphaev67-dec-osf5.1/libstdc++-v3/Makefile
./alphaev67-dec-osf5.1/libstdc++-v3/include/Makefile
./alphaev67-dec-osf5.1/libstdc++-v3/src/Makefile
./alphaev67-dec-osf5.1/libstdc++-v3/libmath/Makefile
./alphaev67-dec-osf5.1/libstdc++-v3/libio/Makefile
./alphaev67-dec-osf5.1/libstdc++-v3/libsupc++/Makefile
./alphaev67-dec-osf5.1/libstdc++-v3/testsuite/Makefile
./alphaev67-dec-osf5.1/libiberty/Makefile
./alphaev67-dec-osf5.1/libiberty/testsuite/Makefile ./libiberty/Makefile
./libiberty/testsuite/Makefile ./Makefile ./gcc/intl/Makefile ./gcc/po/Makefile
./gcc/Makefile ./gcc/fixinc/Makefile
rpmtool:Error: unknown command /cw/lib/openpkg/rpmtool -h' for usage
error: Bad exit status from /cw/RPM/TMP/rpm-tmp.31622 (%install)
RPM build errors:
Bad exit status from /cw/RPM/TMP/rpm-tmp.31622 (%install)
The error-script looks like this:
#!env -i /cw/lib/openpkg/bash --norc --noprofile --posix
HOME="/cw"
SHELL="/cw/lib/openpkg/bash"
TERM="xterm"
TMPDIR="/cw/RPM/TMP"
TEMPDIR="/cw/RPM/TMP"
USER="root"
LOGNAME="root"
PATH="/cw/bin:/cw/sbin:/bin:/sbin:/usr/bin:/usr/sbin"
LD_LIBRARY_PATH="/cw/lib:/usr/lib"
export HOME SHELL TMPDIR TEMPDIR USER LOGNAME PATH LD_LIBRARY_PATH
RPM_SOURCE_DIR="/cw/RPM/SRC/gcc"
RPM_BUILD_DIR="/cw/RPM/TMP"
RPM_OPT_FLAGS="-O2"
RPM_ARCH="alpha"
RPM_OS="osf"
RPM_DOC_DIR="/cw/doc"
RPM_PACKAGE_NAME="gcc"
RPM_PACKAGE_VERSION="3.0.2"
RPM_PACKAGE_RELEASE="1.0.0"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_DOC_DIR
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/cw/RPM/TMP/gcc-3.0.2-root"
export RPM_BUILD_ROOT
:
umask 022
set -x
cd /cw/RPM/TMP
cd gcc-3.0.2
rm -rf
triple=
triple=
cd obj
# redirect to temporary build root
/cw/lib/openpkg/rpmtool subst -v -s "s;^\(prefix[ ]*=\).*;\1 /cw;"
"s;^\(exec_prefix[ ]*=\).*;\1 /cw;" "s;^\(gcc_gxx_include_dir[
]*=\).*;\1
/cw/include/g++;" "s;^\(gxx_include_dir[ ]*=\).*;\1
/cw/include/g++;" "s;^\(glibcppinstalldir[ ]*=\).*;\1
/cw/include/g++;" "s;^\(local_prefix[ ]*=\).*;\1 /cw/lib/gcc-lib;"
--
# make sure the install procedure doesn't compile anything
# (or else we would have wrong paths hard-coded in the programs)
/cw/lib/openpkg/rpmtool subst -v -s 's;^install-cpp:.*;install-cpp:;'
's;^install-common:.*;install-common: installdirs lang.install-common;'
's;^install-driver:.*;install-driver:;'
's;^install-libgcc:.*;install-libgcc: installdirs;'
's;^install-build:.*;install-build:;'
's;^install-collect2:.*;install-collect2: installdirs;'
's;^install-assert-h:.*;install-assert-h: installdirs;' 's;^install: stmp-dirs
./libgcc.a;install: stmp-dirs;' 's;^\(install-.*:.*\) all *\(.*\)$;\1\2;'
-- gcc/Makefile gcc/libgcc.mk gcc/*/Makefile
# make sure the Makefiles are not re-generated
for file in ; do
( echo "#!/bin/sh"
echo ":"
) >
done
# run the standard installation procedure
/cw/bin/make --no-print-directory install
# strip the installation
mv /cw//include/* /cw/lib/gcc-lib//3.0.2/include/ >/dev/null 2>&1 ||
true
rm -rf /cw/
rm -f /cw/lib/*.la
rm -f /cw/bin/*-gcc
rm -f /cw/bin/*-c++
rm -f /cw/bin/*-g++
strip /cw/bin/* >/dev/null 2>&1 || true
for prog in cc1 cc1plus collect2 cpp; do
strip /cw/lib/gcc-lib//3.0.2/ >/dev/null 2>&1
|| true
done
# make additional links
ln /cw/bin/gcc /cw/bin/cc
ln /cw/man/man1/gcc.1 /cw/man/man1/cc.1
ln /cw/man/man1/g++.1 /cw/man/man1/c++.1
# create file list
/cw/lib/openpkg/rpmtool files -v -o/gcc-3.0.2/files
-r '%defattr(-,cw,cw)' '/cw' '%not %dir
{/cw,/cw/*,/cw/etc/rc.d,/cw/man/*}'
exit 0
And the strange thing is that compiling the same thing on an Intel box with
Redhat8.0 works and gives a different command: shtool instead of rpmtool...
+ /cw/lib/openpkg/shtool subst -v -s -e 's;^\(prefix[ ]*=\).*;\1
/cw/RPM/TMP/g
cc-3.2.1-root/cw;' -e 's;^\(exec_prefix[ ]*=\).*;\1
/cw/RPM/TMP/gcc-3.2.1
-root/cw;' -e 's;^\(gcc_gxx_include_dir[ ]*=\).*;\1
/cw/RPM/TMP/gcc-3.2.1
-root/cw/include/g++;' -e 's;^\(gxx_include_dir[ ]*=\).*;\1
/cw/RPM/TMP/g
cc-3.2.1-root/cw/include/g++;' -e 's;^\(glibcppinstalldir[ ]*=\).*;\1
/cw/R
PM/TMP/gcc-3.2.1-root/cw/include/g++;' -e 's;^\(local_prefix[ ]*=\).*;\1
/cw/R
PM/TMP/gcc-3.2.1-root/cw/lib/gcc-lib;'
./i686-pc-linux-gnu/libstdc++-v3/Makefile
./i686-pc-linux-gnu/libstdc++-v3/include/Makefile
./i686-pc-linux-gnu/libstdc++
-v3/src/Makefile ./i686-pc-linux-gnu/libstdc++-v3/libmath/Makefile
./i686-pc-lin
ux-gnu/libstdc++-v3/libio/Makefile
./i686-pc-linux-gnu/libstdc++-v3/libsupc++/Ma
kefile ./i686-pc-linux-gnu/libstdc++-v3/po/Makefile
./i686-pc-linux-gnu/libstdc+
+-v3/testsuite/Makefile ./i686-pc-linux-gnu/libiberty/Makefile
./i686-pc-linux-g
nu/libiberty/testsuite/Makefile ./Makefile ./libiberty/Makefile
./libiberty/test
suite/Makefile ./gcc/Makefile ./gcc/intl/Makefile ./gcc/fixinc/Makefile
So rpm acts differently when used on Tru64 and on Linux...
Have you got an explaination for this behaviour?
Thanks,
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [EMAIL PROTECTED]