Build problems

45 views
Skip to first unread message

Rob McDonald

unread,
Jan 12, 2016, 1:46:32 PM1/12/16
to STEPcode - Developers Mailing List
I just got a new machine with OsX 10.11.2 El Capitan.  The compiler identifies as AppleClang 7.0.2.7000181.

For now, I am trying to use the built-in compiler with Makefiles (no xcode).  I.e. /usr/bin/cc and /usr/bin/c++

I had previously been using STEPCode 7dcd6ef3418a from some time back, but with older compilers.  That version complained a bunch, so my first thought was to update to the latest STEPCode.  This morning I updated to 274de2a91dec, and it bombs out on the first file.

Note, I do pass: "-DCMAKE_CXX_FLAGS = -std=c++11 -stdlib=libc++" when I build STEPCode (and everything else).

It bombs thusly:

[ 14%] Performing build step for 'STEPCODE'

[  1%] Generating ver_string, include/sc_version_string.h

CMake Warning at sc_version_string.cmake:41 (message):

  Git failed ('.git' not found).  Build will contain revision info from

  /Users/ramcdona/Documents/OpenVSP/build/clangrel-VSP/src/external/STEPCODE-prefix/src/STEPCODE/SC_VERSION.txt.



-- sc_version_string.h is up-to-date.

[  1%] Built target version_string

[  1%] Building CXX object src/base/CMakeFiles/base.dir/sc_memmgr.cc.o

clang: error: no input files

/bin/sh: -std=c++11: command not found

make[5]: *** [src/base/CMakeFiles/base.dir/sc_memmgr.cc.o] Error 127

make[4]: *** [src/base/CMakeFiles/base.dir/all] Error 2

make[3]: *** [all] Error 2

make[2]: *** [src/external/STEPCODE-prefix/src/STEPCODE-stamp/STEPCODE-build] Error 2

make[1]: *** [src/external/CMakeFiles/STEPCODE.dir/all] Error 2

make: *** [all] Error 2



Removing the above -D (i.e. passing no flags), it gets further, but has some very strange behavior...


Building non-parallel make, it finishes successfully.


Building with a parallel make (say make -j4), it sometimes stops with an error.  Unfortunately, I didn't save the error and I can't replicate it right now.


Rob




Reply all
Reply to author
Forward
0 new messages