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

libgpiod 1.6.4 Python bindings build failure #718

Open
dasch8 opened this issue Jul 18, 2023 · 0 comments
Open

libgpiod 1.6.4 Python bindings build failure #718

dasch8 opened this issue Jul 18, 2023 · 0 comments

Comments

@dasch8
Copy link

dasch8 commented Jul 18, 2023

Hi,

When building the Python bindings for libgpiod 1.6.4, the native Python headers are used instead of the one for the target. In my case I was building on an x86-64 build host for an armv7 target. The build failed with the following error during compilation:

libtool: compile:  arm-openbmc-linux-gnueabi-gcc -mfpu=vfpv3 -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../../libgpiod-1.6.4/bindings/python -I../.. -I../../../libgpiod-1.6.4/include/ -Wall -Wextra -g -std=gnu89 -I/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/recipe-sysroot-native/usr/include/python3.11 -I/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/recipe-sysroot-native/usr/include/python3.11 -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/libgpiod-1.6.4=/usr/src/debug/libgpiod/1.6.4-r0 -fdebug-prefix-map=/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/libgpiod-1.6.4=/usr/src/debug/libgpiod/1.6.4-r0 -fmacro-prefix-map=/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/build=/usr/src/debug/libgpiod/1.6.4-r0 -fdebug-prefix-map=/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/build=/usr/src/debug/libgpiod/1.6.4-r0 -fdebug-prefix-map=/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/recipe-sysroot= -fmacro-prefix-map=/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/recipe-sysroot= -fdebug-prefix-map=/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/recipe-sysroot-native= -c ../../../libgpiod-1.6.4/bindings/python/gpiodmodule.c  -fPIC -DPIC -o .libs/gpiod_la-gpiodmodule.o
In file included from /yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/recipe-sysroot-native/usr/include/python3.11/Python.h:38,
                 from ../../../libgpiod-1.6.4/bindings/python/gpiodmodule.c:8:
/yocto/buildir/tmp/work/cortexa9hf-vfpv3-openbmc-linux-gnueabi/libgpiod/1.6.4-r0/recipe-sysroot-native/usr/include/python3.11/pyport.h:601:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  601 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
      |  ^~~~~

Inheriting the python3targetconfig class instead of python3native fixes this.

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jul 21, 2023
Changelog:
===========
Added:
-----------
 add ${BATS_TEST_TAGS[@]} for querying the tags during a test (openembedded#705)
 print tags on failing tests (openembedded#705)
 test for negative arguments to --jobs (openembedded#693)
 add tests for --formatter cat (openembedded#710)
 test coverage in CI (openembedded#718)
 Support for rush as alternative to GNU parallel (openembedded#729)
 add bats_pipe helper function for run that executes \| as pipes (openembedded#663)
 publish docker images to ghcr.io (additionally to Dockerhub) (openembedded#740)

Fixed:
---------
 fix run with options overwriting the value of i (openembedded#726, openembedded#727)
 fix ${BATS_TEST_NAMES[@]} containing only --tags instead of test name since Bats v1.8.0 (openembedded#705)
 fix run --keep-empty-lines counting trailing \n as (empty) new line (openembedded#711)
 fix short flag unpacker creating bogus command lines with valued flags (openembedded#732)
 fix formatter becoming confused with retries (openembedded#734)
 fix --gather-test-outputs-in fails on tests with / (openembedded#735)
 fix overriding date breaks --timing (openembedded#736)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
jbroadus pushed a commit to jbroadus/meta-openembedded that referenced this issue Jul 25, 2023
Changelog:
==========
    Fix socket leak (openembedded#718)
    Don't call launch callback on error (openembedded#715)
    Wait for response when stopping app (openembedded#714)
    Simplify request callback handling (openembedded#712)
    Make sure handler is unregistered after quickplay (openembedded#713)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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

1 participant