0.17 & Mac Mojave total crash

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: 0.17 & Mac Mojave total crash

Post by Kunda1 »

Can someone get a traceback by Debugging and post here? That could help move this issue along
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
leonardshelby
Posts: 73
Joined: Sat Feb 24, 2018 6:09 pm

Re: 0.17 & Mac Mojave total crash

Post by leonardshelby »

I'd be happy to help, but even getting FreeCAD compiled in debug mode on macOS Mojave seems to be too complicated at this time.

I am trying to compile FreeCAD, basically following https://www.freecadweb.org/wiki/CompileOnMac.

As from another thread I installed

brew install gmsh --with-opencascade

and I added a few variables so cmake would find more stuff:
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DBUILD_QT5=1 \
-DCMAKE_PREFIX_PATH="/usr/local/Cellar/qt/5.11.2/lib/cmake" \
-DCMAKE_PREFIX_PATH="/usr/local/Cellar/qtwebkit/5.212-72cfbd_3/lib/cmake/Qt5WebKitWidgets" \
-DCMAKE_PREFIX_PATH="/usr/local/Cellar/qtwebkit/5.212-72cfbd_3/lib/cmake/Qt5WebKit" \
-DFREECAD_USE_EXTERNAL_KDL=1 \
-DBUILD_FEM_NETGEN=1 \
-DFREECAD_CREATE_MAC_APP=1 \
-DCMAKE_INSTALL_PREFIX="./.." \
../FreeCAD-git/


Make exits at 0% already (with -j5 it sometimes gets to 7-11%..) and I don't know what to do.
leonardshelby
Posts: 73
Joined: Sat Feb 24, 2018 6:09 pm

Re: 0.17 & Mac Mojave total crash

Post by leonardshelby »

Here's the output of make. Are there any more ressources that help getting a working setup to compile FreeCAD on Mojave?

Code: Select all

[  0%] Built target Driver
[  0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh.cpp.o
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12: note: 'finite' declared here
extern int finite(double)
           ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace; did you mean 'greater'?
using ::isgreater;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:720:29: note: 'greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace; did you mean 'greater_equal'?
using ::isgreaterequal;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:749:29: note: 'greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace
using ::isless;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace; did you mean 'less_equal'?
using ::islessequal;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:776:29: note: 'less_equal' declared here
struct _LIBCPP_TEMPLATE_VIS less_equal : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: error: expected member name or ';' after declaration specifiers
static bool isnan(T x)
~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: error: expected member name or ';' after declaration specifiers
  static bool isnan(T)
  ~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: error: expected unqualified-id
bool isnan(T x)
     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh.cpp.o] Error 1
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/all] Error 2
make: *** [all] Error 2
Last edited by leonardshelby on Fri Nov 16, 2018 10:20 pm, edited 1 time in total.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: 0.17 & Mac Mojave total crash

Post by Jee-Bee »

please add in code brackets
Darcad
Posts: 22
Joined: Mon Mar 12, 2018 8:56 am

Re: 0.17 & Mac Mojave total crash

Post by Darcad »

Hi,

I have completely erased FreeCAD and install it again. but I have the same problem. I can't open two documents at the same time (Crash). I have to close the first and open the second one, this way it's working.

If I import a part into a project, it's the same. (Crash)

Terminal write a message, maybe it's the reason of all my problems. Can somebody help me please?.

Thank you in advance.
Attachments
Capture d’écran 2018-12-04 à 13.53.55.png
Capture d’écran 2018-12-04 à 13.53.55.png (27.56 KiB) Viewed 2146 times
OS: macOS 10.14
Ws of OS: 64-bit
Ws of FreeCAD: 64-bit
V: 0.18.14976 (Git)
B T: Release
Brc (HEAD detached at e79a19828)
Hash: e79a19828e2e92269ff96110dfeadaa245ad17c2
Python v: 2.7.15
Qt v: 5.11.2
Coin v: 4.0.0a
OCC v: 7.2.0
(fr_CH)
chrisb
Veteran
Posts: 53924
Joined: Tue Mar 17, 2015 9:14 am

Re: 0.17 & Mac Mojave total crash

