Alpaca icon indicating copy to clipboard operation
Alpaca copied to clipboard

Alpaca fails to build - module python3-lxml: child process terminated with exit code 137

Open mags0ft opened this issue 5 months ago • 2 comments

Hi there,

I am facing issues to build Alpaca on my machine (using GNOME Builder). It throws

[...]
building 'lxml.objectify' extension
  x86_64-unknown-linux-gnu-gcc -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python3.12 -I/usr/include/x86_64-linux-gnu/python3.12 -c src/lxml/objectify.c -o build/temp.linux-x86_64-cpython-312/src/lxml/objectify.o -w
Error: module python3-lxml: child process terminated with exit code 137

and fails to compile. Version 6.1.x built flawlessly, this issue only came up in version 7 and onward for me.

Thanks in advance!

mags0ft avatar Jul 07 '25 19:07 mags0ft

make sure the lxml module is in the json you are using to compile

{
            "name": "python3-lxml",
            "buildsystem": "simple",
            "build-commands": [
                "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"lxml>=5.3.0\" --ignore-installed --no-build-isolation"
            ],
            "sources": [
                {
                    "type": "file",
                    "url": "https://files.pythonhosted.org/packages/ef/f6/c15ca8e5646e937c148e147244817672cf920b56ac0bf2cc1512ae674be8/lxml-5.3.1.tar.gz",
                    "sha256": "106b7b5d2977b339f1e97efe2778e2ab20e99994cbb0ec5e55771ed0795920c8"
                }
            ]
        },

Jeffser avatar Jul 07 '25 23:07 Jeffser

It is, I've used a fresh clone of Alpaca. The build error is quite obscure, so I don't really know where to start debugging... I'd love to help out with a few issues, but without being able to build, that's close to impossible :(

mags0ft avatar Jul 08 '25 19:07 mags0ft