Ticket #1076 (new defect)

Opened 17 months ago

Last modified 3 months ago

Boost spews excessive warnings

Reported by: jdm Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Build & Packages Keywords:
Cc: Yves

Description

It can be frustrating to find actual errors among all of the boost output. I don't know if this is just an OSX 10.6.8, gcc 4.2.1 thing (since I see mentions of CLANG in the warnings), but it would be nice to get this cleaned up.

Change History

comment:1 Changed 17 months ago by infyquest

what is the boost version in your mac

comment:2 Changed 17 months ago by jdm

1.48

comment:3 Changed 17 months ago by historic_bruno

I get a few Boost warnings even on Linux with modern GCC, though not as many. The way to find errors is to run make again if it fails before linking everything, it will resume with the last step before the error :)

comment:4 Changed 17 months ago by historic_bruno

  • Cc Yves added

Compiling with -isystem/path/to/boost instead of -I/path/to/boost suppresses the warnings. I'm not sure there's any better solution for GCC 4.2. Let's see if premake can do that, assuming there are no negative consequences.

comment:6 follow-up: ↓ 7 Changed 16 months ago by historic_bruno

Some of the warnings are already reported on Boost Trac, where they seem to linger for months/years :( I'll try to report the others, so there's a chance Boost devs will fix them, eventually.

Edit: Reported to Boost devs: #6140, #6142, #6522, not sure about the BOOST_CLANG warning, it might have been fixed recently.

Last edited 16 months ago by historic_bruno (previous) (diff)

comment:7 in reply to: ↑ 6 Changed 15 months ago by historic_bruno

Replying to historic_bruno:

#6522

Should be fixed in Boost 1.49.

comment:8 Changed 3 months ago by ben

In 13172:

Suppresses noisy Boost header warnings on OS X by including them as system headers, refs #1076.
Bumps default SDK in build-osx-bundle.sh to 10.7 (newer Xcode doesn't include 10.6).
Fixes using xml2-config from SDK when needed.
Fixes more linker warnings about symbol visibility by compiling libs with fvisibility=hidden.
Updates some comments in the build scripts.

Note: See TracTickets for help on using tickets.