MacOS: make issue libsecp256k1_precomputed.a: No such file or directory #26320

issue dancingsushii opened this issue on October 15, 2022
  1. dancingsushii commented at 5:30 PM on October 15, 2022: none

    <!-- Describe the issue -->

    While building bitcoin core on macOS Monterey 12.6 an issue with libsecp256k1 occurred. While going through the steps in the instruction make could not proceed properly.

    Expected behavior A regular building.

    Actual behavior Output of make is following:

    ./libtool: line 5941: cd: /Users/*****/*****/*****: No such file or directory
    ./libtool: line 1887: cd: .libs/libsecp256k1.lax/libsecp256k1_precomputed.a: No such file or directory
    make[3]: *** [libsecp256k1.la] Error 1
    make[2]: *** [secp256k1/libsecp256k1.la] Error 2
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1
    

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    System information macOS Monterey 12.6

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    <!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

    I also had this output after running the command ./configure (maybe it could be useful too)

    checking for pkg-config... /usr/local/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking build system type... x86_64-apple-darwin21.6.0
    checking host system type... x86_64-apple-darwin21.6.0
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a race-free mkdir -p... ./build-aux/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 to enable maintainer-specific portions of Makefiles... yes
    checking whether make supports nested variables... (cached) yes
    checking for g++... g++
    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 the compiler supports GNU C++... yes
    checking whether g++ accepts -g... yes
    checking for g++ option to enable C++11 features... none needed
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of g++... gcc3
    checking whether g++ supports C++17 features with -std=c++17... yes
    checking whether std::filesystem can be used without link library... yes
    checking whether the compiler supports GNU Objective C++... yes
    checking whether g++ -std=c++17 accepts -g... yes
    checking dependency style of g++ -std=c++17... gcc3
    configure: WARNING: Libtool does not cope well with whitespace in `pwd`
    checking how to print strings... printf
    checking for gcc... gcc
    checking whether the compiler supports GNU C... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to enable C11 features... none needed
    checking whether gcc understands -c and -o together... yes
    checking dependency style of gcc... gcc3
    checking for a sed that does not truncate output... /usr/local/bin/gsed
    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 gcc... /Library/Developer/CommandLineTools/usr/bin/ld
    checking if the linker (/Library/Developer/CommandLineTools/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 whether ln -s works... yes
    checking the maximum length of command line arguments... 786432
    checking how to convert x86_64-apple-darwin21.6.0 file names to x86_64-apple-darwin21.6.0 format... func_convert_file_noop
    checking how to convert x86_64-apple-darwin21.6.0 file names to toolchain format... func_convert_file_noop
    checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
    checking for file... file
    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 ar... ar
    checking for archiver [@FILE](/bitcoin-bitcoin/contributor/file/) support... no
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc 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 for stdio.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for strings.h... yes
    checking for sys/stat.h... yes
    checking for sys/types.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... yes
    checking for gcc option to produce PIC... -fno-common -DPIC
    checking if gcc PIC flag -fno-common -DPIC works... yes
    checking if gcc static flag -static works... no
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin21.6.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 how to run the C++ preprocessor... g++ -std=c++17 -E
    checking for ld used by g++ -std=c++17... /Library/Developer/CommandLineTools/usr/bin/ld
    checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
    checking whether the g++ -std=c++17 linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
    checking for g++ -std=c++17 option to produce PIC... -fno-common -DPIC
    checking if g++ -std=c++17 PIC flag -fno-common -DPIC works... yes
    checking if g++ -std=c++17 static flag -static works... no
    checking if g++ -std=c++17 supports -c -o file.o... yes
    checking if g++ -std=c++17 supports -c -o file.o... (cached) yes
    checking whether the g++ -std=c++17 linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin21.6.0 dyld
    checking how to hardcode library paths into programs... immediate
    checking for ar... /usr/bin/ar
    checking for gcov... /usr/bin/gcov
    checking for llvm-cov... no
    checking for lcov... no
    checking for python3.6... no
    checking for python3.7... /Users/*****/.pyenv/shims/python3.7
    checking for genhtml... no
    checking for git... /usr/bin/git
    checking for ccache... no
    checking for xgettext... /usr/local/bin/xgettext
    checking for hexdump... /usr/bin/hexdump
    checking for objcopy... no
    checking for doxygen... no
    checking whether C++ compiler accepts -Werror... yes
    checking whether the linker accepts -Wl,-fatal_warnings... yes
    checking whether C++ compiler accepts -Wall... yes
    checking whether C++ compiler accepts -Wextra... yes
    checking whether C++ compiler accepts -Wgnu... yes
    checking whether C++ compiler accepts -Wformat -Wformat-security... yes
    checking whether C++ compiler accepts -Wvla... yes
    checking whether C++ compiler accepts -Wshadow-field... yes
    checking whether C++ compiler accepts -Wthread-safety... yes
    checking whether C++ compiler accepts -Wloop-analysis... yes
    checking whether C++ compiler accepts -Wredundant-decls... yes
    checking whether C++ compiler accepts -Wunused-member-function... yes
    checking whether C++ compiler accepts -Wdate-time... yes
    checking whether C++ compiler accepts -Wconditional-uninitialized... yes
    checking whether C++ compiler accepts -Wduplicated-branches... no
    checking whether C++ compiler accepts -Wduplicated-cond... no
    checking whether C++ compiler accepts -Wlogical-op... no
    checking whether C++ compiler accepts -Woverloaded-virtual... yes
    checking whether C++ compiler accepts -Wsuggest-override... yes
    checking whether C++ compiler accepts -Wunreachable-code-loop-increment... yes
    checking whether C++ compiler accepts -Wimplicit-fallthrough... yes
    checking whether C++ compiler accepts -Wunused-parameter... yes
    checking whether C++ compiler accepts -Wself-assign... yes
    checking whether C++ compiler accepts -Wdeprecated-copy... yes
    checking whether C++ compiler accepts -fno-extended-identifiers... no
    checking whether C++ compiler accepts -msse4.2... yes
    checking whether C++ compiler accepts -msse4.1... yes
    checking whether C++ compiler accepts -mavx -mavx2... yes
    checking whether C++ compiler accepts -msse4 -msha... yes
    checking whether C++ compiler accepts -mpclmul... yes
    checking for SSE4.2 intrinsics... yes
    checking for SSE4.1 intrinsics... yes
    checking for AVX2 intrinsics... yes
    checking for x86 SHA-NI intrinsics... yes
    checking whether C++ compiler accepts -march=armv8-a+crc... no
    checking whether C++ compiler accepts -march=armv8-a+crypto... no
    checking for ARMv8 CRC32 intrinsics... no
    checking for ARMv8 SHA-NI intrinsics... no
    checking for brew... brew
    checking whether the linker accepts -Wl,-headerpad_max_install_names... yes
    checking whether byte ordering is bigendian... no
    checking how to run the C preprocessor... gcc -E
    checking whether gcc is Clang... yes
    checking whether pthreads work with "-pthread" and "-lpthread"... yes
    checking whether Clang needs flag to prevent "argument unused" warning when linking with -pthread... no
    checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    checking whether more special flags are required for pthreads... no
    checking for PTHREAD_PRIO_INHERIT... yes
    checking whether std::atomic can be used without link library... yes
    checking for special C compiler options needed for large files... no
    checking for _FILE_OFFSET_BITS value needed for large files... no
    checking for g++ -std=c++17 options needed to detect all undeclared functions... none needed
    checking whether strerror_r is declared... yes
    checking whether strerror_r returns char *... no
    checking for library containing clock_gettime... none required
    checking whether C++ compiler accepts -fPIC... yes
    checking whether C++ compiler accepts -fstack-reuse=none... no
    checking whether C++ compiler accepts -Wstack-protector... yes
    checking whether C++ compiler accepts -fstack-protector-all... yes
    checking whether C++ compiler accepts -fcf-protection=full... yes
    checking whether C++ compiler accepts -fstack-clash-protection... no
    checking whether C++ preprocessor accepts -D_FORTIFY_SOURCE=2... yes
    checking whether C++ preprocessor accepts -U_FORTIFY_SOURCE... yes
    checking whether the linker accepts -Wl,--enable-reloc-section... no
    checking whether the linker accepts -Wl,--dynamicbase... no
    checking whether the linker accepts -Wl,--nxcompat... no
    checking whether the linker accepts -Wl,--high-entropy-va... no
    checking whether the linker accepts -Wl,-z,relro... no
    checking whether the linker accepts -Wl,-z,now... no
    checking whether the linker accepts -Wl,-z,separate-code... no
    checking whether the linker accepts -fPIE -pie... no
    checking whether the linker accepts -Wl,-dead_strip... yes
    checking whether the linker accepts -Wl,-dead_strip_dylibs... yes
    checking whether the linker accepts -Wl,-bind_at_load... yes
    checking for endian.h... no
    checking for sys/endian.h... no
    checking for byteswap.h... no
    checking for unistd.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking for sys/stat.h... (cached) yes
    checking for sys/select.h... yes
    checking for sys/prctl.h... no
    checking for sys/sysctl.h... yes
    checking for vm/vm_param.h... no
    checking for sys/vmmeter.h... yes
    checking for sys/resources.h... no
    checking whether getifaddrs is declared... yes
    checking whether ifaddrs funcs can be used without link library... yes
    checking whether freeifaddrs is declared... yes
    checking whether ifaddrs funcs can be used without link library... yes
    checking whether fork is declared... yes
    checking whether setsid is declared... yes
    checking whether pipe2 is declared... no
    checking for timingsafe_bcmp... yes
    checking whether le16toh is declared... no
    checking whether le32toh is declared... no
    checking whether le64toh is declared... no
    checking whether htole16 is declared... no
    checking whether htole32 is declared... no
    checking whether htole64 is declared... no
    checking whether be16toh is declared... no
    checking whether be32toh is declared... no
    checking whether be64toh is declared... no
    checking whether htobe16 is declared... no
    checking whether htobe32 is declared... no
    checking whether htobe64 is declared... no
    checking whether bswap_16 is declared... no
    checking whether bswap_32 is declared... no
    checking whether bswap_64 is declared... no
    checking for __builtin_clzl... yes
    checking for __builtin_clzll... yes
    checking for getmemoryinfo... no
    checking for mallopt M_ARENA_MAX... no
    checking for posix_fallocate... no
    checking for default visibility attribute... yes
    checking for dllexport attribute... no
    checking for thread_local support... yes
    checking for gmtime_r... yes
    checking for Linux getrandom syscall... no
    checking for getentropy via random.h... yes
    checking for sysctl... yes
    checking for sysctl KERN_ARND... no
    checking for if type char equals int8_t... no
    checking for fdatasync... no
    checking for F_FULLFSYNC... yes
    checking for O_CLOEXEC... yes
    checking for __builtin_prefetch... yes
    checking for _mm_prefetch... yes
    checking for strong getauxval support in the system headers... no
    checking for std::system... yes
    checking for ::_wsystem... no
    checking for Qt5Core >= 5.11.3... yes
    checking for Qt5Gui >= 5.11.3... yes
    checking for Qt5Widgets >= 5.11.3... yes
    checking for Qt5Network >= 5.11.3... yes
    checking for Qt5Test >= 5.11.3... yes
    checking for Qt5DBus >= 5.11.3... yes
    checking for static Qt... no
    checking whether -fPIE can be used with this Qt config... yes
    checking for moc-qt5... no
    checking for moc5... no
    checking for moc... /usr/local/Cellar/qt@5/5.15.6/bin/moc
    checking for uic-qt5... no
    checking for uic5... no
    checking for uic... /usr/local/Cellar/qt@5/5.15.6/bin/uic
    checking for rcc-qt5... no
    checking for rcc5... no
    checking for rcc... /usr/local/Cellar/qt@5/5.15.6/bin/rcc
    checking for lrelease-qt5... no
    checking for lrelease5... no
    checking for lrelease... /usr/local/Cellar/qt@5/5.15.6/bin/lrelease
    checking for lupdate-qt5... no
    checking for lupdate5... no
    checking for lupdate... /usr/local/Cellar/qt@5/5.15.6/bin/lupdate
    checking for lconvert-qt5... no
    checking for lconvert5... no
    checking for lconvert... /usr/local/Cellar/qt@5/5.15.6/bin/lconvert
    checking whether the linker accepts -framework Foundation -framework AppKit... yes
    checking whether to build Bitcoin Core GUI... yes (Qt5)
    checking whether main function is needed for fuzz binary... checking whether the linker accepts ... no
    yes
    checking for __builtin_mul_overflow... yes
    checking for sqlite3 >= 3.7.17... yes
    checking whether to build wallet with support for sqlite... yes
    checking whether Userspace, Statically Defined Tracing tracepoints are supported... no
    checking for miniupnpc/miniupnpc.h... no
    checking for miniupnpc/upnpcommands.h... no
    checking for miniupnpc/upnperrors.h... no
    checking for natpmp.h... no
    checking for boostlib >= 1.64.0 (106400)... yes
    checking whether Boost.Process can be used... yes
    checking for seccomp-bpf (Linux x86-64)... no
    checking for libevent >= 2.1.8... yes
    checking for libevent_pthreads >= 2.1.8... yes
    checking if evhttp_connection_get_peer expects const char**... no
    checking for libqrencode... yes
    checking for libzmq >= 4... yes
    checking for libmultiprocess... no
    checking whether to build bitcoind... yes
    checking whether to build bitcoin-cli... yes
    checking whether to build bitcoin-tx... yes
    checking whether to build bitcoin-wallet... yes
    checking whether to build bitcoin-util... yes
    checking whether to build experimental bitcoin-chainstate... no
    checking whether to build libraries... yes
    checking if ccache should be used... no
    checking if wallet should be enabled... yes
    checking whether to build with support for UPnP... no
    checking whether to build with support for NAT-PMP... no
    checking whether to build GUI with support for D-Bus... yes
    checking whether to build GUI with support for QR codes... yes
    checking whether to build test_bitcoin-qt... yes
    checking whether to build test_bitcoin... yes
    checking whether to reduce exports... no
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating libbitcoinconsensus.pc
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating doc/man/Makefile
    config.status: creating share/setup.nsi
    config.status: creating share/qt/Info.plist
    config.status: creating test/config.ini
    config.status: creating contrib/devtools/split-debug.sh
    config.status: creating src/config/bitcoin-config.h
    config.status: src/config/bitcoin-config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing libtool commands
    === configuring in src/secp256k1 (/Users/*****/*****/*****/*****/src/secp256k1)
    configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local'  'PYTHONPATH=/Users/******/******/spark-3.3.0-bin-hadoop3s/python/lib/py4j-0.10.9.5-src.zip:/Users/******/******/spark-3.3.0-bin-hadoop3s/python/:' '--disable-shared' '--with-pic' '--enable-benchmark=no' '--enable-module-recovery' '--enable-module-schnorrsig' --cache-file=/dev/null --srcdir=.
    checking build system type... x86_64-apple-darwin21.6.0
    checking host system type... x86_64-apple-darwin21.6.0
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a race-free mkdir -p... ./build-aux/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 gcc... gcc
    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 the compiler supports GNU C... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to enable C11 features... none needed
    checking whether gcc understands -c and -o together... yes
    checking whether make supports the include directive... yes (GNU style)
    checking dependency style of gcc... gcc3
    checking dependency style of gcc... gcc3
    checking for ar... ar
    checking the archiver (ar) interface... ar
    configure: WARNING: Libtool does not cope well with whitespace in `pwd`
    checking how to print strings... printf
    checking for a sed that does not truncate output... /usr/local/bin/gsed
    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 gcc... /Library/Developer/CommandLineTools/usr/bin/ld
    checking if the linker (/Library/Developer/CommandLineTools/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 whether ln -s works... yes
    checking the maximum length of command line arguments... 786432
    checking how to convert x86_64-apple-darwin21.6.0 file names to x86_64-apple-darwin21.6.0 format... func_convert_file_noop
    checking how to convert x86_64-apple-darwin21.6.0 file names to toolchain format... func_convert_file_noop
    checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
    checking for file... file
    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](/bitcoin-bitcoin/contributor/file/) support... no
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc 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 for stdio.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for strings.h... yes
    checking for sys/stat.h... yes
    checking for sys/types.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... yes
    checking for gcc option to produce PIC... -fno-common -DPIC
    checking if gcc PIC flag -fno-common -DPIC works... yes
    checking if gcc static flag -static works... no
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin21.6.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... no
    checking whether to build static libraries... yes
    checking for brew... brew
    checking if gcc supports -Werror=unknown-warning-option... yes
    checking if gcc supports -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef... yes
    checking if gcc supports -Wno-overlength-strings... yes
    checking if gcc supports -Wall... yes
    checking if gcc supports -Wno-unused-function... yes
    checking if gcc supports -Wextra... yes
    checking if gcc supports -Wcast-align... yes
    checking if gcc supports -Wcast-align=strict... no
    checking if gcc supports -Wconditional-uninitialized... yes
    checking if gcc supports -fvisibility=hidden... yes
    checking for x86_64 assembly availability... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libsecp256k1.pc
    config.status: creating src/libsecp256k1-config.h
    config.status: src/libsecp256k1-config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing libtool commands
    
    Build Options:
      with external callbacks = no
      with benchmarks         = no
      with tests              = yes
      with coverage           = no
      with examples           = no
      module ecdh             = no
      module recovery         = yes
      module extrakeys        = yes
      module schnorrsig       = yes
    
      asm                     = x86_64
      ecmult window size      = 15
      ecmult gen prec. bits   = 4
    
      valgrind                = no
      CC                      = gcc
      CPPFLAGS                =  
      SECP_CFLAGS             = -O2  -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-overlength-strings -Wall -Wno-unused-function -Wextra -Wcast-align -Wconditional-uninitialized -fvisibility=hidden 
      CFLAGS                  = -g -O2
      LDFLAGS                 = 
    
    Options used to compile and link:
      external signer = yes
      multiprocess    = no
      with experimental syscall sandbox support = no
      with libs       = yes
      with wallet     = yes
        with sqlite   = yes
        with bdb      = yes
      with gui / qt   = yes
        with qr       = yes
      with zmq        = yes
      with test       = yes
      with fuzz binary = yes
      with bench      = yes
      with upnp       = no
      with natpmp     = no
      use asm         = yes
      USDT tracing    = no
      sanitizers      = 
      debug enabled   = no
      gprof enabled   = no
      werror          = no
      LTO             = no
    
      target os       = darwin21.6.0
      build os        = darwin21.6.0
    
      CC              = gcc
      CFLAGS          = -pthread -g -O2
      CPPFLAGS        =   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2  -DHAVE_BUILD_INFO -DMAC_OSX -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -DPROVIDE_FUZZ_MAIN_FUNCTION 
      CXX             = g++ -std=c++17
      CXXFLAGS        =    -Wstack-protector -fstack-protector-all -fcf-protection=full  -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wrange-loop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wunreachable-code-loop-increment -Wimplicit-fallthrough  -Wno-unused-parameter -Wno-self-assign -Wno-deprecated-copy    -g -O2
      LDFLAGS         =  -lpthread  -Wl,-bind_at_load   -Wl,-headerpad_max_install_names -Wl,-dead_strip -Wl,-dead_strip_dylibs 
      AR              = /usr/bin/ar
      ARFLAGS         = cr
    
    

    Any help would be appreciated!

  2. dancingsushii added the label Bug on Oct 15, 2022
  3. hebasto commented at 5:57 PM on October 15, 2022: member

    While building bitcoin core on macOS Monterey 12.6 an issue with libsecp256k1 occurred. While going through the steps in the instruction make could not proceed properly.

    Building libsecp256k1 is integrated into the Bitcoin Core build system. Therefore, no need to build it separately.

  4. hebasto removed the label Bug on Oct 15, 2022
  5. hebasto added the label Build system on Oct 15, 2022
  6. dancingsushii commented at 6:07 PM on October 15, 2022: none

    While building bitcoin core on macOS Monterey 12.6 an issue with libsecp256k1 occurred. While going through the steps in the instruction make could not proceed properly.

    Building libsecp256k1 is integrated into the Bitcoin Core build system. Therefore, no need to build it separately.

    Yes, I understand that and I don't build it separately. But that does not change the fact that the problem occurs in the Bitcoin Core build process.

  7. hebasto commented at 6:23 PM on October 15, 2022: member

    Yes, I understand that and I don't build it separately.

    It seems, you do, as this instruction been taken from https://github.com/bitcoin-core/secp256k1 repo:

    While going through the steps in the instruction make could not proceed properly.

    This output:

    Build Options: with external callbacks = no with benchmarks = no with tests = yes with coverage = no with examples = no module ecdh = no module recovery = yes module extrakeys = yes module schnorrsig = yes

    asm = x86_64 ecmult window size = 15 ecmult gen prec. bits = 4

    valgrind = no CC = gcc CPPFLAGS =
    SECP_CFLAGS = -O2 -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-overlength-strings -Wall -Wno-unused-function -Wextra -Wcast-align -Wconditional-uninitialized -fvisibility=hidden CFLAGS = -g -O2 LDFLAGS =

    shows that libsecp256k1 has been configured properly.

    Could try please one more time in the Bitcoin Core repo, not in libsecp256k1 one:

    ./autogen.sh
    ./configure
    make clean
    make
    

    ?

  8. dancingsushii commented at 7:06 PM on October 15, 2022: none

    Oh, my bad! I inserted the wrong link. Sorry for the confusion. Of course, I followed this guide.

    Nevertheless, I have tried building again in the correct directory, and the problem still persists.

      CC       src/libsecp256k1_la-secp256k1.lo
      CC       src/libsecp256k1_precomputed_la-precomputed_ecmult.lo
      CC       src/libsecp256k1_precomputed_la-precomputed_ecmult_gen.lo
      CCLD     libsecp256k1_precomputed.la
      CCLD     libsecp256k1.la
    ./libtool: line 5941: cd: /Users/*****/*****/*****: No such file or directory
    ./libtool: line 1887: cd: .libs/libsecp256k1.lax/libsecp256k1_precomputed.a: No such file or directory
    make[3]: *** [libsecp256k1.la] Error 1
    make[2]: *** [secp256k1/libsecp256k1.la] Error 2
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1
    
  9. hebasto commented at 9:11 PM on October 15, 2022: member

    @dancingsushii

    From your configure output:

    configure: WARNING: Libtool does not cope well with whitespace in `pwd`
    

    Please ensure that the full path to your local Bitcoin Core repository directory contain no spaces.

  10. hebasto added the label Questions and Help on Oct 15, 2022
  11. maflcko commented at 8:49 AM on October 17, 2022: member

    Closing for now. Let us know if you have any other questions

  12. maflcko closed this on Oct 17, 2022

  13. dancingsushii commented at 11:57 AM on October 21, 2022: none

    Hi, yeah, it helped a lot. Many thanks! Can be closed.

  14. bitcoin locked this on Oct 21, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 06:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me