Bug 253204 - graphics/qgis: qgis build fails on 12.2-stable (amd64)
Summary: graphics/qgis: qgis build fails on 12.2-stable (amd64)
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Rainer Hurling
Depends on:
Reported: 2021-02-03 08:47 UTC by jau
Modified: 2021-06-18 06:48 UTC (History)
2 users (show)

See Also:
lbartoletti: maintainer-feedback+

A bzip2 compressed typescript showing a failed build. (63.97 KB, application/x-bzip)
2021-02-03 08:47 UTC, jau
no flags Details
A new complete typescript output after rebuilding python and all py37-* packages. (98.73 KB, text/plain)
2021-02-08 15:05 UTC, jau
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jau 2021-02-03 08:47:51 UTC
Created attachment 222108 [details]
A bzip2 compressed typescript showing a failed build.

Qgis fails to build on freebsd-12.2-stable.
See the attached typescript file for additional info.
Comment 1 Rainer Hurling freebsd_committer 2021-02-04 06:38:36 UTC

Thanks for reporting.

I just tried again on Poudriere with latest sources and ports and it builds fine for me on 12.2 amd64.

Looking into your attachment, there is only info about the build process. No configure, nothing about OS version, platform, Python version, etc.

Could you please provide some more info? Many thanks.
Comment 2 jau 2021-02-05 15:57:28 UTC
Oops! I had managed to destroy the rest of the summary line when adding
the package name in the beginning. Now the summary tells both the FreeBSD
version and hardware platform. (12.2-stable on amd64)

Python version is python37-3.7.9_1.

Grass7 is enabled.
Comment 3 Rainer Hurling freebsd_committer 2021-02-05 19:25:05 UTC
(In reply to jau from comment #2)
Thanks for the infos.

As I said before, your attachment only contains part of the whole build process ;)

But let us try another way:

As no one else complains about such a build problem with graphics/qgis, it is likely that you have a local deviation in your installed ports (unusual combination of ports options, ...).

Before any next step, please check if your ports system is up to date. Especially please rebuild and reinstall devel/py-qt5-core.

Can you show the full output of 'make configure' and the contents of the config.log file, please?
Comment 4 jau 2021-02-08 15:05:50 UTC
Created attachment 222268 [details]
A new complete typescript output after rebuilding python and all py37-* packages.
Comment 5 Loïc Bartoletti freebsd_committer 2021-02-08 17:27:56 UTC
There is a problem with crssync: 

gmake[4]: *** [src/crssync/CMakeFiles/synccrsdb.dir/build.make:80: src/crssync/CMakeFiles/synccrsdb] Illegal instruction
gmake[4]: Leaving directory '/usr/ports/graphics/qgis/work/.build'
gmake[3]: *** [CMakeFiles/Makefile2:6803: src/crssync/CMakeFiles/synccrsdb.dir/all] Error 2
gmake[3]: *** Waiting for unfinished jobs....

I have already encountered this problem during my developments. The solution is to do a make clean, and check the dependencies between packages.
Comment 6 Rainer Hurling freebsd_committer 2021-02-08 17:55:02 UTC
(In reply to Loïc Bartoletti from comment #5)
Thanks Loïc, For the pointer.

It is a bit hard to find, since the build was not ordered as suggested (via MAKE_JOBS_UNSAFE=yes) ;)
Comment 7 Loïc Bartoletti freebsd_committer 2021-06-18 06:48:04 UTC
Hello jau@iki.fi,

Since I (we) could not reproduce and there is new versions of qgis and its dependencies (especially pdal, grass and python modules), I close this ticket.

Feel free to open a new one if you have a problem.