rene-dev / homebrew-sigrok

sigrok for osx
http://sigrok.org/wiki/Mac_OS_X#Building_using_Homebrew
15 stars 13 forks source link

building libsigrokdecode with "brew" on macOS broken #23

Open workflowsguy opened 4 years ago

workflowsguy commented 4 years ago

Running brew update gives

==> Reinstalling 1 broken dependent from source:
rene-dev/sigrok/libsigrokdecode
==> Downloading http://sigrok.org/download/source/libsigrokdecode/libsigrokdecode-0.5.0.tar.gz
Already downloaded: /Users/guy/Library/Caches/Homebrew/downloads/7ad39221afeb178fe5158b44a419f49c85fe31fc70a97358dfd59c3e84fe8e04--libsigrokdecode-0.5.0.tar.gz
==> Reinstalling rene-dev/sigrok/libsigrokdecode 
==> ./configure --prefix=/usr/local/Cellar/libsigrokdecode/0.5.0
==> make install
Last 15 lines from /Users/stefan/Library/Logs/Homebrew/libsigrokdecode/02.make:
      _get_channels in decoder.o
      _decoder_free in decoder.o
      ...
  "__Py_FalseStruct", referenced from:
      _Decoder_has_channel in type_decoder.o
  "__Py_NoneStruct", referenced from:
      _srd_decoder_doc_get in decoder.o
      _srd_inst_start in instance.o
      _Decoder_put in type_decoder.o
      _Decoder_wait in type_decoder.o
  "__Py_TrueStruct", referenced from:
      _Decoder_has_channel in type_decoder.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: *** [libsigrokdecode.la] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/rene-dev/homebrew-sigrok/issues

This on macOS 10.14.6 with Xcode 11.3.1 and Python 3.8.5

f-schmidt commented 3 years ago

Verbose of the same issue:

==> ./configure --prefix=/usr/local/Cellar/libsigrokdecode/0.5.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... autostuff/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking dependency style of clang... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... x86_64-apple-darwin20.4.0
checking host system type... x86_64-apple-darwin20.4.0
checking for gcc... (cached) clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking whether clang understands -c and -o together... (cached) yes
checking dependency style of clang... (cached) gcc3
checking whether ln -s works... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 786432
checking how to convert x86_64-apple-darwin20.4.0 file names to x86_64-apple-darwin20.4.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin20.4.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from clang object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin20.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/local/Homebrew/Library/Homebrew/shims/mac/super/pkg-config
checking pkg-config is at least version 0.22... yes
checking for python3.6... no
checking for python3.5... no
checking for python3.4... no
checking for python3.3... no
checking for python3.2... no
checking for python3... python3
checking compiler flag for C99... -std=c99
checking compiler flag for visibility... -fvisibility=hidden
checking which C compiler warning flags to use... -Wall -Wextra -Wmissing-prototypes
checking for library containing pow... none required
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for LIBSIGROKDECODE... yes
checking for TESTS... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libsigrokdecode.pc
config.status: creating config.h
config.status: creating version.h
config.status: executing depfiles commands
config.status: executing libtool commands

libsigrokdecode configuration summary:
 - Package version................. 0.5.0
 - Library ABI version............. 4:0:0
 - Prefix.......................... /usr/local/Cellar/libsigrokdecode/0.5.0
 - Building on..................... x86_64-apple-darwin20.4.0
 - Building for.................... x86_64-apple-darwin20.4.0
 - Building shared / static........ yes / yes

Compile configuration:
 - C compiler...................... clang
 - C compiler version.............. Apple clang version 12.0.5 (clang-1205.0.22.9)
 - C compiler flags................ -g -O2
 - Additional C compiler flags..... -std=c99 -fvisibility=hidden
 - C compiler warnings............. -Wall -Wextra -Wmissing-prototypes
 - Linker flags....................

Detected libraries (required):
 - glib-2.0 >= 2.28.0.............. 2.68.2
 - python3 >= 3.2.................. 3.9

Detected libraries (optional):
 - check >= 0.9.4.................. no

==> make install
  CC       srd.lo
  CC       session.lo
  CC       decoder.lo
  CC       instance.lo
  CC       log.lo
  CC       util.lo
  CC       exception.lo
  CC       module_sigrokdecode.lo
  CC       type_decoder.lo
  CC       type_logic.lo
  CC       error.lo
  CC       version.lo
  CCLD     libsigrokdecode.la
