Skip to content

usercmodule example fails to link #5910

Open
@assumptionsoup

Description

@assumptionsoup

CircuitPython version

main branch

Code/REPL

>>> make BOARD=itsybitsy_nrf52840_express USER_C_MODULES=../../examples/usercmodule

Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
Including User C Module from ../../examples/usercmodule/cexample
Including User C Module from ../../examples/usercmodule/cppexample
mkdir -p build-itsybitsy_nrf52840_express/genhdr
GEN build-itsybitsy_nrf52840_express/genhdr/moduledefs.h
QSTR updated
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: firmware.elf.lto.o:(.rodata.cppfunc_obj+0x4): undefined reference to `cppfunc'
collect2: error: ld returned 1 exit status
make: *** [Makefile:251: build-itsybitsy_nrf52840_express/firmware.elf] Error 1

Here's the verbose output

Behavior

Circuitpython fails to link when the USER_C_MODULES flag is set to the example module path ../../examples/usercmodule

Description

No response

Additional information

I'm building on WSL v2 with the default ubuntu distro.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions