mpy-cross can't work on MacOSX Catalina [ missing LC_DYSYMTAB]

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
lolomarx
Posts: 15
Joined: Wed Jan 08, 2020 4:03 am

mpy-cross can't work on MacOSX Catalina [ missing LC_DYSYMTAB]

Post by lolomarx » Sun Jan 12, 2020 10:06 am

Any body can help to reproduce this problem on your machine ?

Code: Select all

cd mpy-cross 
make clean
make 
The result with error as below

Code: Select all

CC main.c
CC gccollect.c
LINK mpy-cross
BFD: mpy-cross: unknown load command 0x32
   text	   data	    bss	    dec	    hex	filename
 130999	  13512	    860	 145371	  237db	mpy-cross
And can't perform may-cross as except:

Code: Select all

./mpy-cross --help
dyld: malformed mach-o image: missing LC_DYSYMTAB
Abort trap: 6
My OSX system version is 10.15.2 and gcc version as below :

Code: Select all

gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.16)
Target: x86_64-apple-darwin19.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

User avatar
jimmo
Posts: 1421
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: mpy-cross can't work on MacOSX Catalina [ missing LC_DYSYMTAB]

Post by jimmo » Sun Jan 12, 2020 10:53 am

Can we keep this in the same thread? viewtopic.php?f=18&t=7571

User avatar
lolomarx
Posts: 15
Joined: Wed Jan 08, 2020 4:03 am

Re: mpy-cross can't work on MacOSX Catalina [ missing LC_DYSYMTAB]

Post by lolomarx » Mon Jan 13, 2020 12:43 am

Please help to delete this post . Thx

Post Reply