1 |
I've found a typo or simple error in the ebuild process for the Compaq CXX |
2 |
compiler installation. |
3 |
I believe this error was introduced by the GCC ver 3.3.3. |
4 |
|
5 |
After a succesful emerge the compaq CXX compiler you are told to run: |
6 |
|
7 |
ebuild /var/db/pkg/dev-lang/cxx-6.5.9.31-r1/cxx-6.5.9.31-r1.ebuild config |
8 |
|
9 |
The error: |
10 |
|
11 |
Warning: unknown distribution |
12 |
Gentoo Base System version 1.4.3.13p1 |
13 |
Error: gcc -V 3.3.3 failed to compile and link "int main(int argc, char |
14 |
**argv) {return 0;}". |
15 |
The ccc installation expects a working installation of GCC. |
16 |
gcc: `-V' must come at the start of the command line |
17 |
Aborting |
18 |
|
19 |
If you can correct the problem, you can rerun this script manually |
20 |
by entering a command in the following format: |
21 |
|
22 |
create-comp-config.sh cxx-version [gcc-path] |
23 |
|
24 |
The current invocation of create-comp-config.sh was: |
25 |
|
26 |
/usr/lib/compaq/cxx-6.5.9.31/alpha-linux/bin/create-comp-config.sh |
27 |
cxx-6.5.9.31 |
28 |
|
29 |
End of error: |
30 |
----------------------------- |
31 |
|
32 |
The line in the create-comp-config.sh script had the following: |
33 |
|
34 |
# |
35 |
# What header and lib dirs should we be using? The ones that the specified |
36 |
# version of gcc is using ... |
37 |
# |
38 |
PGM="int main(int argc, char **argv) {return 0;}" |
39 |
echo "$PGM" > /tmp/${PREFIX}_install$$.c |
40 |
GCC_VER=`basename $GCC_PATH` |
41 |
env -i PATH=$PATH gcc -v -V $GCC_VER /tmp/${PREFIX}_install$$.c \ |
42 |
-o /tmp/${PREFIX}_install$$ > /tmp/${PREFIX}_install$$.log 2>&1 |
43 |
|| { |
44 |
cat - /tmp/${PREFIX}_install$$.log <<- EOF 1>&2 |
45 |
Error: gcc -V $GCC_VER failed to compile and link "$PGM". |
46 |
The ccc installation expects a working installation of GCC. |
47 |
EOF |
48 |
aborting |
49 |
|
50 |
All that is needed to fix this bug is to move the verbose flag after the |
51 |
Version flag.. ( gcc-V $GCC_VER -v) |
52 |
the ebuild then completed successfully. |
53 |
|
54 |
Brian Parkhurst |
55 |
Systems Programmer |
56 |
University of Washington |
57 |
|
58 |
www.pyrobrian.com |
59 |
|
60 |
|
61 |
-- |
62 |
gentoo-alpha@g.o mailing list |