[Bug 249428] databases/rocksdb: compile error on 11.4 (clang 10 related?)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Sep 18 09:33:02 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249428

            Bug ID: 249428
           Summary: databases/rocksdb: compile error on 11.4 (clang 10
                    related?)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet at FreeBSD.org
          Reporter: bengta at sics.se
          Assignee: sunpoet at FreeBSD.org
             Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
 Attachment #218048 text/plain
         mime type:

Created attachment 218048
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=218048&action=edit
poudriere log

databases/rocksdb 6.11.4 does not compile on FreeBSD 11.4. The errors are:

  CC       shared-objects/options/options_helper.o
options/options_helper.cc:659:19: error: loop variable 'iter' of type 'const
std::__1::pair<const std::__1::basic_string<char>, rocksdb::OptionTypeInfo>'
creates a copy from type 'const std::__1::pair<const
std::__1::basic_string<char>, rocksdb::OptionTypeInfo>'
[-Werror,-Wrange-loop-construct]
  for (const auto iter : type_info) {
                  ^
options/options_helper.cc:659:8: note: use reference type 'const
std::__1::pair<const std::__1::basic_string<char>, rocksdb::OptionTypeInfo> &'
to prevent copying
  for (const auto iter : type_info) {
       ^~~~~~~~~~~~~~~~~
                  &
1 error generated.
gmake[1]: *** [Makefile:834: shared-objects/options/options_helper.o] Error 1
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/databases/rocksdb/work/rocksdb-6.11.4'
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/rocksdb

Since there are no previous reports about this, perhaps the error is clang 10
specific?

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


More information about the freebsd-ports-bugs mailing list