|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi,
I'm trying to built an optimized commandline version of Povray 3.6.1 based
on the latest unix tarball on a 2GHz Powermac G5 running OSX 10.3.7.
In order to optimize for the G5, my gcc compiler flags are -O3 -mcpu=G5
-mtune=G5 -mpowerpc-gpopt -mpowerpc64
Compilation is successful, however running povray -benchmark results in a
segmentation fault at the very beginning of execution.
The reason of the segmentation fault seems to be the -mpowerpc64
optimization flag. If I compile without -mpowerpc64, everything is working
fine and I get a benchmark of 36 minutes.
Is the 3.6.1 source not compatible with the mpowerpc64 flag?
Because this flag is turned on when compiling with -fast (this turns on
various optimization flags), I get also a segmentation fault.
My gcc compiler is:
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1671)
Any idea?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
popov wrote:
> In order to optimize for the G5, my gcc compiler flags are -O3 -mcpu=G5
> -mtune=G5 -mpowerpc-gpopt -mpowerpc64
>
> Compilation is successful, however running povray -benchmark results in a
> segmentation fault at the very beginning of execution.
>
> The reason of the segmentation fault seems to be the -mpowerpc64
> optimization flag. If I compile without -mpowerpc64, everything is working
> fine and I get a benchmark of 36 minutes.
>
> Is the 3.6.1 source not compatible with the mpowerpc64 flag?
The flag -mpowerpc64 is simply wrong in this context. I recommend you read
and understand the Apple developer documentation or don't build POV-Ray
yourself. It is not feasible to explain a topic like this in newsgroup posting.
Thorsten
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thorsten Froehlich <tho### [at] trfde> wrote:
> popov wrote:
> > In order to optimize for the G5, my gcc compiler flags are -O3 -mcpu=G5
> > -mtune=G5 -mpowerpc-gpopt -mpowerpc64
> >
> > Compilation is successful, however running povray -benchmark results in a
> > segmentation fault at the very beginning of execution.
> >
> > The reason of the segmentation fault seems to be the -mpowerpc64
> > optimization flag. If I compile without -mpowerpc64, everything is working
> > fine and I get a benchmark of 36 minutes.
> >
> > Is the 3.6.1 source not compatible with the mpowerpc64 flag?
>
> The flag -mpowerpc64 is simply wrong in this context. I recommend you read
> and understand the Apple developer documentation or don't build POV-Ray
> yourself. It is not feasible to explain a topic like this in newsgroup posting.
>
> Thorsten
Hmm, according to Apple Technical Note TN2086, the mpowerpc64 flag enables
the g5's native 64-bit long long support for greatly enhanced performance
when working with long long. It is common practice to use this flag on the
G5.
If -mpowerpc64 is simply wrong, -fast is also simply wrong because it turns
mpowerpc64 on.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|