[QGIS-Developer] Commit 1dca9b9 breaks build on FreeBSD with clang

Rainer Hurling rhurlin at gwdg.de
Thu Aug 10 22:54:14 PDT 2023


Am 11.08.23 um 05:07 schrieb Nyall Dawson:
> On Thu, 10 Aug 2023 at 23:20, Rainer Hurling <rhurlin at gwdg.de> wrote:
>>
>> Hi Nyall,
>>
>> On FreeBSD, commit 1dca9b9 [1] breaks the build with clang 16.0.6:
> 
> Ouch! If it's causing issues then it's fine to revert, it won't harm anything.

I just double checked. Without commit 1dca9b9 I am able to build latest 
version (atm commit 1a44f7b) on FreeBSD.

If it would be okay with you, the commit would be best withdrawn. On the 
other hand, if there are no problems with your patch for other systems, 
I can also use an appropriate (revert) patch for the port in FreeBSD.

Rainer

> 
> Nyall
> 
> 
>>
>> In file included from
>> /usr/ports/graphics/qgis-devel/work/.build/src/core/qgis_core_autogen/mocs_compilation.cpp:132:
>> In file included from
>> /usr/ports/graphics/qgis-devel/work/.build/src/core/qgis_core_autogen/FIPKY4Q6PV/moc_qgscopcpointcloudindex.cpp:10:
>> /usr/ports/graphics/qgis-devel/work/.build/src/core/qgis_core_autogen/FIPKY4Q6PV/../../../../../QGIS-1dca9b9/src/core/pointcloud/qgscopcpointcloudindex.h:109:22:
>> error: no type named 'copc_info_vlr' in namespace 'lazperf'
>>       mutable lazperf::copc_info_vlr mCopcInfoVlr;
>>               ~~~~~~~~~^
>> In file included from
>> /usr/ports/graphics/qgis-devel/work/.build/src/core/qgis_core_autogen/mocs_compilation.cpp:132:
>> /usr/ports/graphics/qgis-devel/work/.build/src/core/qgis_core_autogen/FIPKY4Q6PV/moc_qgscopcpointcloudindex.cpp:86:32:
>> error: cannot initialize object parameter of type 'QgsPointCloudIndex'
>> with an expression of type 'QgsCopcPointCloudIndex'
>>       return QgsPointCloudIndex::qt_metacast(_clname);
>>                                  ^~~~~~~~~~~
>> /usr/ports/graphics/qgis-devel/work/.build/src/core/qgis_core_autogen/FIPKY4Q6PV/moc_qgscopcpointcloudindex.cpp:91:31:
>> error: cannot initialize object parameter of type 'QgsPointCloudIndex'
>> with an expression of type 'QgsCopcPointCloudIndex'
>>       _id = QgsPointCloudIndex::qt_metacall(_c, _id, _a);
>>                                 ^~~~~~~~~~~
>> In file included from
>> /usr/ports/graphics/qgis-devel/work/.build/src/core/qgis_core_autogen/mocs_compilation.cpp:144:
>> /usr/ports/graphics/qgis-devel/work/.build/src/core/qgis_core_autogen/FIPKY4Q6PV/moc_qgsremotecopcpointcloudindex.cpp:86:36:
>> error: cannot initialize object parameter of type
>> 'QgsCopcPointCloudIndex' with an expression of type
>> 'QgsRemoteCopcPointCloudIndex'
>>       return QgsCopcPointCloudIndex::qt_metacast(_clname);
>>                                      ^~~~~~~~~~~
>> /usr/ports/graphics/qgis-devel/work/.build/src/core/qgis_core_autogen/FIPKY4Q6PV/moc_qgsremotecopcpointcloudindex.cpp:91:35:
>> error: cannot initialize object parameter of type
>> 'QgsCopcPointCloudIndex' with an expression of type
>> 'QgsRemoteCopcPointCloudIndex'
>>       _id = QgsCopcPointCloudIndex::qt_metacall(_c, _id, _a);
>>                                     ^~~~~~~~~~~
>> 5 errors generated.
>> gmake[4]: *** [src/core/CMakeFiles/qgis_core.dir/build.make:1557:
>> src/core/CMakeFiles/qgis_core.dir/qgis_core_autogen/mocs_compilation.cpp.o]
>> Error 1
>> gmake[4]: Leaving directory '/usr/ports/graphics/qgis-devel/work/.build'
>> gmake[3]: *** [CMakeFiles/Makefile2:4696:
>> src/core/CMakeFiles/qgis_core.dir/all] Error 2
>> gmake[3]: Leaving directory '/usr/ports/graphics/qgis-devel/work/.build'
>> gmake[2]: *** [Makefile:169: all] Error 2
>> gmake[2]: Leaving directory '/usr/ports/graphics/qgis-devel/work/.build'
>> *** Error code 1
>>
>>
>> -----------------
>> [1]
>> https://github.com/qgis/QGIS/commit/1dca9b9dbc9c790d627e8112adae7333c7a450f7
>>
>> Any ideas? Many thanks for any help.
>>
>> Best regards,
>> Rainer Hurling, maintainer of the FreeBSD port of QGIS



More information about the QGIS-Developer mailing list