Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • Paddle
  • Issue
  • #352

P
Paddle
  • 项目概览

PaddlePaddle / Paddle
大约 2 年 前同步成功

通知 2325
Star 20933
Fork 5424
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 1423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
Paddle
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 1,423
    • Issue 1,423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
    • 合并请求 543
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 11月 04, 2016 by saxon_zh@saxon_zhGuest

Build errors with Mac OS X

Created by: wangkuiyi

When I run make after cmake succeeded, it complains that

[  5%] Built target gen_proto_py
[  9%] Built target paddle_proto
[ 11%] Built target paddle_cuda
[ 11%] Building CXX object paddle/utils/CMakeFiles/paddle_utils.dir/Util.cpp.o
In file included from /Users/yi/work/paddle/paddle/utils/Util.cpp:16:
In file included from /Users/yi/work/paddle/paddle/utils/Util.h:31:
In file included from /Users/yi/work/paddle/paddle/utils/Logging.h:183:
/usr/local/include/glog/logging.h:695:32: error: comparison of integers of different signs:
      'const unsigned long long' and 'const int' [-Werror,-Wsign-compare]
DEFINE_CHECK_OP_IMPL(Check_NE, !=)  // Use CHECK(x == NULL) instead.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/local/include/glog/logging.h:683:32: note: expanded from macro 'DEFINE_CHECK_OP_IMPL'
    if (GOOGLE_PREDICT_TRUE(v1 op v2)) return NULL; \
                               ^
/usr/local/include/glog/logging.h:133:53: note: expanded from macro 'GOOGLE_PREDICT_TRUE'
#define GOOGLE_PREDICT_TRUE(x) (__builtin_expect(!!(x), 1))
                                                    ^
/Users/yi/work/paddle/paddle/utils/Util.cpp:109:3: note: in instantiation of function template specialization
      'google::Check_NEImpl<unsigned long long, int>' requested here
  CHECK_NE(tid, -1);
  ^
/usr/local/include/glog/logging.h:766:30: note: expanded from macro 'CHECK_NE'
#define CHECK_NE(val1, val2) CHECK_OP(_NE, !=, val1, val2)
                             ^
/usr/local/include/glog/logging.h:741:3: note: expanded from macro 'CHECK_OP'
  CHECK_OP_LOG(name, op, val1, val2, google::LogMessageFatal)
  ^
/usr/local/include/glog/logging.h:732:18: note: expanded from macro 'CHECK_OP_LOG'
         google::Check##name##Impl(                      \
                 ^
<scratch space>:165:1: note: expanded from here
Check_NEImpl
^
1 error generated.
make[2]: *** [paddle/utils/CMakeFiles/paddle_utils.dir/Util.cpp.o] Error 1
make[1]: *** [paddle/utils/CMakeFiles/paddle_utils.dir/all] Error 2
make: *** [all] Error 2

I am running Mac OS X 10.10.5 and Xcode 7.2.1.

$ clang --version
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
指派人
分配到
0.9.0
里程碑
0.9.0 (Past due)
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/Paddle#352
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7