Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63916 closed defect (fixed)

qgis3: sip related build failure

Reported by: i0ntempest Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: reneeotten (Renee Otten)
Port: qgis3 pdal

Description

Currently qgis3 build fails with:

:info:build sip: /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/PyQt5/bindings/QtCore/QtCoremod.sip:23: syntax error
:info:build make[2]: *** [python/core/sip_corepart0.cpp] Error 1
:info:build make[2]: *** Deleting file `python/core/sip_corepart0.cpp'
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/work/build'
:info:build make[1]: *** [python/CMakeFiles/python_module_qgis__core_autogen.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make[2]: Leaving directory `/opt/local/var/macpo

Not sure if this is related to the openssl3 transition. What I've tried and failed:
Update to 3.22.0 and use py-sip rather than sip4
Force building with openssl11 with openssl pg

Attachments (2)

main.log.zip (437.6 KB) - added by i0ntempest 3 years ago.
main.log_2.zip (464.7 KB) - added by i0ntempest 3 years ago.

Download all attachments as: .zip

Change History (9)

Changed 3 years ago by i0ntempest

Attachment: main.log.zip added

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

I think the sip here is a red herring. It seems to me that the issue is with pdal, there are all kind of references to Referenced from: /opt/local/lib/libpdalcpp.12.dylib in the build log and indeed also to openssl (e.g., #define PDAL_VERSION_MAJOR "dyld: Library not loaded: /opt/local/lib/libssl.1.1.dylib.

I think the issue is that pdal does not declare a dependency on OpenSSL (and therefore didn't get a revbump after the OpenSSL switch), but does link to it:

 % otool -L `port contents pdal | grep dylib` | grep crypto
	/opt/local/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
	/opt/local/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
	/opt/local/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)

So please try to add a dependency on openssl, revbump the port and rebuild it first before installing qgis3. If that solves the problem that fix can be committed then.

Last edited 3 years ago by reneeotten (Renee Otten) (previous) (diff)

comment:2 Changed 3 years ago by reneeotten (Renee Otten)

Cc: Veence removed
Owner: set to Veence
Port: pdal added
Status: newassigned

comment:3 Changed 3 years ago by i0ntempest

Doesn't seem like it... I did what you said (and updated pdal to 2.3 along the way), the build still fails with the same error. I'll put a new log here just in case, will also try sip6 later.

Changed 3 years ago by i0ntempest

Attachment: main.log_2.zip added

comment:4 Changed 3 years ago by Veence (Vincent)

As I said, I’m currently in the middle of the ford. I've given back my previous MacBookAir to my former employer, and I’m waiting for a new MacBook Pro 14" (yeah!) that my new one has just ordered. But for the time being, I’m stuck with my very old MacBookAir (2013) with about nothing installed on it – though I can maybe try to reinstall QGis. But if you can afford to wait, say, a week or two that I can put my hands on my new machine, that would be awesome.

comment:5 Changed 3 years ago by reneeotten (Renee Otten)

I'll take a look and push a fix if I can find one

comment:6 Changed 3 years ago by i0ntempest

Resolution: fixed
Status: assignedclosed

comment:7 Changed 3 years ago by Veence (Vincent)

Thanks a bunch! I’m still waiting for my new Mac…

Note: See TracTickets for help on using tickets.