Attempting to build Enblend-4.3-1472 (current default branch) in Fedora 24, using rpmbuild.
The build fails with the following message...
In file included from /home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:81:0:
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/optional_transitional.hpp:51:31: error: no matching function for call to 'boost::none_t::none_t()'
constexpr ::boost::none_t nullopt;
^~~~~~~
In file included from /usr/include/boost/none.hpp:16:0,
from /usr/include/boost/optional/optional.hpp:51,
from /usr/include/boost/optional.hpp:15,
from /home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/optional_transitional.hpp:47,
from /home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:81:
/usr/include/boost/none_t.hpp:32:12: note: candidate: boost::none_t::none_t(boost::none_t::init_tag)
explicit none_t(init_tag){} // to prevent default constructor
^~~~~~
/usr/include/boost/none_t.hpp:32:12: note: candidate expects 1 argument, 0 provided
/usr/include/boost/none_t.hpp:29:8: note: candidate: constexpr boost::none_t::none_t(const boost::none_t&)
struct none_t
^~~~~~
/usr/include/boost/none_t.hpp:29:8: note: candidate expects 1 argument, 0 provided
/usr/include/boost/none_t.hpp:29:8: note: candidate: constexpr boost::none_t::none_t(boost::none_t&&)
/usr/include/boost/none_t.hpp:29:8: note: candidate expects 1 argument, 0 provided
In file included from /home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:190:0:
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/common.h: In function 'std::__cxx11::string enblend::expandFilenameTemplate(const string&, unsigned int, const string&, const string&, unsigned int)':
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/common.h:760:25: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
In file included from /home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/mask.h:42:0,
from /home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.h:46,
from /home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:193:
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/fillpolygon.hxx: In function 'void vigra_ext::detail::group_to_pairs(Iterator, Iterator, BackInsertIterator)':
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/fillpolygon.hxx:255:21: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc: In function 'int process_options(int, char**)':
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:926:13: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:933:13: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:965:13: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:1051:13: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:1063:13: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:1355:13: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:1390:13: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
/home/terry/rpmbuild/BUILD/enblend-4.3.0-1472hg-Source/src/enblend.cc:1495:13: warning: attributes at the beginning of statement are ignored [-Wattributes]
[[fallthrough]];
^
src/CMakeFiles/enblend.dir/build.make:65: recipe for target 'src/CMakeFiles/enblend.dir/enblend.cc.o' failed
make[2]: *** [src/CMakeFiles/enblend.dir/enblend.cc.o] Error 1
this source build OK using the same rpmbuild .spec file in Fedora 23, so looks like an issue brought about by changes in Fedora.
Cheers,
Terry
Trying to do a bit of sleuthing on this.
I note that when I run cmake I get the message along the lines (I didn't get a copy) "optional not found falling back to Boost"
If I look at file 'FindOptional. cmake', I see...
IF (OPTONAL_ INCLUDE_ DIR) FIND_QUIETLY TRUE)
# Already in cache, be silent
SET(OPTOINAL_
ENDIF()
FIND_PATH( OPTIONAL_ INCLUDE_ DIR optional.hpp local/include BASE_DIR} /Optional- master
/usr/
/usr/include
${SOURCE_
)
include( FindPackageHand leStandardArgs) handle_ standard_ args(Optional DEFAULT_MSG
OPTIONAL_ INCLUDE_ DIR)
find_package_
MARK_AS_ADVANCED( INCLUDE_ DIR
OPTIONAL_
)
Looks like a few tripewirting errors in this, but maybe of no consequence anyway.
Cheers,
Terry