-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Attempting to run python a_compile.py
on an Apple M1 mac results in error.
If it helps, building with cmake works as expected when using a similar project https://github.com/neurolabusc/pigz-bench
environment details
System Version: macOS 12.6 (21G115)
Kernel Version: Darwin 21.6.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
Model Name: MacBook Pro
Model Identifier: MacBookPro18,3
Chip: Apple M1 Pro
Total Number of Cores: 10 (8 performance and 2 efficiency)
Memory: 16 GB
System Firmware Version: 7459.141.1
OS Loader Version: 7459.141.1
full console output below
CMake Deprecation Warning at /Users/andrej/Documents/Projects/pigzbench-master/zlib-madler/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
zlib
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/andrej/Documents/Projects/pigzbench-master/pigz-madler/build
Consolidate compiler generated dependencies of target zlibstatic
[ 80%] Built target zlibstatic
Consolidate compiler generated dependencies of target pigz
[ 85%] Linking C executable pigz
[100%] Built target pigz
/Users/andrej/Documents/Projects/pigzbench-master/pigz-madler/build/pigz->/Users/andrej/Documents/Projects/pigzbench-master/exe/pigz-madler
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/andrej/Documents/Projects/pigzbench-master/pigz-cloudflare/build
Consolidate compiler generated dependencies of target zlib
[ 81%] Built target zlib
Consolidate compiler generated dependencies of target pigz
[ 86%] Linking C executable pigz
Undefined symbols for architecture arm64:
"_get_crc_table", referenced from:
_main in pigz.c.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [pigz] Error 1
make[1]: *** [CMakeFiles/pigz.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
File "/Users/andrej/mambaforge/envs/python/lib/python3.10/shutil.py", line 815, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/andrej/Documents/Projects/pigzbench-master/pigz-cloudflare/build/Release/pigz' -> '/Users/andrej/Documents/Projects/pigzbench-master/exe/pigz-cloudflare'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/andrej/Documents/Projects/pigzbench-master/a_compile.py", line 174, in <module>
compile_pigz(args.rebuild)
File "/Users/andrej/Documents/Projects/pigzbench-master/a_compile.py", line 164, in compile_pigz
shutil.move(pigzexe, outnm)
File "/Users/andrej/mambaforge/envs/python/lib/python3.10/shutil.py", line 835, in move
copy_function(src, real_dst)
File "/Users/andrej/mambaforge/envs/python/lib/python3.10/shutil.py", line 434, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/Users/andrej/mambaforge/envs/python/lib/python3.10/shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/andrej/Documents/Projects/pigzbench-master/pigz-cloudflare/build/Release/pigz'
Metadata
Metadata
Assignees
Labels
No labels