Opened 6 years ago

Last modified 5 years ago

#56523 new defect

modglue @1.19 fails to build against libsigcxx2 @2.10.0

Reported by: jmroot (Joshua Root) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dbevans (David B. Evans), Schamschula (Marius Schamschula)
Port: modglue

Description

Log from buildbot attached.

Attachments (1)

build.txt (29.4 KB) - added by jmroot (Joshua Root) 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by jmroot (Joshua Root)

Attachment: build.txt added

comment:1 Changed 6 years ago by kencu (Ken)

One trivial way to "fix" it is to force it to build with clang-7.0:

$ port -v installed modglue
The following ports are currently installed:
  modglue @1.19_0 (active) platform='darwin 17' archs='x86_64' date='2018-09-13T23:46:38-0700'

clang-7.0 defaults to c++17 I believe, and so takes all the c++11 needs in stride without any changes in the portfile or the port. To fix it correctly I believe getting -std=c++11 onto the build and link lines would do the trick. Should also add the -stdlib=${configure.cxx_stdlib} while we're at it, along with all the other CXX flags.

This sounds like a two-day project for me, or two minutes for Ryan :>

Last edited 6 years ago by kencu (Ken) (previous) (diff)

comment:2 Changed 6 years ago by kencu (Ken)

The clang in Xcode 10:

$ /usr/bin/clang --version
Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

does not build this, however, so I guess it still is defaulting to the old c++ standard.

comment:3 Changed 5 years ago by Schamschula (Marius Schamschula)

Cc: Schamschula added
Note: See TracTickets for help on using tickets.