Skip to content

variable 'aft_loss_distribution_scale' must have explicitly specified data sharing attributes #5595

@glycerine

Description

@glycerine

re #5593 v1.1.0rc1, when trying to build from source on OSX 10.13.16 High Sierra, I get compilation failure:

$ mkdir build
$ cd build
$ cmake ..
$ make -j4
...
[ 72%] Building CXX object src/CMakeFiles/objxgboost.dir/metric/rank_metric.cc.o
[ 73%] Building CXX object src/CMakeFiles/objxgboost.dir/metric/survival_metric.cc.o
[ 75%] Building CXX object src/CMakeFiles/objxgboost.dir/objective/aft_obj.cc.o
[ 76%] Building CXX object src/CMakeFiles/objxgboost.dir/objective/hinge.cc.o
/my/source/github.com/dmlc/xgboost/src/metric/survival_metric.cc:80:56: error:
      variable 'aft_loss_distribution_scale' must have explicitly specified data sharing attributes
        = loss_->Loss(y_lower[i], y_upper[i], yhat[i], aft_loss_distribution_scale);
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
 $ g++ --version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /usr/local/bin

using libomp-10.0.0.high_sierra.bottle.tar.gz from homebrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions