New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34002 (closed defect: fixed)

Opened 2 years ago

Last modified 10 months ago

octave-gsl @1.0.8 is using gcc46 and shouldn't be

Reported by: liampg72@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: michaelld@…
Port: octave-gsl

Description (last modified by ryandesign@…) (diff)

octave-gsl fails at the configure stage due to "-arch i386" flags being passed to g++-mp-4.6.

:info:configure g++-mp-4.6: error: i386: No such file or directory
:info:configure g++-mp-4.6: error: unrecognized option '-arch'

I have tried lot's of things to remove these flags but I don't think I'm experienced enough in writing Portfiles to solve this problem... Can anybody help please?

Cheers,
Liam

Attachments

octave-gsl-debug.txt (87.8 KB) - added by liampg72@… 2 years ago.
debug output
main.log (94.8 KB) - added by liampg72@… 2 years ago.
log file

Change History

Changed 2 years ago by liampg72@…

debug output

Changed 2 years ago by liampg72@…

log file

comment:1 follow-up: ↓ 2 Changed 2 years ago by ryandesign@…

  • Description modified (diff)
  • Summary changed from octave-gsl @1.0.8 configure error "-arch i386" need to be removed to octave-gsl @1.0.8 is using gcc46 and shouldn't be

Please remember to use WikiFormatting.

The octave-gsl portfile makes no mention of gcc46; why is that compiler being used? Is octave-gsl perhaps inheriting the compiler from the gsl port?

Indeed, the log shows "Using compiler 'Mac OS X gcc 4.0'". That's why MacPorts is adding the -arch flags: because it believes it's going to be using a compiler that supports them. The problem that needs to be fixed is that octave-gsl is using gcc46 at all, not that -arch flags are being passed to it.

comment:2 in reply to: ↑ 1 Changed 2 years ago by liampg72@…

Replying to ryandesign@…:

Please remember to use WikiFormatting.

The octave-gsl portfile makes no mention of gcc46; why is that compiler being used? Is octave-gsl perhaps inheriting the compiler from the gsl port?

Indeed, the log shows "Using compiler 'Mac OS X gcc 4.0'". That's why MacPorts is adding the -arch flags: because it believes it's going to be using a compiler that supports them. The problem that needs to be fixed is that octave-gsl is using gcc46 at all, not that -arch flags are being passed to it.

During the configure step, mkoctfile (built by the octave-devel port) is called to get the CC, CXX, etc flags from the octave installation. As octave-devel was built with +gcc46 (CXX=g++-mp-4.6), this is what is returned. It's here in the configure stage that it complains. octave-gsl basically inherits the compiler from the octave(-devel) port, and that uses gcc46!

comment:3 Changed 10 months ago by michaelld@…

  • Status changed from new to closed
  • Resolution set to fixed

Please do:

sudo port selfupdate

and then try installing it again. Should be fixed with r114034.

Note: See TracTickets for help on using tickets.