Post by chrisb »

You can try to reset the configuration with the button in the preferences. Another possiility is to delete your config files or to move them in case you want to restore them.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
federico.carminati
Posts: 66
Joined: Thu May 18, 2017 1:01 pm
Location: Geneva, Switzerland

Re: 0.17 & Mac Mojave total crash

Post by federico.carminati »

leonardshelby wrote: Fri Nov 16, 2018 8:45 pm Here's the output of make. Are there any more ressources that help getting a working setup to compile FreeCAD on Mojave?

Code: Select all

[  0%] Built target Driver
[  0%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh.cpp.o
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:313:9: error: no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:314:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:315:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
      ~~^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:749:12: note: 'finite' declared here
extern int finite(double)
           ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:318:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:319:9: error: no member named 'isgreater' in the global namespace; did you mean 'greater'?
using ::isgreater;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:720:29: note: 'greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:320:9: error: no member named 'isgreaterequal' in the global namespace; did you mean 'greater_equal'?
using ::isgreaterequal;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:749:29: note: 'greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:321:9: error: no member named 'isless' in the global namespace
using ::isless;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:322:9: error: no member named 'islessequal' in the global namespace; did you mean 'less_equal'?
using ::islessequal;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:776:29: note: 'less_equal' declared here
struct _LIBCPP_TEMPLATE_VIS less_equal : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:26:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:323:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:324:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: error: expected member name or ';' after declaration specifiers
static bool isnan(T x)
~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:40:13: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: error: expected member name or ';' after declaration specifiers
  static bool isnan(T)
  ~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:49:15: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: error: expected unqualified-id
bool isnan(T x)
     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
In file included from /Users/turbo/FreeCAD/FreeCAD-git/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp:47:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkUnsignedCharArray.h:29:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkAOSDataArrayTemplate.h:35:
In file included from /usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArray.h:72:
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
      ^
/usr/local/Cellar/vtk/8.1.1_2/include/vtk-8.1/vtkGenericDataArrayLookupHelper.h:56:6: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/math.h:165:5: note: expanded from macro 'isnan'
    ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))          \
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh.cpp.o] Error 1
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/all] Error 2
make: *** [all] Error 2
I have the same problem. Does anyone has a workable solution? If I remove the line

Code: Select all

-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
this error goes away, but I do not know how to convince cmake not to include it. Does anyone have a solution? Best,
Federico Carminati
Co-Founder and Scientific Director of Transmutex SA
Switzerland/Suisse
User avatar
federico.carminati
Posts: 66
Joined: Thu May 18, 2017 1:01 pm
Location: Geneva, Switzerland

Re: 0.17 & Mac Mojave total crash

Post by federico.carminati »

I managed to build FreeCAD on Mojave. After cmake I run

Code: Select all

for i in `grep -Rl '\-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include'` ; do sed -e 's?-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include??' $i >/tmp/junk ; mv /tmp/junk $i ; done
Really not elegant, but I think this is a cmake problem. best,

Federico Carminati
Federico Carminati
Co-Founder and Scientific Director of Transmutex SA
Switzerland/Suisse
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: 0.17 & Mac Mojave total crash

Post by Kunda1 »

wmayer wrote::point_up:
If I knew how to make a cmake patch I would
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
ezkay
Posts: 1
Joined: Sat Feb 23, 2019 2:27 pm

Re: 0.17 & Mac Mojave total crash

Post by ezkay »

My Mac also crashes immediately as I click on "Edit -> Alignment".
The "About FreeCAD"-window works..

Can somebody please explain what cmake is or how and what to do?


MBP 15" Ret mid 2014 - 2,2 GHz Intel Core i7
FreeCAD 0.17
macOS (that we all already know it su**) Mojave 10.14.2 (18C54)

federico.carminati wrote: Tue Dec 11, 2018 9:40 am I managed to build FreeCAD on Mojave. After cmake I run

Code: Select all

for i in `grep -Rl '\-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include'` ; do sed -e 's?-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include??' $i >/tmp/junk ; mv /tmp/junk $i ; done
Really not elegant, but I think this is a cmake problem. best,

Federico Carminati
Post Reply