Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <Configuring for Raspberry Pi Pico W failing due to missing 'olddefconfig'> #15807

Open
1 task done
Justin-Morrison-github opened this issue Feb 10, 2025 · 2 comments
Open
1 task done
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Build system OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working

Comments

@Justin-Morrison-github
Copy link

Description / Steps to reproduce the issue

Hi, I am a Carleton InSpace Rocket Team member and have issues configuring NuttX for my Raspberry Pi Pico W. Carleton's master branch should be up to date with NuttX master.

I am able to run make distclean with no issue, but when I try to configure usbnsh for NuttX but get the error logs below. I am a new user of NuttX so any advice would be appreciated.

$ ./tools/configure.sh -l raspberrypi-pico-w:usbnsh
Copy files
Select CONFIG_HOST_LINUX=y
Refreshing...
CP: arch/dummy/Kconfig to /home/morri/InSpace/InSpace-Nuttx/nuttx/arch/dummy/dummy_kconfig
CP: boards/dummy/Kconfig to /home/morri/InSpace/InSpace-Nuttx/nuttx/boards/dummy/dummy_kconfig
LN: platform/board to /home/morri/InSpace/InSpace-Nuttx/apps/platform/dummy
LN: include/arch to arch/arm/include
LN: include/arch/board to /home/morri/InSpace/InSpace-Nuttx/nuttx/boards/arm/rp2040/raspberrypi-pico-w/include
LN: drivers/platform to /home/morri/InSpace/InSpace-Nuttx/nuttx/drivers/dummy
LN: include/arch/chip to /home/morri/InSpace/InSpace-Nuttx/nuttx/arch/arm/include/rp2040
LN: arch/arm/src/chip to /home/morri/InSpace/InSpace-Nuttx/nuttx/arch/arm/src/rp2040
LN: arch/arm/src/board to /home/morri/InSpace/InSpace-Nuttx/nuttx/boards/arm/rp2040/raspberrypi-pico-w/../common
LN: arch/arm/src/board/board to /home/morri/InSpace/InSpace-Nuttx/nuttx/boards/arm/rp2040/raspberrypi-pico-w/src
/usr/bin/bash: line 1: olddefconfig: command not found
make: *** [tools/Unix.mk:726: olddefconfig] Error 1
ERROR: failed to refresh

and when I run make menuconfig I get these error logs:

$ make menuconfig
CP: arch/dummy/Kconfig to /home/morri/InSpace/InSpace-Nuttx/nuttx/arch/dummy/dummy_kconfig
CP: boards/dummy/Kconfig to /home/morri/InSpace/InSpace-Nuttx/nuttx/boards/dummy/dummy_kconfig
LN: platform/board to /home/morri/InSpace/InSpace-Nuttx/apps/platform/dummy
LN: include/arch to arch/arm/include
LN: include/arch/board to /home/morri/InSpace/InSpace-Nuttx/nuttx/boards/arm/rp2040/raspberrypi-pico-w/include
LN: drivers/platform to /home/morri/InSpace/InSpace-Nuttx/nuttx/drivers/dummy
LN: include/arch/chip to /home/morri/InSpace/InSpace-Nuttx/nuttx/arch/arm/include/rp2040
LN: arch/arm/src/chip to /home/morri/InSpace/InSpace-Nuttx/nuttx/arch/arm/src/rp2040
LN: arch/arm/src/board to /home/morri/InSpace/InSpace-Nuttx/nuttx/boards/arm/rp2040/raspberrypi-pico-w/../common
LN: arch/arm/src/board/board to /home/morri/InSpace/InSpace-Nuttx/nuttx/boards/arm/rp2040/raspberrypi-pico-w/src
/home/morri/.local/bin/menuconfig: /home/morri/InSpace/InSpace-Nuttx/apps/examples/Kconfig:67: '/home/morri/InSpace/InSpace-Nuttx/apps/examples/hello_rust/Kconfig' not found (in 'source "/home/morri/InSpace/InSpace-Nuttx/apps/examples/hello_rust/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is unset or blank). Also note that unset environment variables expand to the empty string.
make: *** [tools/Unix.mk:731: menuconfig] Error 1

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

NuttX Version

master (abcbb1e)

Issue Architecture

[Arch: arm]

Issue Area

[Area: Build System]

Host information

No response

Verification

  • I have verified before submitting the report.
@Justin-Morrison-github Justin-Morrison-github added the Type: Bug Something isn't working label Feb 10, 2025
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Area: Build system OS: Linux Issues related to Linux (building system, etc) labels Feb 10, 2025
@simbit18
Copy link
Contributor

simbit18 commented Feb 11, 2025

hi @Justin-Morrison-github it seems related to wrong path

apps/examples/hello_rust/Kconfig' not found (in 'source "/home/morri/InSpace/InSpace-Nuttx/apps/examples/hello_rust/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is unset or blank). Also note that unset environment variables expand to the empty string.
make: *** [tools/Unix.mk:731: menuconfig] Error 1

After this PR apache/nuttx-apps#2944 the path has changed

Have you tried updating the NuttX apps repository ?

@fdcavalcanti
Copy link
Contributor

Run git clean -xfdn on your apps folder after you make distclean on nuttx.
See if there are pending files there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Build system OS: Linux Issues related to Linux (building system, etc) Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants