eren-terzioglu commented on PR #15617: URL: https://github.com/apache/nuttx/pull/15617#issuecomment-2602725388
> Hmmm still the same. Maybe my python is messed up? > > ``` > $ rm include/sysinfo.h > rm: include/sysinfo.h: No such file or directory > $ tools/configure.sh rv-virt:leds64 > $ make host_info > file sysinfo.h not exists > /bin/bash: line 1: 47609 Segmentation fault: 11 python3 /private/tmp/250119/nuttx/tools/host_info_dump.py "-c" "-p" -f \""-fno-common -Wall -Wstrict-prototypes -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas -Wno-psabi -Os -fno-strict-aliasing -fomit-frame-pointer -ffunction-sections -fdata-sections -nostdlib \\\"-g\\\" -mcmodel=medany -march=rv64imafdc -mabi=lp64d -isystem /private/tmp/250119/nuttx/include -D__NuttX__ -DNDEBUG "\" \""-fno-common -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas -nostdinc++ -Wno-psabi -fno-exceptions -fcheck-new -fno-rtti -Os -fno-strict-aliasing -fomit-frame-pointer -ffunction-sections -fdata-sections -nostdlib \\\"-g\\\" -mcmodel=medany -march=rv64imafdc -mabi=lp64d -isystem /private/tmp/250119/nuttx/include/cxx -isystem /private/tmp/250119/nuttx/include -D__NuttX__ -DNDEBUG "\" \""-melf64lriscv --gc-sections -nostdlib --cref -Map=/private/tmp/250119/nuttx/nuttx.map --print-memory-usage"\" /private/tmp/250119/nuttx > include/s ysinfo.h > make: *** [host_info] Error 139 > ``` > > I have modified `tools/Unix.mk`: > > ``` > # host_info target flags to get diagnostic info without building nxdiag application > > SYSINFO_PARSE_FLAGS = "$(realpath $(TOPDIR))" > SYSINFO_PARSE_FLAGS += "-finclude/sysinfo.h" > > SYSINFO_FLAGS = "-c" > SYSINFO_FLAGS += "-p" > SYSINFO_FLAGS += -f \""$(shell echo '$(CFLAGS)' | sed 's/"/\\\\\\"/g')"\" > SYSINFO_FLAGS += \""$(shell echo '$(CXXFLAGS)' | sed 's/"/\\\\\\"/g')"\" > SYSINFO_FLAGS += \""$(shell echo '$(LDFLAGS)' | sed 's/"/\\\\\\"/g')"\" > > # host_info: Parse nxdiag example output file (sysinfo.h) and print > ``` It should be related to differences between Darwin and Linux environment (e.g. nuttx/tools/host_info_dump.py:get_installed_packages.198). I did not change most of the previous nxdiag script. Maybe you could check if nxdiag example is working fine, it shoud be related to some options we openned specifically. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org