Skip to content

Instantly share code, notes, and snippets.

@wgaylord
Created December 19, 2020 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wgaylord/55a4eac3e7755d712f9a61115101decc to your computer and use it in GitHub Desktop.
Save wgaylord/55a4eac3e7755d712f9a61115101decc to your computer and use it in GitHub Desktop.
ccpexample usermodule error
chibill@jwg1:/data_pool/micropython/project/micropython/ports/esp32$ make USER_C_MODULES=../../examples/usercmodule/ CFLAGS_EXTRA=-DMODULE_CPPEXAMPLE_ENABLED=1 all
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Including User C Module from ../../examples/usercmodule//cexample
Including User C Module from ../../examples/usercmodule//cppexample
Building with ESP IDF v4
GEN build-GENERIC/genhdr/qstr.i.last
In file included from ../../py/mpconfig.h:62,
from ../../py/mpstate.h:31,
from ../../py/runtime.h:29,
from ../../examples/usercmodule//cppexample/examplemodule.h:2,
from ../../examples/usercmodule/cppexample/example.cpp:2:
./mpconfigport.h:5:10: fatal error: mpconfigboard.h: No such file or directory
#include "mpconfigboard.h"
^~~~~~~~~~~~~~~~~
compilation terminated.
Traceback (most recent call last):
File "../../py/makeqstrdefs.py", line 188, in <module>
preprocess()
File "../../py/makeqstrdefs.py", line 62, in preprocess
for output in p.imap(pp(flags), chunks):
File "/usr/lib/python3.8/multiprocessing/pool.py", line 868, in next
raise value
File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "../../py/makeqstrdefs.py", line 46, in run
return subprocess.check_output(args.pp + flags + files)
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['xtensa-esp32-elf-gcc', '-E', '-std=gnu++11', '-Os', '-ffunction-sections', '-fdata-sections', '-fstrict-volatile-bitfields', '-mlongcalls', '-nostdlib', '-Wall', '-Werror', '-Wno-error=unused-function', '-Wno-error=unused-but-set-variable', '-Wno-error=unused-variable', '-Wno-error=deprecated-declarations', '-DESP_PLATFORM', '-I../../lib/berkeley-db-1.xx/PORT/include', '-I.', '-I../..', '-Ibuild-GENERIC', '-I/data_pool/micropython/esp/esp-idf//components/bootloader_support/include', '-I/data_pool/micropython/esp/esp-idf//components/bootloader_support/include_bootloader', '-I/data_pool/micropython/esp/esp-idf//components/console', '-I/data_pool/micropython/esp/esp-idf//components/driver/include', '-I/data_pool/micropython/esp/esp-idf//components/driver/include/driver', '-I/data_pool/micropython/esp/esp-idf//components/efuse/include', '-I/data_pool/micropython/esp/esp-idf//components/efuse/esp32/include', '-I/data_pool/micropython/esp/esp-idf//components/esp32/include', '-I/data_pool/micropython/esp/esp-idf//components/espcoredump/include', '-I/data_pool/micropython/esp/esp-idf//components/soc/include', '-I/data_pool/micropython/esp/esp-idf//components/soc/esp32/include', '-I/data_pool/micropython/esp/esp-idf//components/heap/include', '-I/data_pool/micropython/esp/esp-idf//components/log/include', '-I/data_pool/micropython/esp/esp-idf//components/nvs_flash/include', '-I/data_pool/micropython/esp/esp-idf//components/freertos/include', '-I/data_pool/micropython/esp/esp-idf//components/esp_ringbuf/include', '-I/data_pool/micropython/esp/esp-idf//components/esp_event/include', '-I/data_pool/micropython/esp/esp-idf//components/tcpip_adapter/include', '-I/data_pool/micropython/esp/esp-idf//components/lwip/lwip/src/include', '-I/data_pool/micropython/esp/esp-idf//components/lwip/port/esp32/include', '-I/data_pool/micropython/esp/esp-idf//components/lwip/include/apps', '-I/data_pool/micropython/esp/esp-idf//components/lwip/include/apps/sntp', '-I/data_pool/micropython/esp/esp-idf//components/mbedtls/mbedtls/include', '-I/data_pool/micropython/esp/esp-idf//components/mbedtls/port/include', '-I/data_pool/micropython/esp/esp-idf//components/mdns/include', '-I/data_pool/micropython/esp/esp-idf//components/mdns/private_include', '-I/data_pool/micropython/esp/esp-idf//components/spi_flash/include', '-I/data_pool/micropython/esp/esp-idf//components/ulp/include', '-I/data_pool/micropython/esp/esp-idf//components/vfs/include', '-I/data_pool/micropython/esp/esp-idf//components/xtensa-debug-module/include', '-I/data_pool/micropython/esp/esp-idf//components/wpa_supplicant/include', '-I/data_pool/micropython/esp/esp-idf//components/wpa_supplicant/port/include', '-I/data_pool/micropython/esp/esp-idf//components/app_trace/include', '-I/data_pool/micropython/esp/esp-idf//components/app_update/include', '-I/data_pool/micropython/esp/esp-idf//components/pthread/include', '-I/data_pool/micropython/esp/esp-idf//components/smartconfig_ack/include', '-I/data_pool/micropython/esp/esp-idf//components/sdmmc/include', '-I/data_pool/micropython/esp/esp-idf//components/esp_common/include', '-I/data_pool/micropython/esp/esp-idf//components/esp_eth/include', '-I/data_pool/micropython/esp/esp-idf//components/esp_event/private_include', '-I/data_pool/micropython/esp/esp-idf//components/esp_rom/include', '-I/data_pool/micropython/esp/esp-idf//components/esp_wifi/include', '-I/data_pool/micropython/esp/esp-idf//components/esp_wifi/esp32/include', '-I/data_pool/micropython/esp/esp-idf//components/lwip/include/apps/sntp', '-I/data_pool/micropython/esp/esp-idf//components/spi_flash/private_include', '-I/data_pool/micropython/esp/esp-idf//components/wpa_supplicant/include/esp_supplicant', '-I/data_pool/micropython/esp/esp-idf//components/xtensa/include', '-I/data_pool/micropython/esp/esp-idf//components/xtensa/esp32/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/common/osi/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/common/btc/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/common/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/porting/nimble/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/port/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/services/ans/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/services/bas/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/services/gap/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/services/gatt/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/services/ias/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/services/lls/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/services/tps/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/util/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/store/ram/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/nimble/host/store/config/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/porting/npl/freertos/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/nimble/ext/tinycrypt/include', '-I/data_pool/micropython/esp/esp-idf//components/bt/host/nimble/esp-hci/include', '-I../../examples/usercmodule//cppexample', '-DNO_QSTR', '../../examples/usercmodule/cppexample/example.cpp']' returned non-zero exit status 1.
make: *** [../../py/mkrules.mk:105: build-GENERIC/genhdr/qstr.i.last] Error 1
make: *** Deleting file 'build-GENERIC/genhdr/qstr.i.last'
chibill@jwg1:/data_pool/micropython/project/micropython/ports/esp32$
CC /data_pool/micropython/esp/esp-idf//components/spi_flash/flash_ops.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment