ucb-bar / chipyard

An Agile RISC-V SoC Design Framework with in-order cores, out-of-order cores, accelerators, and more
https://chipyard.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
1.65k stars 653 forks source link

firemarshal build linux image for the FPGA prototype failed #1346

Open Charles-Tang opened 1 year ago

Charles-Tang commented 1 year ago

Background Work

Chipyard Version and Hash

Release: 1.5.0 Hash: a6a6a6

OS Setup

Ex: Output of uname -a + lsb_release -a + printenv + conda list

Other Setup

Ex: Prior steps taken / Documentation Followed / etc...

Current Behavior

when run command: ./marshal -v -d build br-base.json

enconter following errors: 2023-02-16 08:52:05,629 [run ] [DEBUG] make[3]: [Makefile:1619:cli/cli-interp.o] 错误 1 2023-02-16 08:52:05,630 [run ] [DEBUG] make[3]: 离开目录“/media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/boards/default/distros/br/buildroot/output/build/gdb-8.2.1/gdb” 2023-02-16 08:52:05,631 [run ] [DEBUG] make[2]: [Makefile:8793:all-gdb] 错误 2 2023-02-16 08:52:05,631 [run ] [DEBUG] make[2]: 离开目录“/media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/boards/default/distros/br/buildroot/output/build/gdb-8.2.1” 2023-02-16 08:52:05,632 [run ] [DEBUG] make[1]: [Makefile:850:all] 错误 2 2023-02-16 08:52:05,632 [run ] [DEBUG] make[1]: 离开目录“/media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/boards/default/distros/br/buildroot/output/build/gdb-8.2.1” 2023-02-16 08:52:05,632 [run ] [DEBUG] make: [package/pkg-generic.mk:241:/media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/boards/default/distros/br/buildroot/output/build/gdb-8.2.1/.stamp_built] 错误 2 2023-02-16 08:52:05,657 [main ] [ERROR] Failed to build workload br-base.json 2023-02-16 08:52:05,657 [main ] [INFO ] Log available at: /media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/logs/br-base-build-2023-02-16--00-31-35-4XIVWP06OMXIK4US.log

this is the last few lines of the building log

Expected Behavior

command run without errors

Other Information

No response

Charles-Tang commented 1 year ago

2023-02-16 08:52:02,051 [run ] [DEBUG] ser-tcp.c:64:13: error: conflicting declaration 'typedef int socklen_t' 2023-02-16 08:52:02,052 [run ] [DEBUG] 64 | typedef int socklen_t; 2023-02-16 08:52:02,052 [run ] [DEBUG] | ^~~~~ 2023-02-16 08:52:02,067 [run ] [DEBUG] In file included from build-gnulib/import/unistd.h:40, 2023-02-16 08:52:02,069 [run ] [DEBUG] from ./gnulib/import/pathmax.h:42, 2023-02-16 08:52:02,069 [run ] [DEBUG] from ./common/common-defs.h:84, 2023-02-16 08:52:02,070 [run ] [DEBUG] from defs.h:28, 2023-02-16 08:52:02,070 [run ] [DEBUG] from ser-tcp.c:20: 2023-02-16 08:52:02,070 [run ] [DEBUG] /media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/boards/default/distros/br/buildroot/output/host/riscv64-buildroot-linux-gnu/sysroot/usr/include/unistd.h:274:21: note: previous declaration as 'typedef socklen_t socklen_t' 2023-02-16 08:52:02,071 [run ] [DEBUG] 274 | typedef socklen_t socklen_t; 2023-02-16 08:52:02,071 [run ] [DEBUG] | ^~~~~ 2023-02-16 08:52:02,071 [run ] [DEBUG] ser-tcp.c: In function 'int net_open(serial, const char)': 2023-02-16 08:52:02,071 [run ] [DEBUG] ser-tcp.c:223:19: error: 'FIONBIO' was not declared in this scope 2023-02-16 08:52:02,071 [run ] [DEBUG] 223 | ioctl (scb->fd, FIONBIO, &ioarg); 2023-02-16 08:52:02,071 [run ] [DEBUG] | ^~~ 2023-02-16 08:52:02,072 [run ] [DEBUG] ser-tcp.c:223:3: error: 'ioctl' was not declared in this scope 2023-02-16 08:52:02,072 [run ] [DEBUG] 223 | ioctl (scb->fd, FIONBIO, &ioarg); 2023-02-16 08:52:02,072 [run ] [DEBUG] | ^~~~~ 2023-02-16 08:52:02,347 [run ] [DEBUG] CXX cli/cli-interp.o 2023-02-16 08:52:02,367 [run ] [DEBUG] make[3]: [Makefile:1619:ser-tcp.o] 错误 1 2023-02-16 08:52:02,369 [run ] [DEBUG] make[3]: 正在等待未完成的任务.... 2023-02-16 08:52:05,423 [run ] [DEBUG] cli/cli-interp.c: In function 'void _initialize_cli_interp()': 2023-02-16 08:52:05,424 [run ] [DEBUG] cli/cli-interp.c:459:19: error: 'normal_stop' is not a member of 'gdb::observers'; did you mean 'normal_stop'? 2023-02-16 08:52:05,424 [run ] [DEBUG] 459 | gdb::observers::normal_stop.attach (cli_on_normal_stop); 2023-02-16 08:52:05,424 [run ] [DEBUG] | ^~~ 2023-02-16 08:52:05,424 [run ] [DEBUG] In file included from cli/cli-interp.c:28: 2023-02-16 08:52:05,425 [run ] [DEBUG] ./infrun.h:106:12: note: 'normal_stop' declared here 2023-02-16 08:52:05,425 [run ] [DEBUG] 106 | extern int normal_stop (void); 2023-02-16 08:52:05,425 [run ] [DEBUG] | ^~~ 2023-02-16 08:52:05,425 [run ] [DEBUG] cli/cli-interp.c:460:19: error: 'end_stepping_range' is not a member of 'gdb::observers' 2023-02-16 08:52:05,426 [run ] [DEBUG] 460 | gdb::observers::end_stepping_range.attach (cli_on_end_stepping_range); 2023-02-16 08:52:05,426 [run ] [DEBUG] | ^~~~~~ 2023-02-16 08:52:05,427 [run ] [DEBUG] cli/cli-interp.c:461:19: error: 'signal_received' is not a member of 'gdb::observers' 2023-02-16 08:52:05,427 [run ] [DEBUG] 461 | gdb::observers::signal_received.attach (cli_on_signal_received); 2023-02-16 08:52:05,427 [run ] [DEBUG] | ^~~~~~~ 2023-02-16 08:52:05,428 [run ] [DEBUG] cli/cli-interp.c:462:19: error: 'signal_exited' is not a member of 'gdb::observers' 2023-02-16 08:52:05,429 [run ] [DEBUG] 462 | gdb::observers::signal_exited.attach (cli_on_signal_exited); 2023-02-16 08:52:05,429 [run ] [DEBUG] | ^~~~~ 2023-02-16 08:52:05,430 [run ] [DEBUG] cli/cli-interp.c:463:19: error: 'exited' is not a member of 'gdb::observers' 2023-02-16 08:52:05,430 [run ] [DEBUG] 463 | gdb::observers::exited.attach (cli_on_exited); 2023-02-16 08:52:05,430 [run ] [DEBUG] | ^~ 2023-02-16 08:52:05,431 [run ] [DEBUG] cli/cli-interp.c:464:19: error: 'no_history' is not a member of 'gdb::observers' 2023-02-16 08:52:05,431 [run ] [DEBUG] 464 | gdb::observers::no_history.attach (cli_on_no_history); 2023-02-16 08:52:05,432 [run ] [DEBUG] | ^~~~~~ 2023-02-16 08:52:05,433 [run ] [DEBUG] cli/cli-interp.c:465:19: error: 'sync_execution_done' is not a member of 'gdb::observers' 2023-02-16 08:52:05,433 [run ] [DEBUG] 465 | gdb::observers::sync_execution_done.attach (cli_on_sync_execution_done); 2023-02-16 08:52:05,433 [run ] [DEBUG] | ^~~~~~~ 2023-02-16 08:52:05,434 [run ] [DEBUG] cli/cli-interp.c:466:19: error: 'command_error' is not a member of 'gdb::observers' 2023-02-16 08:52:05,434 [run ] [DEBUG] 466 | gdb::observers::command_error.attach (cli_on_command_error); 2023-02-16 08:52:05,434 [run ] [DEBUG] | ^~~~~ 2023-02-16 08:52:05,435 [run ] [DEBUG] cli/cli-interp.c:467:19: error: 'user_selected_context_changed' is not a member of 'gdb::observers' 2023-02-16 08:52:05,435 [run ] [DEBUG] 467 | gdb::observers::user_selected_context_changed.attach 2023-02-16 08:52:05,436 [run ] [DEBUG] | ^~~~~~~~~ 2023-02-16 08:52:05,629 [run ] [DEBUG] make[3]: [Makefile:1619:cli/cli-interp.o] 错误 1 2023-02-16 08:52:05,630 [run ] [DEBUG] make[3]: 离开目录“/media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/boards/default/distros/br/buildroot/output/build/gdb-8.2.1/gdb” 2023-02-16 08:52:05,631 [run ] [DEBUG] make[2]: [Makefile:8793:all-gdb] 错误 2 2023-02-16 08:52:05,631 [run ] [DEBUG] make[2]: 离开目录“/media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/boards/default/distros/br/buildroot/output/build/gdb-8.2.1” 2023-02-16 08:52:05,632 [run ] [DEBUG] make[1]: [Makefile:850:all] 错误 2 2023-02-16 08:52:05,632 [run ] [DEBUG] make[1]: 离开目录“/media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/boards/default/distros/br/buildroot/output/build/gdb-8.2.1” 2023-02-16 08:52:05,632 [run ] [DEBUG] make: [package/pkg-generic.mk:241:/media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/boards/default/distros/br/buildroot/output/build/gdb-8.2.1/.stamp_built] 错误 2 2023-02-16 08:52:05,657 [main ] [ERROR] Failed to build workload br-base.json 2023-02-16 08:52:05,657 [main ] [INFO ] Log available at: /media/charles/0F6215370F621537/Files/BachelorDesign/chipyard/software/firemarshal/logs/br-base-build-2023-02-16--00-31-35-4XIVWP06OMXIK4US.log

this is a more complete version of the error log