Ticket #1074 (new bug)

Opened 12 years ago

Last modified 12 years ago

Parrot fails to build with gcc when using --optimize on OpenSolaris

Reported by: carlin Owned by:
Priority: normal Milestone:
Component: configure Version: 1.6.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform: solaris

Description

Parrot will not build on OpenSolaris with GCC if --optimize is used. This happens with both gcc 3.4.3 (the default gcc package on Solaris) and gcc 4.3.2.

The output is a bit unwieldy (and I'm not sure what's relevant and what isn't) so I have pasted the output in a pastebin:

 Parrot's Configure errors

 Parrot's make errors

 Configure working as expected without --optimize

Attachments

opensol.txt Download (12.4 KB) - added by whiteknight 12 years ago.
Configure.pl results as of r44592

Change History

Changed 12 years ago by doughera

On Tue, 29 Sep 2009, Parrot wrote:

>  Parrot will not build on OpenSolaris with GCC if --optimize is used.

The problem is that a plain "--optimize" picks up the optimization flags 
from perl.  On OpenSolaris, the system perl is compiled with Sun's 
compiler, and the optimization flags are  -xO3 -xspace -xildoff.
On your system, however, you have gcc installed and the first 'cc' in your 
$PATH is actually GNU c, which doesn't understand the Solaris flags.

A workaround is to explicitly give the optimization flags you 
want, e.g.

	perl Configure.pl --optimize=-O2

Another is to rearrange your $PATH so that Sun's cc is first in your PATH.

At root, this is essentially the same problem as TT #1044.  If 
Configure.pl detects a different compiler than that used to build the 
supporting perl, it should not blindly go and use the old flags settings 
anyway.

-- 
    Andy Dougherty		doughera@lafayette.edu

Changed 12 years ago by doughera

  • component changed from none to configure

Changed 12 years ago by whiteknight

Configure.pl results as of r44592

Changed 12 years ago by whiteknight

This problem still occurs as of r44592, nearly 5 months after the original report. I've included output of my Configure.pl command, and can run other tests as needed.

Changed 12 years ago by coke

  • owner set to coke

Changed 12 years ago by coke

  • owner coke deleted
Note: See TracTickets for help on using tickets.