make fails on Mac OS X 10.13 High Sierra with "Undefined symbols for architecture x86_64"
Posted: Sat May 12, 2018 8:44 am
Hi!
I'm on Mac OS X 10.13 High Sierra trying to build hello_world but it always fails with the following error message:
There seems to be something wrong reg. 32/64 Bit, at least Undefined symbols for architecture x86_64 and symbol(s) not found for architecture x86_64 do point in this direction, but I can't find any solutions on the web for this particular error message and I'm not deep into C make, link, etc.
I've installed the latest toolchain (xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar) and ESP-IF (2018-05-08) as well as XCODE Version 9.3.1:
My PATH looks like this:
IDF_PATH is set:
Looking forward to any hints on this!
Regards,
Michael
I'm on Mac OS X 10.13 High Sierra trying to build hello_world but it always fails with the following error message:
Code: Select all
MacBook-Pro-II:hello_world ms1$ make menuconfig
lxdialog/check-lxdialog.sh -check cc -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -Wno-format-security -DLOCALE -MD -lncurses
cc -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -Wno-format-security -DLOCALE -MD -c -o lxdialog/checklist.o lxdialog/checklist.c
cc -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -Wno-format-security -DLOCALE -MD -c -o lxdialog/util.o lxdialog/util.c
cc -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -Wno-format-security -DLOCALE -MD -c -o lxdialog/inputbox.o lxdialog/inputbox.c
cc -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -Wno-format-security -DLOCALE -MD -c -o lxdialog/textbox.o lxdialog/textbox.c
cc -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -Wno-format-security -DLOCALE -MD -c -o lxdialog/yesno.o lxdialog/yesno.c
cc -DCURSES_LOC="<ncurses.h>" -DKBUILD_NO_NLS -Wno-format-security -DLOCALE -MD -c -o lxdialog/menubox.o lxdialog/menubox.c
cc -o mconf mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o -lncurses
Undefined symbols for architecture x86_64:
"_regcompA", referenced from:
_sym_re_search in zconf.tab.o
"_regexecA", referenced from:
_sym_re_search in zconf.tab.o
"_regfreeA", referenced from:
_sym_re_search in zconf.tab.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [mconf] Error 1
I've installed the latest toolchain (xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar) and ESP-IF (2018-05-08) as well as XCODE Version 9.3.1:
Code: Select all
MacBook-Pro-II:hello_world ms1$ cc --version
Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Code: Select all
MacBook-Pro-II:hello_world ms1$ echo $PATH
/Users/ms1/.rvm/gems/ruby-2.5.1/bin:/Users/ms1/.rvm/gems/ruby-2.5.1@global/bin:/Users/ms1/.rvm/rubies/ruby-2.5.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/MacGPG2/bin:/usr/local/bin:/Users/ms1/bin:/Users/ms1/Programmierung/Projekte/soacsv2mt940/bin:/Users/ms1/Programmierung/esp/xtensa-esp32-elf/bin:/Users/ms1/.rvm/bin
Code: Select all
MacBook-Pro-II:hello_world ms1$ echo $IDF_PATH
/Users/ms1/Programmierung/esp/esp-idf
Regards,
Michael