GithubHelp home page GithubHelp logo

Comments (5)

jzmaddock avatar jzmaddock commented on August 28, 2024

boost/config/user.hpp is for user-specific defines, ie stuff that we don't set. In particular we do not set BOOST_HAS_PRAGMA_DETECT_MISMATCH for gcc as it's unsupported by that compiler. Has someone edited your user.hpp?

from config.

0-wiz-0 avatar 0-wiz-0 commented on August 28, 2024

No, the file is still like it was installed using pkgsrc.
The pkgsrc patches for boost are available here:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/meta-pkgs/boost/patches/?only_with_tag=MAIN

What do you mean with "we don't set it" - how is the file generated? Where can I look for the code that might add this symbol?

from config.

jzmaddock avatar jzmaddock commented on August 28, 2024

OK found it - they're running the configure script and taking the results as correct even though it's really only a first guess - there are some things that are quite hard to test for. Let me double check the script.

from config.

jzmaddock avatar jzmaddock commented on August 28, 2024

Here's what's happening: when the configure script is run, then -Werror=unknown-pragmas is not set and the test case compiles (albeit with a warning) so the script thinks that the pragma is supported. Then when you compile your code with -Werror or whatever then it crashes and burns.

I could manually tweak the test case so it fails for any unsupported compilers, but that sort of defeats the object really. For now I suggest you just comment out the line the config/user.hpp that defines BOOST_HAS_PRAGMA_DETECT_MISMATCH

BTW the configure script does print out right at the start:

Note that this test script only gives an approximate
configuration - you will need to test the results carefully
using the boost regression test suite before using the results.

It was really designed to give a first approximation when porting Boost to a new platform, usually relying on the pre-configured headers will give better results.

from config.

0-wiz-0 avatar 0-wiz-0 commented on August 28, 2024

I changed pkgsrc to use the pre-generated user.hpp file instead.
Thank you for your helpful advice!

from config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.