Opened 4 years ago

Last modified 4 years ago

#42991 new defect

boost @1.55.0_2: 'bits/c++config.h' file not found

Reported by: twilsonco@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc:
Port: boost

Description (last modified by ryandesign (Ryan Schmidt))

Have followed migration instructions wiki:Migration, and most packages now build.

Log attached. Big log... Some errors like

/opt/local/include/cstddef:43:10: fatal error: 'bits/c++config.h' file not found

make me think my compiler's are messed up. Been using gcc 4.6.4 from MacPorts. Seems to compile fine, but I don't know.

Attachments (2)

main.log (768.3 KB) - added by twilsonco@… 4 years ago.
boost install log file
main.2.log (767.9 KB) - added by twilsonco@… 4 years ago.
log, again.

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by twilsonco@…

boost install log file

comment:1 Changed 4 years ago by twilsonco@…

Meant to say "my GCC compiles other stuff fine, so I don't know why it would give problems with boost, since I use cstdlib frequently and it never complains."

comment:2 Changed 4 years ago by ryandesign (Ryan Schmidt)

  • Description modified (diff)
  • Keywords boost 10.9.2 removed
  • Port boost added
  • Summary changed from boost @1.55.0_2 won't build in OS X 10.9.2 to boost @1.55.0_2: 'bits/c++config.h' file not found

Note that boost is compiling with clang, like it should. You're welcome to use gcc46 for your own purposes, but ports will build with a compiler that MacPorts chooses based on your Xcode version.

The file should be located in /usr/include/c++/4.2.1/bits/c++config.h. Is it? If not, have you installed the command line tools by running xcode-select --install?

comment:3 follow-up: Changed 4 years ago by twilsonco@…

I see. The reason I mentioned the compilers is that I've replaced the links to gcc compilers in /usr/bin with links to gnu implementations.

c++config.h is in the directory specified, however, so I'm still not sure what the problem is.

comment:4 in reply to: ↑ 3 Changed 4 years ago by ryandesign (Ryan Schmidt)

Replying to twilsonco@…:

I see. The reason I mentioned the compilers is that I've replaced the links to gcc compilers in /usr/bin with links to gnu implementations.

That's definitely going to cause problems. You should not alter files in /usr/bin. That is exclusively for Apple to do. MacPorts assumes you have not done that. Please undo that, then clean boost and try again.

You may however use "sudo port select gcc gcc46", for example, to instruct MacPorts to create symlinks such as /opt/local/bin/gcc pointing at your desired compiler.

comment:5 Changed 4 years ago by twilsonco@…

Unlike #42990 and #42992, reinstall of Xcode, command line tools and macports did not fix the problem. Still getting error about missing /usr/include/c++/4.2.1/bits/c++config.h (although to be fair the actual error is "'bits/c++config.h' file not found".

c++config.h is where it should be, and this is building with clang, which I've never touched. In addition to the Xcode, command line tools and macports reinstall, I have removed any evidence of my tampering with /usr/bin. I can build programs successfully with g++ and gcc linked to the Xcode implementations. See new log file below.

Changed 4 years ago by twilsonco@…

log, again.

Note: See TracTickets for help on using tickets.