Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#12144 closed enhancement (fixed)

octave 2.9.9: use gcc42

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: stechert@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), stechert@…
Port:

Description

I don't use octave; I'm looking through all ports that depend on gcc40 trying to determine if they could be updated to use the latest stable version of gcc, which is gcc42. If octave will work with gcc42, the port should be updated to do so. It would be very unfortunate for someone to have to build both gcc40 to build octave and gcc42 to build some other port, especially since that requirement would only hit those in the worst shape for building huge packages like gcc -- those with PowerPC Macs, which on average have less RAM, less hard drive space, and are much slower at these kinds of things than Intel Macs.

Patch attached to update octave to use gcc42 all the time, not just on Intel. Note that I have not tested this patch; please do so before committing.

Attachments (2)

octave-gcc42.diff (1.5 KB) - added by ryandesign (Ryan Carsten Schmidt) 17 years ago.
octave-gcc42-2.diff (756 bytes) - added by ryandesign (Ryan Carsten Schmidt) 16 years ago.
updated version of patch

Download all attachments as: .zip

Change History (10)

Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: octave-gcc42.diff added

comment:1 Changed 17 years ago by yaseppochi (Stephen J. Turnbull)

Not to worry about PowerPC Macs. GCC 4.2 still doesn't build on them anyway, see #12060. This has been broken in DarwinPorts/MacPorts for maybe a year now. I first reported it on Mac OS X 10.3.9. I thought maybe odcctools would help but they're broken too, reporting separately.

comment:2 Changed 17 years ago by yaseppochi (Stephen J. Turnbull)

Oops, sorry, the correct reference is #12219.

comment:3 Changed 17 years ago by nox@…

Priority: ExpectedNormal
Type: defectenhancement
Version: 1.4.42

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Looking in #12219, we see that gcc42 installs just fine on PowerPC Macs, so the original request in this ticket remains. Can the maintainer please comment?

Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: octave-gcc42-2.diff added

updated version of patch

comment:5 Changed 16 years ago by bfulgham@…

Attempting to build octave with gcc42 under Leopard (Intel) continues to fail, even with Ryan's patch:

adding -mieee-fp to FFLAGS configure: defining FFLAGS to be -O -mieee-fp checking whether gfortran-mp-4.2 /opt/local/bin/gfortran-mp-4.2 accepts -ffloat-store... yes setting F77_FLOAT_STORE_FLAG to -ffloat-store checking for sgemm_ in -framework Accelerate... yes checking for cheev_... yes checking BLAS library calling convention compatibility... no configure: WARNING: Your BLAS library was apparently compiled with a Fortran configure: WARNING: compiler that uses a different calling convention from configure: WARNING: the one used by the selected compiler, gfortran-mp-4.2 /opt/local/bin/gfortran-mp-4.2. configure: error: You must correct this problem before building Octave.

comment:6 Changed 16 years ago by bfulgham@…

Note that the new 2.9.17 version seems to build better under Leopard.

comment:7 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

The maintainer has indicated that he's busy with other things at this time, and since we've gotten several problem reports about octave lately, I'll see if I can't fix it up.

Committing this patch to use gcc42 in r31183. Updating octave to a newer version will be handled in #12937.

comment:8 Changed 15 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.