Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 882805 - app-crypt/seahorse-43.0: build failure with clang >= 15 due to default -Werror=int-conversion (operation.c:536:2: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'gboolean' (aka 'int'))
Summary: app-crypt/seahorse-43.0: build failure with clang >= 15 due to default -Werro...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: systemwide-clang c99-porting
  Show dependency tree
 
Reported: 2022-11-24 19:18 UTC by Bryce Glover
Modified: 2024-04-16 22:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
`emerge --info` output (emerge_--info.out,6.73 KB, text/plain)
2022-11-24 19:23 UTC, Bryce Glover
Details
`build.log` (build.log,127.42 KB, text/plain)
2022-11-24 19:25 UTC, Bryce Glover
Details
seahorse-43.0-r3-clang-17.patch (seahorse-43.0-r3-clang-17.patch,1.21 KB, patch)
2023-10-03 03:36 UTC, ppw0
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bryce Glover 2022-11-24 19:18:12 UTC
Attempting to upgrade `app-crypt/seahorse` from v42.0-r1 to v43.0 kept failing.  

Reproducible: Always

Steps to Reproduce:
Run either of:  

 - `emerge --verbose --update --deep --newuse --changed-slot=y --with-bdeps=y @world` with `app-crypt/seahorse` in the set of packages selected for upgrading
 - `emerge --verbose --update --deep --newuse --changed-slot=y --with-bdeps=y app-crypt/seahorse`
Actual Results:  
```
⁝
[190/263] clang -Issh/libseahorse-ssh.a.p -Issh -I../seahorse-43.0/ssh -Icommon -I../seahorse-43.0/common -I. -I../seahorse-43.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/gcr-3 -I/usr/include/gck-1 -I/usr/include/p11-kit-1 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libhandy-1 -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -w -DGCR_API_SUBJECT_TO_CHANGE -DGCK_API_SUBJECT_TO_CHANGE -DSECRET_WITH_UNSTABLE -include config.h -Wno-unused-parameter -Wno-missing-field-initializers -march=native -mtune=native -O2 -pipe -flto=thin -fPIC -pthread -MD -MQ ssh/libseahorse-ssh.a.p/meson-generated_operation.c.o -MF ssh/libseahorse-ssh.a.p/meson-generated_operation.c.o.d -o ssh/libseahorse-ssh.a.p/meson-generated_operation.c.o -c ssh/libseahorse-ssh.a.p/operation.c
FAILED: ssh/libseahorse-ssh.a.p/meson-generated_operation.c.o
clang -Issh/libseahorse-ssh.a.p -Issh -I../seahorse-43.0/ssh -Icommon -I../seahorse-43.0/common -I. -I../seahorse-43.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/gcr-3 -I/usr/include/gck-1 -I/usr/include/p11-kit-1 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libhandy-1 -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -w -DGCR_API_SUBJECT_TO_CHANGE -DGCK_API_SUBJECT_TO_CHANGE -DSECRET_WITH_UNSTABLE -include config.h -Wno-unused-parameter -Wno-missing-field-initializers -march=native -mtune=native -O2 -pipe -flto=thin -fPIC -pthread -MD -MQ ssh/libseahorse-ssh.a.p/meson-generated_operation.c.o -MF ssh/libseahorse-ssh.a.p/meson-generated_operation.c.o.d -o ssh/libseahorse-ssh.a.p/meson-generated_operation.c.o -c ssh/libseahorse-ssh.a.p/operation.c
ssh/libseahorse-ssh.a.p/operation.c:536:2: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'gboolean' (aka 'int') [-Wint-conversion]
        g_return_val_if_fail (_data_->_tmp0_, NULL);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated. 
⁝
ninja: build stopped: subcommand failed.
 * ERROR: app-crypt/seahorse-43.0::gentoo failed (compile phase):
 *   compile failed
⁝
```

Expected Results:  
 - A successful `emerge` run for `app-crypt/seahorse`.  

 - This is on a Gentoo instance I have running under Windows Subsystem for Linux v2 on 64-bit Windows 11 Pro 22H2, build 22621.819, with Windows Feature Experience Pack 1000.22636.1000.0.  
 - I was able to work around this issue by adding the following entry to `/etc/portage/package.env`:  

   ```
   app-crypt/seahorse compiler-gcc
   ```

   then trying again.  
 - I'll attach my logs to this issue thread shortly.
Comment 1 Bryce Glover 2022-11-24 19:23:56 UTC
Created attachment 836529 [details]
`emerge --info` output
Comment 2 Bryce Glover 2022-11-24 19:25:30 UTC
Created attachment 836531 [details]
`build.log`
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-25 03:04:24 UTC
Could you forward this to upstream at https://gitlab.gnome.org/GNOME/seahorse/-/issues?
Comment 4 Bryce Glover 2022-11-25 22:27:37 UTC
Of course; will do.
Comment 5 Bryce Glover 2022-11-25 22:50:58 UTC
All right, that's now done as upstream issue #359:  <https://gitlab.gnome.org/GNOME/seahorse/-/issues/359>.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-24 11:44:45 UTC
(In reply to Bryce Glover from comment #5)
> All right, that's now done as upstream issue #359: 
> <https://gitlab.gnome.org/GNOME/seahorse/-/issues/359>.

Thank you!
Comment 7 Bryce Glover 2022-12-26 22:45:01 UTC
(In reply to Sam James from comment #6)
> (In reply to Bryce Glover from comment #5)
> > All right, that's now done as upstream issue #359: 
> > <https://gitlab.gnome.org/GNOME/seahorse/-/issues/359>.
> 
> Thank you!

Of course; no problem, and you're welcome.
Comment 8 ppw0 2023-10-03 03:36:21 UTC
Created attachment 872069 [details, diff]
seahorse-43.0-r3-clang-17.patch

Hi,

this patch ought to allow building seahorse-43.0-r3 with clang-17.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-06 10:41:58 UTC
(In reply to ppw0 from comment #8)
> Created attachment 872069 [details, diff] [details, diff]
> seahorse-43.0-r3-clang-17.patch
> 
> Hi,
> 
> this patch ought to allow building seahorse-43.0-r3 with clang-17.

Could you send it upstream please?