Opened 5 months ago

#70173 new defect

enblend fails to build: error: expected primary-expression before ')' token

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: enblend

Description

minimizer.cc: In constructor 'Minimizer::Minimizer(size_t)':
minimizer.cc:29:53: error: 'numeric_limits' is not a member of 'std'
   29 |     f_goal_(boost::none), absolute_error_(sqrt(std::numeric_limits<double>::epsilon()))
      |                                                     ^~~~~~~~~~~~~~
minimizer.cc:29:68: error: expected primary-expression before 'double'
   29 |     f_goal_(boost::none), absolute_error_(sqrt(std::numeric_limits<double>::epsilon()))
      |                                                                    ^~~~~~
minimizer.cc: In member function 'Minimizer* Minimizer::set_absolute_error(double)':
minimizer.cc:93:65: error: 'numeric_limits' is not a member of 'std'
   93 |         absolute_error_ = std::max(an_absolute_error, sqrt(std::numeric_limits<double>::epsilon()));
      |                                                                 ^~~~~~~~~~~~~~
minimizer.cc:93:80: error: expected primary-expression before 'double'
   93 |         absolute_error_ = std::max(an_absolute_error, sqrt(std::numeric_limits<double>::epsilon()));
      |                                                                                ^~~~~~
minimizer.cc: In member function 'virtual double Minimizer::absolute_error() const':
minimizer.cc:128:59: error: 'numeric_limits' is not a member of 'std'
  128 |     return absolute_error_ ? *absolute_error_ : sqrt(std::numeric_limits<double>::epsilon());
      |                                                           ^~~~~~~~~~~~~~
minimizer.cc:128:74: error: expected primary-expression before 'double'
  128 |     return absolute_error_ ? *absolute_error_ : sqrt(std::numeric_limits<double>::epsilon());
      |                                                                          ^~~~~~
minimizer.cc: In constructor 'MinimizerMultiDimensionNoDerivative::MinimizerMultiDimensionNoDerivative(const gsl_multimin_function&, const array_type&, const array_type&)':
minimizer.cc:362:31: error: 'numeric_limits' is not a member of 'std'
  362 |     characteristic_size_(std::numeric_limits<double>::max())
      |                               ^~~~~~~~~~~~~~
minimizer.cc:362:46: error: expected primary-expression before 'double'
  362 |     characteristic_size_(std::numeric_limits<double>::max())
      |                                              ^~~~~~
minimizer.cc: In constructor 'MinimizerMultiDimensionNoDerivative::MinimizerMultiDimensionNoDerivative(const gsl_multimin_function&, const array_type&)':
minimizer.cc:382:31: error: 'numeric_limits' is not a member of 'std'
  382 |     characteristic_size_(std::numeric_limits<double>::max())
      |                               ^~~~~~~~~~~~~~
minimizer.cc:382:46: error: expected primary-expression before 'double'
  382 |     characteristic_size_(std::numeric_limits<double>::max())
      |                                              ^~~~~~
In file included from /opt/local/libexec/boost/1.76/include/boost/config.hpp:39,
                 from /opt/local/libexec/boost/1.76/include/boost/static_assert.hpp:17,
                 from /opt/local/libexec/boost/1.76/include/boost/iterator/iterator_adaptor.hpp:10,
                 from /opt/local/libexec/boost/1.76/include/boost/token_iterator.hpp:22,
                 from /opt/local/libexec/boost/1.76/include/boost/tokenizer.hpp:20,
                 from enfuse.cc:71:
/opt/local/libexec/boost/1.76/include/boost/config/compiler/gcc.hpp:323: warning: "BOOST_FALLTHROUGH" redefined
  323 | #  define BOOST_FALLTHROUGH __attribute__((fallthrough))
      | 
In file included from enfuse.cc:22:
../config.h:8: note: this is the location of the previous definition
    8 | #define BOOST_FALLTHROUGH ((void) 0)
      | 
make[4]: *** [enblend-minimizer.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from alternativepercentage.h:25,
                 from enfuse.cc:80:
../config.h:8: warning: "BOOST_FALLTHROUGH" redefined
    8 | #define BOOST_FALLTHROUGH ((void) 0)
      | 
/opt/local/libexec/boost/1.76/include/boost/config/compiler/gcc.hpp:323: note: this is the location of the previous definition
  323 | #  define BOOST_FALLTHROUGH __attribute__((fallthrough))
      | 
In file included from bounds.h:30,
                 from enblend.h:45,
                 from enblend.cc:191:
pyramid.h:1427:17: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations]
 1427 |     public std::binary_function<T1, T2, T3>
      |                 ^~~~~~~~~~~~~~~
In file included from /opt/local/include/gcc13/c++/string:49,
                 from /opt/local/include/gcc13/c++/bits/locale_classes.h:40,
                 from /opt/local/include/gcc13/c++/bits/ios_base.h:41,
                 from /opt/local/include/gcc13/c++/ios:44,
                 from /opt/local/include/gcc13/c++/ostream:40,
                 from /opt/local/include/gcc13/c++/iostream:41,
                 from enblend.cc:48:
/opt/local/include/gcc13/c++/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
In file included from mask.h:42,
                 from enblend.h:46:
fillpolygon.hxx:289:25: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations]
  289 |             public std::binary_function<SegmentType, SegmentType, bool>
      |                         ^~~~~~~~~~~~~~~
/opt/local/include/gcc13/c++/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
In file included from mask.h:51:
path.h:38:44: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations]
   38 |     class PathCompareFunctor : public std::binary_function<Point, Point, bool>
      |                                            ^~~~~~~~~~~~~~~
/opt/local/include/gcc13/c++/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
mv -f .deps/enfuse-exposure_weight.Tpo .deps/enfuse-exposure_weight.Po
enblend.cc: In function 'int main(int, char**)':
enblend.cc:229:91: error: expected primary-expression before ')' token
  229 | #define DUMP_GLOBAL_VARIABLES(...) dump_global_variables(__FILE__, __LINE__, ##__VA_ARGS__)
      |                                                                                           ^
enblend.cc:1831:9: note: in expansion of macro 'DUMP_GLOBAL_VARIABLES'
 1831 |         DUMP_GLOBAL_VARIABLES();
      |         ^~~~~~~~~~~~~~~~~~~~~
mv -f .deps/enblend-filespec.Tpo .deps/enblend-filespec.Po
In file included from bounds.h:30,
                 from enfuse.h:51,
                 from enfuse.cc:182:
pyramid.h:1427:17: warning: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Wdeprecated-declarations]
 1427 |     public std::binary_function<T1, T2, T3>
      |                 ^~~~~~~~~~~~~~~
In file included from /opt/local/include/gcc13/c++/string:49,
                 from /opt/local/include/gcc13/c++/bits/locale_classes.h:40,
                 from /opt/local/include/gcc13/c++/bits/ios_base.h:41,
                 from /opt/local/include/gcc13/c++/ios:44,
                 from /opt/local/include/gcc13/c++/ostream:40,
                 from /opt/local/include/gcc13/c++/iostream:41,
                 from enfuse.cc:48:
/opt/local/include/gcc13/c++/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
enfuse.h:622:37: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
  622 | class ExposureFunctor : public std::unary_function<InputType, ResultType> {
      |                                     ^~~~~~~~~~~~~~
/opt/local/include/gcc13/c++/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
enfuse.h:653:43: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
  653 | class CutoffExposureFunctor : public std::unary_function<InputType, ResultType> {
      |                                           ^~~~~~~~~~~~~~
/opt/local/include/gcc13/c++/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
enfuse.h:732:39: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
  732 | class SaturationFunctor : public std::unary_function<InputType, ResultType> {
      |                                       ^~~~~~~~~~~~~~
/opt/local/include/gcc13/c++/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
enfuse.h:782:37: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
  782 | class ContrastFunctor : public std::unary_function<InputType, ResultType> {
      |                                     ^~~~~~~~~~~~~~
/opt/local/include/gcc13/c++/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
enfuse.h:831:36: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
  831 | class EntropyFunctor : public std::unary_function<InputType, ResultType> {
      |                                    ^~~~~~~~~~~~~~
/opt/local/include/gcc13/c++/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
enfuse.h:893:37: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
  893 | class ClampingFunctor : public std::unary_function<InputType, ResultType>
      |                                     ^~~~~~~~~~~~~~
/opt/local/include/gcc13/c++/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
enfuse.cc: In function 'int main(int, char**)':
enfuse.cc:202:91: error: expected primary-expression before ')' token
  202 | #define DUMP_GLOBAL_VARIABLES(...) dump_global_variables(__FILE__, __LINE__, ##__VA_ARGS__)
      |                                                                                           ^
enfuse.cc:2064:9: note: in expansion of macro 'DUMP_GLOBAL_VARIABLES'
 2064 |         DUMP_GLOBAL_VARIABLES();
      |         ^~~~~~~~~~~~~~~~~~~~~
mv -f .deps/enblend-introspection.Tpo .deps/enblend-introspection.Po
make[4]: *** [enblend-enblend.o] Error 1
make[4]: *** [enfuse-enfuse.o] Error 1

For the first error #include <limits> works. I am not sure what causes the second.

Attachments (1)

main.log (1.1 MB) - added by barracuda156 5 months ago.

Download all attachments as: .zip

Change History (1)

Changed 5 months ago by barracuda156

Attachment: main.log added
Note: See TracTickets for help on using tickets.