当我bazel info --local_cpu_resources HOST_CPUS继续macos奔跑时ubuntu
`bazel-bin: .../9dcdc19e81f948a3daf2cc314e0d4bf1/execroot/demo/bazel-out/darwin-fastbuild/bin`
`bazel-genfiles: .../9dcdc19e81f948a3daf2cc314e0d4bf1/execroot/demo/bazel-out/darwin-fastbuild/bin`
`bazel-testlogs: .../9dcdc19e81f948a3daf2cc314e0d4bf1/execroot/demo/bazel-out/darwin-fastbuild/testlogs`
Run Code Online (Sandbox Code Playgroud)
`bazel-bin: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin`
`bazel-genfiles: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin`
`bazel-testlogs: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/testlogs`
Run Code Online (Sandbox Code Playgroud)
Darwin可能意味着OS在macos.k8意思ubuntu?windows,会输出什么?为什么?https://docs.bazel.build/versions/master/be/make-variables.html#predefined_variables
https://docs.bazel.build/versions/master/guide.html#distinct_host_configuration-true-default
root@608a654a26de:/home/servlet/demo# bazel info --local_cpu_resources HOST_CPUS
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
bazel-bin: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin
bazel-genfiles: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin
bazel-testlogs: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/testlogs
character-encoding: file.encoding = ISO-8859-1, defaultCharset = ISO-8859-1
command_log: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/command.log
committed-heap-size: 40MB
execution_root: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo …Run Code Online (Sandbox Code Playgroud) 我有一个简单的测试程序调用pthread_cond_broadcast.
与ld链接器链接时,显示:
情况1:
$ nm ld-test | grep cond_broadcast
U pthread_cond_broadcast@@GLIBC_2.3.2
Run Code Online (Sandbox Code Playgroud)
与gold链接器链接时,它显示:
案例2:
$ nm gold-test | grep cond_broadcast
U pthread_cond_broadcast
Run Code Online (Sandbox Code Playgroud)
pthread/libc包含几个带有不同版本符号的pthread_cond_broadcast符号,可能是因为ABI已被更改.
$ nm /lib64/libc.so.6 |grep cond_broadca
00000036b84f7d30 t __pthread_cond_broadcast
00000036b85278f0 t __pthread_cond_broadcast_2_0
00000036b84f7d30 T pthread_cond_broadcast@@GLIBC_2.3.2
00000036b85278f0 T pthread_cond_broadcast@GLIBC_2.2.5
$ nm /lib64/libpthread.so.0 |grep cond_broadcast
00000036b880bee0 t __pthread_cond_broadcast
00000036b880c250 t __pthread_cond_broadcast_2_0
00000036b880bee0 T pthread_cond_broadcast@@GLIBC_2.3.2
00000036b880c250 T pthread_cond_broadcast@GLIBC_2.2.5
Run Code Online (Sandbox Code Playgroud)
所以问题是:
gold和老/正常之间的行为不同ld.pthread_cond_broadcast符号时,在案例2中正在运行时使用哪个pthread_cond_broadcast 符号.pthread_cond_broadcast的最新实现?最老的 ?这是使用gcc 4.9.2和binutils 2.24中的gold/ld链接器(作为Red Hat 的devtoolset-3的一部分.)
我正在尝试使用这些说明在 Ubuntu 上构建 Chromium
[1] https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md
并低于错误
VirtualBox:~/chromium/src$ gn gen out/Default
ERROR at //build_overrides/build.gni:5:1: Unable to load "/home/chromium/src/build/config/gclient_args.gni".
import("//build/config/gclient_args.gni")
^---------------------------------------
See //build/toolchain/toolchain.gni:9:1: whence it was imported.
import("//build_overrides/build.gni")
^-----------------------------------
See //build/config/coverage/coverage.gni:5:1: whence it was imported.
import("//build/toolchain/toolchain.gni")
^---------------------------------------
See //build/config/sanitizers/sanitizers.gni:7:1: whence it was imported.
import("//build/config/coverage/coverage.gni")
^--------------------------------------------
See //build/config/compiler/compiler.gni:8:1: whence it was imported.
import("//build/config/sanitizers/sanitizers.gni")
^------------------------------------------------
See //BUILD.gn:11:1: whence it was imported.
import("//build/config/compiler/compiler.gni")
^--------------------------------------------
Run Code Online (Sandbox Code Playgroud)
有人遇到过这个问题吗?