question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error during 'sim.py' execution

See original GitHub issue

I am getting this error when I am trying to run ./sim.py:

make: Entering directory '/home/natan/linux-on-litex-vexriscv/build/sim/software/libcompiler_rt'
make: *** No rule to make target 'umodsi3.o', needed by 'libcompiler_rt.a'.  Stop.
make: Leaving directory '/home/natan/linux-on-litex-vexriscv/build/sim/software/libcompiler_rt'
Traceback (most recent call last):
  File "./sim.py", line 224, in <module>
    main()
  File "./sim.py", line 215, in main
    trace_end   = int(args.trace_end))
  File "/home/natan/linux-on-litex-vexriscv/litex/soc/integration/builder.py", line 169, in build
    self._generate_software(not self.soc.integrated_rom_initialized)
  File "/home/natan/linux-on-litex-vexriscv/litex/soc/integration/builder.py", line 152, in _generate_software
    subprocess.check_call(["make", "-C", dst_dir, "-f", makefile])
  File "/usr/lib/python3.5/subprocess.py", line 271, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-C', '/home/natan/linux-on-litex-vexriscv/build/sim/software/libcompiler_rt', '-f', '/home/natan/linux-on-litex-vexriscv/litex/soc/software/libcompiler_rt/Makefile']' returned non-zero exit status 2

I tried to run manually make -C /home/natan/linux-on-litex-vexriscv/build/sim/software/libcompiler_rt -f /home/natan/linux-on-litex-vexriscv/litex/soc/software/libcompiler_rt/Makefile and I got this error

make: Entering directory '/home/natan/linux-on-litex-vexriscv/build/sim/software/libcompiler_rt'
make: *** No rule to make target 'umodsi3.o', needed by 'libcompiler_rt.a'.  Stop.
make: Leaving directory '/home/natan/linux-on-litex-vexriscv/build/sim/software/libcompiler_rt'

I think that riscv-gcc is not compiling properly, but I am a benniger on this platform and I couldn’t solve.

Does someone can help me? I tried to run using Ubuntu 18.04, docker and also a gcloud instace Debian 9

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
natanvotrecommented, Feb 25, 2020

@natanvotre: have you been able to check what caused the issue?

It seems that it was just matter of environment. With the docker, I could run either in pyhton3.6 or python3.7, That seemed to be the problem.

Anyway, thanks for helping me with this Issue and, either way, now we have a Dockerfile that can be used as reference!

1reaction
enjoy-digitalcommented, Feb 10, 2020

it seems LiteX was not installed correctly and that compiler_rt submodule is missing. Can you tell us more how you installed LiteX? have you followed https://github.com/litex-hub/linux-on-litex-vexriscv#installing-litex to install LiteX? Can you check if compier_rt submodule has been correctly downloaded in litex/soc/software/compiler_rt?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What could be casuing the simpy exception 'No scheduled ...
Yes, the error message appears to indicate that the simulation was expected to run longer (based on the util argument on simpy.Environment.run() ) ......
Read more >
Error using callScriptFunction - Coppelia Robotics forums
Hi I am using Python code using the function importFinger_function and getting an error message in CoppeliaSim "External call to ...
Read more >
Simulation with SimPy - In Depth Manual - PythonHosted.org
The simulation starts, and SimPy seeks and executes the first scheduled event. ... current simulation time terminate the simulation with an error report....
Read more >
SimPy basics — SimPy 4.0.2.dev1+g2973dbe documentation
This guide describes the basic concepts of SimPy: How does it work? ... An event also has a list of callbacks, which are...
Read more >
Running custom Python script results in Linker error
Hello everybody,. We are trying to build and execute some custom scripts in Isaac Sim. The environment is running on Ubuntu 20.04 in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found