All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch
@ 2020-08-19 22:12 bugzilla at busybox.net
  2020-08-19 22:20 ` [Buildroot] [Bug 13166] " bugzilla at busybox.net
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2020-08-19 22:12 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13166

            Bug ID: 13166
           Summary: python-rpi-gpio: does not work against aarch64,
                    unintentional side-effect of gcc-10 patch
           Product: buildroot
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: christian at paral.in
                CC: buildroot at uclibc.org
  Target Milestone: ---

python-rpi-gpio on aarch64 (pi 4):

ImportError:
/usr/lib/python3.8/site-packages/RPi/_GPIO.cpython-38-aarch64-linux-gnu.so:
undefined symbol: high

There is a patch attached to the package - 

  fixes the "multiple definition of" errors with gcc10

  Signed-off-by: Michael Fischer <mf@go-sys.de>

It changes the "high" variable to be "extern" which might have caused this?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 13166] python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch
  2020-08-19 22:12 [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch bugzilla at busybox.net
@ 2020-08-19 22:20 ` bugzilla at busybox.net
  2020-08-19 22:31 ` bugzilla at busybox.net
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2020-08-19 22:20 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13166

--- Comment #1 from Christian Stewart <christian@paral.in> ---
According to this, originally the submitter tried to disable the warning, but
that patch was rejected by the maintainers:


http://buildroot-busybox.2317881.n4.nabble.com/PATCH-1-1-package-python-rpi-gpio-fix-build-with-gcc-10-x-td261727.html

Then they submitted another with the more deep changes, I wonder, what was so
bad about disabling the compiler warning?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 13166] python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch
  2020-08-19 22:12 [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch bugzilla at busybox.net
  2020-08-19 22:20 ` [Buildroot] [Bug 13166] " bugzilla at busybox.net
@ 2020-08-19 22:31 ` bugzilla at busybox.net
  2020-08-19 22:32 ` bugzilla at busybox.net
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2020-08-19 22:31 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13166

--- Comment #2 from Christian Stewart <christian@paral.in> ---
Created attachment 8566
  --> https://bugs.busybox.net/attachment.cgi?id=8566&action=edit
Removes a faulty patch which caused a "undefined symbol" error at runtime
against aarch64 on a Raspberry Pi.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 13166] python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch
  2020-08-19 22:12 [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch bugzilla at busybox.net
  2020-08-19 22:20 ` [Buildroot] [Bug 13166] " bugzilla at busybox.net
  2020-08-19 22:31 ` bugzilla at busybox.net
@ 2020-08-19 22:32 ` bugzilla at busybox.net
  2020-08-20 21:09 ` bugzilla at busybox.net
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2020-08-19 22:32 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13166

--- Comment #3 from Christian Stewart <christian@paral.in> ---
Here's a patch to fix it by going back to the "disable compiler warning and
paper over the problem" approach, not sure if the maintainers will like it, but
at least it fixed the problem for me in the short term.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 13166] python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch
  2020-08-19 22:12 [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2020-08-19 22:32 ` bugzilla at busybox.net
@ 2020-08-20 21:09 ` bugzilla at busybox.net
  2020-08-20 21:30 ` bugzilla at busybox.net
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2020-08-20 21:09 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13166

Yann E. MORIN <yann.morin.1998@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yann.morin.1998 at free.fr

--- Comment #4 from Yann E. MORIN <yann.morin.1998@free.fr> ---
(In reply to Christian Stewart from comment #1)
> I wonder, what was so bad about disabling the compiler warning?

Because duplicate symbols are a source for bugs. If we just add the -fcommon
option, this indeed hides the warning away, but the problematic code will not
get fixed, and we will have to carry that option ad libitum.

Instead, we want patches that fixes those warnings, so those patches are sent
to the corresponding upstreams, so the packages get fixed, and so we can drop
those patches in a future version bump.

So, I've had a look a deeper look at the patch now, and indeed it is not
complete... I'll follow up with a revised fix. Stay tuned to the ML.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 13166] python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch
  2020-08-19 22:12 [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2020-08-20 21:09 ` bugzilla at busybox.net
@ 2020-08-20 21:30 ` bugzilla at busybox.net
  2020-08-20 22:24 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2020-08-20 21:30 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13166

--- Comment #5 from Christian Stewart <christian@paral.in> ---
Thanks Yann. The patch I attached to this bug actually doesn't work anyway, the
module still fails at runtime:

  File "usr/lib/python3.8/site-packages/RPi/GPIO/__init__.py", line 23, in
<module>
SystemError: Type does not define the tp_name field.

Feel free to send me any patch for testing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 13166] python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch
  2020-08-19 22:12 [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch bugzilla at busybox.net
                   ` (4 preceding siblings ...)
  2020-08-20 21:30 ` bugzilla at busybox.net
@ 2020-08-20 22:24 ` bugzilla at busybox.net
  2020-08-20 22:25 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2020-08-20 22:24 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13166

Yann E. MORIN <yann.morin.1998@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #8566|0                           |1
        is obsolete|                            |

--- Comment #6 from Yann E. MORIN <yann.morin.1998@free.fr> ---
Created attachment 8571
  --> https://bugs.busybox.net/attachment.cgi?id=8571&action=edit
Fix patch, add runtime test

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 13166] python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch
  2020-08-19 22:12 [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch bugzilla at busybox.net
                   ` (5 preceding siblings ...)
  2020-08-20 22:24 ` bugzilla at busybox.net
@ 2020-08-20 22:25 ` bugzilla at busybox.net
  2020-08-20 23:33 ` bugzilla at busybox.net
  2020-08-23 21:31 ` bugzilla at busybox.net
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2020-08-20 22:25 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13166

--- Comment #7 from Yann E. MORIN <yann.morin.1998@free.fr> ---
Christian, care to test the attached patch, please?

The runtime test demonstrates that it is possible to import the
module, but I have no way to test it on real hardware for now...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 13166] python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch
  2020-08-19 22:12 [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch bugzilla at busybox.net
                   ` (6 preceding siblings ...)
  2020-08-20 22:25 ` bugzilla at busybox.net
@ 2020-08-20 23:33 ` bugzilla at busybox.net
  2020-08-23 21:31 ` bugzilla at busybox.net
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2020-08-20 23:33 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13166

--- Comment #8 from Christian Stewart <christian@paral.in> ---
Hi Yann, looks to be working perfectly now. Thanks!

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 13166] python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch
  2020-08-19 22:12 [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch bugzilla at busybox.net
                   ` (7 preceding siblings ...)
  2020-08-20 23:33 ` bugzilla at busybox.net
@ 2020-08-23 21:31 ` bugzilla at busybox.net
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla at busybox.net @ 2020-08-23 21:31 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=13166

Yann E. MORIN <yann.morin.1998@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Yann E. MORIN <yann.morin.1998@free.fr> ---
Christian, All,

Fixed with commit ae6bd1eb44. Thanks for the report.

Regards,
Yann E. MORIN.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

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

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19 22:12 [Buildroot] [Bug 13166] New: python-rpi-gpio: does not work against aarch64, unintentional side-effect of gcc-10 patch bugzilla at busybox.net
2020-08-19 22:20 ` [Buildroot] [Bug 13166] " bugzilla at busybox.net
2020-08-19 22:31 ` bugzilla at busybox.net
2020-08-19 22:32 ` bugzilla at busybox.net
2020-08-20 21:09 ` bugzilla at busybox.net
2020-08-20 21:30 ` bugzilla at busybox.net
2020-08-20 22:24 ` bugzilla at busybox.net
2020-08-20 22:25 ` bugzilla at busybox.net
2020-08-20 23:33 ` bugzilla at busybox.net
2020-08-23 21:31 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.