Comments (6)
Can you try adding -lm
to the relevant linkopts
?
from lab.
Thanks that helped some.
This command now works.
lab$ bazel run :random_agent --define headless=false -- \
--length=10000 --width=640 --height=480
But this command results in an error.
lab$ bazel run :game -- --level_script tests/demo_map
What I did.
I added -lm to bspc as below, which resulted in the following error.
I tried both
linkopts = ["-pthread", "-lm"],
and
linkopts = ["-lm", "-pthread"],
with bazel cleans.
Thanks
cc_binary(
name = "bspc",
srcs = glob([
CODE_DIR + "/botlib/*.h",
CODE_DIR + "/qcommon/*.h",
]) + [
CODE_DIR + "/botlib/be_aas_bspq3.c",
CODE_DIR + "/botlib/be_aas_cluster.c",
. . .
"-DQDECL=",
"-pthread",
],
linkopts = ["-pthread", "-lm"],
visibility = ["//deepmind/level_generation:__subpackages__"],
deps = ["@zlib_archive//:zlib"],
)
ERROR: /home/nburn42/Projects/deeprobotics/lab/BUILD:899:1: Linking of rule '//:game' failed: namespace-sandbox failed: error executing command /home/nburn42/.cache/bazel/_bazel_nburn42/8ac04bba4272ff63a5f54d73f1af83e1/lab/_bin/namespace-sandbox ... (remaining 19 argument(s) skipped).
/usr/bin/ld: bazel-out/local-fastbuild/bin/libgame_lib_sdl.a(cl_input.pic.o): undefined reference to symbol 'powf@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Target //:game failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 193.349s, Critical Path: 178.77s
ERROR: Build failed. Not running target.
from lab.
Interesting. Can you remove the linker script from the DSO build rule? We were trying to isolate the DSO as much as possible, since we don't have a lot of control over all the external names in it, but it may be interfering here. Alternatively, try adding -lm
also to the DSO build rule.
from lab.
Sorry about the delay.
I found that linking the math library into :game fixed my second issue.
It fixed the problems on both ubuntu 16.04 and 14.04.
All the bazel commands on the instructions now work.
I submitted a pull request with the change.
Thanks for the help.
from lab.
We will make a change similar to the one proposed in #12 in the future, which should address this. Thanks for raising!
from lab.
Fixed by d6b1afc.
from lab.
Related Issues (20)
- Make random maze as Capture The Flag mode HOT 2
- RuntimeError: Failed to connect RL API HOT 4
- ImportError: deepmind_lab.so: undefined symbol: PyString_Type error occurred when I was running DeepMind Lab HOT 5
- RuntimeError: Failed to connect RL API
- Reset() environment to a specific state? HOT 2
- Failed to find function dmlab_connect in library! RuntimeError: Failed to connect RL API
- Adding "I-maze" map/environment HOT 5
- Access camera params (extrinsics, intrinsics, near/far plane) for pointcloud calculation HOT 1
- How to produce deterministic episode? HOT 1
- custom environment
- Bazel Build Error: no such target '@platforms//cpu:wasm32': target 'wasm32' not declared in package 'cpu' HOT 3
- Disable Velocity HOT 1
- Problem with Bazel Python3 build HOT 2
- Wheel not supported error HOT 6
- Change the speed of the agent dynamically
- Build fails with message about C++14 being required even with a C++14-capable compiler HOT 2
- Complete installation script for Ubuntu 20.04 HOT 5
- Banino et. al. Grid Cells explore_goal_locations and explore_obstructed_goals HOT 1
- MacOS installation issues HOT 5
- When I run bazel run :python_random_agent --define graphics=sdl -- \ --length=10000 --width=640 --height=480 in Ubuntu 20.04, I meet the following error. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lab.