public inbox for gentoo-alpha@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-alpha] Compaq CXX compiler ebuild error
@ 2004-03-29  4:38 Brian Parkhurst
  2004-04-02 14:46 ` Aron Griffis
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Parkhurst @ 2004-03-29  4:38 UTC (permalink / raw
  To: gentoo-alpha

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


--
gentoo-alpha@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-alpha] Compaq CXX compiler ebuild error
  2004-03-29  4:38 [gentoo-alpha] Compaq CXX compiler ebuild error Brian Parkhurst
@ 2004-04-02 14:46 ` Aron Griffis
  2004-04-02 16:33   ` Brian Parkhurst
  0 siblings, 1 reply; 4+ messages in thread
From: Aron Griffis @ 2004-04-02 14:46 UTC (permalink / raw
  To: gentoo-alpha

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

Brian Parkhurst wrote:	[Sun Mar 28 2004, 11:38:19PM EST]
> 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.

I believe this is already fixed in ccc-6.5.9.001-r3.ebuild.  Could you
try that please?

Regards,
Aron

--
Aron Griffis
Gentoo Linux Developer (alpha / ia64 / mozilla / mutt / ruby / vim)
Key fingerprint = E3B6 8734 C2D6 B5E5 AE76  FB3A 26B1 C5E3 2010 4EB0


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [gentoo-alpha] Compaq CXX compiler ebuild error
  2004-04-02 14:46 ` Aron Griffis
@ 2004-04-02 16:33   ` Brian Parkhurst
  0 siblings, 0 replies; 4+ messages in thread
From: Brian Parkhurst @ 2004-04-02 16:33 UTC (permalink / raw
  To: 'Aron Griffis', gentoo-alpha

I'll give that a try...

Brian..

-----Original Message-----
From: Aron Griffis [mailto:agriffis@gentoo.org] 
Sent: Friday, April 02, 2004 6:47 AM
To: gentoo-alpha@lists.gentoo.org
Subject: Re: [gentoo-alpha] Compaq CXX compiler ebuild error


Brian Parkhurst wrote:	[Sun Mar 28 2004, 11:38:19PM EST]
> 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.

I believe this is already fixed in ccc-6.5.9.001-r3.ebuild.  Could you try
that please?

Regards,
Aron

--
Aron Griffis
Gentoo Linux Developer (alpha / ia64 / mozilla / mutt / ruby / vim) Key
fingerprint = E3B6 8734 C2D6 B5E5 AE76  FB3A 26B1 C5E3 2010 4EB0



--
gentoo-alpha@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [gentoo-alpha] Compaq CXX compiler ebuild error
@ 2004-04-02 22:17 Donsbach, Jeff
  0 siblings, 0 replies; 4+ messages in thread
From: Donsbach, Jeff @ 2004-04-02 22:17 UTC (permalink / raw
  To: Aron Griffis, gentoo-alpha


I have also found that the cxx ebuild is not setting the Include file
paths correctly in comp.config. It doesn't seem to have some of the gcc
include directories.

Every program I tried (including the build in "test" program) that
included "stddef.h" failed.

I went and had a look at how the ccc ebuild file was setting it and
copied that and have managed to get it to work. Not sure if what I did
was correct though. But it has worked for me so far.

Could any of this be due to the "unknown distribution" warnings you get
when installing (and subsequent weird -D definitions)?

Jeff D


-----Original Message-----
From: Aron Griffis [mailto:agriffis@gentoo.org] 
Sent: Friday, April 02, 2004 9:47 AM
To: gentoo-alpha@lists.gentoo.org
Subject: Re: [gentoo-alpha] Compaq CXX compiler ebuild error


Brian Parkhurst wrote:	[Sun Mar 28 2004, 11:38:19PM EST]
> 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.

I believe this is already fixed in ccc-6.5.9.001-r3.ebuild.  Could you
try that please?

Regards,
Aron

--
Aron Griffis
Gentoo Linux Developer (alpha / ia64 / mozilla / mutt / ruby / vim) Key
fingerprint = E3B6 8734 C2D6 B5E5 AE76  FB3A 26B1 C5E3 2010 4EB0


--
gentoo-alpha@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-02 22:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-29  4:38 [gentoo-alpha] Compaq CXX compiler ebuild error Brian Parkhurst
2004-04-02 14:46 ` Aron Griffis
2004-04-02 16:33   ` Brian Parkhurst
  -- strict thread matches above, loose matches on Subject: below --
2004-04-02 22:17 Donsbach, Jeff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox