Skip to content
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

Unable to compile gpsd after Dunfell update #228

Closed
michaelbaisch opened this issue May 11, 2020 · 5 comments
Closed

Unable to compile gpsd after Dunfell update #228

michaelbaisch opened this issue May 11, 2020 · 5 comments

Comments

@michaelbaisch
Copy link

Hi all,

with the dunfell update I'm getting a compile error with gpsd.

…
| arm-poky-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/workdir/poky/build-rpi/rpi3-32/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot -o monitor_ubx.o -c -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/workdir/poky/build-rpi/rpi3-32/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gpsd/3.19-r0=/usr/src/debug/gpsd/3.19-r0 -fdebug-prefix-map=/workdir/poky/build-rpi/rpi3-32/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gpsd/3.19-r0=/usr/src/debug/gpsd/3.19-r0 -fdebug-prefix-map=/workdir/poky/build-rpi/rpi3-32/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot= -fdebug-prefix-map=/workdir/poky/build-rpi/rpi3-32/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot-native= --sysroot=/workdir/poky/build-rpi/rpi3-32/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot -pthread -Wall -Wcast-align -Wextra -Wimplicit-fallthrough -Wmissing-declarations -Wmissing-prototypes -Wno-missing-field-initializers -Wno-uninitialized -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wvla -O2 -pthread -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/workdir/poky/build-rpi/rpi3-32/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot/usr/include/dbus-1.0 -I/workdir/poky/build-rpi/rpi3-32/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot/usr/lib/dbus-1.0/include -I/workdir/poky/build-rpi/rpi3-32/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot/usr/include/libusb-1.0 monitor_ubx.c
| x86_64-linux-gnu-gcc -pthread -o crc24q-py_3_8_2_final_0.so -c -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -I/workdir/poky/build-rpi/rpi3-32/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/gpsd/3.19-r0/recipe-sysroot/usr/include/usr/include/python2.7 crc24q.c
| sh: x86_64-linux-gnu-gcc: command not found
| scons: *** [crc24q-py_3_8_2_final_0.so] Error 127
| scons: building terminated because of errors.

For all sources before, the right compiler arm-poky-linux-gnueabi-gcc was used, but with crc24q.c it suddenly changed to x86_64-linux-gnu-gcc, which is on my host system not in yocto. Also there is this weird path recipe-sysroot/usr/include/usr/include/python2.7 which makes no sense and also trys something with python2 which was thrown out, as far as I understand.

Any ideas anyone?

Greetings, Michael

@meinemitternacht
Copy link
Contributor

It looks like this was covered on the mailing list today:

https://lists.openembedded.org/g/openembedded-devel/topic/74225704#84379

@michaelbaisch
Copy link
Author

@meinemitternacht gpsd is in the Dunfell branch still at version 3.19, not sure if this connected.

As a temporary workaround I disabled the building of python stuff in an bbappend:

EXTRA_OESCONS_append += "python='false'"

@kraj
Copy link
Contributor

kraj commented Jun 16, 2020

Can you send this patch to oe-devel ml ?

@hjourdain
Copy link
Contributor

hjourdain commented Oct 22, 2020

I know this issue is "old", but I had it with Dunfell.
It seems to be due to using python3-dir and python3native, instead of pyton-dir and pythonnative.

If I replace:
"inherit scons update-rc.d python3-dir python3native systemd update-alternatives"
by:
"inherit scons update-rc.d python-dir pythonnative systemd update-alternatives"

Then I can cross-build gpsd in Dunfell (I'm cross-building to ARM).

I didn't fully check the root cause in python3-dir and python3native yet, though. I may or may not do that later.
And I didn't check with the latest 3.20 version, only with Dunfell, therefore 3.19.

@kraj
Copy link
Contributor

kraj commented Oct 22, 2020

waf calls for python without differentiating python2 or python3 and a fix to address this for waf was committed to master lately. I wonder if that will help.

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jul 5, 2021
0.18.0, 2021-06-28
 * Fix openembedded#209 Update freeze recurse into pyrsistent data structures and thaw to recurse into lists and dicts,
   Thanks @phil-arh for this!
   NB! This is a backwards incompatible change! To keep the old behaviour pass `strict=False` to freeze and thaw.
 * Fix openembedded#226, stop using deprecated exception.message. Thanks @hexagonrecursion for this!
 * Fix openembedded#211, add union operator to persistent maps. Thanks @bowbahdoe for this!
 * Fix openembedded#194, declare build dependencies through pyproject.toml. Thanks @jaraco for this!
 * Officially drop Python 3.5 support.
 * Fix openembedded#223, release wheels for all major platforms. Thanks @johnthagen for helping out with this!
 * Fix openembedded#221, KeyError obscured by TypeError if key is a tuple. Thanks @ganwell for this!
 * Fix LICENSE file name spelling. Thanks @ndowens and @barentsen for this!
 * Fix openembedded#216, add abstractmethod decorator for CheckedType and ABCMeta for _CheckedTypeMeta. Thanks @ss18 for this!
 * Fix openembedded#228, rename example classes in tests to avoid name clashes with pytest.

-License-Update: Copyright year updated to 2021.

Signed-off-by: Zang Ruochen <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
halstead pushed a commit that referenced this issue Jul 6, 2021
0.18.0, 2021-06-28
 * Fix #209 Update freeze recurse into pyrsistent data structures and thaw to recurse into lists and dicts,
   Thanks @phil-arh for this!
   NB! This is a backwards incompatible change! To keep the old behaviour pass `strict=False` to freeze and thaw.
 * Fix #226, stop using deprecated exception.message. Thanks @hexagonrecursion for this!
 * Fix #211, add union operator to persistent maps. Thanks @bowbahdoe for this!
 * Fix #194, declare build dependencies through pyproject.toml. Thanks @jaraco for this!
 * Officially drop Python 3.5 support.
 * Fix #223, release wheels for all major platforms. Thanks @johnthagen for helping out with this!
 * Fix #221, KeyError obscured by TypeError if key is a tuple. Thanks @ganwell for this!
 * Fix LICENSE file name spelling. Thanks @ndowens and @barentsen for this!
 * Fix #216, add abstractmethod decorator for CheckedType and ABCMeta for _CheckedTypeMeta. Thanks @ss18 for this!
 * Fix #228, rename example classes in tests to avoid name clashes with pytest.

-License-Update: Copyright year updated to 2021.

Signed-off-by: Zang Ruochen <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Trevor Gamblin <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Sep 22, 2023
Changelog
=========
Added:
Add hash capabilities to OUI (openembedded#225, amitmi704)

Fixed:
Backwards incompatible: Handle RFC 6164 IPv6 addresses (don't reserve first IP
address in point-to-point subnets) ($267, Damien Claisse)
Technically backwards incompatible: Fix for is_loopback behaviour – consider
IPNetwork('::1/128') to be loopback (openembedded#222, openembedded#223, niels)
Include tutorials in source distributions (openembedded#215, Louis Sautier)
Fix a documentation typo (openembedded#242, Wouter)
Fix print syntax in the documentation to be Python 3 compatible (openembedded#221, François Magimel)
Fix the Sphinx syntax in the documentation (openembedded#220, François Magimel)

Other:
Update the databases (openembedded#266, Jakub Stasiak)
Deprecate Python 3.6 (openembedded#263, Jakub Stasiak)
Eliminate unnecessary evals (openembedded#228, KOLANICH)

Signed-off-by: Derek Straka <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Oct 23, 2023
Changelog:
===========
Feature
--------
Update for final cpython release (openembedded#263) (460a072)
Speed up unpacking arrays (openembedded#257) (5c8bfe5)
Speed up constructing Variant objects (openembedded#256) (0d7a665)
Speed up unmarshalling message body (openembedded#255) (5aed075)
Speed up unmarshalling Variants (openembedded#254) (dd74a84)
Speed up readers in the unmarshall path (openembedded#253) (f9b61b8)
Speed up first connection when using asyncio (openembedded#251) (0b6ba93)
Speed up unmarshaller (openembedded#250) (e4cae13)
Add cython typing for ServiceInterface.name (openembedded#248) (98c7e75)
Speed up connect and disconnect (openembedded#247) (8f39ba3)
Speed up unmarshalling by skipping unused unix_fds header (openembedded#246) (5f5a150)
Reduce overhead to reset between messages (openembedded#245) (da30b04)
Don't import backends by default (openembedded#243) (091d421)
Breaking
don't import backends by default (openembedded#243) (091d421)
Small speed up to the unmarshaller (openembedded#238) (b8d0e9b)
Build cpython 3.12 wheels (openembedded#234) (b38aa58)
Improve performance of processing incoming messages (openembedded#228) (ce61aea)
Reduce overhead to dispatch method handlers (openembedded#227) (b222552)
Speed up to processing bluez passive data (openembedded#221) (8e7432d)
Remove async_timeout dependency (openembedded#218) (7826897)
Speed up Message creation and callbacks (openembedded#217) (04d6451)
Optimize passive bluez message unmarshaller (openembedded#216) (e0e87ec)
Initial cpython 3.12 support (openembedded#207) (c755193)
Improve performance of reading from the socket during unmarshall (openembedded#200) (e5d355f)

Fix
-------------
Handling of None messages from notify callback (openembedded#236) (14f52f2)
Clean up address parsing and tests (openembedded#244) (370791d)
Handle multiple flag bits when unmarshalling (openembedded#241) (6f6f5f8)
Rebuild wheels with cython 3.0.2 (openembedded#235) (e8901a8)
Avoid cythonizing SendReply (openembedded#232) (d12266d)
Subpath bad matching (openembedded#202) (5d6f90b)
Messages could be sent out of order if they had to queue (openembedded#225) (4051cf2)
Avoid checking if a message expects a reply twice (openembedded#223) (823e85f)
Revert changes to _expects_reply from speed up to processing bluez passive data (openembedded#222) (dfa9053)
Spelling of dbus_fast.auth.AuthAnnonymous to dbus_fast.auth.AuthAnonymous (openembedded#220) (6c2412f)
More cython3 optional fixes (openembedded#219) (5b6cbc5)
Exception handler failure when exception is not DBusError (openembedded#215) (d771bcf)
Result typing in ServiceInterface._handle_signal (openembedded#214) (5bda04b)
Avoid double buffering when using asyncio reader without negotiate_unix_fd (openembedded#213) (c933be7)
Relax typing on _fn_result_to_body to allow Any (openembedded#212) (2f5fc38)
Typing on _fn_result_to_body was incorrect which was caused an exception with cython3 (openembedded#210) (c40c7bc)
Cython3 compat (openembedded#208) (43b3d48)
Reduce size of wheels by excluding generated .c files (openembedded#262) (dca4599)
Marshall multi-byte strings correctly (openembedded#261) (4de31a3)

Signed-off-by: Wang Mingyu <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
halstead pushed a commit that referenced this issue Nov 3, 2023
Changelog:
===========
Feature
--------
Update for final cpython release (#263) (460a072)
Speed up unpacking arrays (#257) (5c8bfe5)
Speed up constructing Variant objects (#256) (0d7a665)
Speed up unmarshalling message body (#255) (5aed075)
Speed up unmarshalling Variants (#254) (dd74a84)
Speed up readers in the unmarshall path (#253) (f9b61b8)
Speed up first connection when using asyncio (#251) (0b6ba93)
Speed up unmarshaller (#250) (e4cae13)
Add cython typing for ServiceInterface.name (#248) (98c7e75)
Speed up connect and disconnect (#247) (8f39ba3)
Speed up unmarshalling by skipping unused unix_fds header (#246) (5f5a150)
Reduce overhead to reset between messages (#245) (da30b04)
Don't import backends by default (#243) (091d421)
Breaking
don't import backends by default (#243) (091d421)
Small speed up to the unmarshaller (#238) (b8d0e9b)
Build cpython 3.12 wheels (#234) (b38aa58)
Improve performance of processing incoming messages (#228) (ce61aea)
Reduce overhead to dispatch method handlers (#227) (b222552)
Speed up to processing bluez passive data (#221) (8e7432d)
Remove async_timeout dependency (#218) (7826897)
Speed up Message creation and callbacks (#217) (04d6451)
Optimize passive bluez message unmarshaller (#216) (e0e87ec)
Initial cpython 3.12 support (#207) (c755193)
Improve performance of reading from the socket during unmarshall (#200) (e5d355f)

Fix
-------------
Handling of None messages from notify callback (#236) (14f52f2)
Clean up address parsing and tests (#244) (370791d)
Handle multiple flag bits when unmarshalling (#241) (6f6f5f8)
Rebuild wheels with cython 3.0.2 (#235) (e8901a8)
Avoid cythonizing SendReply (#232) (d12266d)
Subpath bad matching (#202) (5d6f90b)
Messages could be sent out of order if they had to queue (#225) (4051cf2)
Avoid checking if a message expects a reply twice (#223) (823e85f)
Revert changes to _expects_reply from speed up to processing bluez passive data (#222) (dfa9053)
Spelling of dbus_fast.auth.AuthAnnonymous to dbus_fast.auth.AuthAnonymous (#220) (6c2412f)
More cython3 optional fixes (#219) (5b6cbc5)
Exception handler failure when exception is not DBusError (#215) (d771bcf)
Result typing in ServiceInterface._handle_signal (#214) (5bda04b)
Avoid double buffering when using asyncio reader without negotiate_unix_fd (#213) (c933be7)
Relax typing on _fn_result_to_body to allow Any (#212) (2f5fc38)
Typing on _fn_result_to_body was incorrect which was caused an exception with cython3 (#210) (c40c7bc)
Cython3 compat (#208) (43b3d48)
Reduce size of wheels by excluding generated .c files (#262) (dca4599)
Marshall multi-byte strings correctly (#261) (4de31a3)

Signed-off-by: Wang Mingyu <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
(cherry picked from commit f10cf13)
Signed-off-by: Armin Kuster <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants