Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 2020 09:33:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 249428] databases/rocksdb: compile error on 11.4 (clang 10 related?)
Message-ID:  <bug-249428-7788@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: bengta@sics.se
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)
 Attachment #218048 text/plain
         mime type:

Created attachment 218048
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D218048&action=
=3Dedit
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?

--=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-249428-7788>