【问题标题】:Redis Graph compilation on macOSmacOS 上的 Redis Graph 编译
【发布时间】:2018-08-23 08:26:57
【问题描述】:

当我从 https://github.com/RedisLabsModules/redis-graph.git 编译 RedisGraph 时出现以下错误

错误是

[0%] 构建 C 对象 CMakeFiles/graphblas.dir/Source/GB_AxB_builtin.c.o 在 /Users/tkhader/codeBase/redis/redis-graph/deps/GraphBLAS/Source/GB_AxB_builtin.c:19 包含的文件中: /Users/tkhader/codeBase/redis/redis-graph/deps/GraphBLAS/Source/GB.h:1527:1:错误:当前目标不支持线程本地存储 _Thread_local extern GB_thread_local_struct GB_thread_local ;

svc-notes-MacBook-Pro:redis-graph tkhader$ llvm-gcc -v Apple LLVM 版本 9.1.0 (clang-902.0.39.2) 目标:x86_64-apple-darwin17.7.0 线程模型:posix 安装目录:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

如果您需要更多信息,请告诉我。

【问题讨论】:

    标签: xcode redis llvm llvm-clang redisgraph


    【解决方案1】:

    我建议从头开始,删除并重新克隆, 进入 GraphBLAS 依赖目录,尝试将 GraphBLAS 构建为库,'make library',一旦 GraphBLAS 构建完成,返回 RedisGraph 根目录并运行 make。

    【讨论】:

      【解决方案2】:

      见:https://github.com/RedisLabsModules/redis-graph/issues/20

      1. 从 deps/GraphBLAS 文件夹中运行 make install

      2. 更新 src/Makefile 以动态链接 GraphBLAS: redisgraph.so: $(模块) $(LD) -o $@ $(MODULE) $(SHOBJ_LDFLAGS) -lc -lm -lgraphblas 从 LIBS 中删除 GRAPHBLAS。

      【讨论】:

      • 我看到 swilly22 评论说他更改了 Makefile,所以我忽略了这一点,但在我安装 GraphBLAS 时它仍然给我同样的错误:> [0%] 构建 C 对象 CMakeFiles/graphblas.dir/Source /GB_AxB_builtin.c.o 在 /Users/tkhader/codeBase/redis/redis-graph/deps/GraphBLAS/Source/GB_AxB_builtin.c:19 中包含的文件中:/Users/tkhader/codeBase/redis/redis-graph/deps/GraphBLAS/ Source/GB.h:1527:1:错误:当前目标 _Thread_local extern GB_thread_local_struct GB_thread_local 不支持线程本地存储; ^ 产生 1 个错误。
      猜你喜欢
      • 2023-03-28
      • 2014-05-18
      • 2022-01-19
      • 1970-01-01
      • 1970-01-01
      • 2018-05-12
      • 1970-01-01
      • 2021-07-30
      • 2021-03-17
      相关资源
      最近更新 更多