Skip to content

Unable to build picow with -DMICROPY_DEBUG_PRINTERS=1 #7080

@justbuchanan

Description

@justbuchanan

CircuitPython version

Current `main` branch as of 10/17/2022. https://github.com/adafruit/circuitpython/commit/6e350a65cf6fa625aa4f2f213ad4e733dffc85f7

Code/REPL

This works: `make BOARD=raspberry_pi_pico_w`

This doesn't: `make BOARD=raspberry_pi_pico_w CFLAGS=-DMICROPY_DEBUG_PRINTERS=1`

Behavior

Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
../../extmod/ulab/code/numpy/poly.c:15:10: fatal error: py/obj.h: No such file or directory
   15 | #include "py/obj.h"
      |          ^~~~~~~~~~
compilation terminated.
../../extmod/ulab/code/scipy/signal/signal.c:17:10: fatal error: py/runtime.h: No such file or directory
   17 | #include "py/runtime.h"
      |          ^~~~~~~~~~~~~~
../../extmod/ulab/code/scipy/scipy.c:16:10: fatal error: py/runtime.h: No such file or directory
   16 | #include "py/runtime.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
../../extmod/ulab/code/scipy/special/special.c:16:10: fatal error: py/runtime.h: No such file or directory
   16 | #include "py/runtime.h"
      |          ^~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
Command '['arm-none-eabi-gcc', '-E', '-DNO_QSTR', '-x', 'c', '-Ibuild-raspberry_pi_pico_w/tmp', '-DMICROPY_DEBUG_PRINTERS=1', '../../extmod/ulab/code/numpy/poly.c']' returned non-zero exit status 1.
../../extmod/ulab/code/scipy/optimize/optimize.c:16:10: fatal error: py/obj.h: No such file or directory
   16 | #include "py/obj.h"
      |          ^~~~~~~~~~
compilation terminated.
../../extmod/ulab/code/scipy/linalg/linalg.c:16:10: fatal error: py/obj.h: No such file or directory
   16 | #include "py/obj.h"
      |          ^~~~~~~~~~
../../extmod/ulab/code/user/user.c:15:10: fatal error: py/obj.h: No such file or directory
   15 | #include "py/obj.h"
      |          ^~~~~~~~~~
compilation terminated.

(there's more, but I truncated the output)

Description

No response

Additional information

Is this the correct way to enable debug printing? I'm interested in debugging a wifi-related issue on the picow (I'm aware this is under active development) and would like to see the output of the various DEBUG_printf() calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportissues that involve helping a user accomplish a tasktooling

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions