Giter Site home page Giter Site logo

Comments (12)

startcode avatar startcode commented on August 25, 2024

One thing I noticed is that you are using root@in_dev_docker. If you follow the README.md, you should be able to login docker dev environment without using root.
Remeber to logout and login your system after bash docker/scripts/install_docker.sh

Another possible reason is that your computing resource is limited. I am trying to add a patch to limit the concurrent bazel build jobs.

from apollo.

lostinet avatar lostinet commented on August 25, 2024

ran docker ps and access was denied after bash docker/scripts/install_docker.sh, assume those prior logout and login steps contribute no effect to work out the docker without sudo. am I ignoring anything visible in the guideline since I'm totally new to the docker environment. @startcode

from apollo.

siyangy avatar siyangy commented on August 25, 2024

This looks like an internal compiler problem that might be due to limited system resource, e.g., insufficient memory. See tensorflow/serving#13 for reference. It probably doesn't have anything to do with whether the user is root in docker.

Also you can run bazel build //modules/dreamview/backend/... to compile dreamview only to detect whether the problem is related to the build target.

from apollo.

startcode avatar startcode commented on August 25, 2024

I agree with @siyangy that it is likely the resource problem. We just used a way to restrict the resource that bazel can consume.

@lostinet can you pull the latest code and try again? Thank you.

from apollo.

siyangy avatar siyangy commented on August 25, 2024

@lostinet You can run dmesg to see if an OOM led to the compiler meltdown: https://stackoverflow.com/questions/30887143/make-j-8-g-internal-compiler-error-killed-program-cc1plus

from apollo.

lostinet avatar lostinet commented on August 25, 2024

ERROR: Error during action cache initialization: Failed action cache referential integrity check: Validation mismatch: validation entry 8007 is too large compared to index size 4615. Corrupted files were renamed to '/root/.cache/bazel/_bazel_root/540135163923dd7d5820f3ee4b306b32/action_cache/*.bad'. Blaze will now reset action cache data, causing a full rebuild. INFO: From Writing file modules/localization/proto/libcamera_parameter_proto.a-2.params: external/glog/src/logging.cc: In static member function 'static void google::LogMessage::Fail()': external/glog/src/logging.cc:1489:1: warning: 'noreturn' function does return [enabled by default] } ^ ERROR: /apollo/modules/control/tools/BUILD:31:1: C++ compilation of rule '//modules/control/tools:control_tester' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g '-std=c++0x' '-DUSE_ESD_CAN=false' -MD -MF ... (remaining 91 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 4. gcc: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate.

here's one more trial and one more error.
@startcode @siyangy

from apollo.

lostinet avatar lostinet commented on August 25, 2024

while dmesg
there is a hint: out of memory: Kill process 60171(cc1plus) score 244 or sacrifice child.
@siyangy

from apollo.

siyangy avatar siyangy commented on August 25, 2024

Yeah that confirms the failure was due an OOM. How much memory do you have in your system?

from apollo.

siyangy avatar siyangy commented on August 25, 2024

Also, as @startcode suggested, you can pull the newest code that limits the bazel job number to 10. We have verified internally that it could solve the similar compiler failure you have run into.

from apollo.

lostinet avatar lostinet commented on August 25, 2024

well, just noticed my 16GB memory on MAC assigned merely 1GB to its virtual machine (Ubuntu).
anyway, OOM error removed with updated codes!
@siyangy

from apollo.

wadewang6 avatar wadewang6 commented on August 25, 2024

显示build失败,是否必须用制定的java 版本,并且必须在对应目录下面?
buildfail

Seems that the build command should add "sudo". change to "sudo bash apollo.sh build
"

from apollo.

startcode avatar startcode commented on August 25, 2024

@wadewang6 Can you create a new issue for this problem? This thread is a different problem and has been closed.
Thanks.

from apollo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.