1. Coin3D
  2. Coin
Issue #45 closed

Coin Fails to build on OS X 10.8 Mavericks with clang, gcc-4.9, or gcc-4.7

DropD
created an issue

Building Coin according to the instructions in README.MACOSX fails on OS X 10.8 (Mavericks). The output of the following commands are pasted below for each compiler

  • ./configure
  • make

Please feel free to instruct me on how to provide more information or on how to format issues (it feels weird to paste those full outputs directly here).

configure output for clang

$ ../../configure

checking build system type... x86_64-apple-darwin13.0.0 checking host system type... x86_64-apple-darwin13.0.0 checking target system type... x86_64-apple-darwin13.0.0 checking setup for wrapmsvc.exe... not a cygwin host checking for distcheck mode... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether we should build Universal Binaries... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking whether to enable maintainer-specific portions of Makefiles... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking OS X deployment target... checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether gfortran accepts -g... yes checking the maximum length of command line arguments... 196608 checking command to parse /usr/bin/nm output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking for dsymutil... dsymutil checking for nmedit... nmedit checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fno-common checking if gcc PIC flag -fno-common works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld (cached) (cached) checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for gfortran option to produce PIC... -fno-common checking if gfortran PIC flag -fno-common works... yes checking if gfortran static flag -static works... no checking if gfortran supports -c -o file.o... yes checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld (cached) (cached) checking how to hardcode library paths into programs... immediate checking if the C++ compiler environment is ok... true checking if the compiler handles for() loops in inlined constructors... yes checking if the compiler handles switch statements in virtual destructors... yes checking if this is a version of GCC with a known nasty optimization bug... false checking for builtin_expect()... found checking if assert() uses builtin_expect()... yes checking for function name variable for CPP compiler... func checking for function name variable for C compiler... func checking whether gcc accepts -no-cpp-precomp... no checking for Win32 threads... false checking for POSIX threads... -D_REENTRANT -lpthread checking the struct timespec resolution... nsecs checking for unistd.h... (cached) yes checking for sys/types.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking io.h usability... no checking io.h presence... no checking for io.h... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking direct.h usability... no checking direct.h presence... no checking for direct.h... no checking for strings.h... (cached) yes checking ieeefp.h usability... no checking ieeefp.h presence... no checking for ieeefp.h... no checking for flex file adjustments... none checking for tlhelp32.h... no checking for _splitpath()... not found checking if the Win32 API is available... no checking for sys/unistd.h... yes checking for IN_PATH define conflict... no checking for netinet/in.h... true checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for sys/types.h... (cached) yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking standard bytesize typedefs... available checking for fstat() function... available checking for BSD 4.3 isinf() function... available checking for BSD 4.3 isnan() function... available checking for BSD 4.3 finite() function... available checking for fpclass() function... not available checking for _fpclass() function... not available checking type of timeval::tv_sec... darwin_time_t checking type of timeval::tv_usec... darwin_suseconds_t checking for perl... /usr/bin/perl checking for dpkg-buildpackage... false checking if user is simian... probably not checking whether gcc accepts -W... yes checking whether gcc accepts -Wall... yes checking whether gcc accepts -Wno-unused... yes checking whether gcc accepts -Wno-multichar... yes checking whether g++ accepts -W... yes checking whether g++ accepts -Wall... yes checking whether g++ accepts -Wno-unused... yes checking whether g++ accepts -Wno-multichar... yes checking whether g++ accepts -Woverloaded-virtual... yes checking for project release status... beta / inbetween releases checking whether gcc accepts -fno-builtin... yes checking whether g++ accepts -fno-builtin... yes checking whether g++ accepts -fno-for-scoping... yes checking whether gcc accepts -finline-functions... yes checking whether g++ accepts -finline-functions... yes checking whether gcc accepts -Wreturn-type... yes checking whether g++ accepts -Wreturn-type... yes checking whether gcc accepts -Wchar-subscripts... yes checking whether g++ accepts -Wchar-subscripts... yes checking whether gcc accepts -Wparentheses... yes checking whether g++ accepts -Wparentheses... yes checking whether snprintf() is available... yes checking whether vsnprintf() is available... yes checking for va_copy() stdarg macro... yes checking whether quoting in macros can be done with hash symbol... yes checking for GetEnvironmentVariable() function... no checking for timeGetTime() function... no checking for MessageBox() function... no checking for QueryPerformanceCounter() function... no checking for _ftime() function... no checking for ftime() function... yes checking for _getcwd() function... no checking for getcwd() function... yes checking for gettimeofday() function... yes checking for strncasecmp() function... yes checking for memmove() function... available checking for bcopy() function... available checking for _logb() function... no checking mach-o/dyld.h usability... yes checking mach-o/dyld.h presence... yes checking for mach-o/dyld.h... yes checking whether we can use Mach-O dyld... yes checking for dlfcn.h... (cached) yes checking for the dl library... yes checking for math functions library... no explicit linkage necessary checking for ilogb() function... yes checking for X... no checking if X11 linkage is ready... false checking whether gcc accepts -framework OpenGL... yes checking how to include gl.h... #include <OpenGL/gl.h> checking for OpenGL library dev-kit... -Wl,-framework,OpenGL checking how to include glext.h... #include <OpenGL/glext.h> checking whether CGL is on the system... true checking how to include glu.h... #include <OpenGL/glu.h> checking if GLU is available as part of GL library... true checking for shared library suffix... .dylib checking for cmp... Yes checking for __declspec() support... not available configure: creating ./config.status config.status: creating src/Coin.rc config.status: creating Makefile config.status: creating bin/Makefile config.status: creating include/Makefile config.status: creating include/Inventor/Makefile config.status: creating include/Inventor/C/Makefile config.status: creating include/Inventor/C/XML/Makefile config.status: creating include/Inventor/C/base/Makefile config.status: creating include/Inventor/C/errors/Makefile config.status: creating include/Inventor/C/glue/Makefile config.status: creating include/Inventor/C/threads/Makefile config.status: creating include/Inventor/VRMLnodes/Makefile config.status: creating include/Inventor/XML/Makefile config.status: creating include/Inventor/actions/Makefile config.status: creating include/Inventor/bundles/Makefile config.status: creating include/Inventor/caches/Makefile config.status: creating include/Inventor/collision/Makefile config.status: creating include/Inventor/details/Makefile config.status: creating include/Inventor/draggers/Makefile config.status: creating include/Inventor/elements/Makefile config.status: creating include/Inventor/engines/Makefile config.status: creating include/Inventor/errors/Makefile config.status: creating include/Inventor/events/Makefile config.status: creating include/Inventor/fields/Makefile config.status: creating include/Inventor/lists/Makefile config.status: creating include/Inventor/lock/Makefile config.status: creating include/Inventor/manips/Makefile config.status: creating include/Inventor/misc/Makefile config.status: creating include/Inventor/navigation/Makefile config.status: creating include/Inventor/nodekits/Makefile config.status: creating include/Inventor/nodes/Makefile config.status: creating include/Inventor/projectors/Makefile config.status: creating include/Inventor/sensors/Makefile config.status: creating include/Inventor/system/Makefile config.status: creating include/Inventor/threads/Makefile config.status: creating include/Inventor/tools/Makefile config.status: creating include/Inventor/scxml/Makefile config.status: creating include/Inventor/annex/Makefile config.status: creating include/Inventor/annex/HardCopy/Makefile config.status: creating include/Inventor/annex/ForeignFiles/Makefile config.status: creating include/Inventor/annex/FXViz/Makefile config.status: creating include/Inventor/annex/FXViz/elements/Makefile config.status: creating include/Inventor/annex/FXViz/nodes/Makefile config.status: creating include/Inventor/annex/Profiler/Makefile config.status: creating include/Inventor/annex/Profiler/elements/Makefile config.status: creating include/Inventor/annex/Profiler/engines/Makefile config.status: creating include/Inventor/annex/Profiler/nodes/Makefile config.status: creating include/Inventor/annex/Profiler/nodekits/Makefile config.status: creating include/Inventor/annex/Profiler/utils/Makefile config.status: creating data/Makefile config.status: creating data/draggerDefaults/Makefile config.status: creating data/shaders/Makefile config.status: creating data/shaders/lights/Makefile config.status: creating data/shaders/vsm/Makefile config.status: creating data/scxml/Makefile config.status: creating data/scxml/navigation/Makefile config.status: creating man/Makefile config.status: creating man/man1/Makefile config.status: creating man/man3/Makefile config.status: creating html/Makefile config.status: creating src/Makefile config.status: creating src/base/Makefile config.status: creating src/actions/Makefile config.status: creating src/bundles/Makefile config.status: creating src/caches/Makefile config.status: creating src/collision/Makefile config.status: creating src/details/Makefile config.status: creating src/draggers/Makefile config.status: creating src/elements/Makefile config.status: creating src/elements/GL/Makefile config.status: creating src/engines/Makefile config.status: creating src/errors/Makefile config.status: creating src/events/Makefile config.status: creating src/fields/Makefile config.status: creating src/fonts/Makefile config.status: creating src/glue/Makefile config.status: creating src/io/Makefile config.status: creating src/manips/Makefile config.status: creating src/misc/Makefile config.status: creating src/rendering/Makefile config.status: creating src/lists/Makefile config.status: creating src/navigation/Makefile config.status: creating src/nodekits/Makefile config.status: creating src/nodes/Makefile config.status: creating src/projectors/Makefile config.status: creating src/3ds/Makefile config.status: creating src/sensors/Makefile config.status: creating src/upgraders/Makefile config.status: creating src/shapenodes/Makefile config.status: creating src/threads/Makefile config.status: creating src/extensions/Makefile config.status: creating src/vrml97/Makefile config.status: creating src/hardcopy/Makefile config.status: creating src/shaders/Makefile config.status: creating src/shadows/Makefile config.status: creating src/geo/Makefile config.status: creating src/foreignfiles/Makefile config.status: creating src/xml/Makefile config.status: creating src/xml/expat/Makefile config.status: creating src/profiler/Makefile config.status: creating src/scxml/Makefile config.status: creating src/soscxml/Makefile config.status: creating src/doc/Makefile config.status: creating testsuite/Makefile config.status: creating cfg/gendsp.pl config.status: creating src/discard.h config.status: creating src/config.h config.status: creating src/setup.h config.status: executing depfiles commands

