ATF-devel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Building ATF on OpenBSD box (2)



Hey,

As said in my previous eMail: OpenBSD's default is to handle compiler
warnings as errors.

This c++ "error" seems to be a simple compiler warning, too. However I'm
not that deep in c++ to fix it on my own.

Any hints?

$ make
make  all-am
depbase=`echo atf-c++/application.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;
/bin/sh ./libtool --tag=CXX    --mode=compile g++ -DHAVE_CONFIG_H -I.  
"-DATF_ARCH=\"i386\""  "-DATF_BUILD_CC=\"gcc\""  "-DATF_BUILD_CFLAGS=\"-g
-O2  -g -Wall -Wcast-qual -Werror -Wno-unused-parameter -Wpointer-arith
-Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wswitch
-Wwrite-strings -D_FORTIFY_SOURCE=2 -Wmissing-prototypes -Wno-traditional
-Wstrict-prototypes\""  "-DATF_BUILD_CPP=\"gcc -E\"" 
"-DATF_BUILD_CPPFLAGS=\"\""  "-DATF_BUILD_CXX=\"g++\"" 
"-DATF_BUILD_CXXFLAGS=\"-g -O2  -g -Wall -Wcast-qual -Werror
-Wno-unused-parameter -Wpointer-arith -Wredundant-decls -Wreturn-type
-Wshadow -Wsign-compare -Wswitch -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wabi
-Wctor-dtor-privacy -Wno-deprecated -Wno-non-template-friend
-Wno-pmf-conversions -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder
-Wsign-promo -Wsynth\""  "-DATF_CONFDIR=\"/home/sven/local/etc/atf\"" 
"-DATF_INCLUDEDIR=\"/home/sven/local/include\"" 
"-DATF_LIBDIR=\"/home/sven/local/lib\"" 
"-DATF_LIBEXECDIR=\"/home/sven/local/libexec\""  "-DATF_MACHINE=\"i386\"" 
"-DATF_M4=\"m4\""  "-DATF_PKGDATADIR=\"/home/sven/local/share/atf\"" 
"-DATF_SHELL=\"/usr/local/bin/bash\""  "-DATF_WORKDIR=\"/tmp\""   -g -O2 
-g -Wall -Wcast-qual -Werror -Wno-unused-parameter -Wpointer-arith
-Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wswitch
-Wwrite-strings -D_FORTIFY_SOURCE=2 -Wabi -Wctor-dtor-privacy
-Wno-deprecated -Wno-non-template-friend -Wno-pmf-conversions
-Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo -Wsynth -MT
atf-c++/application.lo -MD -MP -MF $depbase.Tpo -c -o
atf-c++/application.lo atf-c++/application.cpp && mv -f $depbase.Tpo
$depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -DATF_ARCH=\"i386\"
-DATF_BUILD_CC=\"gcc\" "-DATF_BUILD_CFLAGS=\"-g -O2  -g -Wall -Wcast-qual
-Werror -Wno-unused-parameter -Wpointer-arith -Wredundant-decls
-Wreturn-type -Wshadow -Wsign-compare -Wswitch -Wwrite-strings
-D_FORTIFY_SOURCE=2 -Wmissing-prototypes -Wno-traditional
-Wstrict-prototypes\"" "-DATF_BUILD_CPP=\"gcc -E\""
-DATF_BUILD_CPPFLAGS=\"\" -DATF_BUILD_CXX=\"g++\"
"-DATF_BUILD_CXXFLAGS=\"-g -O2  -g -Wall -Wcast-qual -Werror
-Wno-unused-parameter -Wpointer-arith -Wredundant-decls -Wreturn-type
-Wshadow -Wsign-compare -Wswitch -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wabi
-Wctor-dtor-privacy -Wno-deprecated -Wno-non-template-friend
-Wno-pmf-conversions -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder
-Wsign-promo -Wsynth\"" -DATF_CONFDIR=\"/home/sven/local/etc/atf\"
-DATF_INCLUDEDIR=\"/home/sven/local/include\"
-DATF_LIBDIR=\"/home/sven/local/lib\"
-DATF_LIBEXECDIR=\"/home/sven/local/libexec\" -DATF_MACHINE=\"i386\"
-DATF_M4=\"m4\" -DATF_PKGDATADIR=\"/home/sven/local/share/atf\"
-DATF_SHELL=\"/usr/local/bin/bash\" -DATF_WORKDIR=\"/tmp\" -g -O2 -g -Wall
-Wcast-qual -Werror -Wno-unused-parameter -Wpointer-arith
-Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wswitch
-Wwrite-strings -D_FORTIFY_SOURCE=2 -Wabi -Wctor-dtor-privacy
-Wno-deprecated -Wno-non-template-friend -Wno-pmf-conversions
-Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo -Wsynth -MT
atf-c++/application.lo -MD -MP -MF atf-c++/.deps/application.Tpo -c
atf-c++/application.cpp -o atf-c++/application.o
/usr/include/g++/bits/stl_function.h: In instantiation of
`std::less<atf::application::option>':
/usr/include/g++/bits/stl_tree.h:645:   instantiated from
`std::_Rb_tree<atf::application::option, atf::application::option,
std::_Identity<atf::application::option>,
std::less<atf::application::option>,
std::allocator<atf::application::option> >'
/usr/include/g++/bits/stl_set.h:100:   instantiated from
`std::set<atf::application::option, std::less<atf::application::option>,
std::allocator<atf::application::option> >'
atf-c++/application.cpp:134:   instantiated from here
/usr/include/g++/bits/stl_function.h:196: warning: layout of classes derived
   from empty class `std::less<atf::application::option>' may change in a
   future version of GCC
/usr/include/g++/bits/stl_tree.h: In instantiation of
`std::_Rb_tree<atf::application::option, atf::application::option,
std::_Identity<atf::application::option>,
std::less<atf::application::option>,
std::allocator<atf::application::option> >':
/usr/include/g++/bits/stl_set.h:100:   instantiated from
`std::set<atf::application::option, std::less<atf::application::option>,
std::allocator<atf::application::option> >'
atf-c++/application.cpp:134:   instantiated from here
/usr/include/g++/bits/stl_tree.h:645: warning: `
   std::_Rb_tree<atf::application::option, atf::application::option,
   std::_Identity<atf::application::option>,
   std::less<atf::application::option>,
   std::allocator<atf::application::option> >::_M_key_compare' contains empty
   classes which may cause base classes to be placed at different
locations in
   a future version of GCC
/usr/include/g++/bits/stl_function.h: In instantiation of
`std::_Identity<atf::application::option>':
/usr/include/g++/bits/stl_tree.h:1042:   instantiated from
`std::pair<std::_Rb_tree_iterator<_Val, _Val&, _Val*>, bool>
std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
_Alloc>::insert_unique(const _Val&) [with _Key = atf::application::option,
_Val = atf::application::option, _KeyOfValue =
std::_Identity<atf::application::option>, _Compare =
std::less<atf::application::option>, _Alloc =
std::allocator<atf::application::option>]'
/usr/include/g++/bits/stl_set.h:155:   instantiated from
`std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>,
_Compare, _Alloc>::const_iterator, bool> std::set<_Key, _Compare,
_Alloc>::insert(const _Key&) [with _Key = atf::application::option,
_Compare = std::less<atf::application::option>, _Alloc =
std::allocator<atf::application::option>]'
atf-c++/application.cpp:136:   instantiated from here
/usr/include/g++/bits/stl_function.h:479: warning: layout of classes derived
   from empty class `std::_Identity<atf::application::option>' may change
in a
   future version of GCC
*** Error code 1

Stop in /home/sven/packages/test/atf-0.7 (line 2995 of Makefile).
*** Error code 1

Stop in /home/sven/packages/test/atf-0.7 (line 1627 of Makefile).
$

Best regards,

Sven


Home | Main Index | Thread Index | Old Index