Closed imphil closed 8 years ago
Are you sure you are on the correct branch etc.? networkadapter_ct.v
is not supposed to even exist anymore. It is networkadapter_ct.sv
now.
It wasn't found by me, but by Kai. In my testing on master it works, so let's leave this open until I know what exactly goes wrong on his setup.
It seems to me that the new examples were taken from the source distribution (see cores-root
), but the old distribution files, i.e., make
was not executed.
Kai: did you run make
after updating to optimsoc master?
Hi,
I updated the repository and executed: -> "make clean" and then make again. The error still comes during the compilation. It looks like a nested include for me.
PS: Acetofive = Kai.
Update: I tried it again in a new folder and the error message is still the same. I cloned:
git clone https://github.com/optimsoc/sources.git optimsoc-sources
setBUILD_EXAMPLES_FPGA := no
and executed a make
You don't need to modify the Makefile, instead type
make BUILD_EXAMPLES_FPGA=no
But that's not the problem, please send me the full output of
make BUILD_EXAMPLES_FPGA=no >logfile.txt 2>&1
Hallo Philipp,
hier sind die logfiles vom Build und der Fehlermeldung.
mfg Kai
On 10/05/2016 12:59 PM, Philipp Wagner wrote:
You don't need to modify the Makefile, instead type |make BUILD_EXAMPLES_FPGA=no| But that's not the problem, please send me the full output of |make BUILD_EXAMPLES_FPGA=no >logfile.txt 2>&1|
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/optimsoc/sources/issues/24#issuecomment-251644345, or mute the thread https://github.com/notifications/unsubscribe-auth/ASqi8o1CEvFrsOA4R3MLoL9gtjdszVz1ks5qw4MvgaJpZM4KLBYv.
[1;37mINFO: Preparing openrisc:mor1kx:cappuccino[0m [1;37mINFO: Preparing opensocdebug:interfaces:mor1kx_trace_exec[0m [1;37mINFO: Preparing optimsoc:core:mor1kx_module[0m [1;37mINFO: Preparing optimsoc:lisnoc:blocks[0m [1;37mINFO: Preparing optimsoc:lisnoc:dma[0m [1;37mINFO: Preparing optimsoc:lisnoc:mp_simple[0m [1;37mINFO: Preparing optimsoc:lisnoc:router[0m [1;37mINFO: Preparing optimsoc:networkadapter:networkadapter_ct[0m [1;37mINFO: Preparing optimsoc:bootrom:bootrom[0m [1;37mINFO: Preparing optimsoc:base:functions[0m [1;37mINFO: Preparing optimsoc:sram:plain[0m [1;37mINFO: Preparing optimsoc:debug_system:mam_wb_adapter[0m [1;37mINFO: Preparing optimsoc:wb_interconnect:bus[0m [1;37mINFO: Preparing opensocdebug:interfaces:dii_channel[0m [1;37mINFO: Preparing opensocdebug:modules:mam[0m [1;37mINFO: Preparing opensocdebug:modules:mam_wb[0m [1;37mINFO: Preparing opensocdebug:blocks:timestamp[0m [1;37mINFO: Preparing opensocdebug:blocks:tracesample[0m [1;37mINFO: Preparing opensocdebug:blocks:tracepacket[0m [1;37mINFO: Preparing opensocdebug:modules:stm_mor1kx[0m [1;37mINFO: Preparing opensocdebug:modules:ctm_mor1kx[0m [1;37mINFO: Preparing optimsoc:base:config[0m [1;37mINFO: Preparing optimsoc:tile:compute_tile_dm[0m [1;37mINFO: Preparing optimsoc:trace_monitor:trace_monitor[0m [1;37mINFO: Preparing glip:common:channel[0m [1;37mINFO: Preparing glip:backend:tcp[0m [1;37mINFO: Preparing opensocdebug:blocks:buffer[0m [1;37mINFO: Preparing opensocdebug:interconnect:debug_ring[0m [1;37mINFO: Preparing opensocdebug:blocks:regaccess[0m [1;37mINFO: Preparing opensocdebug:modules:scm[0m [1;37mINFO: Preparing opensocdebug:modules:him[0m [1;37mINFO: Preparing optimsoc:debug:debug_interface[0m [1;37mINFO: Preparing wallento:simutil:verilator[0m [1;37mINFO: Preparing optimsoc:examples:compute_tile_sim[0m
[1;37mINFO: Verilating source[0m
[1;37mINFO: Starting Verilator:[0m [1;37mINFO: Verilator working dir: /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator[0m [1;37mINFO: Verilator command: /nfs/lis/tools/veripool/verilator/3.886/bin/verilator --cc -f input.vc --top-module tb_compute_tile --exe -LDFLAGS " -Wl,--start-group /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator/wallento_simutil_verilator.a -Wl,--end-group " -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src/wallento_simutil_verilator/inc -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src/optimsoc_examples_compute_tile_sim/tb_compute_tile.cpp -GUSE_DEBUG=1 --trace -Wno-fatal -CFLAGS "-std=c++11" -LDFLAGS "-pthread"[0m
[1;37mINFO: /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator[0m
[1;37mINFO: /nfs/lis/tools/veripool/verilator/3.886/bin/verilator --cc -f input.vc --top-module tb_compute_tile --exe -LDFLAGS " -Wl,--start-group /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator/wallento_simutil_verilator.a -Wl,--end-group " -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src/wallento_simutil_verilator/inc -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src/optimsoc_examples_compute_tile_sim/tb_compute_tile.cpp -GUSE_DEBUG=1 --trace -Wno-fatal -CFLAGS "-std=c++11" -LDFLAGS "-pthread"[0m
[1;31mERROR: %Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: Cannot find include file: optimsoc_def.vh
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: Looked in:
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_lisnoc_dma/rtl/dma/optimsoc_def.vh
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_lisnoc_dma/rtl/dma/optimsoc_def.vh.v
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_lisnoc_dma/rtl/dma/optimsoc_def.vh.sv
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/openrisc_mor1kx_cappuccino/verilog/optimsoc_def.vh
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/openrisc_mor1kx_cappuccino/verilog/optimsoc_def.vh.v
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/openrisc_mor1kx_cappuccino/verilog/optimsoc_def.vh.sv
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_lisnoc_dma/rtl/optimsoc_def.vh
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_lisnoc_dma/rtl/optimsoc_def.vh.v
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_lisnoc_dma/rtl/optimsoc_def.vh.sv
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_base_functions//optimsoc_def.vh
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_base_functions//optimsoc_def.vh.v
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_base_functions//optimsoc_def.vh.sv
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_debug_system_mam_wb_adapter/verilog/optimsoc_def.vh
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_debug_system_mam_wb_adapter/verilog/optimsoc_def.vh.v
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_debug_system_mam_wb_adapter/verilog/optimsoc_def.vh.sv
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_bootrom_bootrom/verilog/optimsoc_def.vh
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_bootrom_bootrom/verilog/optimsoc_def.vh.v
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/optimsoc_bootrom_bootrom/verilog/optimsoc_def.vh.sv
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/glip_backend_tcp//optimsoc_def.vh
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/glip_backend_tcp//optimsoc_def.vh.v
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: ../src/glip_backend_tcp//optimsoc_def.vh.sv
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: optimsoc_def.vh
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: optimsoc_def.vh.v
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: optimsoc_def.vh.sv
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: obj_dir/optimsoc_def.vh
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: obj_dir/optimsoc_def.vh.v
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:33: obj_dir/optimsoc_def.vh.sv
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:53: Define or directive not defined: VCHANNELS %Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:53: syntax error, unexpected ';', expecting TYPE-IDENTIFIER %Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:56: Define or directive not defined:
OPTIMSOC_XDIM
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:56: syntax error, unexpected '*', expecting TYPE-IDENTIFIER
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:56: Define or directive not defined: OPTIMSOC_YDIM %Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:78: Define or directive not defined:
VCHANNEL_MPSIMPLE
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:78: syntax error, unexpected ';', expecting TYPE-IDENTIFIER
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:79: Define or directive not defined: VCHANNEL_DMA_REQ %Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:79: syntax error, unexpected ';', expecting TYPE-IDENTIFIER %Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:80: Define or directive not defined:
VCHANNEL_DMA_RESP
%Error: ../src/optimsoc_networkadapter_networkadapter_ct/verilog/networkadapter_ct.v:80: syntax error, unexpected ';', expecting TYPE-IDENTIFIER
%Error: ../src/optimsoc_sram_plain/verilog/wb_sram_sp.v:31: Cannot find include file: optimsoc_def.vh
%Error: ../src/optimsoc_sram_plain/verilog/wb_sram_sp.v:62: Define or directive not defined: `OPTIMSOC_SRAM_IMPLEMENTATION
%Error: ../src/optimsoc_sram_plain/verilog/wb_sram_sp.v:62: syntax error, unexpected ';', expecting TYPE-IDENTIFIER
%Error: ../src/optimsoc_debug_system_mam_wb_adapter/verilog/mam_wb_adapter.v:44: Cannot find include file: optimsoc_def.vh
%Error: ../src/optimsoc_tile_compute_tile_dm/verilog/compute_tile_dm.sv:30: Cannot find include file: optimsoc_def.vh
%Error: Exiting due to 45 error(s)
%Error: Command Failed /nas/ei/share/lis/tools/veripool/verilator/3.886/bin/verilator_bin --cc -f input.vc --top-module tb_compute_tile --exe -LDFLAGS ' -Wl,--start-group /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator/wallento_simutil_verilator.a -Wl,--end-group ' -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src/wallento_simutil_verilator/inc -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src/optimsoc_examples_compute_tile_sim/tb_compute_tile.cpp '-GUSE_DEBUG=1' --trace -Wno-fatal -CFLAGS '-std=c++11' -LDFLAGS -pthread
[0m
[1;31mERROR: Failed to build simulation model[0m
[1;31mERROR: "/nfs/lis/tools/veripool/verilator/3.886/bin/verilator --cc -f input.vc --top-module tb_compute_tile --exe -LDFLAGS " -Wl,--start-group /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator/wallento_simutil_verilator.a -Wl,--end-group " -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src/wallento_simutil_verilator/inc -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator -CFLAGS -I/nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/src/optimsoc_examples_compute_tile_sim/tb_compute_tile.cpp -GUSE_DEBUG=1 --trace -Wno-fatal -CFLAGS "-std=c++11" -LDFLAGS "-pthread"" exited with an error code.
ERROR: See /nas/ei/home/ga73sip/test/optimsoc-sources/build/optimsoc_examples_compute_tile_sim/sim-verilator/verilator.log for details.[0m
tools/build.py '' --with-docs --with-examples-sim --without-examples-fpga -o objdir (I) Building OpTiMSoC (I) version: 2016.1-git289711deb343+ (I) source: /nas/ei/home/ga73sip/test/optimsoc-sources (I) objdir: /nas/ei/home/ga73sip/test/optimsoc-sources/objdir (I) Build host tools (I) + utils (I) + Build (I) + Copy build artifacts (I) + optimsoc-pgm-fpga (I) + Copy build artifacts (I) Build SoC software (I) + baremetal-libs (I) + autogen (I) + Create object directory (I) + Configure (I) + Build (I) + Install build artifacts (I) Build hardware modules (I) Build and install documentation (I) + Build (I) + Install build artifacts (I) Build and install our private copy of FuseSoC (I) + Copy sources (I) + Copy ipyxact module as dependency into fusesoc (I) + Create optimsoc-fusesoc wrapper script (I) Build lisnoc (I) Copy extra_cores hardware modules (I) Copy/link GLIP hardware modules (I) Build GLIP (for host) (I) + autogen (I) + Configure (I) + Build (I) + Install build artifacts (I) Build opensocdebug host software (I) + autogen (I) + Configure (I) + Build (I) + Install build artifacts (I) Write OpTiMSoC environment file (I) Build examples (Verilator-based simulation) (I) + compute_tile_sim_singlecore (compute_tile_sim --NUM_CORES 1) (I) + Build (I) + Copy build artifacts (I) + compute_tile_sim_dualcore (compute_tile_sim --NUM_CORES 2) (I) + Build (I) + Copy build artifacts (I) + compute_tile_sim_quadcore (compute_tile_sim --NUM_CORES 4) (I) + Build (I) + Copy build artifacts (I) + system_2x2_cccc_sim_dualcore (system_2x2_cccc_sim --NUM_CORES 2) (I) + Build (I) + Copy build artifacts (I) + system_2x2_cccc_sim_dualcore_debug (system_2x2_cccc_sim --NUM_CORES 2 --USE_DEBUG 1) (I) + Build (I) + Copy build artifacts (I) Build finished. (I) All build artifacts are available at /nas/ei/home/ga73sip/test/optimsoc-sources/objdir/dist
Was ist das oben für ein log von verilator/fusesoc?
Unten
compute_tile_sim_dualcore (compute_tile_sim --NUM_CORES 2) (I) + Build (I) + Copy build artifacts
sieht man genau, dass der Build des compute tiles aus den Quellen funktioniert.
Und wo kommt die networkadapter_ct.v Datei her? Die ist in den Quellen nicht vorhanden.
Bitte überprüfe auch ob deine FUSESOC_CORES Variable richtig gesetzt ist (d.h. keine eigenen Änderungen, nur das was optimsoc-environment.sh setzt).
Ok, danke. Der Fehler lag daran, dass ich das optimsoc-environment.sh nach einem neuen "make" nicht ausgeführt habe.
Danke fürs Helfen.
On 10/05/2016 02:11 PM, Philipp Wagner wrote:
Was ist das oben für ein log von verilator/fusesoc?
Unten
|compute_tile_sim_dualcore (compute_tile_sim --NUM_CORES 2) (I) + Build (I) + Copy build artifacts |
sieht man genau, dass der Build des compute tiles aus den Quellen funktioniert.
Und wo kommt die networkadapter_ct.v Datei her? Die ist in den Quellen nicht vorhanden.
Bitte überprüfe auch ob deine FUSESOC_CORES Variable richtig gesetzt ist (d.h. keine eigenen Änderungen, nur das was optimsoc-environment.sh setzt).
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/optimsoc/sources/issues/24#issuecomment-251656748, or mute the thread https://github.com/notifications/unsubscribe-auth/ASqi8uC2DIhkz_ZYcDWdeePxuD0u1V5cks5qw5PagaJpZM4KLBYv.
I didn't run the optimsoc-environment.sh
to set the variables new after the update/make.