Build Error on macOS
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 899
- PR merge metrics
- No merged PRs in 30d
Description
When I run python3 setup.py build, it builds for quite a while (with plenty of warnings and a few errors) until it finally just stops with this error:
[there are a lot of warnings before this, but below is where it stops dead]
[ 35%] Built target akaze
[ 36%] Linking C static library libvl.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libvl.a(mathop_avx.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libvl.a(mathop_avx.c.o) has no symbols
32 warnings generated.
[ 36%] Built target vl
[ 37%] Linking CXX static library libgtest.a
[ 37%] Built target gtest
make: *** [all] Error 2
Traceback (most recent call last):
File "/Users/jackm/OpenSfM/setup.py", line 60, in <module>
build_c_extension()
File "/Users/jackm/OpenSfM/setup.py", line 54, in build_c_extension
subprocess.check_call(
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j4']' returned non-zero exit status 2.```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with python3 setup.py build and inspect the make output around libvl.a(mathop_avx.c.o) and the final make: *** [all] Error 2. Start with setup.py and the native build invoked by build_c_extension; done means the macOS build completes successfully without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cpp, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100