Opened 10 months ago

Closed 10 months ago

Last modified 10 months ago

#69186 closed defect (fixed)

mongodb: C++ compiler /usr/bin/clang++ can't link C++ programs

Reported by: josemgarcia (José María García) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.0
Keywords: Cc:
Port: mongodb

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

I have tried to install mongodb in Sonoma 14.2.1 (Xcode version 15.2) without luck. I have also tried to install previous versions of the port, including the last 5.x and the result is the same. It fails when building just giving this info:

--->  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_macports_release_tarballs_ports_databases_mongodb/mongodb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port mongodb failed

Attachments (2)

main.log (676.7 KB) - added by josemgarcia (José María García) 10 months ago.
Build log file mentioned in the error message
config.log (11.7 KB) - added by josemgarcia (José María García) 10 months ago.
config.log file mentioned in the build error

Download all attachments as: .zip

Change History (6)

Changed 10 months ago by josemgarcia (José María García)

Attachment: main.log added

Build log file mentioned in the error message

comment:1 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

The log says:

:info:build C++ compiler /usr/bin/clang++ can't link C++ programs
:info:build See /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mongodb/mongodb/work/mongodb-src-r6.0.7/build/scons/config.log for details

Could you attach that config.log file?

Changed 10 months ago by josemgarcia (José María García)

Attachment: config.log added

config.log file mentioned in the build error

comment:2 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Status: assignedaccepted
Summary: mongodb: build failed in Sonoma 14.2.1mongodb: C++ compiler /usr/bin/clang++ can't link C++ programs

This is a new problem as of Xcode 15 due to the new linker it uses. I've reported the bug to the developers: https://jira.mongodb.org/browse/SERVER-85763

comment:3 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In f83a8ca274e547706be3276d200234e0c263341c/macports-ports (master):

mongodb: Disable Werror at configure time

Closes: #69186

comment:4 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

In 09b89faa5544ef01668282e3e188a24ebcbdd67b/macports-ports (master):

mongodb-devel: Disable Werror at configure time

See: #69186

Note: See TracTickets for help on using tickets.