Re: Build failure for pydevd on alpha: gp-relative relocation against dynamic symbol

2023-10-28 Thread Julian Gilbey
On Sat, Oct 28, 2023 at 03:34:47PM +0300, Adrian Bunk wrote:
> On Fri, Oct 20, 2023 at 07:03:41AM +0100, Julian Gilbey wrote:
> > Hi!
> > 
> > I'm completely out of my depth on this one, and I wonder whether
> > anyone might be able to help.
> > [...]
> > /usr/bin/ld: /tmp/ccR4bmTq.ltrans5.ltrans.o: gp-relative relocation against 
> > dynamic symbol __pyx_module_is_main__pydevd_bundle__pydevd_cython
> > [...]
> 
> That's related to #1040062, the best fix that does not involve touching dpkg 
> is:

Thanks Adrian!  I'll apply this patch.

Best wishes,

   Julian



Build failure for pydevd on alpha: gp-relative relocation against dynamic symbol

2023-10-19 Thread Julian Gilbey
Hi!

I'm completely out of my depth on this one, and I wonder whether
anyone might be able to help.

I have just updated pydevd from 2.9.6+ds-1, uploaded 2023-06-23, to
version 2.10.0+ds-1.  But the build of the cython extension now fails
on alpha: near the end of the build log

https://buildd.debian.org/status/fetch.php?pkg=pydevd&arch=alpha&ver=2.10.0%2Bds-1&stamp=1697725269&raw=0

is the failed build:

I: pybuild pybuild:340: cd 
/<>/.pybuild/cpython3_3.11_pydevd/build; python3.11 
setup_pydevd_cython.py build_ext --inplace --force-cython
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: 
Cython directive 'language_level' not set, using 2 for now (Py2). This will 
change in a later release! File: 
/<>/.pybuild/cpython3_3.11_pydevd/build/_pydevd_bundle/pydevd_cython.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
Compiling _pydevd_bundle/pydevd_cython.pyx because it changed.
[1/1] Cythonizing _pydevd_bundle/pydevd_cython.pyx
running build_ext
building '_pydevd_bundle.pydevd_cython' extension
creating build
creating build/temp.linux-alpha-cpython-311
creating build/temp.linux-alpha-cpython-311/_pydevd_bundle
alpha-linux-gnu-gcc -Wsign-compare -mieee -DNDEBUG -g -fwrapv -O2 -Wall -g 
-Wformat -Werror=format-security -g -O2 -ffile-prefix-map=/<>=. 
-specs=/usr/share/dpkg/pie-compile.specs -Wformat -Werror=format-security 
-Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_BUILD_CORE_MODULE=1 
-I/usr/include/python3.11 -c _pydevd_bundle/pydevd_cython.c -o 
build/temp.linux-alpha-cpython-311/_pydevd_bundle/pydevd_cython.o -flto
creating build/lib.linux-alpha-cpython-311
creating build/lib.linux-alpha-cpython-311/_pydevd_bundle
alpha-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
-specs=/usr/share/dpkg/pie-link.specs -Wl,-z,relro -Wl,-z,now -g -O2 
-ffile-prefix-map=/<>=. -specs=/usr/share/dpkg/pie-compile.specs 
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 
build/temp.linux-alpha-cpython-311/_pydevd_bundle/pydevd_cython.o 
-L/usr/lib/alpha-linux-gnu -o 
build/lib.linux-alpha-cpython-311/_pydevd_bundle/pydevd_cython.cpython-311-alpha-linux-gnu.so
 -flto
lto-wrapper: warning: using serial compilation of 7 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information
/usr/bin/ld: /tmp/ccR4bmTq.ltrans5.ltrans.o: gp-relative relocation against 
dynamic symbol __pyx_module_is_main__pydevd_bundle__pydevd_cython
/usr/bin/ld: /tmp/ccR4bmTq.ltrans5.ltrans.o: gp-relative relocation against 
dynamic symbol __pyx_module_is_main__pydevd_bundle__pydevd_cython
/usr/bin/ld: /tmp/ccR4bmTq.ltrans5.ltrans.o: gp-relative relocation against 
dynamic symbol 
__pyx_wrapperbase_14_pydevd_bundle_13pydevd_cython_12ThreadTracer_2__call__
/usr/bin/ld: /tmp/ccR4bmTq.ltrans5.ltrans.o: gp-relative relocation against 
dynamic symbol 
__pyx_wrapperbase_14_pydevd_bundle_13pydevd_cython_12ThreadTracer_2__call__
/usr/bin/ld: /tmp/ccR4bmTq.ltrans5.ltrans.o: gp-relative relocation against 
dynamic symbol 
__pyx_wrapperbase_14_pydevd_bundle_13pydevd_cython_12ThreadTracer_2__call__
collect2: error: ld returned 1 exit status
error: command '/usr/bin/alpha-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:395: build: plugin distutils failed with: exit code=1: cd 
/<>/.pybuild/cpython3_3.11_pydevd/build; python3.11 
setup_pydevd_cython.py build_ext --inplace --force-cython


I have no idea what caused these errors.  The cython code
(pydevd_cython.pyx) has not changed between these two upstream
versions, and I regenerate the pydevd_cython.c file at this point
(using the --force-cython flag) - as cython3 has not changed, the
resulting C file should not have changed either.  So I can only
presume that it is something to do with a change in the C
compiler/linker toolchain.

Any suggestions would be welcome!  In the meantime, I can just disable
the cython extension on alpha.

Best wishes,

   Julian



firefox build failed on alpha - why?

2006-02-15 Thread Julian Gilbey
I wanted to know why firefox has not yet made it to testing, and
discovered that the build failed on alpha: looking at the buildd logs
(go to http://buildd.debian.org/ and search for firefox :) I
discovered that the build proceded quite a long way but then died near
what I take to be the end:

c++ -o firefox-bin  -fno-rtti -fno-exceptions -Wall -Wconversion 
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth 
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -mieee 
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -pipe -w -O2  nsBrowserApp.o 
nsStaticComponents.o  -L../../dist/bin -L../../dist/lib 
-L../../dist/lib/components  ../../dist/lib/libxulapp_s.a -L../../dist/bin 
-lmozjs -L../../dist/bin -lxpcom -lxpcom_core  -L../../dist/lib -lplds4 -lplc4 
-lnspr4 -lpthread -ldl -L/usr/X11R6/lib   -lgtk-x11-2.0 -lgdk-x11-2.0 -lXrandr 
-lXi -lXinerama -lXext -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 
-lfontconfig -lXcursor -lpango-1.0 -lcairo -lXrender -lX11 -lgobject-2.0 
-lgmodule-2.0 -ldl -lglib-2.0   -lpangocairo-1.0 -lpango-1.0 -lcairo 
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpangoxft-1.0 -lpangoft2-1.0 
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0-L/usr/X11R6/lib 
-lX11  -ldl -lm  ../../dist/lib/components/libxpcom_compat_c.a 
../../dist/lib/components/libxpconnect.a ../../dist/lib/components/libuconv.a 
../../dist/lib/components/libucvmath.a ../../dist/lib/components/libi18n.a 
../../dist/lib/components/libnecko.a ../../dist/lib/components/libnecko2.a 
../../dist/lib/components/libjar50.a ../../dist/lib/components/libpref.a 
../../dist/lib/components/libcaps.a ../../dist/lib/components/librdf.a 
../../dist/lib/components/libhtmlpars.a ../../dist/lib/components/libgfxps.a 
../../dist/lib/components/libgfxxprint.a ../../dist/lib/components/libgfx_gtk.a 
../../dist/lib/components/libimglib2.a ../../dist/lib/components/libgkplugin.a 
../../dist/lib/components/libwidget_gtk2.a 
../../dist/lib/components/libgklayout.a ../../dist/lib/components/libdocshell.a 
../../dist/lib/components/libembedcomponents.a 
../../dist/lib/components/libwebbrwsr.a ../../dist/lib/components/libeditor.a 
../../dist/lib/components/libtxmgr.a ../../dist/lib/components/libcomposer.a 
../../dist/lib/components/libnsappshell.a ../../dist/lib/components/liboji.a 
../../dist/lib/components/libaccessibility.a 
../../dist/lib/components/libchrome.a ../../dist/lib/components/libmork.a 
../../dist/lib/components/libmozfind.a ../../dist/lib/components/libappcomps.a 
../../dist/lib/components/libfileview.a 
../../dist/lib/components/libremoteservice.a 
../../dist/lib/components/libcommandlines.a 
../../dist/lib/components/libtoolkitcomps.a 
../../dist/lib/components/libpipboot.a ../../dist/lib/components/libpipnss.a 
../../dist/lib/components/libpippki.a ../../dist/lib/components/libcookie.a 
../../dist/lib/components/libxmlextras.a 
../../dist/lib/components/libautoconfig.a 
../../dist/lib/components/libsystem-pref.a 
../../dist/lib/components/libtransformiix.a 
../../dist/lib/components/libuniversalchardet.a 
../../dist/lib/components/libwebsrvcs.a ../../dist/lib/components/libauth.a 
../../dist/lib/components/libpermissions.a 
../../dist/lib/components/libsearchservice.a 
../../dist/lib/components/libbrowserdirprovider.a 
../../dist/lib/components/libbrowsercomps.a ../../dist/lib/libunicharutil_s.a 
../../dist/lib/libucvutil_s.a ../../dist/lib/libgtkxtbin.a 
../../dist/lib/libgfxshared_s.a ../../dist/lib/libgfxpsshar.a 
../../dist/lib/libxlibrgb.a ../../dist/lib/libxprintutil.a 
../../dist/lib/libgkgfx.a ../../dist/lib/libjsj.a ../../dist/lib/libxulapp_s.a  
-L/usr/lib -lpng  -L/usr/lib -ljpeg  -L/usr/lib -lz   -L../../dist/bin 
-L../../dist/lib ../../dist/lib/libcrmf.a -lsmime3 -lssl3 -lnss3 -lsoftokn3
-lcairo   -lXinerama -L/usr/X11R6/lib -lXt -L/usr/X11R6/lib -lXp -lXext -lX11 
-L../../dist/lib -lxpcom_compat
make[4]: *** Deleting file `firefox-bin'
make[2]: *** [tier_99] Terminated
make[3]: *** [libs] Terminated
make[4]: *** [firefox-bin] Terminated
make[1]: *** [default] Terminated
make: *** [build-stamp] Terminated
Build killed with signal 15 after 150 minutes of inactivity

So it seems as though it just hung on the firefox-bin linking.

Any clue?

   Julian