Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #38338] need some help

15 views
Skip to first unread message

John Pattison

unread,
Jan 26, 2006, 11:18:01 AM1/26/06
to bugs-bi...@rt.perl.org
# New Ticket Created by "John Pattison"
# Please include the string: [perl #38338]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38338 >


I'm trying tio install Perl-5.6.2 when answering the question for the cc
compiler it keeps bombing out on me....we use gnu's gcc. It live in
/opt/freeware/bin /gcc. attached is the out put from a couple of
attempts.

regards,
John Pattison
Health Alliance Plan.

H.Merijn Brand

unread,
Jan 27, 2006, 2:27:37 AM1/27/06
to perl5-...@perl.org

I see no attached output, which makes it pretty hard to make sensible
comments.

--
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using Perl 5.6.2, 5.8.0, 5.8.5, & 5.9.2 on HP-UX 10.20, 11.00 & 11.11,
AIX 4.3 & 5.2, SuSE 9.2 & 9.3, and Cygwin. http://www.cmve.net/~merijn
Smoking perl: http://www.test-smoke.org, perl QA: http://qa.perl.org
reports to: smokers...@perl.org, per...@perl.org

John Pattison

unread,
Jan 27, 2006, 6:37:04 AM1/27/06
to perlbug-...@perl.org

>>> "H. Merijn Brand via RT" <perlbug-...@perl.org> 1/27/2006
2:27:07 AM >>>

Yitzchak Scott-Thoennes

unread,
Jan 27, 2006, 4:21:32 PM1/27/06
to H.Merijn Brand, perl5-...@perl.org
On Fri, Jan 27, 2006 at 08:27:37AM +0100, H.Merijn Brand wrote:
> On Thu, 26 Jan 2006 08:18:01 -0800, "John Pattison" (via RT)
> <perlbug-...@perl.org> wrote:
>
> > # New Ticket Created by "John Pattison"
> > # Please include the string: [perl #38338]
> > # in the subject line of all future correspondence about this issue.
> > # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38338 >
> >
> >
> > I'm trying tio install Perl-5.6.2 when answering the question for the cc
> > compiler it keeps bombing out on me....we use gnu's gcc. It live in
> > /opt/freeware/bin /gcc. attached is the out put from a couple of
> > attempts.
>
> I see no attached output, which makes it pretty hard to make sensible
> comments.

The attachment appears to be a .doc file, which doesn't make it through
to the mailing list. It's there in RT though.

Andrew Dougherty

unread,
Jan 28, 2006, 11:45:20 AM1/28/06
to Perl Porters

Yes, it has the suffix '.doc', but it doesn't seem to be a valid Microsoft
Word document. I don't know what happened to it.

In any case, I just ran 'strings' on it. Here's the relevant output:

Use which C compiler? [cc] /opt/freeware/bin/gcc
gcc: unrecognized option `-qmaxmem=16384'
gcc: unrecognized option `-qnoansialias'
Checking for GNU cc in disguise and/or its version number...
gcc: `-b' must come at the start of the command line
*** WHOA THERE!!! ***
Your C compiler "/opt/freeware/bin/gcc" doesn't seem to be working!
You'd better start hunting for one and let me know about it.
Use which C compiler? [cc] gcc
Configure[3123]: gcc: not found.
Uh-oh, the C compiler 'gcc' doesn't seem to be working.
You need to find a working C compiler.

Please see the section

=item gcc

in the INSTALL file. In explains how to solve this problem.

If that doesn't work, or if there are further problems, please see the
section

=head1 Reporting Problems

in the INSTALL file.

Hope this helps,

--
Andy Dougherty doug...@lafayette.edu

John Pattison

unread,
Jan 31, 2006, 8:22:14 AM1/31/06
to perlbug-...@perl.org
Thanks!

>>> "Andy Dougherty via RT" <perlbug-...@perl.org> 1/28/2006
11:45:35 AM >>>

H.Merijn Brand

unread,
Jan 31, 2006, 10:34:52 AM1/31/06
to perl5-...@perl.org

I bet you are working on an AIX box.
Besides the fact that almost everything from IBM is causing my major
headaches, detecting the correct C compiler, and its flags is not as
easy as it looks.

Are you in a position to fetch the best appropriate hint fine from

ftp://downloads.activestate.com/pub/apc/perl-current/hints/

aix.sh SH 15 KB 2005.07.26 00:00:00
aix_3.sh SH 11 KB 2004.02.04 00:00:00
aix_4.sh SH 18 KB 2004.08.04 00:00:00

and put it in your hints directory?
If that does not work out of the box, editing these files is probably the
easiest way to get things running

> Checking for GNU cc in disguise and/or its version number...
> gcc: `-b' must come at the start of the command line
> *** WHOA THERE!!! ***
> Your C compiler "/opt/freeware/bin/gcc" doesn't seem to be
> working!
> You'd better start hunting for one and let me know about it.
> Use which C compiler? [cc] gcc
> Configure[3123]: gcc: not found.
> Uh-oh, the C compiler 'gcc' doesn't seem to be working.
> You need to find a working C compiler.
>
> Please see the section
>
> =item gcc
>
> in the INSTALL file. In explains how to solve this problem.
>
> If that doesn't work, or if there are further problems, please see the
>
> section
>
> =head1 Reporting Problems
>
> in the INSTALL file.
>
> Hope this helps,
>


--

John Pattison

unread,
Jan 31, 2006, 10:47:27 AM1/31/06
to perlbug-...@perl.org
The gcc option did not work....I did try this before I sent the original
email.

>>> "H. Merijn Brand via RT" <perlbug-...@perl.org> 1/31/2006
10:35:32 AM >>>

Andy Dougherty

unread,
Jan 31, 2006, 12:30:35 PM1/31/06
to John Pattison, perlbug-...@perl.org
On Tue, 31 Jan 2006, John Pattison wrote:

> The gcc option did not work....I did try this before I sent the original
> email.
>
> >>> "H. Merijn Brand via RT" <perlbug-...@perl.org> 1/31/2006
> 10:35:32 AM >>>
> On Tue, 31 Jan 2006 08:22:14 -0500, "John Pattison" <jpat...@hap.org>
> wrote:

> > Use which C compiler? [cc] /opt/freeware/bin/gcc
> > gcc: unrecognized option `-qmaxmem=16384'
> > gcc: unrecognized option `-qnoansialias'
>
> I bet you are working on an AIX box.
> Besides the fact that almost everything from IBM is causing my major
> headaches, detecting the correct C compiler, and its flags is not as
> easy as it looks.

I think the problem here is that the user tried to select gcc at the
Configure prompt, which comes *after* the hints file has been read. For
many systems, it's actually still ok to change compilers at this point;
that's why Configure allows it. However, for AIX, it isn't. The only
reliable way to get it to work is to specify gcc on the Configure command
line, with Configure -Dcc=gcc . That's what is suggested in the INSTALL
file, and that's apparently what worked.

--
Andy Dougherty doug...@lafayette.edu

Alan Olsen

unread,
Jan 31, 2006, 11:24:49 AM1/31/06
to John Pattison, perlbug-...@perl.org
On Tue, 2006-01-31 at 08:22 -0500, John Pattison wrote:
> Thanks!

Are you on AIX?

You need to pass the compiler location to Configure via the command
line. Don't let Configure try and detect it. It will get it wrong.

Now comes the fun part... Finding how to do that.

Seems there is no list of Configure options anywhere on the
documentation sites. It is assumed that you either have the source
tarball with the INSTALL file or already know it already and that the
coffee has taken effect.

It is not even in the Perl FAQ. (I know ./Configure --help works. It
should still be there in the public docs for those of us who don't want
to download 12 megs to read a frickin INSTALL file.)

Here it is...

/Configure -Dcc=/opt/freeware/bin/gcc

/opt/freeware/bin should be in your path. The IBM rpms include some
pretty old versions, but it should build.

I need to look at the detection code when I can get the time. (Whenever that is...)

Andy Dougherty

unread,
Jan 31, 2006, 1:36:43 PM1/31/06
to Alan Olsen, perlbug-...@perl.org
On Tue, 31 Jan 2006, Alan Olsen wrote:

> On Tue, 2006-01-31 at 08:22 -0500, John Pattison wrote:
> > Thanks!
>
> Are you on AIX?
>
> You need to pass the compiler location to Configure via the command
> line. Don't let Configure try and detect it. It will get it wrong.

On AIX, yes. On other systems, sometimes it will get it right, and
sometimes it will not.

> Now comes the fun part... Finding how to do that.
>
> Seems there is no list of Configure options anywhere on the
> documentation sites. It is assumed that you either have the source
> tarball with the INSTALL file or already know it already and that the
> coffee has taken effect.
>
> It is not even in the Perl FAQ. (I know ./Configure --help works. It
> should still be there in the public docs for those of us who don't want
> to download 12 megs to read a frickin INSTALL file.)

I'm confused. If you're trying to run Configure to build and install
perl, then you *already have* the INSTALL file. You don't need to go and
download it again.

This ticket should be closed. The problem is already solved.

--
Andy Dougherty doug...@lafayette.edu

Steve Peters via RT

unread,
Jan 31, 2006, 2:34:36 PM1/31/06
to perl5-...@perl.org
> [doughera - Tue Jan 31 10:38:53 2006]:

> This ticket should be closed. The problem is already solved.
>

Is everything discussed in this thread already in the README.aix file?
If not, it should probably be added.


Alan Olsen

unread,
Jan 31, 2006, 2:42:10 PM1/31/06
to perlbug-...@perl.org, perl5-...@perl.org

It is not in 5.8.7. Not certain if it has been added to later versions
of the file.

Andy Dougherty

unread,
Feb 1, 2006, 12:42:24 PM2/1/06
to Perl Porters

It's already in the INSTALL file; I don't see the point of duplicating it
in all the README.* files. However, I suppose the following update to the
README.aix would be in order:

--- perl-5.8.8/README.aix Tue Jun 7 13:33:19 2005
+++ perl-5.8.8-andy/README.aix Wed Feb 1 12:36:00 2006
@@ -46,7 +46,7 @@
Upgrading to at least 5.0.2.0 is recommended.

If you decide to use gcc, make sure your installation is recent and
-complete, and be sure to read the Perl README file for more gcc-specific
+complete, and be sure to read the Perl INSTALL file for more gcc-specific
details. Please report any hoops you had to jump through to the development
team.

--
Andy Dougherty doug...@lafayette.edu

0 new messages