Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libopenraw
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • libopenraw
  • libopenraw
  • Issues
  • #6
Closed
Open
Created Mar 18, 2021 by Tomasz Kłoczko@kloczek👍

0.3.0: build fails

gcc 11.0.1

[tkloczko@barrel libopenraw-0.3.0]$ make
make  all-recursive
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0'
Making all in lib
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0/lib'
make  all-am
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0/lib'
/bin/sh ../libtool  --tag=CXX   --mode=compile /usr/bin/g++ -std=c++14 -DHAVE_CONFIG_H -I. -I..  -I../include    -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -fvisibility=hidden -Wchar-subscripts -Wcast-align -Wextra -Wexceptions -Wformat -Wformat-nonliteral -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wlogical-not-parentheses -Wmisleading-indentation -Wmissing-noreturn -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wno-suggest-attribute=noreturn -Wsuggest-override -Wunreachable-code -Wunused -Wwrite-strings -c -o cr2file.lo cr2file.cpp
libtool: compile:  /usr/bin/g++ -std=c++14 -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -Os -fvisibility=hidden -Wchar-subscripts -Wcast-align -Wextra -Wexceptions -Wformat -Wformat-nonliteral -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wlogical-not-parentheses -Wmisleading-indentation -Wmissing-noreturn -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wno-suggest-attribute=noreturn -Wsuggest-override -Wunreachable-code -Wunused -Wwrite-strings -c cr2file.cpp  -fPIC -DPIC -o .libs/cr2file.o
cr2file.cpp: In member function ‘or_error OpenRaw::Internals::Cr2File::getRawDataTif(OpenRaw::RawData&, uint32_t)’:
cr2file.cpp:600:39: error: ‘numeric_limits’ is not a member of ‘std’
  600 |             m_container->size(), std::numeric_limits<uint32_t>::max());
      |                                       ^~~~~~~~~~~~~~
cr2file.cpp:600:62: error: expected primary-expression before ‘>’ token
  600 |             m_container->size(), std::numeric_limits<uint32_t>::max());
      |                                                              ^
cr2file.cpp:600:65: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  600 |             m_container->size(), std::numeric_limits<uint32_t>::max());
      |                                                                 ^~~
      |                                                                 std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from trace.hpp:25,
                 from ifdentry.hpp:34,
                 from ifddir.hpp:34,
                 from rawfile.hpp:29,
                 from cr2file.cpp:33:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-gnu-zero-variadic-macro-arguments’ may have been intended to silence earlier diagnostics
make[3]: *** [Makefile:1101: cr2file.lo] Error 1
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0/lib'
make[2]: *** [Makefile:803: all] Error 2
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0/lib'
make[1]: *** [Makefile:437: all-recursive] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libopenraw-0.3.0'
make: *** [Makefile:369: all] Error 2
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking