Skip to content
Snippets Groups Projects

Update how-to-build.rst - hint for macOS rgd. common strip problem [MANUAL MERGE]

Closed Michael Huebler requested to merge mh/firmware:patch-2 into master
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

Merge request pipeline #2824 passed

Merge request pipeline passed for d3eecc3a

Approval is optional

Closed by rahixrahix 5 years ago (Sep 16, 2019 12:11pm UTC)

Merge details

  • The changes were not merged into master.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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.
  • You can test locally by running ./Documentation/build-docs.sh and then see the output in Documentation/output/index.html

  • Please register or sign in to reply
  • rahix mentioned in commit 4a66fb09

    mentioned in commit 4a66fb09

  • Michael Huebler mentioned in commit 3c83b852

    mentioned in commit 3c83b852

  • Manually merged.

  • closed

  • rahix changed title from Update how-to-build.rst - hint for macOS rgd. common strip problem to Update how-to-build.rst - hint for macOS rgd. common strip problem [MANUAL MERGE]

    changed title from Update how-to-build.rst - hint for macOS rgd. common strip problem to Update how-to-build.rst - hint for macOS rgd. common strip problem [MANUAL MERGE]

  • Please register or sign in to reply
    Loading