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

Re: more on Ccc install problem (fixed it)



Oops. I just realized it's gcc-3.3 that won't take -v and -V at the
same time. gcc-2.95 WILL fine though. I simply changed the symlink
in /usr/bin for gcc to point to gcc-2.95 and it ran correctly!

Hehehe.


On Tue, May 27, 2003 at 07:20:24PM -0400, Timothy Timmons wrote:
> I must admit I don't really know what I'm doing, but it seems to me
> you CAN'T run gcc with both -v and -V at the same time. 
> 
> LX:~# gcc -v -V 2.95.4
> gcc: `-V' must come at the start of the command line
> LX:~# gcc -V 2.95.4 -v
> gcc: couldn't run `alpha-linux-gcc-2.95.4': No such file or directory
> LX:~# gcc -V 2.95.4
> gcc: couldn't run `alpha-linux-gcc-2.95.4': No such file or directory
> 
> Also it would appear the -V option is broken by itself too, but again
> it could need something else I don't know about. Either that, or the
> current gcc-2.95/alpha in unstable is broken.
> 
> I don't really know what to try next.
> 
> -Tim
> 
> 
> 
> On Tue, May 27, 2003 at 06:48:11PM -0400, Timothy Timmons wrote:
> > 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.
> > > 
> > > 
> > > 
> > 
> > 
> > -- 
> > To UNSUBSCRIBE, email to debian-alpha-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> > 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-alpha-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 



Reply to: