I'm trying to compile the most recent master of Freecad on Mac using the instructions Vectronic kindly provided here: https://vectronic.io/posts/building-fre ... ing-conda/.
It was previously working; I had a 0.19 version working nicely. But since I upgraded to latest version of Mojave, there are some glitches (missing workbench selection bar, no grid). So, I thought I would try running the build again to see if that helped.
Basically, I run from the "conda build ./recipe -m ./.ci_support/osx_python3.7.yaml" step; it pulls in updates from https://github.com/FreeCAD/FreeCAD, but fails when it starts to build.
Here's the info in the console at the point it stops:
Code: Select all
-- Check for working C compiler: $BUILD_PREFIX/bin/x86_64-apple-darwin13.4.0-clang -- broken
CMake Error at /Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_build_env/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_build_env/bin/x86_64-apple-darwin13.4.0-clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/brutha/miniconda3/conda-bld/freecad_1565776784984/work/build/CMakeFiles/CMakeTmp
Run Build Command(s):/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_build_env/bin/ninja cmTC_8f50c && [1/2] Building C object CMakeFiles/cmTC_8f50c.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_8f50c
FAILED: cmTC_8f50c
: && /Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_build_env/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/include -fdebug-prefix-map=/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/work=/usr/local/src/conda/freecad-master -fdebug-prefix-map=/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla=/usr/local/src/conda-prefix -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.9 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib -L/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib CMakeFiles/cmTC_8f50c.dir/testCCompiler.c.o -o cmTC_8f50c && :
ld: library not found for -lSystem
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:25 (project)
-- Configuring incomplete, errors occurred!
See also "$SRC_DIR/build/CMakeFiles/CMakeOutput.log".
See also "$SRC_DIR/build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "/Users/brutha/miniconda3/bin/conda-build", line 11, in <module>
sys.exit(main())
File "/Users/brutha/miniconda3/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 445, in main
execute(sys.argv[1:])
File "/Users/brutha/miniconda3/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 436, in execute
verify=args.verify, variants=args.variants)
File "/Users/brutha/miniconda3/lib/python3.7/site-packages/conda_build/api.py", line 209, in build
notest=notest, need_source_download=need_source_download, variants=variants)
File "/Users/brutha/miniconda3/lib/python3.7/site-packages/conda_build/build.py", line 2343, in build_tree
notest=notest,
File "/Users/brutha/miniconda3/lib/python3.7/site-packages/conda_build/build.py", line 1491, in build
cwd=src_dir, stats=build_stats)
File "/Users/brutha/miniconda3/lib/python3.7/site-packages/conda_build/utils.py", line 397, in check_call_env
return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)
File "/Users/brutha/miniconda3/lib/python3.7/site-packages/conda_build/utils.py", line 377, in _func_defaulting_env_to_os_environ
raise subprocess.CalledProcessError(proc.returncode, _args)
subprocess.CalledProcessError: Command '['/bin/bash', '-e', '/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/work/conda_build.sh']' returned non-zero exit status 1.
Code: Select all
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_build_env/bin/x86_64-apple-darwin13.4.0-clang
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-I/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/include;-fdebug-prefix-map=/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/work=/usr/local/src/conda/freecad-master;-fdebug-prefix-map=/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla=/usr/local/src/conda-prefix
Id flags:
The output was:
1
ld: library not found for -lSystem
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_build_env/bin/x86_64-apple-darwin13.4.0-clang++
Build flags: -march=core2;-mtune=haswell;-mssse3;-ftree-vectorize;-fPIC;-fPIE;-fstack-protector-strong;-O2;-pipe;-stdlib=libc++;-fvisibility-inlines-hidden;-std=c++14;-fmessage-length=0;-I/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/include;-fdebug-prefix-map=/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/work=/usr/local/src/conda/freecad-master;-fdebug-prefix-map=/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla=/usr/local/src/conda-prefix
Id flags:
The output was:
1
ld: library not found for -lSystem
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
Determining if the C compiler works failed with the following output:
Change Dir: /Users/brutha/miniconda3/conda-bld/freecad_1565776784984/work/build/CMakeFiles/CMakeTmp
Run Build Command(s):/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_build_env/bin/ninja cmTC_8f50c && [1/2] Building C object CMakeFiles/cmTC_8f50c.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_8f50c
FAILED: cmTC_8f50c
: && /Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_build_env/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/include -fdebug-prefix-map=/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/work=/usr/local/src/conda/freecad-master -fdebug-prefix-map=/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla=/usr/local/src/conda-prefix -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.9 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib -L/Users/brutha/miniconda3/conda-bld/freecad_1565776784984/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib CMakeFiles/cmTC_8f50c.dir/testCCompiler.c.o -o cmTC_8f50c && :
ld: library not found for -lSystem
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Thanks,
Brutha