Compaq CXX compiler ebuild error

"Brian Parkhurst" <[email protected]>
Newsgroups gmane.linux.gentoo.alpha
Message-ID <065f01c41547$aadc92a0$3301a8c0@ICHIRO>
I've found a typo or simple error in the ebuild process for the Compaq CXX
compiler installation.
I believe this error was introduced by the GCC ver 3.3.3.

After a succesful emerge the compaq CXX compiler you are told to run:

ebuild /var/db/pkg/dev-lang/cxx-6.5.9.31-r1/cxx-6.5.9.31-r1.ebuild config

The error:

Warning: unknown distribution
Gentoo Base System version 1.4.3.13p1
Error: gcc -V 3.3.3 failed to compile and link "int main(int argc, char
**argv) {return 0;}".
       The ccc installation expects a working installation of GCC.
gcc: `-V' must come at the start of the command line
Aborting

If you can correct the problem, you can rerun this script manually
by entering a command in the following format:

    create-comp-config.sh cxx-version [gcc-path]

The current invocation of create-comp-config.sh was:

/usr/lib/compaq/cxx-6.5.9.31/alpha-linux/bin/create-comp-config.sh
cxx-6.5.9.31

End of error:
-----------------------------

The line in the create-comp-config.sh script had the following:

#
# What header and lib dirs should we be using? The ones that the specified
# version of gcc is using ...
#
PGM="int main(int argc, char **argv) {return 0;}"
echo "$PGM" > /tmp/${PREFIX}_install$$.c
GCC_VER=`basename $GCC_PATH`
env -i PATH=$PATH gcc -v -V $GCC_VER /tmp/${PREFIX}_install$$.c \
           -o /tmp/${PREFIX}_install$$ > /tmp/${PREFIX}_install$$.log 2>&1
|| {
    cat - /tmp/${PREFIX}_install$$.log <<- EOF 1>&2
        Error: gcc -V $GCC_VER failed to compile and link "$PGM".
               The ccc installation expects a working installation of GCC.
        EOF
    aborting

All that is needed to fix this bug is to move the verbose flag after the
Version flag..  ( gcc-V $GCC_VER -v)
the ebuild then completed successfully.

Brian Parkhurst
Systems Programmer
University of Washington

www.pyrobrian.com


--
[email protected] mailing list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.