Boost logo

Boost :

Subject: [boost] [detail] Disabling Warnings in Jamfile
From: Axel Ismirlian (aismirl_at_[hidden])
Date: 2014-07-17 14:06:37


I am trying to build and compile the detail tests on AIX 6.1 with gcc, but
there is one small problem on the very last test:

gcc.compile.c+
+ ../bin.v2/libs/detail/test/container_fwd/container_fwd_debug.test/gcc-4.8.1/debug/container_fwd_test.o
In file included
from /opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.8.1/include/c+
+/cstddef:41:0,
                 from ../boost/config/select_stdlib_config.hpp:18,
                 from ../boost/config.hpp:44,
                 from ../boost/detail/container_fwd.hpp:16,

from ../libs/detail/test/container_fwd/container_fwd_test.cpp:6:
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.8.1/include/c+
+/powerpc-ibm-aix6.1.0.0/bits/c++config.h:277:4: error: #warning currently
using inlined namespace mode which may fail without inlining due to lack of
weak symbols [-Werror=cpp]
 # warning currently using inlined namespace mode which may fail \
    ^
cc1plus: all warnings being treated as errors

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -pedantic -Werror -g
-fPIC -fpermissive -g -ftemplate-depth-300 -pedantic -Wstrict-aliasing
-fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion
-DBOOST_ALL_NO_LIB=1 -D_GLIBCXX_DEBUG -D_STLP_DEBUG -I".." -c -o
"../bin.v2/libs/detail/test/container_fwd/container_fwd_debug.test/gcc-4.8.1/debug/container_fwd_test.o"
 "../libs/detail/test/container_fwd/container_fwd_test.cpp"

If I disable warnings being treated as errors through the Jamfile, the test
functions correctly, but how do I customize the Jamfile file for AIX? Is it
ok for me to simply ignore this warning? Also I was having a difficult time
fully understanding what an inlined namespace is.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk