m-labs / misoc

The original high performance and small footprint system-on-chip based on Migen™
https://m-labs.hk
Other
305 stars 85 forks source link

Setup instructions don't include initializing git submodules and misoc gives a cryptic error #8

Closed mithro closed 8 years ago

mithro commented 9 years ago

Without running;

git submodule init
git submodule update

You get the following error;

make: Entering directory `/usr/local/google/home/tansell/foss/m-labs/misoc/software/bios'
 CC       isr.o
 CC       sdram.o
 CC       main.o
 CC       boot-helper-lm32.o
 CC       boot.o
 CC       dataflow.o
make -C ../../software/libcompiler-rt
make[1]: Entering directory `/usr/local/google/home/tansell/foss/m-labs/misoc/software/libcompiler-rt'
make[1]: *** No rule to make target `divsi3.o', needed by `libcompiler-rt.a'.  Stop.
make[1]: Leaving directory `/usr/local/google/home/tansell/foss/m-labs/misoc/software/libcompiler-rt'
make: *** [libs] Error 2
make: Leaving directory `/usr/local/google/home/tansell/foss/m-labs/misoc/software/bios'
Traceback (most recent call last):
  File "./make.py", line 180, in <module>
    raise OSError("BIOS build failed")
OSError: BIOS build failed

The make.py or Makefile could check if submodules are initialized or not.