Update how-to-build.rst - hint for macOS rgd. common strip problem [MANUAL MERGE]
1 unresolved thread
1 unresolved thread
Update how-to-build.rst - Added another hint for macOS, for the common problem that strip fails on mpy-cross with "malformed object (unknown load command 9)"
Edited by rahix
Merge request reports
Activity
added 5-Documentation label
added 1 commit
- d3eecc3a - maOS "strip" hint formatted as a note, as requested
137 137 $ ninja -C build/ -t clean 138 138 139 139 Otherwise, rerunning ``./bootstrap.sh`` will also clean the build-directory. 140 141 .. note:: macOS: If ``strip`` fails to work on the freshly compiled mpy-cross: "strip: object: (...)/lib/micropython/micropython/mpy-cross/mpy-cross malformed object (unknown load command 9)", you a likely not using the `strip` that matches to your ``clang``. Do ``which strip && which clang``, and if the paths don't match, clean up your PATHs, or as a quick hack, create a symlink for strip. Sorry, this formatting is not quite correct. You need to use:
.. note:: **macOS**: If ``strip`` fails to work on the freshly compiled ``mpy-cross``: "strip: object: (...)/lib/micropython/micropython/mpy-cross/mpy-cross malformed object (unknown load command 9)", you a likely not using the `strip` that matches to your ``clang``. Do ``which strip && which clang``, and if the paths don't match, clean up your PATHs, or as a quick hack, create a symlink for strip.
mentioned in commit 4a66fb09
mentioned in commit 3c83b852
Please register or sign in to reply