-
Notifications
You must be signed in to change notification settings - Fork 121
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
undefined reference to `_impure_ptr' when building Zephyr C++ samples on non-Linux hosts #760
Labels
area: GCC
Issues related to GCC (GNU Compiler Collection)
area: libstdc++
Issues related to libstdc++ (GNU C++ Library)
Comments
stephanosio
added
area: GCC
Issues related to GCC (GNU Compiler Collection)
area: libstdc++
Issues related to libstdc++ (GNU C++ Library)
labels
May 21, 2024
stephanosio
added a commit
that referenced
this issue
May 21, 2024
This commit updates the CI workflow such that Zephyr C++ samples and tests are only built on Linux hosts because there is a known issue causing the following link error using non-Linux toolchains: undefined reference to `_impure_ptr' Revert this when the GitHub issue #760 is fixed. Signed-off-by: Stephanos Ioannidis <[email protected]>
stephanosio
added a commit
to stephanosio/zephyr-sdk-ng
that referenced
this issue
May 23, 2024
This commit updates the CI workflow such that Zephyr C++ samples and tests are only built on Linux hosts because there is a known issue causing the following link error using non-Linux toolchains: undefined reference to `_impure_ptr' Revert this when the GitHub issue zephyrproject-rtos#760 is fixed. Signed-off-by: Stephanos Ioannidis <[email protected]>
stephanosio
added a commit
that referenced
this issue
May 23, 2024
This commit updates the CI workflow such that Zephyr C++ samples and tests are only built on Linux hosts because there is a known issue causing the following link error using non-Linux toolchains: undefined reference to `_impure_ptr' Revert this when the GitHub issue #760 is fixed. Signed-off-by: Stephanos Ioannidis <[email protected]>
Does that mean that it is currently not possible to compile C++ Code on Windows? |
It "should" work as the toolchains are supposed to be the same. But you're pretty clearly picking up some newlib bits somehow? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: GCC
Issues related to GCC (GNU Compiler Collection)
area: libstdc++
Issues related to libstdc++ (GNU C++ Library)
Zephyr C++ samples and tests fail to link with "undefined reference to `_impure_ptr'" on macOS and Windows hosts using the respective host toolchains.
For example, building
samples/cpp/hello_world
forqemu_arc_hs
on a Windows host results in the following failure:Building the same sample for the same target on a Linux host using the Linux host toolchain does not result in the above failure; suggesting the libstdc++ (or maybe picolibc?) build is somehow done differently for non-Linux host toolchain builds.
The text was updated successfully, but these errors were encountered: