Opened 11 years ago
Closed 3 years ago
#42991 closed defect (worksforme)
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 Carsten 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)
Change History (8)
Changed 11 years ago by twilsonco@…
comment:1 Changed 11 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 11 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | boost 10.9.2 removed |
Port: | boost added |
Summary: | boost @1.55.0_2 won't build in OS X 10.9.2 → 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: 4 Changed 11 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 Changed 11 years ago by ryandesign (Ryan Carsten 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 11 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.
comment:6 Changed 3 years ago by kencu (Ken)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
7 years, ancient system, non-standard customizations in /usr.... closing.
Please open a new ticket with new info if still an issue
boost install log file