On Tue, Aug 1, 2023 at 10:43 PM Krupal Ka Patel -X (krkapate - E-INFO CHIPS INC at Cisco) via lists.openembedded.org <[email protected]> wrote: > > Hi Richard, > > The python3-bcrypt fails for PowerPC with the below error: > > ERROR: python3-bcrypt-4.0.1-r0 do_compile_ptest_cargo: Unable to compile test > with cargo, > '/nobackup/krkapate/poky/poky/build/tmp/work/ppc7400-poky-linux/python3-bcrypt/4.0.1-r0/recipe-sysroot-native/usr/bin/cargo > build --tests --message-format json -v --offline --target > powerpc-poky-linux-gnu --release > --manifest-path=/nobackup/krkapate/poky/poky/build/tmp/work/ppc7400-poky-linux/python3-bcrypt/4.0.1-r0/bcrypt-4.0.1/src/_bcrypt/Cargo.toml' > failed > ERROR: Logfile of failure stored in: > /nobackup/krkapate/poky/poky/build/tmp/work/ppc7400-poky-linux/python3-bcrypt/4.0.1-r0/temp/log.do_compile_ptest_cargo.2752082 > ERROR: Task > (/nobackup/krkapate/poky/poky/meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb:do_compile_ptest_cargo) > failed with exit code '1' > NOTE: Tasks Summary: Attempted 2173 tasks of which 4 didn't need to be rerun > and 1 failed. > > Further, in the log.do_compile_ptest_cargo log file, below are the error > messages: > > undefined reference to `PyBytes_AsString'\n > /nobackup/krkapate/poky/poky/build/tmp/work/ppc7400-poky-linux/python3-bcrypt/4.0.1-r0/recipe-sysroot-native/usr/bin/powerpc-poky-linux/../../libexec/powerpc-poky-linux/gcc/powerpc-poky-linux/13.2.0/ld.bfd: > > bcrypt_rust.1fd22faf-cgu.6:(.text._ZN3std9panicking3try17h86d4eb792b27c0beE+0x180): > undefined reference to `PyBytes_Size'\n > /nobackup/krkapate/poky/poky/build/tmp/work/ppc7400-poky-linux/python3-bcrypt/4.0.1-r0/recipe-sysroot-native/usr/bin/powerpc-poky-linux/../../libexec/powerpc-poky-linux/gcc/powerpc-poky-linux/13.2.0/ld.bfd: > > bcrypt_rust.1fd22faf-cgu.6:(.text._ZN3std9panicking3try17h86d4eb792b27c0beE+0x258): > undefined reference to `PyBytes_AsString'\n > /nobackup/krkapate/poky/poky/build/tmp/work/ppc7400-poky-linux/python3-bcrypt/4.0.1-r0/recipe-sysroot-native/usr/bin/powerpc-poky-linux/../../libexec/ > > > As a workaround I can remove the below lines from the > "bcrypt-4.0.1/src/_bcrypt/Cargo.toml" file, after that, I was able to build > it successfully. > > - [features] > - extension-module = ["pyo3/extension-module"] > - default = ["extension-module"] > > Can anyone explain what is the proper way to fix this issue? > > Appreciating any responses/insights (for this issue). > PyBytes_AsString is python2 stable API and python3 strings are utf so PyUnicode_AsUTF8 would be something available in python3. Can you post full log file somewhere ? secondly, also post the build configuration that bitbake prints at top. Thirdly does it happen just on ppc32 or also some other architecture like arm or mips or x86
> Thanks & Regards, > Krupal > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#185377): https://lists.openembedded.org/g/openembedded-core/message/185377 Mute This Topic: https://lists.openembedded.org/mt/100499985/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
