Opened 9 years ago

Last modified 9 years ago

#49004 closed defect

glew: Apple clang 7.0 hangs on compiling glew.c — at Version 1

Reported by: howarth.at.macports@… Owned by: jmr@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: glew

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The Apple clang 7.0 compiler from Xcode 7.0.1 hangs on compiling...

/usr/bin/clang -DGLEW_NO_GLU -DGLEW_BUILD -O2 -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -arch x86_64 -fPIC  -o tmp/darwin/default/shared/glew.o -c src/glew.c

The workaround is to use the attached Portfile.diff which changes the optimization from -O2 to -Os in ${worksrcpath}/config/Makefile.darwin which is the fix used in fink's glew package.

Change History (2)

Changed 9 years ago by howarth.at.macports@…

Attachment: Portfile.diff added

compile at -Os to avoid clang hang in Xcode 7

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jmr@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to jmr@…
Summary: Apple clang 7.0 hangs on compiling glew.cglew: Apple clang 7.0 hangs on compiling glew.c

The bug is really that the glew port is not honoring the MacPorts value for configure.optflags (which is -Os by default).

Note: See TracTickets for help on using tickets.