SWI-Prolog 10.1.4 compilation problem

Hi,

I just upgraded my machine to Debian Trixie and need to buil a new SWI-prolog deb package.

I cloned the development repository with git, not forgetting to initialize submodules.

I installed all the necessary build dependencies, changed working directory to the `debian` subdir and launched the package building with `debuild -b -uc -us`

All the binaries compliation went well but there is a problem with xpce :

[2728/2744] -- Building xpce class index
FAILED: home/xpce/prolog/lib/CLASSINDEX.pl /home/wurbel/src/swi-prolog/build/home/xpce/prolog/lib/CLASSINDEX.pl 
cd /home/wurbel/src/swi-prolog/build/packages/xpce && /home/wurbel/src/swi-prolog/build/src/swipl --no-packs --home=/home/wurbel/src/swi-prolog/build/home -DSDL_VIDEODRIVER=dummy -f none -t halt -g "pce_make_library_index('/home/wurbel/src/swi-prolog/build/home/xpce/prolog/lib')" --
ERROR: [Thread main] -g pce_make_library_index('/home/wurbel/src/swi-prolog/build/home/xpce/prolog/lib'): catch/3: Unknown procedure: pce_make_library_index/1

I launched manually the built swipl program and checked for the presence of the pce_make_library_index/1 predicate : it exists.

Do you have some clues to solve this problem ?

Thank you.

Regards

Eric

Not yet. I see that the PPA builds for Ubuntu questing and resolute failed for the same reason. The command looks a little dubious, but has always done the job.

Yes. A change in starting the Prolog steps caused it to think it had no GUI. Pushed a fix to GIT. Please test. Main repo commit ac2b7d4ea9da7c23583c90aa5871c04e3f5c57b4

P.s. Do not forget to do a recursive git submodule update/init

1 Like

Thank you for the quick answer !

Compilation is ok now, but the generated deb packages have strange names :

swi-prolog_7.1.23-1-g2474030-preciseppa2_amd64.deb
swi-prolog-bdb_7.1.23-1-g2474030-preciseppa2_amd64.deb
swi-prolog-bdb-dbgsym_7.1.23-1-g2474030-preciseppa2_amd64.deb
swi-prolog-java_7.1.23-1-g2474030-preciseppa2_amd64.deb
swi-prolog-java-dbgsym_7.1.23-1-g2474030-preciseppa2_amd64.deb
swi-prolog-nox_7.1.23-1-g2474030-preciseppa2_amd64.deb
swi-prolog-nox-dbgsym_7.1.23-1-g2474030-preciseppa2_amd64.deb
swi-prolog-odbc_7.1.23-1-g2474030-preciseppa2_amd64.deb
swi-prolog-odbc-dbgsym_7.1.23-1-g2474030-preciseppa2_amd64.deb
swi-prolog-x_7.1.23-1-g2474030-preciseppa2_amd64.deb
swi-prolog-x-dbgsym_7.1.23-1-g2474030-preciseppa2_amd64.deb

the version is tagged 7.1.23.

I do not build debian packages frequently, would you point me the place to change this, and also the ‘preciseppa2’

Ok, I finally found how to change the version of the package.

Thank you for you kind help !

Eric

I had no idea, but it seems you need to do a changelog update, no?

Yes, that’s it.

Thanks again, everything works.