Skip to content

Mac OS Sierra Version 10.12 throws error while building latest commit of caffe #4871

@bhadresh74

Description

@bhadresh74

I upgraded my Mac OS few weeks before and now for some project work I wanted to build latest commit of caffe.
Running make all command, gives me error at this point.

NVCC src/caffe/layers/concat_layer.cu
/usr/include/stdio.h(133): error: expected a ")"

/usr/include/stdio.h(134): error: expected a ")"

/usr/include/stdio.h(134): error: "_Nullable" has already been declared in the current scope

/usr/include/stdio.h(135): error: expected a ")"

/usr/include/stdio.h(135): error: "_Nullable" has already been declared in the current scope

/usr/include/stdio.h(136): error: expected a ")"

/usr/include/stdio.h(136): error: "_Nullable" has already been declared in the current scope

/usr/include/stdio.h(477): error: duplicate parameter name

/usr/include/stdio.h(478): error: duplicate parameter name

/usr/include/stdio.h(479): error: duplicate parameter name

/usr/include/stdlib.h(139): error: expected a ")"

/usr/include/stdlib.h(158): error: expected a ")"

/usr/include/stdlib.h(294): error: expected a ")"

/usr/include/stdlib.h(300): error: expected a ")"

/usr/include/stdlib.h(306): error: expected a ")"

/usr/include/stdlib.h(312): error: expected a ")"

/usr/include/stdlib.h(318): error: expected a ")"

/usr/include/pthread/qos.h(113): error: expected a ")"

/usr/include/pthread/qos.h(185): error: expected a ")"

/usr/include/pthread.h(216): error: duplicate parameter name

/usr/include/pthread.h(217): error: duplicate parameter name

/usr/include/pthread.h(243): error: expected a ")"

/usr/include/pthread.h(247): error: expected a ")"

/usr/include/pthread.h(326): error: expected a ")"

/usr/include/pthread.h(340): error: duplicate parameter name

/usr/include/pthread.h(350): error: duplicate parameter name

/usr/include/pthread.h(353): error: expected a ";"

/usr/include/pthread.h(356): error: expected a ")"

/usr/include/pthread.h(493): error: duplicate parameter name

/usr/include/pthread.h(529): error: expected a ")"

/usr/include/pthread.h(540): error: variable "_Nullable" is not a type name

/usr/include/pthread.h(540): error: "pthread_t" has already been declared in the current scope

/usr/include/pthread.h(540): error: expected a ";"

/usr/include/pthread.h(543): error: duplicate parameter name

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex(263): error: variable "pthread_t" is not a type name

35 errors detected in the compilation of "/var/folders/rm/84661c7553b4tf300g1vyzs00000gn/T//tmpxft_0000cecf_00000000-10_absval_layer.compute_50.cpp1.ii".
make: *** [.build_release/cuda/src/caffe/layers/absval_layer.o] Error 1
make: *** Waiting for unfinished jobs....

and so on...
If anyone has come across this issue, please update me about the solution.

System configurations and library versions:

-- Dependencies:
-- BLAS : Yes (vecLib)
-- Boost : Yes (ver. 1.61)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 2.6.1)
-- lmdb : Yes (ver. 0.9.18)
-- LevelDB : Yes (ver. 1.19)
-- Snappy : Yes (ver. 1.1.3)
-- OpenCV : Yes (ver. 2.4.13)
-- CUDA : Yes (ver. 7.5)
-- Python : Yes (ver 2.7)

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