igrr / mkspiffs

Tool to build and unpack SPIFFS images
MIT License
186 stars 91 forks source link

Fails to compile in OSX Mojave #58

Open kendersec opened 5 years ago

kendersec commented 5 years ago

I'm unable to compile without errors

ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS) ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd Undefined symbols for architecture i386

It seems i386 has now been removed in OSX - removing it from the Makefile builds successfully.

thomasnordquist commented 5 years ago

I can also confirm this issue. Removing the i386 architecture from the Makefile solved the issue for me as well.

thomasnordquist commented 5 years ago

The command uname -r yields 18.2.0 as operating system release on my machine (running Mojave). Just for documentation purposes

hamza-rizwan commented 5 years ago

Confirming the solution proposed in above comments.