[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: more on Ccc install problem



Below is the full output, I however believe I see what the problem is..

These two lines:

+ env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 gcc -v -V 2.95.4

and later gcc returns this:

gcc: `-V' must come at the start of the command line

Hehehe.

I'll try changing that in the script and see what happens.

Thanks



LX:~# sh -x /usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/create-comp-config.sh ccc-6.5.9.001-6 
/usr/lib/gcc-lib/alpha-linux/2.95.4 |less
+ SAVE_PROG_NAME=/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/create-comp-config.sh
+ SAVE_ARGS=ccc-6.5.9.001-6 /usr/lib/gcc-lib/alpha-linux/2.95.4
+ CCC_VERSION=ccc-6.5.9.001-6
+ '[' ccc-6.5.9.001-6 = '' ']'
+ GCC_PATH=/usr/lib/gcc-lib/alpha-linux/2.95.4
++ dirname /usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/create-comp-config.sh
+ . /usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/probe_linux.sh init
-bash: less: command not found
++ probe_dist
++ DIST_OS=UNKNOWN
++ DIST_VENDOR=UNKNOWN
++ DIST_FILES=
++ '[' -r '/etc/*-release' ']'
++ '[' -r /etc/debian_version ']'
++ DIST_FILES= /etc/debian_version
++ '[' '!' ' /etc/debian_version' = '' ']'
++ DIST_OS=Linux
++ '[' -r /etc/kondara-release ']'
++ '[' -r /etc/redhat-release ']'
++ '[' -r /etc/SuSE-release ']'
++ '[' -r /etc/turbolinux-release ']'
++ '[' -r /etc/debian_version ']'
++ DIST_VENDOR=debian
++ echo ccc-6.5.9.001-6
++ cut -b 1-3
+ PREFIX=ccc
+ '[' ccc '!=' cxx -a ccc '!=' ccc ']'
+ '[' ccc = cxx ']'
+ PROD_NAME=C
+ CCC_ROOT=/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux
+ echo 'Installed as ccc-6.5.9.001-6'
+ '[' debian = UNKNOWN ']'
+ cat /etc/debian_version
+ check_gcc_usage
+ '[' /usr/lib/gcc-lib/alpha-linux/2.95.4 = '' ']'
+ '[' '!' -r /usr/lib/gcc-lib/alpha-linux/2.95.4/specs ']'
+ PGM=int main(int argc, char **argv) {return 0;}
+ echo 'int main(int argc, char **argv) {return 0;}'
++ basename /usr/lib/gcc-lib/alpha-linux/2.95.4
+ GCC_VER=2.95.4
+ env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 gcc -v -V 2.95.4 
/tmp/ccc_install10006.c -o /tmp/ccc_install10006
+ cat - /tmp/ccc_install10006.log
Error: gcc -V 2.95.4 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
+ cleanup
+ rm -f /tmp/ccc_install10006 /tmp/ccc_install10006.c /tmp/ccc_install10006.log
+ '[' ccc = cxx ']'
+ cat
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 ccc-version [gcc-path]

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

/usr/lib/compaq/ccc-6.5.9.001-6/alpha-linux/bin/create-comp-config.sh ccc-6.5.9.001-6 
/usr/lib/gcc-lib/alpha-linux/2.95.4
+ exit 1


On Wed, May 28, 2003 at 12:37:54AM +0200, Ionut Georgescu wrote:
> Try putting 'sh -x' in front of the command. Pipe it into less or
> something, to see what the darn thing is actually trying to do.
> 
> 
> 



Reply to: