NetBSD-Bugs archive

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

bin/52080: MKKYUA fails to compile: c_gate.o: all member functions in class '__cxxabiv1::



>Number:         52080
>Category:       bin
>Synopsis:       MKKYUA fails to compile: c_gate.o: all member functions in class '__cxxabiv1::
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 15 22:35:00 +0000 2017
>Originator:     Ngie Cooper
>Release:        7-CURRENT
>Organization:
n/a
>Environment:
NetBSD netbsd.localdomain 7.99.58 NetBSD 7.99.58 (GENERIC) #2: Thu Jan 12 09:08:18 PST 2017  root@:/home/ngie/cvs/NetBSD/src/sys/arch/amd64/compile/obj/GENERIC amd64
>Description:
lutok fails to compile because it seems like it's accessing headers it's not supposed to (private ones):

--- c_gate.o ---^M
In file included from /home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/bits/ostream_insert.h:36:0,^M
                 from /home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/string:44,^M
                 from /home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/lutok/state.hpp:35,^M
                 from /home/ngie/cvs/NetBSD/src/external/bsd/lutok/dist/state.ipp:32,^M
                 from /home/ngie/cvs/NetBSD/src/external/bsd/lutok/dist/c_gate.cpp:30:^M
/home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/bits/cxxabi_forced.h:48:9: error: all member functions in class '__cxxabiv1::__forced_unwind' are private [-Werror=ctor-dtor-privacy]^M
   class __forced_unwind^M
         ^^M
In file included from /home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/tr1/memory:50:0,^M
                 from /home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/lutok/state.hpp:40,^M
                 from /home/ngie/cvs/NetBSD/src/external/bsd/lutok/dist/state.ipp:32,^M
                 from /home/ngie/cvs/NetBSD/src/external/bsd/lutok/dist/c_gate.cpp:30:^M
/home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/tr1/shared_ptr.h: In constructor 'std::tr1::__shared_ptr<_Tp, _Lp>::__shared_ptr(_Tp1*)':^M
/home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/tr1/shared_ptr.h:556:16: error: typedef '_IsComplete' locally defined but not used [-Werror=unused-local-typedefs]^M
    typedef int _IsComplete[sizeof(_Tp1)];^M
                ^^M
/home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/tr1/shared_ptr.h: In constructor 'std::tr1::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&)':^M
/home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/tr1/shared_ptr.h:595:16: error: typedef '_IsComplete' locally defined but not used [-Werror=unused-local-typedefs]^M
    typedef int _IsComplete[sizeof(_Tp1)];^M
                ^^M
--- c_gate.pico ---^M
In file included from /home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/bits/ostream_insert.h:36:0,^M
                 from /home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/string:44,^M
                 from /home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/lutok/state.hpp:35,^M
                 from /home/ngie/cvs/NetBSD/src/external/bsd/lutok/dist/state.ipp:32,^M
                 from /home/ngie/cvs/NetBSD/src/external/bsd/lutok/dist/c_gate.cpp:30:^M
/home/ngie/cvs/NetBSD/src/obj/destdir.amd64/usr/include/g++/bits/cxxabi_forced.h:48:9: error: all member functions in class '__cxxabiv1::__forced_unwind' are private [-Werror=ctor-dtor-privacy]^M
   class __forced_unwind^M
         ^^M
--- c_gate.o ---^M
cc1plus: all warnings being treated as errors^M

I will file an upstream bug (if one doesn't already exist), as this will likely hit us on FreeBSD if someone tries compiling the lutok port with a newer copy of g++ (which we do for arm64, powerpc*, etc as they still don't work with clang).
>How-To-Repeat:
Run the following commands as root:

echo MKKYUA=yes >> /etc/mk.conf
cd /path/to/src
./build.sh tools
./build.sh build
>Fix:
Either disable warnings, or fix the offending code to not use private C++ interfaces.



Home | Main Index | Thread Index | Old Index