Coin configuration settings: Library version: 4.0.0a Build Universal Binaries: No (default) Generate Java wrapper: No (default) 3ds import capabilities: No (enable with --enable-3ds-import) Use system expat: No (default) javascript capabilities: Yes nodekit support: Yes dragger support: Yes manipulator support: Yes VRML97 support: Yes System threads API: POSIX Thread safe traversals: No (enable with --enable-threadsafe) simage linkage: run-time binding OpenAL support: Yes, run-time binding Sound support: Yes Fontconfig support: Yes, run-time binding SpiderMonkey support: Yes, run-time binding FreeType library: Yes, run-time binding zlib support: Yes, run-time binding bzip2 support: Yes, run-time binding GLU linkage: run-time binding, part of GL library Coin build type: Mac OS X framework

make output for clang

$ make

config.status: creating include/Inventor/C/basic.h config.status: creating include/Inventor/system/gl-headers.h.new config.status: creating include/Inventor/system/inttypes.h config.status: creating coin-default.cfg config.status: creating Info.plist config.status: creating version.plist /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in . config.status: creating Coin.pc Making all in bin make[2]: Nothing to be done for all'. Making all in include Making all in Inventor Making all in C /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in XML make[6]: Nothing to be done forall'. Making all in base make[6]: Nothing to be done for all'. Making all in errors make[6]: Nothing to be done forall'. Making all in glue make[6]: Nothing to be done for all'. Making all in threads make[6]: Nothing to be done forall'. make[6]: Nothing to be done for all-am'. Making all in VRMLnodes make[4]: Nothing to be done forall'. Making all in XML make[4]: Nothing to be done for all'. Making all in actions make[4]: Nothing to be done forall'. Making all in annex Making all in HardCopy make[5]: Nothing to be done for all'. Making all in ForeignFiles make[5]: Nothing to be done forall'. Making all in FXViz Making all in nodes make[6]: Nothing to be done for all'. Making all in elements make[6]: Nothing to be done forall'. make[6]: Nothing to be done for all-am'. Making all in Profiler Making all in nodes make[6]: Nothing to be done forall'. Making all in elements make[6]: Nothing to be done for all'. Making all in nodekits make[6]: Nothing to be done forall'. Making all in engines make[6]: Nothing to be done for all'. Making all in utils make[6]: Nothing to be done forall'. make[6]: Nothing to be done for all-am'. make[5]: Nothing to be done forall-am'. Making all in bundles make[4]: Nothing to be done for all'. Making all in caches make[4]: Nothing to be done forall'. Making all in collision make[4]: Nothing to be done for all'. Making all in details make[4]: Nothing to be done forall'. Making all in draggers make[4]: Nothing to be done for all'. Making all in elements make[4]: Nothing to be done forall'. Making all in engines make[4]: Nothing to be done for all'. Making all in errors make[4]: Nothing to be done forall'. Making all in events make[4]: Nothing to be done for all'. Making all in fields make[4]: Nothing to be done forall'. Making all in lists make[4]: Nothing to be done for all'. Making all in lock make[4]: Nothing to be done forall'. Making all in manips make[4]: Nothing to be done for all'. Making all in misc make[4]: Nothing to be done forall'. Making all in navigation make[4]: Nothing to be done for all'. Making all in nodekits make[4]: Nothing to be done forall'. Making all in nodes make[4]: Nothing to be done for all'. Making all in projectors make[4]: Nothing to be done forall'. Making all in sensors make[4]: Nothing to be done for all'. Making all in system /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[5]: Nothing to be done forall-am'. Making all in threads make[4]: Nothing to be done for all'. Making all in tools make[4]: Nothing to be done forall'. Making all in scxml make[4]: Nothing to be done for all'. make[4]: Nothing to be done forall-am'. make[3]: Nothing to be done for all-am'. Making all in data Making all in draggerDefaults config.status: creating data/draggerDefaults/iv2h.sh if ./iv2h.sh ../../../../data/draggerDefaults/translate1Dragger.iv > translate1Dragger.h; then :; else rm -f translate1Dragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/translate2Dragger.iv > translate2Dragger.h; then :; else rm -f translate2Dragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/centerballDragger.iv > centerballDragger.h; then :; else rm -f centerballDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/tabPlaneDragger.iv > tabPlaneDragger.h; then :; else rm -f tabPlaneDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/tabBoxDragger.iv > tabBoxDragger.h; then :; else rm -f tabBoxDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/dragPointDragger.iv > dragPointDragger.h; then :; else rm -f dragPointDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/pointLightDragger.iv > pointLightDragger.h; then :; else rm -f pointLightDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/directionalLightDragger.iv > directionalLightDragger.h; then :; else rm -f directionalLightDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/spotLightDragger.iv > spotLightDragger.h; then :; else rm -f spotLightDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/handleBoxDragger.iv > handleBoxDragger.h; then :; else rm -f handleBoxDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/jackDragger.iv > jackDragger.h; then :; else rm -f jackDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/trackballDragger.iv > trackballDragger.h; then :; else rm -f trackballDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/scaleUniformDragger.iv > scaleUniformDragger.h; then :; else rm -f scaleUniformDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/scale2UniformDragger.iv > scale2UniformDragger.h; then :; else rm -f scale2UniformDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/scale1Dragger.iv > scale1Dragger.h; then :; else rm -f scale1Dragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/scale2Dragger.iv > scale2Dragger.h; then :; else rm -f scale2Dragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/rotateCylindricalDragger.iv > rotateCylindricalDragger.h; then :; else rm -f rotateCylindricalDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/rotateSphericalDragger.iv > rotateSphericalDragger.h; then :; else rm -f rotateSphericalDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/rotateDiscDragger.iv > rotateDiscDragger.h; then :; else rm -f rotateDiscDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/transformerDragger.iv > transformerDragger.h; then :; else rm -f transformerDragger.h; exit 1; fi if ./iv2h.sh ../../../../data/draggerDefaults/transformBoxDragger.iv > transformBoxDragger.h; then :; else rm -f transformBoxDragger.h; exit 1; fi /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[4]: Nothing to be done forall-am'. Making all in shaders Making all in lights config.status: creating data/shaders/lights/glsl2h.sh if ./glsl2h.sh ../../../../../data/shaders/lights/PointLight.glsl > PointLight.h; then :; else rm -f PointLight.h; exit 1; fi if ./glsl2h.sh ../../../../../data/shaders/lights/SpotLight.glsl > SpotLight.h; then :; else rm -f SpotLight.h; exit 1; fi if ./glsl2h.sh ../../../../../data/shaders/lights/DirectionalLight.glsl > DirectionalLight.h; then :; else rm -f DirectionalLight.h; exit 1; fi if ./glsl2h.sh ../../../../../data/shaders/lights/DirSpotLight.glsl > DirSpotLight.h; then :; else rm -f DirSpotLight.h; exit 1; fi /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[5]: Nothing to be done for all-am'. Making all in vsm config.status: creating data/shaders/vsm/glsl2h.sh if ./glsl2h.sh ../../../../../data/shaders/vsm/VsmLookup.glsl > VsmLookup.h; then :; else rm -f VsmLookup.h; exit 1; fi /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[5]: Nothing to be done forall-am'. make[4]: Nothing to be done for all-am'. Making all in scxml Making all in navigation make[4]: Nothing to be done forall'. make[4]: Nothing to be done for all-am'. make[3]: Nothing to be done forall-am'. Making all in src /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I../include -I../../../include -I../src -I../../../src -I../../../include/Inventor/annex -I.. -D_REENTRANT -DCOIN_DEBUG=1 -DCOIN_INTERNAL -g -O2 -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual -fno-builtin -fno-for-scope -finline-functions -Wreturn-type -Wchar-subscripts -Wparentheses -MT all-actions-cpp.lo -MD -MP -MF ".deps/all-actions-cpp.Tpo" -c -o all-actions-cpp.lo test -f 'actions/all-actions-cpp.cpp' || echo '../../../src/'actions/all-actions-cpp.cpp; \ then mv -f ".deps/all-actions-cpp.Tpo" ".deps/all-actions-cpp.Plo"; else rm -f ".deps/all-actions-cpp.Tpo"; exit 1; fi mkdir .libs g++ -DHAVE_CONFIG_H -I../include -I../../../include -I../src -I../../../src -I../../../include/Inventor/annex -I.. -D_REENTRANT -DCOIN_DEBUG=1 -DCOIN_INTERNAL -g -O2 -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual -fno-builtin -fno-for-scope -finline-functions -Wreturn-type -Wchar-subscripts -Wparentheses -MT all-actions-cpp.lo -MD -MP -MF .deps/all-actions-cpp.Tpo -c ../../../src/actions/all-actions-cpp.cpp -fno-common -DPIC -o .libs/all-actions-cpp.o clang: error: the clang compiler does not support '-fno-for-scope' make[4]: [all-actions-cpp.lo] Error 1 make[3]: [all-recursive] Error 1 make[2]: [all] Error 2 make[1]: [all-recursive] Error 1 make: *** [all] Error 2

configure output with gcc-4.9

$ ../../configure

checking build system type... x86_64-apple-darwin13.0.0 checking host system type... x86_64-apple-darwin13.0.0 checking target system type... x86_64-apple-darwin13.0.0 checking for distcheck mode... no checking for gcc... /usr/local/bin/gcc-4.9 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/local/bin/gcc-4.9 accepts -g... yes checking for /usr/local/bin/gcc-4.9 option to accept ISO C89... none needed checking whether we should build Universal Binaries... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of /usr/local/bin/gcc-4.9... gcc3 checking whether to enable maintainer-specific portions of Makefiles... no checking whether we are using the GNU C++ compiler... yes checking whether /usr/local/bin/g++-4.9 accepts -g... yes checking dependency style of /usr/local/bin/g++-4.9... gcc3 checking how to run the C++ preprocessor... /usr/local/bin/g++-4.9 -E checking OS X deployment target... checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ld used by /usr/local/bin/gcc-4.9... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking how to run the C preprocessor... /usr/local/bin/gcc-4.9 -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... /usr/local/bin/g++-4.9 -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether gfortran accepts -g... yes checking the maximum length of command line arguments... 196608 checking command to parse /usr/bin/nm output from /usr/local/bin/gcc-4.9 object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking for dsymutil... dsymutil checking for nmedit... nmedit checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking if /usr/local/bin/gcc-4.9 supports -fno-rtti -fno-exceptions... no checking for /usr/local/bin/gcc-4.9 option to produce PIC... -fno-common checking if /usr/local/bin/gcc-4.9 PIC flag -fno-common works... yes checking if /usr/local/bin/gcc-4.9 static flag -static works... no checking if /usr/local/bin/gcc-4.9 supports -c -o file.o... yes checking whether the /usr/local/bin/gcc-4.9 linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by /usr/local/bin/g++-4.9... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the /usr/local/bin/g++-4.9 linker (/usr/bin/ld) supports shared libraries... yes checking for /usr/local/bin/g++-4.9 option to produce PIC... -fno-common checking if /usr/local/bin/g++-4.9 PIC flag -fno-common works... yes checking if /usr/local/bin/g++-4.9 static flag -static works... no checking if /usr/local/bin/g++-4.9 supports -c -o file.o... yes checking whether the /usr/local/bin/g++-4.9 linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld (cached) (cached) checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for gfortran option to produce PIC... -fno-common checking if gfortran PIC flag -fno-common works... yes checking if gfortran static flag -static works... no checking if gfortran supports -c -o file.o... yes checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld (cached) (cached) checking how to hardcode library paths into programs... immediate checking if the C++ compiler environment is ok... true checking if the compiler handles for() loops in inlined constructors... yes checking if the compiler handles switch statements in virtual destructors... yes checking if this is a version of GCC with a known nasty optimization bug... false checking for builtin_expect()... found checking if assert() uses builtin_expect()... yes checking for function name variable for CPP compiler... func checking for function name variable for C compiler... func checking whether /usr/local/bin/gcc-4.9 accepts -no-cpp-precomp... no checking for Win32 threads... false checking for POSIX threads... -D_REENTRANT -lpthread checking the struct timespec resolution... nsecs checking for unistd.h... (cached) yes checking for sys/types.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking io.h usability... no checking io.h presence... no checking for io.h... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking direct.h usability... no checking direct.h presence... no checking for direct.h... no checking for strings.h... (cached) yes checking ieeefp.h usability... no checking ieeefp.h presence... no checking for ieeefp.h... no checking for flex file adjustments... none checking for tlhelp32.h... no checking for _splitpath()... not found checking if the Win32 API is available... no checking for sys/unistd.h... yes checking for IN_PATH define conflict... no checking for netinet/in.h... true checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for sys/types.h... (cached) yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking standard bytesize typedefs... available checking for fstat() function... available checking for BSD 4.3 isinf() function... available checking for BSD 4.3 isnan() function... available checking for BSD 4.3 finite() function... available checking for fpclass() function... not available checking for _fpclass() function... not available checking type of timeval::tv_sec... darwin_time_t checking type of timeval::tv_usec... darwin_suseconds_t checking for perl... /usr/bin/perl checking for dpkg-buildpackage... false checking if user is simian... probably not checking whether /usr/local/bin/gcc-4.9 accepts -W... yes checking whether /usr/local/bin/gcc-4.9 accepts -Wall... yes checking whether /usr/local/bin/gcc-4.9 accepts -Wno-unused... yes checking whether /usr/local/bin/gcc-4.9 accepts -Wno-multichar... yes checking whether /usr/local/bin/g++-4.9 accepts -W... yes checking whether /usr/local/bin/g++-4.9 accepts -Wall... yes checking whether /usr/local/bin/g++-4.9 accepts -Wno-unused... yes checking whether /usr/local/bin/g++-4.9 accepts -Wno-multichar... yes checking whether /usr/local/bin/g++-4.9 accepts -Woverloaded-virtual... yes checking for project release status... beta / inbetween releases checking whether /usr/local/bin/gcc-4.9 accepts -fno-builtin... yes checking whether /usr/local/bin/g++-4.9 accepts -fno-builtin... yes checking whether /usr/local/bin/g++-4.9 accepts -fno-for-scoping... no checking whether /usr/local/bin/gcc-4.9 accepts -finline-functions... yes checking whether /usr/local/bin/g++-4.9 accepts -finline-functions... yes checking whether /usr/local/bin/gcc-4.9 accepts -Wreturn-type... yes checking whether /usr/local/bin/g++-4.9 accepts -Wreturn-type... yes checking whether /usr/local/bin/gcc-4.9 accepts -Wchar-subscripts... yes checking whether /usr/local/bin/g++-4.9 accepts -Wchar-subscripts... yes checking whether /usr/local/bin/gcc-4.9 accepts -Wparentheses... yes checking whether /usr/local/bin/g++-4.9 accepts -Wparentheses... yes checking whether snprintf() is available... yes checking whether vsnprintf() is available... yes checking for va_copy() stdarg macro... yes checking whether quoting in macros can be done with hash symbol... yes checking for GetEnvironmentVariable() function... no checking for timeGetTime() function... no checking for MessageBox() function... no checking for QueryPerformanceCounter() function... no checking for _ftime() function... no checking for ftime() function... yes checking for _getcwd() function... no checking for getcwd() function... yes checking for gettimeofday() function... yes checking for strncasecmp() function... yes checking for memmove() function... available checking for bcopy() function... available checking for _logb() function... no checking mach-o/dyld.h usability... yes checking mach-o/dyld.h presence... yes checking for mach-o/dyld.h... yes checking whether we can use Mach-O dyld... yes checking for dlfcn.h... (cached) yes checking for the dl library... yes checking for math functions library... no explicit linkage necessary checking for ilogb() function... yes checking for X... no checking if X11 linkage is ready... false checking whether /usr/local/bin/gcc-4.9 accepts -framework OpenGL... yes checking how to include gl.h... #include <OpenGL/gl.h> checking for OpenGL library dev-kit... -Wl,-framework,OpenGL checking how to include glext.h... #include <OpenGL/glext.h> checking whether CGL is on the system... true checking how to include glu.h... #include <OpenGL/glu.h> checking if GLU is available as part of GL library... true checking for shared library suffix... .dylib checking for cmp... Yes checking for __declspec() support... not available configure: creating ./config.status config.status: creating src/Coin.rc config.status: creating Makefile config.status: creating bin/Makefile config.status: creating include/Makefile config.status: creating include/Inventor/Makefile config.status: creating include/Inventor/C/Makefile config.status: creating include/Inventor/C/XML/Makefile config.status: creating include/Inventor/C/base/Makefile config.status: creating include/Inventor/C/errors/Makefile config.status: creating include/Inventor/C/glue/Makefile config.status: creating include/Inventor/C/threads/Makefile config.status: creating include/Inventor/VRMLnodes/Makefile config.status: creating include/Inventor/XML/Makefile config.status: creating include/Inventor/actions/Makefile config.status: creating include/Inventor/bundles/Makefile config.status: creating include/Inventor/caches/Makefile config.status: creating include/Inventor/collision/Makefile config.status: creating include/Inventor/details/Makefile config.status: creating include/Inventor/draggers/Makefile config.status: creating include/Inventor/elements/Makefile config.status: creating include/Inventor/engines/Makefile config.status: creating include/Inventor/errors/Makefile config.status: creating include/Inventor/events/Makefile config.status: creating include/Inventor/fields/Makefile config.status: creating include/Inventor/lists/Makefile config.status: creating include/Inventor/lock/Makefile config.status: creating include/Inventor/manips/Makefile config.status: creating include/Inventor/misc/Makefile config.status: creating include/Inventor/navigation/Makefile config.status: creating include/Inventor/nodekits/Makefile config.status: creating include/Inventor/nodes/Makefile config.status: creating include/Inventor/projectors/Makefile config.status: creating include/Inventor/sensors/Makefile config.status: creating include/Inventor/system/Makefile config.status: creating include/Inventor/threads/Makefile config.status: creating include/Inventor/tools/Makefile config.status: creating include/Inventor/scxml/Makefile config.status: creating include/Inventor/annex/Makefile config.status: creating include/Inventor/annex/HardCopy/Makefile config.status: creating include/Inventor/annex/ForeignFiles/Makefile config.status: creating include/Inventor/annex/FXViz/Makefile config.status: creating include/Inventor/annex/FXViz/elements/Makefile config.status: creating include/Inventor/annex/FXViz/nodes/Makefile config.status: creating include/Inventor/annex/Profiler/Makefile config.status: creating include/Inventor/annex/Profiler/elements/Makefile config.status: creating include/Inventor/annex/Profiler/engines/Makefile config.status: creating include/Inventor/annex/Profiler/nodes/Makefile config.status: creating include/Inventor/annex/Profiler/nodekits/Makefile config.status: creating include/Inventor/annex/Profiler/utils/Makefile config.status: creating data/Makefile config.status: creating data/draggerDefaults/Makefile config.status: creating data/shaders/Makefile config.status: creating data/shaders/lights/Makefile config.status: creating data/shaders/vsm/Makefile config.status: creating data/scxml/Makefile config.status: creating data/scxml/navigation/Makefile config.status: creating man/Makefile config.status: creating man/man1/Makefile config.status: creating man/man3/Makefile config.status: creating html/Makefile config.status: creating src/Makefile config.status: creating src/base/Makefile config.status: creating src/actions/Makefile config.status: creating src/bundles/Makefile config.status: creating src/caches/Makefile config.status: creating src/collision/Makefile config.status: creating src/details/Makefile config.status: creating src/draggers/Makefile config.status: creating src/elements/Makefile config.status: creating src/elements/GL/Makefile config.status: creating src/engines/Makefile config.status: creating src/errors/Makefile config.status: creating src/events/Makefile config.status: creating src/fields/Makefile config.status: creating src/fonts/Makefile config.status: creating src/glue/Makefile config.status: creating src/io/Makefile config.status: creating src/manips/Makefile config.status: creating src/misc/Makefile config.status: creating src/rendering/Makefile config.status: creating src/lists/Makefile config.status: creating src/navigation/Makefile config.status: creating src/nodekits/Makefile config.status: creating src/nodes/Makefile config.status: creating src/projectors/Makefile config.status: creating src/3ds/Makefile config.status: creating src/sensors/Makefile config.status: creating src/upgraders/Makefile config.status: creating src/shapenodes/Makefile config.status: creating src/threads/Makefile config.status: creating src/extensions/Makefile config.status: creating src/vrml97/Makefile config.status: creating src/hardcopy/Makefile config.status: creating src/shaders/Makefile config.status: creating src/shadows/Makefile config.status: creating src/geo/Makefile config.status: creating src/foreignfiles/Makefile config.status: creating src/xml/Makefile config.status: creating src/xml/expat/Makefile config.status: creating src/profiler/Makefile config.status: creating src/scxml/Makefile config.status: creating src/soscxml/Makefile config.status: creating src/doc/Makefile config.status: creating testsuite/Makefile config.status: creating cfg/gendsp.pl config.status: creating src/discard.h config.status: src/discard.h is unchanged config.status: creating src/config.h config.status: src/config.h is unchanged config.status: creating src/setup.h config.status: src/setup.h is unchanged config.status: executing depfiles commands

**** WARNING *** We have not tested Coin on the darwin13.0.0 x86_64 platform with the /usr/local/bin/g++-4.9 C++ compiler. Please report back to us at coin-support@coin3d.org how it works out. ***********

Coin configuration settings: Library version: 4.0.0a Build Universal Binaries: No (default) Generate Java wrapper: No (default) 3ds import capabilities: No (enable with --enable-3ds-import) Use system expat: No (default) javascript capabilities: Yes nodekit support: Yes dragger support: Yes manipulator support: Yes VRML97 support: Yes System threads API: POSIX Thread safe traversals: No (enable with --enable-threadsafe) simage linkage: run-time binding OpenAL support: Yes, run-time binding Sound support: Yes Fontconfig support: Yes, run-time binding SpiderMonkey support: Yes, run-time binding FreeType library: Yes, run-time binding zlib support: Yes, run-time binding bzip2 support: Yes, run-time binding GLU linkage: run-time binding, part of GL library Coin build type: Mac OS X framework

make output for gcc-4.9

$ make

config.status: creating include/Inventor/C/basic.h config.status: include/Inventor/C/basic.h is unchanged config.status: creating include/Inventor/system/gl-headers.h.new include/Inventor/system/gl-headers.h is unchanged config.status: creating include/Inventor/system/inttypes.h config.status: include/Inventor/system/inttypes.h is unchanged config.status: creating coin-default.cfg config.status: creating Info.plist config.status: creating version.plist /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in . config.status: creating Coin.pc Making all in bin make[2]: Nothing to be done for all'. Making all in include Making all in Inventor Making all in C /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in XML make[6]: Nothing to be done forall'. Making all in base make[6]: Nothing to be done for all'. Making all in errors make[6]: Nothing to be done forall'. Making all in glue make[6]: Nothing to be done for all'. Making all in threads make[6]: Nothing to be done forall'. make[6]: Nothing to be done for all-am'. Making all in VRMLnodes make[4]: Nothing to be done forall'. Making all in XML make[4]: Nothing to be done for all'. Making all in actions make[4]: Nothing to be done forall'. Making all in annex Making all in HardCopy make[5]: Nothing to be done for all'. Making all in ForeignFiles make[5]: Nothing to be done forall'. Making all in FXViz Making all in nodes make[6]: Nothing to be done for all'. Making all in elements make[6]: Nothing to be done forall'. make[6]: Nothing to be done for all-am'. Making all in Profiler Making all in nodes make[6]: Nothing to be done forall'. Making all in elements make[6]: Nothing to be done for all'. Making all in nodekits make[6]: Nothing to be done forall'. Making all in engines make[6]: Nothing to be done for all'. Making all in utils make[6]: Nothing to be done forall'. make[6]: Nothing to be done for all-am'. make[5]: Nothing to be done forall-am'. Making all in bundles make[4]: Nothing to be done for all'. Making all in caches make[4]: Nothing to be done forall'. Making all in collision make[4]: Nothing to be done for all'. Making all in details make[4]: Nothing to be done forall'. Making all in draggers make[4]: Nothing to be done for all'. Making all in elements make[4]: Nothing to be done forall'. Making all in engines make[4]: Nothing to be done for all'. Making all in errors make[4]: Nothing to be done forall'. Making all in events make[4]: Nothing to be done for all'. Making all in fields make[4]: Nothing to be done forall'. Making all in lists make[4]: Nothing to be done for all'. Making all in lock make[4]: Nothing to be done forall'. Making all in manips make[4]: Nothing to be done for all'. Making all in misc make[4]: Nothing to be done forall'. Making all in navigation make[4]: Nothing to be done for all'. Making all in nodekits make[4]: Nothing to be done forall'. Making all in nodes make[4]: Nothing to be done for all'. Making all in projectors make[4]: Nothing to be done forall'. Making all in sensors make[4]: Nothing to be done for all'. Making all in system config.status: creating include/Inventor/system/gl-headers.h.new include/Inventor/system/gl-headers.h is unchanged config.status: creating include/Inventor/system/inttypes.h config.status: include/Inventor/system/inttypes.h is unchanged /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am config.status: creating include/Inventor/system/gl-headers.h.new include/Inventor/system/gl-headers.h is unchanged config.status: creating include/Inventor/system/inttypes.h config.status: include/Inventor/system/inttypes.h is unchanged Making all in threads make[4]: Nothing to be done forall'. Making all in tools make[4]: Nothing to be done for all'. Making all in scxml make[4]: Nothing to be done forall'. make[4]: Nothing to be done for all-am'. make[3]: Nothing to be done forall-am'. Making all in data Making all in draggerDefaults /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[4]: Nothing to be done for all-am'. Making all in shaders Making all in lights /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[5]: Nothing to be done forall-am'. Making all in vsm /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[5]: Nothing to be done for all-am'. make[4]: Nothing to be done forall-am'. Making all in scxml Making all in navigation make[4]: Nothing to be done for all'. make[4]: Nothing to be done forall-am'. make[3]: Nothing to be done for all-am'. Making all in src /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive if /bin/sh ../libtool --mode=compile /usr/local/bin/g++-4.9 -DHAVE_CONFIG_H -I../include -I../../../include -I../src -I../../../src -I../../../include/Inventor/annex -I.. -D_REENTRANT -DCOIN_DEBUG=1 -DCOIN_INTERNAL -g -O2 -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual -fno-builtin -finline-functions -Wreturn-type -Wchar-subscripts -Wparentheses -MT all-actions-cpp.lo -MD -MP -MF ".deps/all-actions-cpp.Tpo" -c -o all-actions-cpp.lotest -f 'actions/all-actions-cpp.cpp' || echo '../../../src/'`actions/all-actions-cpp.cpp; \ then mv -f ".deps/all-actions-cpp.Tpo" ".deps/all-actions-cpp.Plo"; else rm -f ".deps/all-actions-cpp.Tpo"; exit 1; fi mkdir .libs /usr/local/bin/g++-4.9 -DHAVE_CONFIG_H -I../include -I../../../include -I../src -I../../../src -I../../../include/Inventor/annex -I.. -D_REENTRANT -DCOIN_DEBUG=1 -DCOIN_INTERNAL -g -O2 -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual -fno-builtin -finline-functions -Wreturn-type -Wchar-subscripts -Wparentheses -MT all-actions-cpp.lo -MD -MP -MF .deps/all-actions-cpp.Tpo -c ../../../src/actions/all-actions-cpp.cpp -fno-common -DPIC -o .libs/all-actions-cpp.o In file included from ../../../src/actions/all-actions-cpp.cpp:57:0: ../../../src/actions/SoToVRML2Action.cpp: In constructor 'SoToVRML2ActionP::SoToVRML2ActionP()': ../../../src/actions/SoToVRML2Action.cpp:407:17: warning: 'SoToVRML2ActionP::vrml2root' will be initialized after [-Wreorder] SoVRMLGroup * vrml2root; ^ ../../../src/actions/SoToVRML2Action.cpp:398:28: warning: 'SoGetBoundingBoxAction SoToVRML2ActionP::bboxaction' [-Wreorder] SoGetBoundingBoxAction * bboxaction; ^ ../../../src/actions/SoToVRML2Action.cpp:307:3: warning: when initialized here [-Wreorder] SoToVRML2ActionP(void) ^ In file included from ../../../include/Inventor/actions/SoAction.h:36:0, from ../../../src/actions/SoAction.cpp:206, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/SbBasic.h: In instantiation of 'void SbDividerChk(const char, Type) [with Type = float]': ../../../include/Inventor/SbVec3f.h:89:81: required from here ../../../include/Inventor/SbBasic.h:108:66: error: 'cc_debugerror_post' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] cc_debugerror_post(funcname, "divide by zero error.", divider); ^ In file included from ../../../include/Inventor/errors/SoDebugError.h:37:0, from ../../../include/Inventor/SbVec3f.h:42, from ../../../include/Inventor/SbColor.h:37, from ../../../include/Inventor/elements/SoLazyElement.h:38, from ../../../include/Inventor/nodes/SoLightModel.h:38, from ../../../include/Inventor/actions/SoCallbackAction.h:44, from ../../../include/Inventor/actions/SoActions.h:36, from ../../../src/actions/SoAction.cpp:215, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/C/errors/debugerror.h:68:19: note: 'void cc_debugerror_post(const char, const char, ...)' declared here, later in the translation unit COIN_DLL_API void cc_debugerror_post(const char * source, const char * format, ...); ^ In file included from ../../../include/Inventor/actions/SoAction.h:36:0, from ../../../src/actions/SoAction.cpp:206, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/SbBasic.h: In instantiation of 'void SbDividerChk(const char, Type) [with Type = int]': ../../../include/Inventor/SbVec2s.h:81:77: required from here ../../../include/Inventor/SbBasic.h:108:66: error: 'cc_debugerror_post' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] cc_debugerror_post(funcname, "divide by zero error.", divider); ^ In file included from ../../../include/Inventor/errors/SoDebugError.h:37:0, from ../../../include/Inventor/SbVec3f.h:42, from ../../../include/Inventor/SbColor.h:37, from ../../../include/Inventor/elements/SoLazyElement.h:38, from ../../../include/Inventor/nodes/SoLightModel.h:38, from ../../../include/Inventor/actions/SoCallbackAction.h:44, from ../../../include/Inventor/actions/SoActions.h:36, from ../../../src/actions/SoAction.cpp:215, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/C/errors/debugerror.h:68:19: note: 'void cc_debugerror_post(const char, const char, ...)' declared here, later in the translation unit COIN_DLL_API void cc_debugerror_post(const char * source, const char * format, ...); ^ In file included from ../../../include/Inventor/actions/SoAction.h:36:0, from ../../../src/actions/SoAction.cpp:206, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/SbBasic.h: In instantiation of 'void SbDividerChk(const char, Type) [with Type = double]': ../../../include/Inventor/SbVec2s.h:82:83: required from here ../../../include/Inventor/SbBasic.h:108:66: error: 'cc_debugerror_post' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] cc_debugerror_post(funcname, "divide by zero error.", divider); ^ In file included from ../../../include/Inventor/errors/SoDebugError.h:37:0, from ../../../include/Inventor/SbVec3f.h:42, from ../../../include/Inventor/SbColor.h:37, from ../../../include/Inventor/elements/SoLazyElement.h:38, from ../../../include/Inventor/nodes/SoLightModel.h:38, from ../../../include/Inventor/actions/SoCallbackAction.h:44, from ../../../include/Inventor/actions/SoActions.h:36, from ../../../src/actions/SoAction.cpp:215, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/C/errors/debugerror.h:68:19: note: 'void cc_debugerror_post(const char, const char, ...)' declared here, later in the translation unit COIN_DLL_API void cc_debugerror_post(const char * source, const char * format, ...); ^ make[4]: [all-actions-cpp.lo] Error 1 make[3]: [all-recursive] Error 1 make[2]: [all] Error 2 make[1]: [all-recursive] Error 1 make: *** [all] Error 2

configure output with gcc-4.7

$ ../../configure

checking build system type... x86_64-apple-darwin13.0.0 checking host system type... x86_64-apple-darwin13.0.0 checking target system type... x86_64-apple-darwin13.0.0 checking for distcheck mode... no checking for gcc... /usr/local/bin/gcc-4.7 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/local/bin/gcc-4.7 accepts -g... yes checking for /usr/local/bin/gcc-4.7 option to accept ISO C89... none needed checking whether we should build Universal Binaries... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of /usr/local/bin/gcc-4.7... gcc3 checking whether to enable maintainer-specific portions of Makefiles... no checking whether we are using the GNU C++ compiler... yes checking whether /usr/local/bin/g++-4.7 accepts -g... yes checking dependency style of /usr/local/bin/g++-4.7... gcc3 checking how to run the C++ preprocessor... /usr/local/bin/g++-4.7 -E checking OS X deployment target... checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ld used by /usr/local/bin/gcc-4.7... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking how to run the C preprocessor... /usr/local/bin/gcc-4.7 -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... /usr/local/bin/g++-4.7 -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether gfortran accepts -g... yes checking the maximum length of command line arguments... 196608 checking command to parse /usr/bin/nm output from /usr/local/bin/gcc-4.7 object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking for dsymutil... dsymutil checking for nmedit... nmedit checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking if /usr/local/bin/gcc-4.7 supports -fno-rtti -fno-exceptions... no checking for /usr/local/bin/gcc-4.7 option to produce PIC... -fno-common checking if /usr/local/bin/gcc-4.7 PIC flag -fno-common works... yes checking if /usr/local/bin/gcc-4.7 static flag -static works... no checking if /usr/local/bin/gcc-4.7 supports -c -o file.o... yes checking whether the /usr/local/bin/gcc-4.7 linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by /usr/local/bin/g++-4.7... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the /usr/local/bin/g++-4.7 linker (/usr/bin/ld) supports shared libraries... yes checking for /usr/local/bin/g++-4.7 option to produce PIC... -fno-common checking if /usr/local/bin/g++-4.7 PIC flag -fno-common works... yes checking if /usr/local/bin/g++-4.7 static flag -static works... no checking if /usr/local/bin/g++-4.7 supports -c -o file.o... yes checking whether the /usr/local/bin/g++-4.7 linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld (cached) (cached) checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for gfortran option to produce PIC... -fno-common checking if gfortran PIC flag -fno-common works... yes checking if gfortran static flag -static works... no checking if gfortran supports -c -o file.o... yes checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld (cached) (cached) checking how to hardcode library paths into programs... immediate checking if the C++ compiler environment is ok... true checking if the compiler handles for() loops in inlined constructors... yes checking if the compiler handles switch statements in virtual destructors... yes checking if this is a version of GCC with a known nasty optimization bug... false checking for builtin_expect()... found checking if assert() uses builtin_expect()... yes checking for function name variable for CPP compiler... func checking for function name variable for C compiler... func checking whether /usr/local/bin/gcc-4.7 accepts -no-cpp-precomp... no checking for Win32 threads... false checking for POSIX threads... -D_REENTRANT -lpthread checking the struct timespec resolution... nsecs checking for unistd.h... (cached) yes checking for sys/types.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking io.h usability... no checking io.h presence... no checking for io.h... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking direct.h usability... no checking direct.h presence... no checking for direct.h... no checking for strings.h... (cached) yes checking ieeefp.h usability... no checking ieeefp.h presence... no checking for ieeefp.h... no checking for flex file adjustments... none checking for tlhelp32.h... no checking for _splitpath()... not found checking if the Win32 API is available... no checking for sys/unistd.h... yes checking for IN_PATH define conflict... no checking for netinet/in.h... true checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for sys/types.h... (cached) yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking standard bytesize typedefs... available checking for fstat() function... available checking for BSD 4.3 isinf() function... available checking for BSD 4.3 isnan() function... available checking for BSD 4.3 finite() function... available checking for fpclass() function... not available checking for _fpclass() function... not available checking type of timeval::tv_sec... darwin_time_t checking type of timeval::tv_usec... darwin_suseconds_t checking for perl... /usr/bin/perl checking for dpkg-buildpackage... false checking if user is simian... probably not checking whether /usr/local/bin/gcc-4.7 accepts -W... yes checking whether /usr/local/bin/gcc-4.7 accepts -Wall... yes checking whether /usr/local/bin/gcc-4.7 accepts -Wno-unused... yes checking whether /usr/local/bin/gcc-4.7 accepts -Wno-multichar... yes checking whether /usr/local/bin/g++-4.7 accepts -W... yes checking whether /usr/local/bin/g++-4.7 accepts -Wall... yes checking whether /usr/local/bin/g++-4.7 accepts -Wno-unused... yes checking whether /usr/local/bin/g++-4.7 accepts -Wno-multichar... yes checking whether /usr/local/bin/g++-4.7 accepts -Woverloaded-virtual... yes checking for project release status... beta / inbetween releases checking whether /usr/local/bin/gcc-4.7 accepts -fno-builtin... yes checking whether /usr/local/bin/g++-4.7 accepts -fno-builtin... yes checking whether /usr/local/bin/g++-4.7 accepts -fno-for-scoping... no checking whether /usr/local/bin/gcc-4.7 accepts -finline-functions... yes checking whether /usr/local/bin/g++-4.7 accepts -finline-functions... yes checking whether /usr/local/bin/gcc-4.7 accepts -Wreturn-type... yes checking whether /usr/local/bin/g++-4.7 accepts -Wreturn-type... yes checking whether /usr/local/bin/gcc-4.7 accepts -Wchar-subscripts... yes checking whether /usr/local/bin/g++-4.7 accepts -Wchar-subscripts... yes checking whether /usr/local/bin/gcc-4.7 accepts -Wparentheses... yes checking whether /usr/local/bin/g++-4.7 accepts -Wparentheses... yes checking whether snprintf() is available... yes checking whether vsnprintf() is available... yes checking for va_copy() stdarg macro... yes checking whether quoting in macros can be done with hash symbol... yes checking for GetEnvironmentVariable() function... no checking for timeGetTime() function... no checking for MessageBox() function... no checking for QueryPerformanceCounter() function... no checking for _ftime() function... no checking for ftime() function... yes checking for _getcwd() function... no checking for getcwd() function... yes checking for gettimeofday() function... yes checking for strncasecmp() function... yes checking for memmove() function... available checking for bcopy() function... available checking for _logb() function... no checking mach-o/dyld.h usability... yes checking mach-o/dyld.h presence... yes checking for mach-o/dyld.h... yes checking whether we can use Mach-O dyld... yes checking for dlfcn.h... (cached) yes checking for the dl library... yes checking for math functions library... no explicit linkage necessary checking for ilogb() function... yes checking for X... no checking if X11 linkage is ready... false checking whether /usr/local/bin/gcc-4.7 accepts -framework OpenGL... yes checking how to include gl.h... #include <OpenGL/gl.h> checking for OpenGL library dev-kit... -Wl,-framework,OpenGL checking how to include glext.h... #include <OpenGL/glext.h> checking whether CGL is on the system... true checking how to include glu.h... #include <OpenGL/glu.h> checking if GLU is available as part of GL library... true checking for shared library suffix... .dylib checking for cmp... Yes checking for __declspec() support... not available configure: creating ./config.status config.status: creating src/Coin.rc config.status: creating Makefile config.status: creating bin/Makefile config.status: creating include/Makefile config.status: creating include/Inventor/Makefile config.status: creating include/Inventor/C/Makefile config.status: creating include/Inventor/C/XML/Makefile config.status: creating include/Inventor/C/base/Makefile config.status: creating include/Inventor/C/errors/Makefile config.status: creating include/Inventor/C/glue/Makefile config.status: creating include/Inventor/C/threads/Makefile config.status: creating include/Inventor/VRMLnodes/Makefile config.status: creating include/Inventor/XML/Makefile config.status: creating include/Inventor/actions/Makefile config.status: creating include/Inventor/bundles/Makefile config.status: creating include/Inventor/caches/Makefile config.status: creating include/Inventor/collision/Makefile config.status: creating include/Inventor/details/Makefile config.status: creating include/Inventor/draggers/Makefile config.status: creating include/Inventor/elements/Makefile config.status: creating include/Inventor/engines/Makefile config.status: creating include/Inventor/errors/Makefile config.status: creating include/Inventor/events/Makefile config.status: creating include/Inventor/fields/Makefile config.status: creating include/Inventor/lists/Makefile config.status: creating include/Inventor/lock/Makefile config.status: creating include/Inventor/manips/Makefile config.status: creating include/Inventor/misc/Makefile config.status: creating include/Inventor/navigation/Makefile config.status: creating include/Inventor/nodekits/Makefile config.status: creating include/Inventor/nodes/Makefile config.status: creating include/Inventor/projectors/Makefile config.status: creating include/Inventor/sensors/Makefile config.status: creating include/Inventor/system/Makefile config.status: creating include/Inventor/threads/Makefile config.status: creating include/Inventor/tools/Makefile config.status: creating include/Inventor/scxml/Makefile config.status: creating include/Inventor/annex/Makefile config.status: creating include/Inventor/annex/HardCopy/Makefile config.status: creating include/Inventor/annex/ForeignFiles/Makefile config.status: creating include/Inventor/annex/FXViz/Makefile config.status: creating include/Inventor/annex/FXViz/elements/Makefile config.status: creating include/Inventor/annex/FXViz/nodes/Makefile config.status: creating include/Inventor/annex/Profiler/Makefile config.status: creating include/Inventor/annex/Profiler/elements/Makefile config.status: creating include/Inventor/annex/Profiler/engines/Makefile config.status: creating include/Inventor/annex/Profiler/nodes/Makefile config.status: creating include/Inventor/annex/Profiler/nodekits/Makefile config.status: creating include/Inventor/annex/Profiler/utils/Makefile config.status: creating data/Makefile config.status: creating data/draggerDefaults/Makefile config.status: creating data/shaders/Makefile config.status: creating data/shaders/lights/Makefile config.status: creating data/shaders/vsm/Makefile config.status: creating data/scxml/Makefile config.status: creating data/scxml/navigation/Makefile config.status: creating man/Makefile config.status: creating man/man1/Makefile config.status: creating man/man3/Makefile config.status: creating html/Makefile config.status: creating src/Makefile config.status: creating src/base/Makefile config.status: creating src/actions/Makefile config.status: creating src/bundles/Makefile config.status: creating src/caches/Makefile config.status: creating src/collision/Makefile config.status: creating src/details/Makefile config.status: creating src/draggers/Makefile config.status: creating src/elements/Makefile config.status: creating src/elements/GL/Makefile config.status: creating src/engines/Makefile config.status: creating src/errors/Makefile config.status: creating src/events/Makefile config.status: creating src/fields/Makefile config.status: creating src/fonts/Makefile config.status: creating src/glue/Makefile config.status: creating src/io/Makefile config.status: creating src/manips/Makefile config.status: creating src/misc/Makefile config.status: creating src/rendering/Makefile config.status: creating src/lists/Makefile config.status: creating src/navigation/Makefile config.status: creating src/nodekits/Makefile config.status: creating src/nodes/Makefile config.status: creating src/projectors/Makefile config.status: creating src/3ds/Makefile config.status: creating src/sensors/Makefile config.status: creating src/upgraders/Makefile config.status: creating src/shapenodes/Makefile config.status: creating src/threads/Makefile config.status: creating src/extensions/Makefile config.status: creating src/vrml97/Makefile config.status: creating src/hardcopy/Makefile config.status: creating src/shaders/Makefile config.status: creating src/shadows/Makefile config.status: creating src/geo/Makefile config.status: creating src/foreignfiles/Makefile config.status: creating src/xml/Makefile config.status: creating src/xml/expat/Makefile config.status: creating src/profiler/Makefile config.status: creating src/scxml/Makefile config.status: creating src/soscxml/Makefile config.status: creating src/doc/Makefile config.status: creating testsuite/Makefile config.status: creating cfg/gendsp.pl config.status: creating src/discard.h config.status: src/discard.h is unchanged config.status: creating src/config.h config.status: src/config.h is unchanged config.status: creating src/setup.h config.status: src/setup.h is unchanged config.status: executing depfiles commands

**** WARNING *** We have not tested Coin on the darwin13.0.0 x86_64 platform with the /usr/local/bin/g++-4.7 C++ compiler. Please report back to us at coin-support@coin3d.org how it works out. ***********

Coin configuration settings: Library version: 4.0.0a Build Universal Binaries: No (default) Generate Java wrapper: No (default) 3ds import capabilities: No (enable with --enable-3ds-import) Use system expat: No (default) javascript capabilities: Yes nodekit support: Yes dragger support: Yes manipulator support: Yes VRML97 support: Yes System threads API: POSIX Thread safe traversals: No (enable with --enable-threadsafe) simage linkage: run-time binding OpenAL support: Yes, run-time binding Sound support: Yes Fontconfig support: Yes, run-time binding SpiderMonkey support: Yes, run-time binding FreeType library: Yes, run-time binding zlib support: Yes, run-time binding bzip2 support: Yes, run-time binding GLU linkage: run-time binding, part of GL library Coin build type: Mac OS X framework

make output with gcc-4.7 $ make

config.status: creating include/Inventor/C/basic.h config.status: include/Inventor/C/basic.h is unchanged config.status: creating include/Inventor/system/gl-headers.h.new include/Inventor/system/gl-headers.h is unchanged config.status: creating include/Inventor/system/inttypes.h config.status: include/Inventor/system/inttypes.h is unchanged config.status: creating coin-default.cfg config.status: creating Info.plist config.status: creating version.plist /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in . config.status: creating Coin.pc Making all in bin make[2]: Nothing to be done for all'. Making all in include Making all in Inventor Making all in C /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in XML make[6]: Nothing to be done forall'. Making all in base make[6]: Nothing to be done for all'. Making all in errors make[6]: Nothing to be done forall'. Making all in glue make[6]: Nothing to be done for all'. Making all in threads make[6]: Nothing to be done forall'. make[6]: Nothing to be done for all-am'. Making all in VRMLnodes make[4]: Nothing to be done forall'. Making all in XML make[4]: Nothing to be done for all'. Making all in actions make[4]: Nothing to be done forall'. Making all in annex Making all in HardCopy make[5]: Nothing to be done for all'. Making all in ForeignFiles make[5]: Nothing to be done forall'. Making all in FXViz Making all in nodes make[6]: Nothing to be done for all'. Making all in elements make[6]: Nothing to be done forall'. make[6]: Nothing to be done for all-am'. Making all in Profiler Making all in nodes make[6]: Nothing to be done forall'. Making all in elements make[6]: Nothing to be done for all'. Making all in nodekits make[6]: Nothing to be done forall'. Making all in engines make[6]: Nothing to be done for all'. Making all in utils make[6]: Nothing to be done forall'. make[6]: Nothing to be done for all-am'. make[5]: Nothing to be done forall-am'. Making all in bundles make[4]: Nothing to be done for all'. Making all in caches make[4]: Nothing to be done forall'. Making all in collision make[4]: Nothing to be done for all'. Making all in details make[4]: Nothing to be done forall'. Making all in draggers make[4]: Nothing to be done for all'. Making all in elements make[4]: Nothing to be done forall'. Making all in engines make[4]: Nothing to be done for all'. Making all in errors make[4]: Nothing to be done forall'. Making all in events make[4]: Nothing to be done for all'. Making all in fields make[4]: Nothing to be done forall'. Making all in lists make[4]: Nothing to be done for all'. Making all in lock make[4]: Nothing to be done forall'. Making all in manips make[4]: Nothing to be done for all'. Making all in misc make[4]: Nothing to be done forall'. Making all in navigation make[4]: Nothing to be done for all'. Making all in nodekits make[4]: Nothing to be done forall'. Making all in nodes make[4]: Nothing to be done for all'. Making all in projectors make[4]: Nothing to be done forall'. Making all in sensors make[4]: Nothing to be done for all'. Making all in system config.status: creating include/Inventor/system/gl-headers.h.new include/Inventor/system/gl-headers.h is unchanged config.status: creating include/Inventor/system/inttypes.h config.status: include/Inventor/system/inttypes.h is unchanged /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am config.status: creating include/Inventor/system/gl-headers.h.new include/Inventor/system/gl-headers.h is unchanged config.status: creating include/Inventor/system/inttypes.h config.status: include/Inventor/system/inttypes.h is unchanged Making all in threads make[4]: Nothing to be done forall'. Making all in tools make[4]: Nothing to be done for all'. Making all in scxml make[4]: Nothing to be done forall'. make[4]: Nothing to be done for all-am'. make[3]: Nothing to be done forall-am'. Making all in data Making all in draggerDefaults /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[4]: Nothing to be done for all-am'. Making all in shaders Making all in lights /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[5]: Nothing to be done forall-am'. Making all in vsm /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am make[5]: Nothing to be done for all-am'. make[4]: Nothing to be done forall-am'. Making all in scxml Making all in navigation make[4]: Nothing to be done for all'. make[4]: Nothing to be done forall-am'. make[3]: Nothing to be done for all-am'. Making all in src /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive if /bin/sh ../libtool --mode=compile /usr/local/bin/g++-4.7 -DHAVE_CONFIG_H -I../include -I../../../include -I../src -I../../../src -I../../../include/Inventor/annex -I.. -D_REENTRANT -DCOIN_DEBUG=1 -DCOIN_INTERNAL -g -O2 -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual -fno-builtin -finline-functions -Wreturn-type -Wchar-subscripts -Wparentheses -MT all-actions-cpp.lo -MD -MP -MF ".deps/all-actions-cpp.Tpo" -c -o all-actions-cpp.lotest -f 'actions/all-actions-cpp.cpp' || echo '../../../src/'`actions/all-actions-cpp.cpp; \ then mv -f ".deps/all-actions-cpp.Tpo" ".deps/all-actions-cpp.Plo"; else rm -f ".deps/all-actions-cpp.Tpo"; exit 1; fi mkdir .libs /usr/local/bin/g++-4.7 -DHAVE_CONFIG_H -I../include -I../../../include -I../src -I../../../src -I../../../include/Inventor/annex -I.. -D_REENTRANT -DCOIN_DEBUG=1 -DCOIN_INTERNAL -g -O2 -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual -fno-builtin -finline-functions -Wreturn-type -Wchar-subscripts -Wparentheses -MT all-actions-cpp.lo -MD -MP -MF .deps/all-actions-cpp.Tpo -c ../../../src/actions/all-actions-cpp.cpp -fno-common -DPIC -o .libs/all-actions-cpp.o In file included from ../../../src/actions/all-actions-cpp.cpp:57:0: ../../../src/actions/SoToVRML2Action.cpp: In constructor 'SoToVRML2ActionP::SoToVRML2ActionP()': ../../../src/actions/SoToVRML2Action.cpp:407:17: warning: 'SoToVRML2ActionP::vrml2root' will be initialized after [-Wreorder] ../../../src/actions/SoToVRML2Action.cpp:398:28: warning: 'SoGetBoundingBoxAction SoToVRML2ActionP::bboxaction' [-Wreorder] ../../../src/actions/SoToVRML2Action.cpp:307:3: warning: when initialized here [-Wreorder] In file included from ../../../include/Inventor/actions/SoAction.h:36:0, from ../../../src/actions/SoAction.cpp:206, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/SbBasic.h: In instantiation of 'void SbDividerChk(const char, Type) [with Type = float]': ../../../include/Inventor/SbVec3f.h:89:81: required from here ../../../include/Inventor/SbBasic.h:108:5: error: 'cc_debugerror_post' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] In file included from ../../../include/Inventor/errors/SoDebugError.h:37:0, from ../../../include/Inventor/SbVec3f.h:42, from ../../../include/Inventor/SbColor.h:37, from ../../../include/Inventor/elements/SoLazyElement.h:38, from ../../../include/Inventor/nodes/SoLightModel.h:38, from ../../../include/Inventor/actions/SoCallbackAction.h:44, from ../../../include/Inventor/actions/SoActions.h:36, from ../../../src/actions/SoAction.cpp:215, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/C/errors/debugerror.h:68:19: note: 'void cc_debugerror_post(const char, const char, ...)' declared here, later in the translation unit In file included from ../../../include/Inventor/actions/SoAction.h:36:0, from ../../../src/actions/SoAction.cpp:206, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/SbBasic.h: In instantiation of 'void SbDividerChk(const char, Type) [with Type = int]': ../../../include/Inventor/SbVec2s.h:81:77: required from here ../../../include/Inventor/SbBasic.h:108:5: error: 'cc_debugerror_post' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] In file included from ../../../include/Inventor/errors/SoDebugError.h:37:0, from ../../../include/Inventor/SbVec3f.h:42, from ../../../include/Inventor/SbColor.h:37, from ../../../include/Inventor/elements/SoLazyElement.h:38, from ../../../include/Inventor/nodes/SoLightModel.h:38, from ../../../include/Inventor/actions/SoCallbackAction.h:44, from ../../../include/Inventor/actions/SoActions.h:36, from ../../../src/actions/SoAction.cpp:215, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/C/errors/debugerror.h:68:19: note: 'void cc_debugerror_post(const char, const char, ...)' declared here, later in the translation unit In file included from ../../../include/Inventor/actions/SoAction.h:36:0, from ../../../src/actions/SoAction.cpp:206, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/SbBasic.h: In instantiation of 'void SbDividerChk(const char, Type) [with Type = double]': ../../../include/Inventor/SbVec2s.h:82:83: required from here ../../../include/Inventor/SbBasic.h:108:5: error: 'cc_debugerror_post' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] In file included from ../../../include/Inventor/errors/SoDebugError.h:37:0, from ../../../include/Inventor/SbVec3f.h:42, from ../../../include/Inventor/SbColor.h:37, from ../../../include/Inventor/elements/SoLazyElement.h:38, from ../../../include/Inventor/nodes/SoLightModel.h:38, from ../../../include/Inventor/actions/SoCallbackAction.h:44, from ../../../include/Inventor/actions/SoActions.h:36, from ../../../src/actions/SoAction.cpp:215, from ../../../src/actions/all-actions-cpp.cpp:40: ../../../include/Inventor/C/errors/debugerror.h:68:19: note: 'void cc_debugerror_post(const char, const char, ...)' declared here, later in the translation unit make[4]: [all-actions-cpp.lo] Error 1 make[3]: [all-recursive] Error 1 make[2]: [all] Error 2 make[1]: [all-recursive] Error 1 make: *** [all] Error 2

Comments (10)

  1. phyatt

    This is my first time contributing to a project of this scope before. Let me know if I am being too verbose.

    My environment is Mac OSX, 10.9, Mavericks compiler info:

    $ clang --version
    Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
    Target: x86_64-apple-darwin13.0.0
    Thread model: posix
    

    in response to these lines of error (after calling make):

    Making all in src
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
    if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I../include -I../include -I../src -I../src -I../include/Inventor/annex -I..   -no-cpp-precomp -D_REENTRANT -DCOIN_DEBUG=1 -DCOIN_INTERNAL  -g -O2 -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual  -fno-builtin -fno-for-scope -finline-functions -Wreturn-type -Wchar-subscripts -Wparentheses -MT all-actions-cpp.lo -MD -MP -MF ".deps/all-actions-cpp.Tpo" -c -o all-actions-cpp.lo `test -f 'actions/all-actions-cpp.cpp' || echo './'`actions/all-actions-cpp.cpp; \
        then mv -f ".deps/all-actions-cpp.Tpo" ".deps/all-actions-cpp.Plo"; else rm -f ".deps/all-actions-cpp.Tpo"; exit 1; fi
     g++ -DHAVE_CONFIG_H -I../include -I../include -I../src -I../src -I../include/Inventor/annex -I.. -no-cpp-precomp -D_REENTRANT -DCOIN_DEBUG=1 -DCOIN_INTERNAL -g -O2 -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual -fno-builtin -fno-for-scope -finline-functions -Wreturn-type -Wchar-subscripts -Wparentheses -MT all-actions-cpp.lo -MD -MP -MF .deps/all-actions-cpp.Tpo -c actions/all-actions-cpp.cpp  -fno-common -DPIC -o .libs/all-actions-cpp.o
    clang: error: the clang compiler does not support '-fno-for-scope'
    

    I went into the src folder, and removed the -fno-for-scope flag from the CXXFLAGS variable in the generated Makefile. I looked at the Makefile.am and the configure.ac, and thought I would find the fix and report it instead of directly editing those files for now.

    Here are the three errors that came up at the end of the build:

    In file included from actions/all-actions-cpp.cpp:31:
    In file included from actions/SoAction.cpp:197:
    In file included from ../include/Inventor/actions/SoAction.h:27:
    ../include/Inventor/SbBasic.h:99:5: error: call to function 'cc_debugerror_post' that is neither visible in the template definition nor found by argument-dependent lookup
        cc_debugerror_post(funcname, "divide by zero error.", divider);
        ^
    ../include/Inventor/SbVec3f.h:78:37: note: in instantiation of function template specialization 'SbDividerChk<float>' requested here
      SbVec3f & operator /= (float d) { SbDividerChk("SbVec3f::operator/=(float)", d); return operator *= (1.0f / d); }
                                        ^
    ../include/Inventor/C/errors/debugerror.h:59:19: note: 'cc_debugerror_post' should be declared prior to the call site
    COIN_DLL_API void cc_debugerror_post(const char * source, const char * format, ...);
                      ^
    In file included from actions/all-actions-cpp.cpp:31:
    In file included from actions/SoAction.cpp:197:
    In file included from ../include/Inventor/actions/SoAction.h:27:
    ../include/Inventor/SbBasic.h:99:5: error: call to function 'cc_debugerror_post' that is neither visible in the template definition nor found by argument-dependent lookup
        cc_debugerror_post(funcname, "divide by zero error.", divider);
        ^
    ../include/Inventor/SbVec2s.h:71:35: note: in instantiation of function template specialization 'SbDividerChk<int>' requested here
      SbVec2s & operator /= (int d) { SbDividerChk("SbVec2s::operator/=(int)", d); vec[0] /= d; vec[1] /= d; return *this; }
                                      ^
    ../include/Inventor/C/errors/debugerror.h:59:19: note: 'cc_debugerror_post' should be declared prior to the call site
    COIN_DLL_API void cc_debugerror_post(const char * source, const char * format, ...);
                      ^
    In file included from actions/all-actions-cpp.cpp:31:
    In file included from actions/SoAction.cpp:197:
    In file included from ../include/Inventor/actions/SoAction.h:27:
    ../include/Inventor/SbBasic.h:99:5: error: call to function 'cc_debugerror_post' that is neither visible in the template definition nor found by argument-dependent lookup
        cc_debugerror_post(funcname, "divide by zero error.", divider);
        ^
    ../include/Inventor/SbVec2s.h:72:38: note: in instantiation of function template specialization 'SbDividerChk<double>' requested here
      SbVec2s & operator /= (double d) { SbDividerChk("SbVec2s::operator/=(double)", d); return operator *= (1.0 / d); }
                                         ^
    ../include/Inventor/C/errors/debugerror.h:59:19: note: 'cc_debugerror_post' should be declared prior to the call site
    COIN_DLL_API void cc_debugerror_post(const char * source, const char * format, ...);
    

    That's where it is at for clang in my debugging right now.

  2. paul_koning

    I have it working, with three patches. See below. The first two are specific to clang; the third was previously documented in a number of other places and is also needed for recent versions of gcc.

    diff -ur Coin-3.1.3/configure Coin-3.1.3.new/configure
    --- Coin-3.1.3/configure    2010-03-02 08:20:09.000000000 -0500
    +++ Coin-3.1.3.new/configure    2014-01-12 15:02:17.000000000 -0500
    @@ -25277,11 +25277,11 @@
     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    
    -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -fno-for-scoping" >&5
    -$as_echo_n "checking whether $CXX accepts -fno-for-scoping... " >&6; }
    +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -fno-for-scope" >&5
    +$as_echo_n "checking whether $CXX accepts -fno-for-scope... " >&6; }
    
     sim_ac_save_cppflags=$CPPFLAGS
    -CPPFLAGS="$CPPFLAGS -fno-for-scoping"
    +CPPFLAGS="$CPPFLAGS -fno-for-scope"
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     /* end confdefs.h.  */
    
    diff -ur Coin-3.1.3/include/Inventor/C/base/math-undefs.h Coin-3.1.3.new/include/Inventor/C/base/math-undefs.h
    --- Coin-3.1.3/include/Inventor/C/base/math-undefs.h    2010-03-02 08:20:09.000000000 -0500
    +++ Coin-3.1.3.new/include/Inventor/C/base/math-undefs.h    2014-01-12 15:14:45.000000000 -0500
    @@ -40,6 +40,7 @@
       work as intended.  20070518 larsa
     */
    
    +#ifndef __clang__
     #undef cosf
     #define cosf(x) NO_SINGLEPREC /* whatever that'll give us a compile error... */
     #undef sinf
    @@ -58,6 +59,7 @@
     #define atanf(x) NO_SINGLEPREC
     #undef atan2f
     #define atan2f(x) NO_SINGLEPREC
    +#endif
    
     /* *********************************************************************** */
    
    diff -ur Coin-3.1.3/include/Inventor/SbBasic.h Coin-3.1.3.new/include/Inventor/SbBasic.h
    --- Coin-3.1.3/include/Inventor/SbBasic.h   2010-03-02 08:20:09.000000000 -0500
    +++ Coin-3.1.3.new/include/Inventor/SbBasic.h   2014-01-12 13:31:47.000000000 -0500
    @@ -25,6 +25,7 @@
     \**************************************************************************/
    
     #include <Inventor/C/basic.h>
    +#include <Inventor/C/errors/debugerror.h>
    
     /* ********************************************************************** */
     /* Trap people trying to use Inventor headers while compiling C source code.
    
  3. phyatt

    Those fixes look identical to the ones I was working on. I was having difficulty with hg to push my changes up to my fork. That looks correct to me.

    Good job on those fixes!

  4. Jesse Hamner

    This change fixes problems I was having in Mac OS X 10.9 (Mavericks) using a variety of compilers and versions. Thanks!

    Additional info: macports 2.3.0 clang-3.4

  5. Log in to comment