Undefined symbols for architecture x86_64:
  "_PyArg_ParseTuple", referenced from:
      _Decoder_put in type_decoder.o
      _Decoder_wait in type_decoder.o
      _Decoder_has_channel in type_decoder.o
  "_PyArg_ParseTupleAndKeywords", referenced from:
      _Decoder_register in type_decoder.o
  "_PyBool_FromLong", referenced from:
      _Decoder_wait in type_decoder.o
  "_PyBytes_AsString", referenced from:
      _py_str_as_str in util.o
      _py_strseq_to_char in util.o
      _py_obj_to_variant in util.o
      _srd_exception_catch in exception.o
      _py_stringify in exception.o
  "_PyBytes_AsStringAndSize", referenced from:
      _Decoder_put in type_decoder.o
  "_PyBytes_FromStringAndSize", referenced from:
      _srd_logic_iternext in type_logic.o
  "_PyBytes_Size", referenced from:
      _Decoder_put in type_decoder.o
  "_PyCallable_Check", referenced from:
      _check_method in decoder.o
      _srd_exception_catch in exception.o
  "_PyDict_GetItem", referenced from:
      _py_pydictitem_as_str in util.o
      _py_pydictitem_as_long in util.o
  "_PyDict_GetItemString", referenced from:
      _srd_decoder_load in decoder.o
      _py_dictitem_as_str in util.o
  "_PyDict_New", referenced from:
      _srd_inst_option_set in instance.o
  "_PyDict_Next", referenced from:
      _srd_decoder_load_all in decoder.o
      _Decoder_wait in type_decoder.o
  "_PyDict_SetItemString", referenced from:
      _srd_inst_option_set in instance.o
  "_PyDict_Size", referenced from:
      _Decoder_wait in type_decoder.o
  "_PyErr_Clear", referenced from:
      _srd_decoder_load_all in decoder.o
      _srd_inst_option_set in instance.o
      _di_thread in instance.o
      _srd_exception_catch in exception.o
      _py_stringify in exception.o
  "_PyErr_Fetch", referenced from:
      _srd_exception_catch in exception.o
  "_PyErr_Format", referenced from:
      _Decoder_put in type_decoder.o
      _Decoder_register in type_decoder.o
  "_PyErr_NormalizeException", referenced from:
      _srd_exception_catch in exception.o
  "_PyErr_Occurred", referenced from:
      _srd_decoder_load in decoder.o
      _srd_inst_option_set in instance.o
      _srd_inst_new in instance.o
      _py_obj_to_variant in util.o
      _Decoder_put in type_decoder.o
  "_PyErr_SetString", referenced from:
      _Decoder_register in type_decoder.o
      _Decoder_wait in type_decoder.o
      _Decoder_has_channel in type_decoder.o
  "_PyExc_Exception", referenced from:
      _Decoder_register in type_decoder.o
      _Decoder_wait in type_decoder.o
      _Decoder_has_channel in type_decoder.o
  "_PyExc_TypeError", referenced from:
      _Decoder_put in type_decoder.o
      _Decoder_register in type_decoder.o
  "_PyFloat_AsDouble", referenced from:
      _py_obj_to_variant in util.o
      _Decoder_put in type_decoder.o
  "_PyFloat_FromDouble", referenced from:
      _srd_inst_option_set in instance.o
  "_PyFloat_Type", referenced from:
      _py_obj_to_variant in util.o
      _Decoder_put in type_decoder.o
      _Decoder_register in type_decoder.o
  "_PyImport_AppendInittab", referenced from:
      _srd_init in srd.o
  "_PyImport_GetModuleDict", referenced from:
      _srd_decoder_load in decoder.o
  "_PyImport_Import", referenced from:
      _py_import_by_name in util.o
  "_PyList_GetItem", referenced from:
      _py_listitem_as_str in util.o
      _Decoder_put in type_decoder.o
      _Decoder_wait in type_decoder.o
  "_PyList_Insert", referenced from:
      _srd_decoder_searchpath_add in srd.o
  "_PyList_New", referenced from:
      _srd_inst_decode in instance.o
      _Decoder_wait in type_decoder.o
  "_PyList_SetItem", referenced from:
      _Decoder_wait in type_decoder.o
      _srd_logic_iternext in type_logic.o
  "_PyList_Size", referenced from:
      _py_attr_as_strlist in util.o
      _Decoder_put in type_decoder.o
      _Decoder_wait in type_decoder.o
  "_PyLong_AsLong", referenced from:
      _srd_decoder_apiver in decoder.o
      _Decoder_put in type_decoder.o
      _Decoder_wait in type_decoder.o
      _Decoder_has_channel in type_decoder.o
  "_PyLong_AsLongLong", referenced from:
      _py_obj_to_variant in util.o
      _Decoder_put in type_decoder.o
  "_PyLong_AsSize_t", referenced from:
      _srd_decoder_load in decoder.o
  "_PyLong_AsUnsignedLongLong", referenced from:
      _py_pydictitem_as_long in util.o
  "_PyLong_FromLong", referenced from:
      _srd_inst_option_set in instance.o
      _srd_inst_start in instance.o
      _Decoder_wait in type_decoder.o
      _get_current_pinvalues in type_decoder.o
  "_PyLong_FromUnsignedLongLong", referenced from:
      _srd_logic_iternext in type_logic.o
  "_PyLong_Type", referenced from:
      _Decoder_register in type_decoder.o
  "_PyModule_AddIntConstant", referenced from:
      _PyInit_sigrokdecode in module_sigrokdecode.o
  "_PyModule_AddObject", referenced from:
      _PyInit_sigrokdecode in module_sigrokdecode.o
  "_PyModule_Create2", referenced from:
      _PyInit_sigrokdecode in module_sigrokdecode.o
  "_PyObject_CallFunction", referenced from:
      _srd_decoder_load_all in decoder.o
  "_PyObject_CallFunctionObjArgs", referenced from:
      _srd_exception_catch in exception.o
  "_PyObject_CallMethod", referenced from:
      _srd_inst_send_meta in session.o
      _srd_inst_start in instance.o
      _srd_inst_decode in instance.o
      _di_thread in instance.o
      _Decoder_put in type_decoder.o
  "_PyObject_CallObject", referenced from:
      _srd_inst_new in instance.o
  "_PyObject_GetAttrString", referenced from:
      _srd_decoder_apiver in decoder.o
      _srd_decoder_load in decoder.o
      _check_method in decoder.o
      _get_channels in decoder.o
      _srd_decoder_doc_get in decoder.o
      _srd_decoder_load_all in decoder.o
      _srd_inst_option_set in instance.o
      ...
  "_PyObject_HasAttrString", referenced from:
      _srd_inst_send_meta in session.o
      _srd_decoder_load in decoder.o
      _get_channels in decoder.o
      _srd_decoder_doc_get in decoder.o
      _srd_inst_option_set in instance.o
      _py_attr_as_str in util.o
      _py_attr_as_strlist in util.o
      ...
  "_PyObject_IsSubclass", referenced from:
      _srd_decoder_load in decoder.o
  "_PyObject_SetAttrString", referenced from:
      _srd_inst_option_set in instance.o
      _srd_inst_start in instance.o
      _Decoder_wait in type_decoder.o
  "_PyObject_Str", referenced from:
      _py_stringify in exception.o
  "_PySequence_Check", referenced from:
      _py_strseq_to_char in util.o
  "_PySequence_GetItem", referenced from:
      _py_strseq_to_char in util.o
  "_PySequence_Size", referenced from:
      _py_strseq_to_char in util.o
  "_PySet_Add", referenced from:
      _srd_decoder_load_all in decoder.o
  "_PySet_New", referenced from:
      _srd_decoder_load_all in decoder.o
  "_PySet_Pop", referenced from:
      _srd_decoder_load_all in decoder.o
  "_PySys_GetObject", referenced from:
      _srd_decoder_searchpath_add in srd.o
  "_PyTuple_GetItem", referenced from:
      _srd_decoder_load in decoder.o
      _get_channels in decoder.o
  "_PyTuple_New", referenced from:
      _Decoder_wait in type_decoder.o
      _get_current_pinvalues in type_decoder.o
  "_PyTuple_SetItem", referenced from:
      _Decoder_wait in type_decoder.o
      _get_current_pinvalues in type_decoder.o
  "_PyTuple_Size", referenced from:
      _srd_decoder_load in decoder.o
      _get_channels in decoder.o
  "_PyType_FromSpec", referenced from:
      _srd_Decoder_type_new in type_decoder.o
      _srd_logic_type_new in type_logic.o
  "_PyType_GenericNew", referenced from:
      _srd_Decoder_type_new in type_decoder.o
      l___const.srd_logic_type_new.slots in type_logic.o
  "_PyType_GetFlags", referenced from:
      _srd_decoder_apiver in decoder.o
      _srd_decoder_load in decoder.o
      _get_channels in decoder.o
      _srd_decoder_load_all in decoder.o
      _py_str_as_str in util.o
      _py_attr_as_strlist in util.o
      _py_listitem_as_str in util.o
      ...
  "_PyType_IsSubtype", referenced from:
      _py_obj_to_variant in util.o
      _Decoder_put in type_decoder.o
  "_PyUnicode_AsUTF8String", referenced from:
      _py_str_as_str in util.o
      _py_strseq_to_char in util.o
      _py_obj_to_variant in util.o
      _srd_exception_catch in exception.o
      _py_stringify in exception.o
  "_PyUnicode_FromString", referenced from:
      _srd_decoder_searchpath_add in srd.o
      _srd_inst_option_set in instance.o
      _py_import_by_name in util.o
  "_PyUnicode_FromStringAndSize", referenced from:
      _srd_decoder_load_all in decoder.o
  "_Py_BuildValue", referenced from:
      _Decoder_register in type_decoder.o
  "_Py_DecRef", referenced from:
      _srd_inst_start in instance.o
      _srd_inst_decode in instance.o
      _di_thread in instance.o
      _srd_inst_free in instance.o
      _Decoder_wait in type_decoder.o
  "_Py_Finalize", referenced from:
      _srd_init in srd.o
      _srd_exit in srd.o
  "_Py_IncRef", referenced from:
      _srd_inst_decode in instance.o
      _di_thread in instance.o
      _Decoder_wait in type_decoder.o
  "_Py_InitializeEx", referenced from:
      _srd_init in srd.o
  "__PyObject_New", referenced from:
      _srd_inst_decode in instance.o
  "__Py_Dealloc", referenced from:
      _srd_decoder_searchpath_add in srd.o
      _srd_inst_send_meta in session.o
      _srd_decoder_apiver in decoder.o
      _srd_decoder_load in decoder.o
      _check_method in decoder.o
      _get_channels in decoder.o
      _decoder_free in decoder.o
      ...
  "__Py_FalseStruct", referenced from:
      _Decoder_has_channel in type_decoder.o
  "__Py_NoneStruct", referenced from:
      _srd_decoder_doc_get in decoder.o
      _srd_inst_start in instance.o
      _Decoder_put in type_decoder.o
      _Decoder_wait in type_decoder.o
  "__Py_TrueStruct", referenced from:
      _Decoder_has_channel in type_decoder.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: *** [libsigrokdecode.la] Error 1

