PyQt4: compilation error with sip 4.19.14: convert ‘std::nullptr_t’ to ‘int’ in initialization

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

PyQt4: compilation error with sip 4.19.14: convert ‘std::nullptr_t’ to ‘int’ in initialization

alexei
Hi, build of PyQt4 fails with sip 4.19.14:

    g++ -c -pipe -fno-exceptions -march=x86-64 -mtune=generic -O2 -pipe
    -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC
    -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN
    -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
    -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I.
    -I/usr/include/python3.7m -I../qpy/QtCore -I. -o
    sipQtCoreQAbstractTransition.o sipQtCoreQAbstractTransition.cpp
    /home/col/.cache/pikaur/build/pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore/sipQtCoreQAbstractTransition.cpp:812:1:
    error: cannot convert ‘std::nullptr_t’ to ‘int’ in initialization

This is on Arch Linux, gcc 8.2.1, sip.h from sip 4.19.14.

This ugly workaround to edit the generated code gets rid of the error:

    find . -type f -name '*.cpp' -exec sed -i 's/{SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}/{SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, 0}/g' {} \;

Possibly related:

http://python.6.x6.nabble.com/PATCH-1-5-Add-SIP-NULLPTR-SIP-OVERRIDE-compatibility-macros-td5240856.html

Just reporting so that this may be fixed in the next release. Thanks.
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: PyQt4: compilation error with sip 4.19.14: convert ‘std::nullptr_t’ to ‘int’ in initialization

Phil Thompson-5
On 18 Feb 2019, at 8:12 pm, Alexei Colin <[hidden email]> wrote:

>
> Hi, build of PyQt4 fails with sip 4.19.14:
>
>    g++ -c -pipe -fno-exceptions -march=x86-64 -mtune=generic -O2 -pipe
>    -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC
>    -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN
>    -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
>    -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I.
>    -I/usr/include/python3.7m -I../qpy/QtCore -I. -o
>    sipQtCoreQAbstractTransition.o sipQtCoreQAbstractTransition.cpp
>    /home/col/.cache/pikaur/build/pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore/sipQtCoreQAbstractTransition.cpp:812:1:
>    error: cannot convert ‘std::nullptr_t’ to ‘int’ in initialization
>
> This is on Arch Linux, gcc 8.2.1, sip.h from sip 4.19.14.
>
> This ugly workaround to edit the generated code gets rid of the error:
>
>    find . -type f -name '*.cpp' -exec sed -i 's/{SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}/{SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, 0}/g' {} \;
>
> Possibly related:
>
> http://python.6.x6.nabble.com/PATCH-1-5-Add-SIP-NULLPTR-SIP-OVERRIDE-compatibility-macros-td5240856.html
>
> Just reporting so that this may be fixed in the next release. Thanks.

Should be fixed (but untested) with tonight's sip snapshot.

Thanks,
Phil

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: PyQt4: compilation error with sip 4.19.14: convert ‘std::nullptr_t’ to ‘int’ in initialization

jano
hi!

I'm trying to compile this, but still have the same error, just in another
file:
g++ -c -pipe -fno-exceptions -march=x86-64 -mtune=generic -O2 -pipe
-fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC
-DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I/usr/include/python3.7m
-I../qpy/QtCore -I. -o sipQtCoreQSequentialAnimationGroup.o
sipQtCoreQSequentialAnimationGroup.cpp
/home/jano/.cache/yay/pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore/sipQtCoreQSequentialAnimationGroup.cpp:678:1:
error: cannot convert ‘std::nullptr_t’ to ‘int’ in initialization
 };

I also using Arch and the same versions on gcc,  the ugly workaround let me
compile and install, but my target is not this lib (I want to install
flatcam) and yay recompiles it again and fails again.



--
Sent from: http://python.6.x6.nabble.com/PyQt-f1792048.html
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: PyQt4: compilation error with sip 4.19.14: convert ‘std::nullptr_t’ to ‘int’ in initialization

Phil Thompson-5
On 5 Mar 2019, at 4:25 pm, jano <[hidden email]> wrote:

>
> hi!
>
> I'm trying to compile this, but still have the same error, just in another
> file:
> g++ -c -pipe -fno-exceptions -march=x86-64 -mtune=generic -O2 -pipe
> -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC
> -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN
> -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
> -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I/usr/include/python3.7m
> -I../qpy/QtCore -I. -o sipQtCoreQSequentialAnimationGroup.o
> sipQtCoreQSequentialAnimationGroup.cpp
> /home/jano/.cache/yay/pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore/sipQtCoreQSequentialAnimationGroup.cpp:678:1:
> error: cannot convert ‘std::nullptr_t’ to ‘int’ in initialization
> };
>
> I also using Arch and the same versions on gcc,  the ugly workaround let me
> compile and install, but my target is not this lib (I want to install
> flatcam) and yay recompiles it again and fails again.

https://www.riverbankcomputing.com/hg/sip/rev/7bd4d19479ad

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt