Opened 9 years ago

Closed 9 years ago

#49004 closed defect (fixed)

glew: Apple clang 7.0 takes a long time to compile glew.c

Reported by: howarth.at.macports@… Owned by: jmroot (Joshua Root)
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.

Attachments (1)

Portfile.diff (523 bytes) - added by howarth.at.macports@… 9 years ago.
compile at -Os to avoid clang hang in Xcode 7

Download all attachments as: .zip

Change History (5)

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).

comment:2 Changed 9 years ago by howarth.at.macports@…

Only in the sense that it would mask the new compilation bug in Apple clang 7.0.

comment:3 Changed 9 years ago by jmroot (Joshua Root)

Summary: glew: Apple clang 7.0 hangs on compiling glew.cglew: Apple clang 7.0 takes a long time to compile glew.c

Doesn't hang, just takes a lot longer than it should.

comment:4 Changed 9 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.