==> Formula
Tap: rene-dev/sigrok
Path: /usr/local/Homebrew/Library/Taps/rene-dev/homebrew-sigrok/libsigrokdecode.rb
==> Configuration
HOMEBREW_VERSION: 3.1.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 92cf9047191393a2d624c64fc28d9595309ba273
Last commit: 19 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ea47b081cd810b3a85bccb2d18a6ebbb6f4b51f1
Core tap last commit: 3 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.bwtjTLIgw9/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit broadwell
Clang: 12.0.5 build 1205
Git: 2.31.1 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.3.1-x86_64
CLT: 12.5.0.22.9
Xcode: 12.5
XQuartz: 2.7.11 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/libffi:/usr/local/opt/openssl@1.1:/usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local/opt/m4:/usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/python@3.9/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/libzip/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/python@3.9/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/libusb/lib/pkgconfig:/usr/local/opt/libsigc++/lib/pkgconfig:/usr/local/opt/glibmm/lib/pkgconfig:/usr/local/opt/libsigrok/lib/pkgconfig:/usr/local/Frameworks/Python.framework/Versions/3.9/lib/pkgconfig/
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/11
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/libzip/bin:/usr/local/opt/gettext/bin:/usr/local/opt/pcre/bin:/usr/local/opt/gdbm/bin:/usr/local/opt/openssl@1.1/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/xz/bin:/usr/local/opt/python@3.9/bin:/usr/local/opt/glib/bin:/usr/local/opt/m4/bin:/usr/local/opt/libtool/bin:/usr/local/opt/doxygen/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/autoconf/bin:/usr/local/opt/automake/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: rene-dev/sigrok/libsigrokdecode 0.5.0 did not build
Logs:
     /Users/fschmidt/Library/Logs/Homebrew/libsigrokdecode/00.options.out
     /Users/fschmidt/Library/Logs/Homebrew/libsigrokdecode/01.configure.cc
     /Users/fschmidt/Library/Logs/Homebrew/libsigrokdecode/02.make.cc
     /Users/fschmidt/Library/Logs/Homebrew/libsigrokdecode/config.log
     /Users/fschmidt/Library/Logs/Homebrew/libsigrokdecode/01.configure
     /Users/fschmidt/Library/Logs/Homebrew/libsigrokdecode/02.make
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/rene-dev/homebrew-sigrok/issues

These open issues may also help:
building libsigrokdecode with "brew" on macOS broken https://github.com/rene-dev/homebrew-sigrok/issues/23