Re: Build fail in mariadb on fedora 40
On 18.05.24 2:51 PM, Dr. David Alan Gilbert wrote: It looks like others started hitting it; see: https://gerrit.libreoffice.org/c/core/+/167806 Run into the same issue on a VM with Arch Linux. Latest master compiles now flawless. OpenPGP_signature.asc Description: OpenPGP digital signature
Re: Build fail in mariadb on fedora 40
On 18/05/2024 14:51, Dr. David Alan Gilbert wrote: ... It looks like others started hitting it; see: https://gerrit.libreoffice.org/c/core/+/167806 (I believe as a windows user) Ok. BTW, I could run a full build on Win10 with master sources updated today (but without enable-dbgutil). I did a make clean and build again with enable-dbgutil. Exception enable-dbgutil, the autogen.input contains only: --with-visual-studio=2022 --with-parallelism=1 (this last one is mandatory for me because the build hangs regularly without it whereas I disabled Windows Defender on the whole cygwin directory). Hmm I'm using gcc instead, but I don't see how the cast would be valid: I'm giving a try right now with gcc instead of clang and with a simplified autogen.input (compared with previous one): -disable-compiler-plugins --enable-dbus --enable-werror --enable-dependency-tracking --enable-python=fully-internal --enable-symbols --with-referenced-git=/home/julien/lo/libreoffice --with-external-tar=/home/julien/lo/libreoffice/external/tarballs --enable-avahi --with-lang=en-US fr ... so those C_MODE_START/END make me think someone is doing something funky with the compiler anyway. Indeed!
Re: Build fail in mariadb on fedora 40
* Julien Nabet (serval2...@yahoo.fr) wrote: > On 17/05/2024 15:47, Dr. David Alan Gilbert wrote: > > Hi, > >I'm getting: > > > > workdir/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.c:87:207: > > error: initialization of ‘struct st_mysql_client_plugin *’ from > > incompatible pointer type ‘struct st_mysql_client_plugin_AUTHENTICATION *’ > > [-Wincompatible-pointer-types] > > 87 |(struct st_mysql_client_plugin *)&pvio_socket_client_plugin, > > (struct st_mysql_client_plugin *)&caching_sha2_password_client_plugin, > > (struct st_mysql_client_plugin *)&mysql_native_password_client_plugin, > > (struct st_mysql_client_plugin_AUTHENTICATION > > *)&auth_gssapi_client_client_plugin, > >| > > > >^ > > /discs/fast/core/workdir/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.c:87:207: > > note: (near initialization for ‘mysql_client_builtins[3]’) > > make[1]: *** [/discs/fast/core/solenv/gbuild/LinkTarget.mk:366: > > /discs/fast/core/workdir/GenCObject/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.o] > > Error 1 > > make[1]: *** Waiting for unfinished jobs > > make: *** [Makefile:294: build] Error 2 > > > > Host: Fedora 40, x86-64 > > configured with: > > ./configure --srcdir=/discs/fast/core --enable-option-checking=fatal > > --enable-debug > > > > using --with-system-mariadb fixed it. > > Hello David, Hi Julien, Thanks for the reply. > Sorry, I don't know why you encounter this :-( It looks like others started hitting it; see: https://gerrit.libreoffice.org/c/core/+/167806 (I believe as a windows user) > If it can help, here's the content of my autogen.input: > > CC=clang > CXX=clang++ Hmm I'm using gcc instead, but I don't see how the cast would be valid: UnpackedTarball/mariadb-connector-c/include/mysql/client_plugin.h has: #include struct st_mysql_client_plugin_AUTHENTICATION { MYSQL_CLIENT_PLUGIN_HEADER int (*authenticate_user)(MYSQL_PLUGIN_VIO *vio, struct st_mysql *mysql); }; although, hmm, that header also defines: #define mysql_declare_client_plugin(X) \ struct st_mysql_client_plugin_ ## X\ _mysql_client_plugin_declaration_ = { \ MYSQL_CLIENT_ ## X ## _PLUGIN,\ MYSQL_CLIENT_ ## X ## _PLUGIN_INTERFACE_VERSION, #define mysql_end_client_plugin } which is curiously different from the system /usr/include/mysql/server/mysql/client_plugin.h #define mysql_declare_client_plugin(X) \ C_MODE_START MYSQL_PLUGIN_EXPORT_C \ struct st_mysql_client_plugin_ ## X\ _mysql_client_plugin_declaration_ = { \ MYSQL_CLIENT_ ## X ## _PLUGIN,\ MYSQL_CLIENT_ ## X ## _PLUGIN_INTERFACE_VERSION, #define mysql_end_client_plugin }; C_MODE_END so those C_MODE_START/END make me think someone is doing something funky with the compiler anyway. Dave > --enable-ld=lld > --enable-online-update > --enable-dbgutil > --enable-evolution2 > --enable-gtk4 > --enable-qt5 > --enable-kf5 > --enable-gtk3-kde5 > --enable-skia=debug > --enable-ext-nlpsolver > --enable-ext-numbertext > --enable-ext-wiki-publisher > --enable-dbus > --enable-werror > --enable-dependency-tracking > --enable-python=fully-internal > --without-system-mariadb > --enable-bundle-mariadb > --enable-symbols > --enable-avahi > --enable-eot > --enable-odk > --with-lang=en-US de es fr hu it ja nl pt pt-BR ru nb nn > --with-myspell-dicts > > Julien > -- -Open up your eyes, open up your mind, open up your code --- / Dr. David Alan Gilbert| Running GNU/Linux | Happy \ \dave @ treblig.org | | In Hex / \ _|_ http://www.treblig.org |___/
Build fail in mariadb on fedora 40
Hi, I'm getting: workdir/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.c:87:207: error: initialization of ‘struct st_mysql_client_plugin *’ from incompatible pointer type ‘struct st_mysql_client_plugin_AUTHENTICATION *’ [-Wincompatible-pointer-types] 87 |(struct st_mysql_client_plugin *)&pvio_socket_client_plugin, (struct st_mysql_client_plugin *)&caching_sha2_password_client_plugin, (struct st_mysql_client_plugin *)&mysql_native_password_client_plugin, (struct st_mysql_client_plugin_AUTHENTICATION *)&auth_gssapi_client_client_plugin, | ^ /discs/fast/core/workdir/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.c:87:207: note: (near initialization for ‘mysql_client_builtins[3]’) make[1]: *** [/discs/fast/core/solenv/gbuild/LinkTarget.mk:366: /discs/fast/core/workdir/GenCObject/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.o] Error 1 make[1]: *** Waiting for unfinished jobs make: *** [Makefile:294: build] Error 2 Host: Fedora 40, x86-64 configured with: ./configure --srcdir=/discs/fast/core --enable-option-checking=fatal --enable-debug using --with-system-mariadb fixed it. I originally filed this as: https://bugs.documentfoundation.org/show_bug.cgi?id=161141 However Ilmari pointed out that being a build bug it should be here. See the bug for my config.log. (cc'ing Julien since I see they did some stuff around there.) Dave -- -Open up your eyes, open up your mind, open up your code --- / Dr. David Alan Gilbert| Running GNU/Linux | Happy \ \dave @ treblig.org | | In Hex / \ _|_ http://www.treblig.org |___/
Re: Build fail in mariadb on fedora 40
On 17/05/2024 15:47, Dr. David Alan Gilbert wrote: Hi, I'm getting: workdir/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.c:87:207: error: initialization of ‘struct st_mysql_client_plugin *’ from incompatible pointer type ‘struct st_mysql_client_plugin_AUTHENTICATION *’ [-Wincompatible-pointer-types] 87 |(struct st_mysql_client_plugin *)&pvio_socket_client_plugin, (struct st_mysql_client_plugin *)&caching_sha2_password_client_plugin, (struct st_mysql_client_plugin *)&mysql_native_password_client_plugin, (struct st_mysql_client_plugin_AUTHENTICATION *)&auth_gssapi_client_client_plugin, | ^ /discs/fast/core/workdir/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.c:87:207: note: (near initialization for ‘mysql_client_builtins[3]’) make[1]: *** [/discs/fast/core/solenv/gbuild/LinkTarget.mk:366: /discs/fast/core/workdir/GenCObject/UnpackedTarball/mariadb-connector-c/libmariadb/ma_client_plugin.o] Error 1 make[1]: *** Waiting for unfinished jobs make: *** [Makefile:294: build] Error 2 Host: Fedora 40, x86-64 configured with: ./configure --srcdir=/discs/fast/core --enable-option-checking=fatal --enable-debug using --with-system-mariadb fixed it. Hello David, Sorry, I don't know why you encounter this :-( If it can help, here's the content of my autogen.input: CC=clang CXX=clang++ --enable-ld=lld --enable-online-update --enable-dbgutil --enable-evolution2 --enable-gtk4 --enable-qt5 --enable-kf5 --enable-gtk3-kde5 --enable-skia=debug --enable-ext-nlpsolver --enable-ext-numbertext --enable-ext-wiki-publisher --enable-dbus --enable-werror --enable-dependency-tracking --enable-python=fully-internal --without-system-mariadb --enable-bundle-mariadb --enable-symbols --enable-avahi --enable-eot --enable-odk --with-lang=en-US de es fr hu it ja nl pt pt-BR ru nb nn --with-myspell-dicts Julien