Opened 6 years ago

Last modified 6 years ago

#57093 new defect

caffe update fails after protobuf3 upgrade

Reported by: jwhowse4 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc:
Port: caffe

Description

On MacOS 10.12.6 with XCode 9.2 after updating the protobuf3-cpp package to version 3.6.1, the subsequent update of the caffe package fails with the errors in the attached log file. Any suggestions for a fix?

Attachments (1)

caffe_main.log (132.1 KB) - added by jwhowse4 6 years ago.
build log

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by jwhowse4

Attachment: caffe_main.log added

build log

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

in essence, we need to get -std=c++11 onto each CXX build line, and hope for no conflicts with the caffe code.

In practice, so far, this is proving to be rather difficult.

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

well, here is a workaround that might wind up in the Portfile, in the end. clang-6.0 and clang-7.0 default to a higher c++ standard than c++11, so if you build caffe with those, there is not a problem:

$ sudo port -v installed caffe
The following ports are currently installed:
  caffe @20170817_8+cpu+openblas+python27 (active) platform='darwin 17' archs='x86_64' date='2018-09-03T22:48:10-0700'

so do this:

sudo port install clang-7.0

then

sudo port -v install caffe configure.compiler=macports-clang-7.0
Note: See TracTickets for help on using tickets.