Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Jun 2020 15:23:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 247085] devel/simgear compilation failure
Message-ID:  <bug-247085-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247085

            Bug ID: 247085
           Summary: devel/simgear compilation failure
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: martymac@FreeBSD.org
          Reporter: russo@bogodyn.org
             Flags: maintainer-feedback?(martymac@FreeBSD.org)
          Assignee: martymac@FreeBSD.org

On Freebsd 11.3

FreeBSD yyyy.zzz 11.3-STABLE FreeBSD 11.3-STABLE #1 r354399: Wed Nov  6
11:58:48 MST 2019     xxxx@yyyy.zzz:/usr/obj/usr/src/sys/GENERIC  amd64


Simgear 2020.1.2 fails to compile with:

FAILED:
simgear/nasal/cppbind/CMakeFiles/test-simgear_nasal_cppbind-cppbind_misc.di=
r/test/cppbind_test.cxx.o=20
/usr/bin/c++  -DHAVE_CONFIG_H -DHAVE_INTTYPES_H -Isimgear -I.
-I/usr/ports/devel/simgear/work/simgear-2020.1.2/3rdparty/udns
-I/usr/local/include -I/usr/ports/devel/simgear/work/simgear-2020.1.2 -O2 -=
pipe
-fstack-protector-strong -fno-strict-aliasing -stdlib=3Dlibc++  -Wall -fPIC
-Wno-overloaded-virtual -Wno-redeclared-class-member -Wno-unused-local-type=
defs
 -DBOOST_BIMAP_DISABLE_SERIALIZATION -O3 -msse2 -mfpmath=3Dsse -ftree-vecto=
