Opened 5 years ago

Closed 3 years ago

#59461 closed defect (wontfix)

mongodb @4.0.13: duplicate symbols

Reported by: dbl001 (dbl) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: mongodb

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I'm on OS X 10.11.6
from main.log:

:info:build duplicate symbol __ZN5mongo13error_details11isNamedCodeILi11000EEE in:
:info:build     build/MP/mongo/s/cluster_cursor_stats.o

Environment:

$ clang --version
clang version 5.0.0 (tags/RELEASE_500/final)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Users/davidlaxer/anaconda/bin
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ sudo port upgrade outdated
--->  Computing dependencies for clang-9.0
--->  Fetching archive for clang-9.0
--->  Attempting to fetch clang-9.0-9.0.0_0+analyzer+libstdcxx.darwin_15.x86_64.tbz2 from https://packages.macports.org/clang-9.0
--->  Attempting to fetch clang-9.0-9.0.0_0+analyzer+libstdcxx.darwin_15.x86_64.tbz2.rmd160 from https://packages.macports.org/clang-9.0
--->  Installing clang-9.0 @9.0.0_0+analyzer+libstdcxx
--->  Activating clang-9.0 @9.0.0_0+analyzer+libstdcxx
--->  Cleaning clang-9.0
--->  Computing dependencies for mongodb
--->  Fetching archive for mongodb
--->  Attempting to fetch mongodb-4.0.13_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/mongodb
--->  Attempting to fetch mongodb-4.0.13_0.darwin_15.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/mongodb
--->  Attempting to fetch mongodb-4.0.13_0.darwin_15.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/mongodb
--->  Fetching distfiles for mongodb
--->  Attempting to fetch mongodb-src-r4.0.13.tar.gz from https://fastdl.mongodb.org/src
--->  Verifying checksums for mongodb                                           
--->  Extracting mongodb
--->  Applying patches to mongodb
--->  Configuring mongodb
--->  Building mongodb
Error: Failed to build mongodb: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Attachments (2)

main.log.Z (2.1 MB) - added by dbl001 (dbl) 5 years ago.
main.log (153.0 KB) - added by dbl001 (dbl) 5 years ago.

Change History (27)

comment:1 Changed 5 years ago by dbl001 (dbl)

The log file contains mostly redundant error messages. It is too large to upload. I can upload the first section - if required.

wc !$
wc ~/main.log
  743190 2320891 55621394 /Users/davidlaxer/main.log
Last edited 5 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mongoldb removed
Port: mongodb added

Please compress and upload the entire main.log.

comment:3 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Status: newassigned

Changed 5 years ago by dbl001 (dbl)

Attachment: main.log.Z added

comment:4 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Summary: Error: Failed to build mongodb: command execution failedmongodb @4.0.13: duplicate symbols

Hmm, indeed the log contains mostly the 246,811 duplicate symbol errors. I'm not sure what to do about that. I do need to update the port to version 4.2.x. I should probably start by doing that and then reevaluate.

comment:5 Changed 5 years ago by dbl001 (dbl)

Any news on 'mongodb' 4.2.x?

comment:6 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Tomorrow.

comment:7 Changed 5 years ago by dbl001 (dbl)

I tried installing mongodb and it's still pulling: 4.0.13:

Attempting to fetch mongodb-4.0.13_0.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/mongodb
--->  Building mongodb
Error: Failed to build mongodb: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mongodb failed

comment:8 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Yes, sorry, it's taken me a little longer to work on this. I do have 4.2.1 compiling successfully locally, I just want to fix a couple things before committing it.

comment:9 Changed 5 years ago by dbl001 (dbl)

:-)

comment:10 Changed 5 years ago by dbl001 (dbl)

Is Mongodb 4.2.1 committed?

comment:11 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

No, but I'm working on it now.

comment:12 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

I've now encountered the same duplicate symbol errors on my Mac with High Sierra when building mongodb 4.2.1 using MacPorts clang 9. I had not encountered the problem with MacPorts clang 7. I may have to blacklist clang 9. Will test clang 8...

comment:13 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In a42215288878ba163a87761acc5c42f673ce4f9a/macports-ports (master):

mongodb: Blacklist clang 9 and later

Eliminates duplicate symbol errors.

Closes: #59461

comment:14 Changed 5 years ago by dbl001 (dbl)

I'm getting the same result (e.g. version 4.0.13):

$ sudo port install mongodb
--->  Computing dependencies for mongodb
--->  Fetching archive for mongodb
--->  Attempting to fetch mongodb-4.0.13_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/mongodb
--->  Attempting to fetch mongodb-4.0.13_0.darwin_15.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/mongodb
--->  Attempting to fetch mongodb-4.0.13_0.darwin_15.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/mongodb
--->  Building mongodb
Error: Failed to build mongodb: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mongoldb failed

comment:15 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

It can take an hour for changes to propagate to the rsync server. Wait a bit, selfupdate again, and try again.

comment:16 Changed 5 years ago by dbl001 (dbl)

$ sudo port install mongodb
Portfile changed since last build; discarding previous state.
--->  Computing dependencies for mongodb
The following dependencies will be installed: 
 libstemmer
 py37-cheetah
 py37-psutil
 py37-regex
 py37-yaml
 yaml-cpp
Continue? [Y/n]: y
--->  Fetching archive for libstemmer
--->  Attempting to fetch libstemmer-0.1-20191013_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/libstemmer
--->  Attempting to fetch libstemmer-0.1-20191013_0.darwin_15.x86_64.tbz2.rmd160 from https://packages.macports.org/libstemmer
--->  Installing libstemmer @0.1-20191013_0
--->  Activating libstemmer @0.1-20191013_0
--->  Cleaning libstemmer
--->  Fetching archive for py37-cheetah
--->  Attempting to fetch py37-cheetah-3.2.4_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/py37-cheetah
--->  Attempting to fetch py37-cheetah-3.2.4_0.darwin_15.x86_64.tbz2.rmd160 from https://packages.macports.org/py37-cheetah
--->  Installing py37-cheetah @3.2.4_0
--->  Activating py37-cheetah @3.2.4_0
--->  Cleaning py37-cheetah
--->  Fetching archive for py37-psutil
--->  Attempting to fetch py37-psutil-5.6.5_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/py37-psutil
--->  Attempting to fetch py37-psutil-5.6.5_0.darwin_15.x86_64.tbz2.rmd160 from https://packages.macports.org/py37-psutil
--->  Installing py37-psutil @5.6.5_0
--->  Activating py37-psutil @5.6.5_0
--->  Cleaning py37-psutil
--->  Fetching archive for py37-regex
--->  Attempting to fetch py37-regex-2019.11.1_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/py37-regex
--->  Attempting to fetch py37-regex-2019.11.1_0.darwin_15.x86_64.tbz2.rmd160 from https://packages.macports.org/py37-regex
--->  Installing py37-regex @2019.11.1_0
--->  Activating py37-regex @2019.11.1_0
--->  Cleaning py37-regex
--->  Fetching archive for py37-yaml
--->  Attempting to fetch py37-yaml-5.1.2_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/py37-yaml
--->  Attempting to fetch py37-yaml-5.1.2_0.darwin_15.x86_64.tbz2.rmd160 from https://packages.macports.org/py37-yaml
--->  Installing py37-yaml @5.1.2_0
--->  Activating py37-yaml @5.1.2_0
--->  Cleaning py37-yaml
--->  Fetching archive for yaml-cpp
--->  Attempting to fetch yaml-cpp-0.6.2_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/yaml-cpp
--->  Attempting to fetch yaml-cpp-0.6.2_0.darwin_15.x86_64.tbz2.rmd160 from https://packages.macports.org/yaml-cpp
--->  Installing yaml-cpp @0.6.2_0
--->  Activating yaml-cpp @0.6.2_0
--->  Cleaning yaml-cpp
--->  Fetching archive for mongodb
--->  Attempting to fetch mongodb-4.2.1_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/mongodb
--->  Attempting to fetch mongodb-4.2.1_0.darwin_15.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/mongodb
--->  Attempting to fetch mongodb-4.2.1_0.darwin_15.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/mongodb
--->  Fetching distfiles for mongodb
--->  Attempting to fetch mongodb-src-r4.2.1.tar.gz from https://fastdl.mongodb.org/src
--->  Verifying checksums for mongodb                                           
--->  Extracting mongodb
--->  Applying patches to mongodb
--->  Configuring mongodb
--->  Building mongodb
Error: Failed to build mongodb: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mongodb failed

comment:17 Changed 5 years ago by dbl001 (dbl)

Resolution: fixed
Status: closedreopened
In file included from src/mongo/transport/transport_layer.cpp:33:
:info:build In file included from src/mongo/db/operation_context.h:36:
:info:build In file included from src/mongo/db/client.h:43:
:info:build In file included from src/mongo/db/service_context.h:38:
:info:build In file included from src/mongo/db/storage/storage_engine.h:38:
:info:build In file included from src/mongo/db/storage/temporary_record_store.h:32:
:info:build src/mongo/db/storage/record_store.h:244:13: error: 'operator delete' is unavailable: introduced in macOS 10.12
:info:build     virtual ~RecordStore() {}
:info:build             ^
:info:build /opt/local/libexec/llvm-8.0/bin/../include/c++/v1/new:177:74: note: 'operator delete' has been explicitly marked unavailable here
:info:build _LIBCPP_OVERRIDABLE_FUNC_VIS _LIBCPP_AVAILABILITY_SIZED_NEW_DELETE void  operator delete(void* __p, std::size_t __sz) _NOEXCEPT;
:info:build                                         

comment:18 Changed 5 years ago by dbl001 (dbl)

How do I upload the new log file?

Changed 5 years ago by dbl001 (dbl)

Attachment: main.log added

comment:19 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Yes, I saw this failure on the automated builder, once it got around to it. This is a new problem, unrelated to the one you originally reported. I'll report it to the developers of mongodb and we'll see if they can solve it.

comment:20 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to dbl001:

:info:build src/mongo/db/storage/record_store.h:244:13: error: 'operator delete' is unavailable: introduced in macOS 10.12

https://jira.mongodb.org/browse/SERVER-44687

Last edited 5 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:21 in reply to:  description Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to dbl001:

:info:build duplicate symbol __ZN5mongo13error_details11isNamedCodeILi11000EEE in:
:info:build     build/MP/mongo/s/cluster_cursor_stats.o

I've reported this here: https://jira.mongodb.org/browse/SERVER-44688

comment:22 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Upstream states that mongodb 4.2.x requires macOS 10.12 or later. Is it feasible for you to upgrade your macOS?

comment:23 Changed 5 years ago by dbl001 (dbl)

My hardware doesn’t support 10.12.

comment:24 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

In 240455789d3fcb3494851fbe41e1d3e379561fb2/macports-ports (master):

mongodb: Update to 4.2.2

Fixes build failures with clang 8 and later.

See: #59461

comment:25 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: wontfix
Status: reopenedclosed

Then for now you cannot use mongodb anymore; I'm sorry. We could potentially add more mongodb ports for older versions, but so far I haven't begun any work on that.

Note: See TracTickets for help on using tickets.