On Mon, Jul 21, 2025 at 11:05:24PM +0200, Bruno Haible via Bug reports for the 
GNU Texinfo documentation system wrote:
> The CI reports a link error on Ubuntu (both when compiling natively and
> when cross-compiling for RISCV), that was not present last week:
> 
> /bin/bash ../../libtool  --tag=CC   --mode=link x86_64-linux-gnu-gcc   
> -module   -o _Texinfo.la -rpath /usr/local/lib/python3.10/site-packages 
> _Texinfo_la-python_texinfo_wrap.lo ../../C/libtexinfo.la 
> ../../C/libtexinfo-main.la  -L/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -lperl 
> -ldl -lm -lpthread -lc -lcrypt     
> libtool: link: x86_64-linux-gnu-gcc -shared  -fPIC -DPIC  
> .libs/_Texinfo_la-python_texinfo_wrap.o   -Wl,-rpath 
> -Wl,/home/runner/work/ci-check/ci-check/texinfo-7.2.20250721dev/build/tta/C/.libs
>  -Wl,-rpath -Wl,/usr/local/lib/texi2any ../../C/.libs/libtexinfo.so 
> ../../C/.libs/libtexinfo-main.so -L/usr/lib/x86_64-linux-gnu/perl/5.34/CORE 
> -lperl -ldl -lm -lpthread -lc -lcrypt    -Wl,-soname -Wl,_Texinfo.so.0 -o 
> .libs/_Texinfo.so.0.0.0
> /usr/bin/ld: cannot find -lperl: No such file or directory
> collect2: error: ld returned 1 exit status
> make[5]: *** [Makefile:1814: _Texinfo.la] Error 1
> make[5]: Leaving directory 
> '/home/runner/work/ci-check/ci-check/texinfo-7.2.20250721dev/build/tta/swig/python'
> make[4]: *** [Makefile:1736: all-recursive] Error 1
> make[4]: Leaving directory 
> '/home/runner/work/ci-check/ci-check/texinfo-7.2.20250721dev/build/tta/swig'
> make[3]: *** [Makefile:1690: all] Error 2
> make[3]: Leaving directory 
> '/home/runner/work/ci-check/ci-check/texinfo-7.2.20250721dev/build/tta/swig'
> make[2]: *** [Makefile:1856: all-recursive] Error 1
> make[2]: Leaving directory 
> '/home/runner/work/ci-check/ci-check/texinfo-7.2.20250721dev/build/tta'
> make[1]: *** [Makefile:1948: all-recursive] Error 1
> make[1]: Leaving directory 
> '/home/runner/work/ci-check/ci-check/texinfo-7.2.20250721dev/build'
> make: *** [Makefile:1887: all] Error 2
> 
> Is the mandatory dependency on libperl intended?
> 
> Bruno

It shouldn't depend on libperl.  As far as I understand, libperl can come
in two ways (Patrice could confirm this).

The first is when building the C implementation of texi2any (known as
ctexi2any), but this is not used by default, because of this dependency
which is often not present.

The second is as a result of the SWIG stuff, which looks like is
happening here.

I have not looked into what is being done with SWIG, but hopefully if
you reconfigure with "./configure --without-swig", some of the SWIG
parts of the build will be omitted and this error won't occur.

  • depe... Bruno Haible via Bug reports for the GNU Texinfo documentation system
    • ... Gavin Smith
      • ... Patrice Dumas
        • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system
        • ... Patrice Dumas
          • ... Bruno Haible via Bug reports for the GNU Texinfo documentation system

Reply via email to