Opened 3 years ago

Closed 3 years ago

#64616 closed defect (fixed)

glm fails for ppc on 10.6.8 invoking a wrong compiler: #error "GLM requires GCC 4.6 or higher"

Reported by: barracuda156 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: powerpc, snowleopard, rosetta Cc:
Port: glm

Description (last modified by barracuda156)

The log has following errors:

error: #error "GLM requires GCC 4.6 or higher"
error: #error "GLM_COMPILER undefined, your compiler may not be supported by GLM. Add #define GLM_COMPILER 0 to ignore this message."

I have gcc7 and gcc6 installed, it should have tried using those. Instead, gcc-4.2.1 is invoked, which fails.

In fact port file permits that, banning only early clang:

compiler.blacklist {clang < 600}

Instead gcc < 4.6 must be blacklisted as well.

Attachments (1)

main.log (31.8 KB) - added by barracuda156 3 years ago.

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 3 years ago by barracuda156

Description: modified (diff)

comment:2 Changed 3 years ago by barracuda156

After I added this to the port file:

compiler.blacklist  {clang < 600} gcc-4.0 gcc-4.2
compiler.whitelist macports-gcc-7

glm built successfully:

Sergey-Fedorovs-Mac-mini:source svacchanda$ port -v installed glm
The following ports are currently installed:
  glm @0.9.9.8_0 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-02-06T20:48:44+0800'

comment:3 Changed 3 years ago by evanmiller (Evan Miller)

Typically the whitelist will not be necessary. You might try just

compiler.blacklist  {clang < 600} *gcc-4.*

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

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 7d25cc9fb7eb3b8a0448dfdafa471b93f3fb116c/macports-ports (master):

glm: Blacklist old compilers

Closes: #64616

Note: See TracTickets for help on using tickets.