rize
-ftree-slp-vectorize   -std=3Dgnu++11 -MD -MT
simgear/nasal/cppbind/CMakeFiles/test-simgear_nasal_cppbind-cppbind_misc.di=
r/test/cppbind_test.cxx.o
-MF
simgear/nasal/cppbind/CMakeFiles/test-simgear_nasal_cppbind-cppbind_misc.di=
r/test/cppbind_test.cxx.o.d
-o
simgear/nasal/cppbind/CMakeFiles/test-simgear_nasal_cppbind-cppbind_misc.di=
r/test/cppbind_test.cxx.o
-c
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx
In file included from
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:6:
/usr/local/include/simgear/nasal/cppbind/Ghost.hxx:173:7: error: static_ass=
ert
failed due to requirement 'is_strong_ref<std::__1::shared_ptr<Base> >::valu=
e'
"Ghost can only wrap shared pointer!"
      static_assert(
      ^


This is only the first of many error messages.



Here's the whole failure:

In file included from
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:6:
/usr/local/include/simgear/nasal/cppbind/Ghost.hxx:173:7: error: static_ass=
ert
failed due to requirement 'is_strong_ref<std::__1::shared_ptr<Base> >::valu=
e'
"Ghost can only wrap shared pointer!"
      static_assert(
      ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:269:3:
note: in instantiation of template class
'nasal::Ghost<std::__1::shared_ptr<Base>, void>' requested here
  Ghost<BasePtr>::init("BasePtr")
  ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:269:19:
error: use of undeclared identifier 'init'; did you mean 'int'?
  Ghost<BasePtr>::init("BasePtr")
                  ^
In file included from
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:6:
/usr/local/include/simgear/nasal/cppbind/Ghost.hxx:173:7: error: static_ass=
ert
failed due to requirement 'is_strong_ref<std::__1::shared_ptr<Derived>
>::value' "Ghost can only wrap shared pointer!"
      static_assert(
      ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:286:3:
note: in instantiation of template class
'nasal::Ghost<std::__1::shared_ptr<Derived>, void>' requested here
  Ghost<DerivedPtr>::init("DerivedPtr")
  ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:286:22:
error: use of undeclared identifier 'init'; did you mean 'int'?
  Ghost<DerivedPtr>::init("DerivedPtr")
                     ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:287:12:
error: unexpected type name 'BasePtr': expected expression
    .bases<BasePtr>()
           ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:287:21:
error: expected expression
    .bases<BasePtr>()
                    ^
In file included from
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:6:
/usr/local/include/simgear/nasal/cppbind/Ghost.hxx:173:7: error: static_ass=
ert
failed due to requirement 'is_strong_ref<std::__1::shared_ptr<DoubleDerived>
>::value' "Ghost can only wrap shared pointer!"
      static_assert(
      ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:296:3:
note: in instantiation of template class
'nasal::Ghost<std::__1::shared_ptr<DoubleDerived>, void>' requested here
  Ghost<DoubleDerivedPtr>::init("DoubleDerivedPtr")
  ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:296:28:
error: use of undeclared identifier 'init'; did you mean 'int'?
  Ghost<DoubleDerivedPtr>::init("DoubleDerivedPtr")
                           ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:297:12:
error: unexpected type name 'DerivedPtr': expected expression
    .bases<DerivedPtr>();
           ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:297:24:
error: expected expression
    .bases<DerivedPtr>();
                       ^
In file included from
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:6:
/usr/local/include/simgear/nasal/cppbind/Ghost.hxx:173:7: error: static_ass=
ert
failed due to requirement 'is_strong_ref<std::__1::shared_ptr<DoubleDerived=
2>
>::value' "Ghost can only wrap shared pointer!"
      static_assert(
      ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:298:3:
note: in instantiation of template class
'nasal::Ghost<std::__1::shared_ptr<DoubleDerived2>, void>' requested here
  Ghost<DoubleDerived2Ptr>::init("DoubleDerived2Ptr")
  ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:298:29:
error: use of undeclared identifier 'init'; did you mean 'int'?
  Ghost<DoubleDerived2Ptr>::init("DoubleDerived2Ptr")
                            ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:299:31:
error: expected '(' for function-style cast or type construction
    .bases< Ghost<DerivedPtr> >()
            ~~~~~~~~~~~~~~~~~ ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:299:33:
error: expected expression
    .bases< Ghost<DerivedPtr> >()
                                ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:320:34:
error: no member named 'isInit' in 'nasal::Ghost<std::__1::shared_ptr<Base>,
void>'
  BOOST_REQUIRE( Ghost<BasePtr>::isInit() );
                 ~~~~~~~~~~~~~~~~^
/usr/local/include/boost/test/tools/old/interface.hpp:85:6: note: expanded =
from
macro 'BOOST_REQUIRE'
    (P), BOOST_TEST_STRINGIZE( P ), REQUIRE, CHECK_PRED, _ )
     ^
/usr/local/include/boost/test/tools/old/interface.hpp:68:61: note: expanded
from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_PRED, frwd_type )( P, ARGS ),=20=
=20=20=20=20=20=20=20=20
\
                                                            ^
/usr/local/include/boost/test/tools/old/interface.hpp:51:47: note: expanded
from macro 'BOOST_TEST_TOOL_PASS_PRED2'
#define BOOST_TEST_TOOL_PASS_PRED2( P, ARGS ) P
                                              ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:403:44:
error: no member named 'makeGhost' in 'nasal::Ghost<std::__1::shared_ptr<Ba=
se>,
void>'
  nasal_objects.push_back( Ghost<BasePtr>::makeGhost(c, d) );
                           ~~~~~~~~~~~~~~~~^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:404:44:
error: no member named 'makeGhost' in 'nasal::Ghost<std::__1::shared_ptr<Ba=
se>,
void>'
  nasal_objects.push_back( Ghost<BasePtr>::makeGhost(c, d2) );
                           ~~~~~~~~~~~~~~~~^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:405:44:
error: no member named 'makeGhost' in 'nasal::Ghost<std::__1::shared_ptr<Ba=
se>,
void>'
  nasal_objects.push_back( Ghost<BasePtr>::makeGhost(c, d3) );
                           ~~~~~~~~~~~~~~~~^
In file included from
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:4:
In file included from
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/T=
estContext.hxx:23:
In file included from
/usr/local/include/simgear/nasal/cppbind/NasalContext.hxx:125:
/usr/local/include/simgear/nasal/cppbind/from_nasal.hxx:46:12: error: no vi=
able
conversion from returned value of type 'void' to function return type
'std::__1::function<void (int)>'
    return from_nasal_helper(c, ref, static_cast<T*>(0));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/simgear/nasal/cppbind/NasalHash.hxx:119:16: note: in
instantiation of function template specialization
'nasal::from_nasal<std::__1::function<void (int)> >' requested here
        return from_nasal<T>(_context, get(name));
               ^
/usr/ports/devel/simgear/work/simgear-2020.1.2/simgear/nasal/cppbind/test/c=
ppbind_test.cxx:243:26:
note: in instantiation of function template specialization
'nasal::Hash::get<std::__1::function<void (int)>, char [5]>' requested here
  FuncVoidInt fvi =3D hash.get<FuncVoidInt>("func");
                         ^
/usr/include/c++/v1/functional:2203:5: note: candidate constructor not viab=
le:
cannot convert argument of incomplete type 'void' to 'std::nullptr_t' (aka
'nullptr_t') for 1st argument
    function(nullptr_t) _NOEXCEPT {}
    ^
/usr/include/c++/v1/functional:2204:5: note: candidate constructor not viab=
le:
cannot convert argument of incomplete type 'void' to 'const
std::__1::function<void (int)> &' for 1st argument
    function(const function&);
    ^
/usr/include/c++/v1/functional:2205:5: note: candidate constructor not viab=
le:
cannot convert argument of incomplete type 'void' to 'std::__1::function<vo=
id
(int)> &&' for 1st argument
    function(function&&) _NOEXCEPT;
    ^
/usr/include/c++/v1/functional:2207:5: note: candidate template ignored:
substitution failure [with _Fp =3D void]: cannot form a reference to 'void'
    function(_Fp);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=3D]

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247085-7788>