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

issue dancingsushii openend this issue on October 15, 2022
  1. dancingsushii commented at 5:30 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.

    Expected behavior A regular building.

    Actual behavior Output of make is following:

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

    System information macOS Monterey 12.6

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

      0checking for pkg-config... /usr/local/bin/pkg-config
      1checking pkg-config is at least version 0.9.0... yes
      2checking build system type... x86_64-apple-darwin21.6.0
      3checking host system type... x86_64-apple-darwin21.6.0
      4checking for a BSD-compatible install... /usr/bin/install -c
      5checking whether build environment is sane... yes
      6checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
      7checking for gawk... no
      8checking for mawk... no
      9checking for nawk... no
     10checking for awk... awk
     11checking whether make sets $(MAKE)... yes
     12checking whether make supports nested variables... yes
     13checking whether to enable maintainer-specific portions of Makefiles... yes
     14checking whether make supports nested variables... (cached) yes
     15checking for g++... g++
     16checking whether the C++ compiler works... yes
     17checking for C++ compiler default output file name... a.out
     18checking for suffix of executables... 
     19checking whether we are cross compiling... no
     20checking for suffix of object files... o
     21checking whether the compiler supports GNU C++... yes
     22checking whether g++ accepts -g... yes
     23checking for g++ option to enable C++11 features... none needed
     24checking whether make supports the include directive... yes (GNU style)
     25checking dependency style of g++... gcc3
     26checking whether g++ supports C++17 features with -std=c++17... yes
     27checking whether std::filesystem can be used without link library... yes
     28checking whether the compiler supports GNU Objective C++... yes
     29checking whether g++ -std=c++17 accepts -g... yes
     30checking dependency style of g++ -std=c++17... gcc3
     31configure: WARNING: Libtool does not cope well with whitespace in `pwd`
     32checking how to print strings... printf
     33checking for gcc... gcc
     34checking whether the compiler supports GNU C... yes
     35checking whether gcc accepts -g... yes
     36checking for gcc option to enable C11 features... none needed
     37checking whether gcc understands -c and -o together... yes
     38checking dependency style of gcc... gcc3
     39checking for a sed that does not truncate output... /usr/local/bin/gsed
     40checking for grep that handles long lines and -e... /usr/bin/grep
     41checking for egrep... /usr/bin/grep -E
     42checking for fgrep... /usr/bin/grep -F
     43checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
     44checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
     45checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
     46checking the name lister (/usr/bin/nm -B) interface... BSD nm
     47checking whether ln -s works... yes
     48checking the maximum length of command line arguments... 786432
     49checking how to convert x86_64-apple-darwin21.6.0 file names to x86_64-apple-darwin21.6.0 format... func_convert_file_noop
     50checking how to convert x86_64-apple-darwin21.6.0 file names to toolchain format... func_convert_file_noop
     51checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
     52checking for file... file
     53checking for objdump... objdump
     54checking how to recognize dependent libraries... pass_all
     55checking for dlltool... no
     56checking how to associate runtime and link libraries... printf %s\n
     57checking for ar... ar
     58checking for archiver [@FILE](/bitcoin-bitcoin/contributor/file/) support... no
     59checking for strip... strip
     60checking for ranlib... ranlib
     61checking command to parse /usr/bin/nm -B output from gcc object... ok
     62checking for sysroot... no
     63checking for a working dd... /bin/dd
     64checking how to truncate binary pipes... /bin/dd bs=4096 count=1
     65checking for mt... no
     66checking if : is a manifest tool... no
     67checking for dsymutil... dsymutil
     68checking for nmedit... nmedit
     69checking for lipo... lipo
     70checking for otool... otool
     71checking for otool64... no
     72checking for -single_module linker flag... yes
     73checking for -exported_symbols_list linker flag... yes
     74checking for -force_load linker flag... yes
     75checking for stdio.h... yes
     76checking for stdlib.h... yes
     77checking for string.h... yes
     78checking for inttypes.h... yes
     79checking for stdint.h... yes
     80checking for strings.h... yes
     81checking for sys/stat.h... yes
     82checking for sys/types.h... yes
     83checking for unistd.h... yes
     84checking for dlfcn.h... yes
     85checking for objdir... .libs
     86checking if gcc supports -fno-rtti -fno-exceptions... yes
     87checking for gcc option to produce PIC... -fno-common -DPIC
     88checking if gcc PIC flag -fno-common -DPIC works... yes
     89checking if gcc static flag -static works... no
     90checking if gcc supports -c -o file.o... yes
     91checking if gcc supports -c -o file.o... (cached) yes
     92checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
     93checking dynamic linker characteristics... darwin21.6.0 dyld
     94checking how to hardcode library paths into programs... immediate
     95checking whether stripping libraries is possible... yes
     96checking if libtool supports shared libraries... yes
     97checking whether to build shared libraries... yes
     98checking whether to build static libraries... yes
     99checking how to run the C++ preprocessor... g++ -std=c++17 -E
    100checking for ld used by g++ -std=c++17... /Library/Developer/CommandLineTools/usr/bin/ld
    101checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
    102checking whether the g++ -std=c++17 linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
    103checking for g++ -std=c++17 option to produce PIC... -fno-common -DPIC
    104checking if g++ -std=c++17 PIC flag -fno-common -DPIC works... yes
    105checking if g++ -std=c++17 static flag -static works... no
    106checking if g++ -std=c++17 supports -c -o file.o... yes
    107checking if g++ -std=c++17 supports -c -o file.o... (cached) yes
    108checking whether the g++ -std=c++17 linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
    109checking dynamic linker characteristics... darwin21.6.0 dyld
    110checking how to hardcode library paths into programs... immediate
    111checking for ar... /usr/bin/ar
    112checking for gcov... /usr/bin/gcov
    113checking for llvm-cov... no
    114checking for lcov... no
    115checking for python3.6... no
    116checking for python3.7... /Users/*****/.pyenv/shims/python3.7
    117checking for genhtml... no
    118checking for git... /usr/bin/git
    119checking for ccache... no
    120checking for xgettext... /usr/local/bin/xgettext
    121checking for hexdump... /usr/bin/hexdump
    122checking for objcopy... no
    123checking for doxygen... no
    124checking whether C++ compiler accepts -Werror... yes
    125checking whether the linker accepts -Wl,-fatal_warnings... yes
    126checking whether C++ compiler accepts -Wall... yes
    127checking whether C++ compiler accepts -Wextra... yes
    128checking whether C++ compiler accepts -Wgnu... yes
    129checking whether C++ compiler accepts -Wformat -Wformat-security... yes
    130checking whether C++ compiler accepts -Wvla... yes
    131checking whether C++ compiler accepts -Wshadow-field... yes
    132checking whether C++ compiler accepts -Wthread-safety... yes
    133checking whether C++ compiler accepts -Wloop-analysis... yes
    134checking whether C++ compiler accepts -Wredundant-decls... yes
    135checking whether C++ compiler accepts -Wunused-member-function... yes
    136checking whether C++ compiler accepts -Wdate-time... yes
    137checking whether C++ compiler accepts -Wconditional-uninitialized... yes
    138checking whether C++ compiler accepts -Wduplicated-branches... no
    139checking whether C++ compiler accepts -Wduplicated-cond... no
    140checking whether C++ compiler accepts -Wlogical-op... no
    141checking whether C++ compiler accepts -Woverloaded-virtual... yes
    142checking whether C++ compiler accepts -Wsuggest-override... yes
    143checking whether C++ compiler accepts -Wunreachable-code-loop-increment... yes
    144checking whether C++ compiler accepts -Wimplicit-fallthrough... yes
    145checking whether C++ compiler accepts -Wunused-parameter... yes
    146checking whether C++ compiler accepts -Wself-assign... yes
    147checking whether C++ compiler accepts -Wdeprecated-copy... yes
    148checking whether C++ compiler accepts -fno-extended-identifiers... no
    149checking whether C++ compiler accepts -msse4.2... yes
    150checking whether C++ compiler accepts -msse4.1... yes
    151checking whether C++ compiler accepts -mavx -mavx2... yes
    152checking whether C++ compiler accepts -msse4 -msha... yes
    153checking whether C++ compiler accepts -mpclmul... yes
    154checking for SSE4.2 intrinsics... yes
    155checking for SSE4.1 intrinsics... yes
    156checking for AVX2 intrinsics... yes
    157checking for x86 SHA-NI intrinsics... yes
    158checking whether C++ compiler accepts -march=armv8-a+crc... no
    159checking whether C++ compiler accepts -march=armv8-a+crypto... no
    160checking for ARMv8 CRC32 intrinsics... no
    161checking for ARMv8 SHA-NI intrinsics... no
    162checking for brew... brew
    163checking whether the linker accepts -Wl,-headerpad_max_install_names... yes
    164checking whether byte ordering is bigendian... no
    165checking how to run the C preprocessor... gcc -E
    166checking whether gcc is Clang... yes
    167checking whether pthreads work with "-pthread" and "-lpthread"... yes
    168checking whether Clang needs flag to prevent "argument unused" warning when linking with -pthread... no
    169checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    170checking whether more special flags are required for pthreads... no
    171checking for PTHREAD_PRIO_INHERIT... yes
    172checking whether std::atomic can be used without link library... yes
    173checking for special C compiler options needed for large files... no
    174checking for _FILE_OFFSET_BITS value needed for large files... no
    175checking for g++ -std=c++17 options needed to detect all undeclared functions... none needed
    176checking whether strerror_r is declared... yes
    177checking whether strerror_r returns char *... no
    178checking for library containing clock_gettime... none required
    179checking whether C++ compiler accepts -fPIC... yes
    180checking whether C++ compiler accepts -fstack-reuse=none... no
    181checking whether C++ compiler accepts -Wstack-protector... yes
    182checking whether C++ compiler accepts -fstack-protector-all... yes
    183checking whether C++ compiler accepts -fcf-protection=full... yes
    184checking whether C++ compiler accepts -fstack-clash-protection... no
    185checking whether C++ preprocessor accepts -D_FORTIFY_SOURCE=2... yes
    186checking whether C++ preprocessor accepts -U_FORTIFY_SOURCE... yes
    187checking whether the linker accepts -Wl,--enable-reloc-section... no
    188checking whether the linker accepts -Wl,--dynamicbase... no
    189checking whether the linker accepts -Wl,--nxcompat... no
    190checking whether the linker accepts -Wl,--high-entropy-va... no
    191checking whether the linker accepts -Wl,-z,relro... no
    192checking whether the linker accepts -Wl,-z,now... no
    193checking whether the linker accepts -Wl,-z,separate-code... no
    194checking whether the linker accepts -fPIE -pie... no
    195checking whether the linker accepts -Wl,-dead_strip... yes
    196checking whether the linker accepts -Wl,-dead_strip_dylibs... yes
    197checking whether the linker accepts -Wl,-bind_at_load... yes
    198checking for endian.h... no
    199checking for sys/endian.h... no
    200checking for byteswap.h... no
    201checking for unistd.h... (cached) yes
    202checking for sys/types.h... (cached) yes
    203checking for sys/stat.h... (cached) yes
    204checking for sys/select.h... yes
    205checking for sys/prctl.h... no
    206checking for sys/sysctl.h... yes
    207checking for vm/vm_param.h... no
    208checking for sys/vmmeter.h... yes
    209checking for sys/resources.h... no
    210checking whether getifaddrs is declared... yes
    211checking whether ifaddrs funcs can be used without link library... yes
    212checking whether freeifaddrs is declared... yes
    213checking whether ifaddrs funcs can be used without link library... yes
    214checking whether fork is declared... yes
    215checking whether setsid is declared... yes
    216checking whether pipe2 is declared... no
    217checking for timingsafe_bcmp... yes
    218checking whether le16toh is declared... no
    219checking whether le32toh is declared... no
    220checking whether le64toh is declared... no
    221checking whether htole16 is declared... no
    222checking whether htole32 is declared... no
    223checking whether htole64 is declared... no
    224checking whether be16toh is declared... no
    225checking whether be32toh is declared... no
    226checking whether be64toh is declared... no
    227checking whether htobe16 is declared... no
    228checking whether htobe32 is declared... no
    229checking whether htobe64 is declared... no
    230checking whether bswap_16 is declared... no
    231checking whether bswap_32 is declared... no
    232checking whether bswap_64 is declared... no
    233checking for __builtin_clzl... yes
    234checking for __builtin_clzll... yes
    235checking for getmemoryinfo... no
    236checking for mallopt M_ARENA_MAX... no
    237checking for posix_fallocate... no
    238checking for default visibility attribute... yes
    239checking for dllexport attribute... no
    240checking for thread_local support... yes
    241checking for gmtime_r... yes
    242checking for Linux getrandom syscall... no
    243checking for getentropy via random.h... yes
    244checking for sysctl... yes
    245checking for sysctl KERN_ARND... no
    246checking for if type char equals int8_t... no
    247checking for fdatasync... no
    248checking for F_FULLFSYNC... yes
    249checking for O_CLOEXEC... yes
    250checking for __builtin_prefetch... yes
    251checking for _mm_prefetch... yes
    252checking for strong getauxval support in the system headers... no
    253checking for std::system... yes
    254checking for ::_wsystem... no
    255checking for Qt5Core >= 5.11.3... yes
    256checking for Qt5Gui >= 5.11.3... yes
    257checking for Qt5Widgets >= 5.11.3... yes
    258checking for Qt5Network >= 5.11.3... yes
    259checking for Qt5Test >= 5.11.3... yes
    260checking for Qt5DBus >= 5.11.3... yes
    261checking for static Qt... no
    262checking whether -fPIE can be used with this Qt config... yes
    263checking for moc-qt5... no
    264checking for moc5... no
    265checking for moc... /usr/local/Cellar/qt@5/5.15.6/bin/moc
    266checking for uic-qt5... no
    267checking for uic5... no
    268checking for uic... /usr/local/Cellar/qt@5/5.15.6/bin/uic
    269checking for rcc-qt5... no
    270checking for rcc5... no
    271checking for rcc... /usr/local/Cellar/qt@5/5.15.6/bin/rcc
    272checking for lrelease-qt5... no
    273checking for lrelease5... no
    274checking for lrelease... /usr/local/Cellar/qt@5/5.15.6/bin/lrelease
    275checking for lupdate-qt5... no
    276checking for lupdate5... no
    277checking for lupdate... /usr/local/Cellar/qt@5/5.15.6/bin/lupdate
    278checking for lconvert-qt5... no
    279checking for lconvert5... no
    280checking for lconvert... /usr/local/Cellar/qt@5/5.15.6/bin/lconvert
    281checking whether the linker accepts -framework Foundation -framework AppKit... yes
    282checking whether to build Bitcoin Core GUI... yes (Qt5)
    283checking whether main function is needed for fuzz binary... checking whether the linker accepts ... no
    284yes
    285checking for __builtin_mul_overflow... yes
    286checking for sqlite3 >= 3.7.17... yes
    287checking whether to build wallet with support for sqlite... yes
    288checking whether Userspace, Statically Defined Tracing tracepoints are supported... no
    289checking for miniupnpc/miniupnpc.h... no
    290checking for miniupnpc/upnpcommands.h... no
    291checking for miniupnpc/upnperrors.h... no
    292checking for natpmp.h... no
    293checking for boostlib >= 1.64.0 (106400)... yes
    294checking whether Boost.Process can be used... yes
    295checking for seccomp-bpf (Linux x86-64)... no
    296checking for libevent >= 2.1.8... yes
    297checking for libevent_pthreads >= 2.1.8... yes
    298checking if evhttp_connection_get_peer expects const char**... no
    299checking for libqrencode... yes
    300checking for libzmq >= 4... yes
    301checking for libmultiprocess... no
    302checking whether to build bitcoind... yes
    303checking whether to build bitcoin-cli... yes
    304checking whether to build bitcoin-tx... yes
    305checking whether to build bitcoin-wallet... yes
    306checking whether to build bitcoin-util... yes
    307checking whether to build experimental bitcoin-chainstate... no
    308checking whether to build libraries... yes
    309checking if ccache should be used... no
    310checking if wallet should be enabled... yes
    311checking whether to build with support for UPnP... no
    312checking whether to build with support for NAT-PMP... no
    313checking whether to build GUI with support for D-Bus... yes
    314checking whether to build GUI with support for QR codes... yes
    315checking whether to build test_bitcoin-qt... yes
    316checking whether to build test_bitcoin... yes
    317checking whether to reduce exports... no
    318checking that generated files are newer than configure... done
    319configure: creating ./config.status
    320config.status: creating libbitcoinconsensus.pc
    321config.status: creating Makefile
    322config.status: creating src/Makefile
    323config.status: creating doc/man/Makefile
    324config.status: creating share/setup.nsi
    325config.status: creating share/qt/Info.plist
    326config.status: creating test/config.ini
    327config.status: creating contrib/devtools/split-debug.sh
    328config.status: creating src/config/bitcoin-config.h
    329config.status: src/config/bitcoin-config.h is unchanged
    330config.status: executing depfiles commands
    331config.status: executing libtool commands
    332=== configuring in src/secp256k1 (/Users/*****/*****/*****/*****/src/secp256k1)
    333configure: 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=.
    334checking build system type... x86_64-apple-darwin21.6.0
    335checking host system type... x86_64-apple-darwin21.6.0
    336checking for a BSD-compatible install... /usr/bin/install -c
    337checking whether build environment is sane... yes
    338checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
    339checking for gawk... no
    340checking for mawk... no
    341checking for nawk... no
    342checking for awk... awk
    343checking whether make sets $(MAKE)... yes
    344checking whether make supports nested variables... yes
    345checking whether make supports nested variables... (cached) yes
    346checking for gcc... gcc
    347checking whether the C compiler works... yes
    348checking for C compiler default output file name... a.out
    349checking for suffix of executables... 
    350checking whether we are cross compiling... no
    351checking for suffix of object files... o
    352checking whether the compiler supports GNU C... yes
    353checking whether gcc accepts -g... yes
    354checking for gcc option to enable C11 features... none needed
    355checking whether gcc understands -c and -o together... yes
    356checking whether make supports the include directive... yes (GNU style)
    357checking dependency style of gcc... gcc3
    358checking dependency style of gcc... gcc3
    359checking for ar... ar
    360checking the archiver (ar) interface... ar
    361configure: WARNING: Libtool does not cope well with whitespace in `pwd`
    362checking how to print strings... printf
    363checking for a sed that does not truncate output... /usr/local/bin/gsed
    364checking for grep that handles long lines and -e... /usr/bin/grep
    365checking for egrep... /usr/bin/grep -E
    366checking for fgrep... /usr/bin/grep -F
    367checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
    368checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
    369checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    370checking the name lister (/usr/bin/nm -B) interface... BSD nm
    371checking whether ln -s works... yes
    372checking the maximum length of command line arguments... 786432
    373checking how to convert x86_64-apple-darwin21.6.0 file names to x86_64-apple-darwin21.6.0 format... func_convert_file_noop
    374checking how to convert x86_64-apple-darwin21.6.0 file names to toolchain format... func_convert_file_noop
    375checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
    376checking for file... file
    377checking for objdump... objdump
    378checking how to recognize dependent libraries... pass_all
    379checking for dlltool... no
    380checking how to associate runtime and link libraries... printf %s\n
    381checking for archiver [@FILE](/bitcoin-bitcoin/contributor/file/) support... no
    382checking for strip... strip
    383checking for ranlib... ranlib
    384checking command to parse /usr/bin/nm -B output from gcc object... ok
    385checking for sysroot... no
    386checking for a working dd... /bin/dd
    387checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    388checking for mt... no
    389checking if : is a manifest tool... no
    390checking for dsymutil... dsymutil
    391checking for nmedit... nmedit
    392checking for lipo... lipo
    393checking for otool... otool
    394checking for otool64... no
    395checking for -single_module linker flag... yes
    396checking for -exported_symbols_list linker flag... yes
    397checking for -force_load linker flag... yes
    398checking for stdio.h... yes
    399checking for stdlib.h... yes
    400checking for string.h... yes
    401checking for inttypes.h... yes
    402checking for stdint.h... yes
    403checking for strings.h... yes
    404checking for sys/stat.h... yes
    405checking for sys/types.h... yes
    406checking for unistd.h... yes
    407checking for dlfcn.h... yes
    408checking for objdir... .libs
    409checking if gcc supports -fno-rtti -fno-exceptions... yes
    410checking for gcc option to produce PIC... -fno-common -DPIC
    411checking if gcc PIC flag -fno-common -DPIC works... yes
    412checking if gcc static flag -static works... no
    413checking if gcc supports -c -o file.o... yes
    414checking if gcc supports -c -o file.o... (cached) yes
    415checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
    416checking dynamic linker characteristics... darwin21.6.0 dyld
    417checking how to hardcode library paths into programs... immediate
    418checking whether stripping libraries is possible... yes
    419checking if libtool supports shared libraries... yes
    420checking whether to build shared libraries... no
    421checking whether to build static libraries... yes
    422checking for brew... brew
    423checking if gcc supports -Werror=unknown-warning-option... yes
    424checking if gcc supports -std=c89 -pedantic -Wno-long-long -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef... yes
    425checking if gcc supports -Wno-overlength-strings... yes
    426checking if gcc supports -Wall... yes
    427checking if gcc supports -Wno-unused-function... yes
    428checking if gcc supports -Wextra... yes
    429checking if gcc supports -Wcast-align... yes
    430checking if gcc supports -Wcast-align=strict... no
    431checking if gcc supports -Wconditional-uninitialized... yes
    432checking if gcc supports -fvisibility=hidden... yes
    433checking for x86_64 assembly availability... yes
    434checking that generated files are newer than configure... done
    435configure: creating ./config.status
    436config.status: creating Makefile
    437config.status: creating libsecp256k1.pc
    438config.status: creating src/libsecp256k1-config.h
    439config.status: src/libsecp256k1-config.h is unchanged
    440config.status: executing depfiles commands
    441config.status: executing libtool commands
    442
    443Build Options:
    444  with external callbacks = no
    445  with benchmarks         = no
    446  with tests              = yes
    447  with coverage           = no
    448  with examples           = no
    449  module ecdh             = no
    450  module recovery         = yes
    451  module extrakeys        = yes
    452  module schnorrsig       = yes
    453
    454  asm                     = x86_64
    455  ecmult window size      = 15
    456  ecmult gen prec. bits   = 4
    457
    458  valgrind                = no
    459  CC                      = gcc
    460  CPPFLAGS                =  
    461  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 
    462  CFLAGS                  = -g -O2
    463  LDFLAGS                 = 
    464
    465Options used to compile and link:
    466  external signer = yes
    467  multiprocess    = no
    468  with experimental syscall sandbox support = no
    469  with libs       = yes
    470  with wallet     = yes
    471    with sqlite   = yes
    472    with bdb      = yes
    473  with gui / qt   = yes
    474    with qr       = yes
    475  with zmq        = yes
    476  with test       = yes
    477  with fuzz binary = yes
    478  with bench      = yes
    479  with upnp       = no
    480  with natpmp     = no
    481  use asm         = yes
    482  USDT tracing    = no
    483  sanitizers      = 
    484  debug enabled   = no
    485  gprof enabled   = no
    486  werror          = no
    487  LTO             = no
    488
    489  target os       = darwin21.6.0
    490  build os        = darwin21.6.0
    491
    492  CC              = gcc
    493  CFLAGS          = -pthread -g -O2
    494  CPPFLAGS        =   -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2  -DHAVE_BUILD_INFO -DMAC_OSX -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -DPROVIDE_FUZZ_MAIN_FUNCTION 
    495  CXX             = g++ -std=c++17
    496  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
    497  LDFLAGS         =  -lpthread  -Wl,-bind_at_load   -Wl,-headerpad_max_install_names -Wl,-dead_strip -Wl,-dead_strip_dylibs 
    498  AR              = /usr/bin/ar
    499  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:

    0./autogen.sh
    1./configure
    2make clean
    3make
    

    ?

  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.

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

    @dancingsushii

    From your configure output:

    0configure: 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: 2024-07-01 10:13 UTC

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