Mark BROKEN: Fails to build

with gcc 4.7:
/wrkdirs/usr/ports/games/spring/work/spring_94.1/rts/Rendering/GL/myGL.cpp:368:62: error: invalid conversion from 'void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, GLvoid*) {aka void (*)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, void*)}' to 'GLDEBUGPROCARB {aka void (*)(unsigned int, unsigned int, unsigned int, unsigned int, int, const char*, const void*)}' [-fpermissive]

with clang 3.3:
/wrkdirs/usr/ports/games/spring/work/spring_94.1/rts/Rendering/GL/myGL.cpp:368:29: error: cannot initialize a parameter of type 'GLDEBUGPROCARB' (aka 'void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *, const void *)') with an rvalue of type 'void (*)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *, GLvoid *)': type mismatch at 7th parameter ('const void *' vs 'GLvoid *' (aka 'void *'))
                glDebugMessageCallbackARB(&OpenGLDebugMessageCallback, NULL);
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

with clang 3.4.1:
cd /wrkdirs/usr/ports/games/spring/work/spring_94.1/rts/lib/squish && /usr/bin/c++   -DBOOST_NO_FENV_H -DSPRING_DATADIR=\"/usr/local/share/spring\" -DSTREFLOP_SSE -DSYNCCHECK -DUSE_LIBSQUISH -O2 -pipe -fno-strict-aliasing            -fsingle-precision-constant -frounding-math -mieee-fp -pipe -fno-strict-aliasing  -fvisibility=hidden  -fvisibility-inlines-hidden -pthread                                     -DNDEBUG -I/usr/local/include -I/wrkdirs/usr/ports/games/spring/work/spring_94.1/rts -I/wrkdirs/usr/ports/games/spring/work/spring_94.1/rts/lib/squish -o CMakeFiles/squish.dir/alpha.cpp.o -c /wrkdirs/usr/ports/games/spring/work/spring_94.1/rts/lib/squish/alpha.cpp
c++: error: unknown argument: '-fsingle-precision-constant'

Reported by:	pkg-fallout
This commit is contained in:
Antoine Brodin 2014-09-13 21:17:19 +00:00
parent d3f2c4f767
commit e04ea497b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368142

View File

@ -22,6 +22,7 @@ LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
libexecinfo.so:${PORTSDIR}/devel/libexecinfo
BUILD_DEPENDS= 7z:${PORTSDIR}/archivers/p7zip
BROKEN= Fails to build
# XXX: it should be possible to build it on i386, investigate
# (currently link fails on undefined reference to __sync_fetch_and_add_8)
ONLY_FOR_ARCHS= amd64