Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Embedding Python Interpreter with pybind11
@ 2023-08-23  4:26 Ryan Smith
  2023-08-23 21:18 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Ryan Smith @ 2023-08-23  4:26 UTC (permalink / raw)
  To: buildroot

I am attempting to write a program that embeds the Python interpreter
in C++ code using pybind11. When I attempt to compile the package in
Buildroot, I get the following error message.

/src/output-internal/host/include/python3.11/pyport.h:601:2: error:
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
config?)."
  ^~~~~
In file included from
/src/output-internal/host/include/python3.11/Python.h:38:0,
                 from
/src/output-internal/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/pybind11/detail/common.h:266,
                 from
/src/output-internal/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/pybind11/attr.h:13,
                 from
/src/output-internal/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/pybind11/detail/class.h:12,
                 from
/src/output-internal/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/pybind11/pybind11.h:13,
                 from
/src/output-internal/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/pybind11/embed.h:12,
                 from
/src/output-internal/build/mmwave-eventd-custom/src/event_detector.h:4,
                 from
/src/output-internal/build/mmwave-eventd-custom/src/event_detector.cpp:4:

Am I missing something, or is this way of using pybind11 in Buildroot
not supported? TIA for any pointers or suggestions.

-- 
Ryan Smith
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-23 21:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-23  4:26 [Buildroot] Embedding Python Interpreter with pybind11 Ryan Smith
2023-08-23 21:18 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox