fatal error: "boost/config/user.hpp" not found when compiling from sources #4596

issue cmgustavo opened this issue on July 28, 2014
  1. cmgustavo commented at 3:45 AM on July 28, 2014: none

    I don’t know if this is the right place to post this issue. Feel free to remove if I am wrong.

    I have Mac OS X 10.9.4.

      CXX      libbitcoin_common_a-protocol.o
      CXX      libbitcoin_common_a-script.o
      AR       libbitcoin_common.a
      CXX      rpcclient.o
    In file included from rpcclient.cpp:7:
    In file included from ./rpcclient.h:9:
    In file included from ./json/json_spirit_reader_template.h:9:
    In file included from ./json/json_spirit_value.h:20:
    /usr/local/include/boost/config.hpp:26:12: fatal error: 'boost/config/user.hpp' file not found
    #  include BOOST_USER_CONFIG
               ^
    /usr/local/include/boost/config.hpp:22:29: note: expanded from macro 'BOOST_USER_CONFIG'
    #  define BOOST_USER_CONFIG <boost/config/user.hpp>
                                ^
    1 error generated.
    make[1]: *** [rpcclient.o] Error 1
    make: *** [all-recursive] Error 1
    

    The error disappears if I change manually the file "/usr/local/include/boost/config.hpp" with the absolute path to boost includes. In this case, I changed:

    #  define BOOST_USER_CONFIG <boost/config/user.hpp>
    

    By

    #  define BOOST_USER_CONFIG </usr/local/include/boost/config/user.hpp>
    

    and it work. But after that appear another similar problem with another file from boots includes. I can not change all files with the absolute path (I mean, I can, but I should not have to do so).

    Anyone know how to solve this issue?

  2. theuni commented at 3:55 AM on July 28, 2014: member

    How was boost installed? Sounds to me like you have 2 conflicting versions installed. Macports+homebrew, by any chance?

  3. laanwj added the label Build system on Jul 31, 2014
  4. laanwj added the label Mac on Jul 31, 2014
  5. SeanEstey commented at 1:24 AM on August 3, 2014: none

    I'm having the same problem. Boost was installed from Brew in my case.

  6. fanquake commented at 1:31 AM on August 3, 2014: member

    Also had the same issue yesterday. Removed and reinstalled Boost via Brew to make sure my install wasn't borked. Haven't had time to look any further.

  7. cmgustavo commented at 3:37 AM on August 5, 2014: none

    I installed Boost from brew install too. I think I have problem with the PATH (on my .bash_profile maybe). My coworker has the same OSX version and he did not have this problem.

  8. theuni commented at 3:56 AM on August 5, 2014: member

    Will have a look tomorrow. Could you guys please paste (at pastebin or so) your config.log, as well as the output of env, scrubbed of any personal info ?

  9. theuni commented at 9:53 PM on August 5, 2014: member

    I'm going to need something to go on here. With the above, I can only guess. @cmgustavo @fanquake @SeanEstey : Could you guys please do 'make V=1' and paste a snippet of the output, so that I can see what include paths are being used? In addition to the info requested above.

  10. SeanEstey commented at 11:42 PM on August 5, 2014: none
  11. theuni commented at 2:48 PM on August 6, 2014: member

    @SeanEstey That's not the same problem. In your case, boost isn't being found at all, which is no surprise considering that no boost paths are ever added. Did it actually configure without any hacks?

  12. cmgustavo commented at 2:02 PM on August 20, 2014: none

    Last lines using 'make V=1':

    clang: warning: argument unused during compilation: '-pthread'
    clang: warning: argument unused during compilation: '-pie'
    clang: warning: argument unused during compilation: '-pthread'
    ld: entry point (_main) undefined. for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [test/test_bitcoin] Error 1
    make: *** [all-recursive] Error 1
    

    This is different that before. I just installed XCode command line or something.

  13. jonasschnelli commented at 9:09 AM on December 29, 2014: contributor

    Should be closed because it looks like a single-user-problem and is inactive since >4month.

  14. laanwj closed this on Dec 29, 2014

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