[Help Wanted] ./configure failure on macosx #12446

issue dustinltran opened this issue on February 16, 2018
  1. dustinltran commented at 9:42 AM on February 16, 2018: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    I'm not sure where to begin. Any help would be appreciated.

    After installing the dependencies with brew, I ran: $./autogen.sh $./configure

    ./configure: line 1: syntax error near unexpected token `('
    ./configure: line 1: `m4trace:configure.ac:11: -1- AC_INIT([Bitcoin Core], [_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION], [https://github.com/bitcoin/bitcoin/issues], [bitcoin], [https://bitcoincore.org/])'
    

    <!--- What behavior did you expect? -->

    <!--- 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? -->

    <!-- 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)? -->

    Versions:

    - MacOSX Sierra v10.13.1
    - Homebrew 1.5.4-46-gef1924e
    - Warning: automake 1.15.1 is already installed
    - Warning: berkeley-db@4 4.8.30 is already installed
    - Warning: libtool 2.4.6_1 is already installed
    - Warning: boost 1.66.0 is already installed
    - Warning: miniupnpc 2.0.20180203 is already installed
    - Warning: openssl 1.0.2n is already installed
    - Warning: pkg-config 0.29.2 is already installed
    - Warning: protobuf 3.5.1 is already installed
    - Warning: python3 3.6.4_2 is already installed
    - Warning: qt 5.10.1 is already installed
    - Warning: libevent 2.1.8 is already installed
    

    <!-- 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. -->

  2. fanquake added the label MacOSX on Feb 16, 2018
  3. Empact commented at 6:48 PM on February 16, 2018: member

    Do you have autoconf installed?

  4. dustinltran commented at 12:30 AM on February 17, 2018: none

    I just checked and yes. Autoconf v2.69

  5. jakezeal commented at 4:39 AM on February 18, 2018: none

    Are you following Mac OS X Build Instructions and Notes?

    If you open bitcoin/configure in a text editor, what are the first few lines of code? There should just be comments, without (.

    Also, this Bitcoin Talk link might help.

  6. dustinltran commented at 4:16 AM on February 19, 2018: none

    Yes. First few lines contain

    m4trace:configure.ac:11: -1- AC_INIT([Bitcoin Core], [_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION], [https://github.com/bitcoin/bitcoin/issues], [bitcoin], [https://bitcoincore.org/])
    m4trace:configure.ac:11: -1- m4_pattern_forbid([^_?A[CHUM]_])
    m4trace:configure.ac:11: -1- m4_pattern_forbid([_AC_])
    m4trace:configure.ac:11: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
    

    I'll check out that link and see if I can find a solution. Thanks.

  7. jakezeal commented at 11:16 PM on February 19, 2018: none

    It is likely you have the wrong version of something.

    Can you update Homebrew and your local packages / dependencies?

    Update Homebrew

    brew update

    Update / Upgrade Local Packages

    brew upgrade

    For more information check out Homebrew's FAQ.

  8. dustinltran commented at 3:56 AM on February 22, 2018: none

    @jakezeal You were right on the outdated Homebrew. Just updated, but no luck with the same issue. Which packages do you think specifically would cause this?

  9. Sjors commented at 1:39 PM on March 16, 2018: member

    Are you still seeing this on the latest master?

  10. fanquake commented at 2:02 AM on April 20, 2018: member

    Closing for now. @dustinltran Feel free to re-open if this is still an issue.

  11. fanquake closed this on Apr 20, 2018

  12. playcoindev commented at 1:06 PM on July 13, 2018: none

    Hi guys(especially @dustinltran),

    The issue happened to me and it took a few hours to find the reason.

    I found a stack overflow q&a about the same situation, and I realized I tried to compile the bitcoin reference source on my 4TB external HDD, which has exFAT filesystem.

    https://stackoverflow.com/questions/24326419/osx-autotools-aclocal-m4-not-being-output-by-autom4te

    I just put the source into my internal SSD and it compiles like a magic!

    So Dustin, if you are still trying to compile the source code in exFAT or FAT32 filesystem, can you move it to the HDD or SSD with APFS (anyway, if it is not the FAT variaint it will be fine I think)?

  13. MarcoFalke locked this on Sep 8, 2021

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-21 18:15 UTC

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