Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2024 12:45:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 281225] deskutils/sliderule: Fails to build with GCC 14: error: initialization of 'Pixmap' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
Message-ID:  <bug-281225-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281225

            Bug ID: 281225
           Summary: deskutils/sliderule: Fails to build with GCC 14:
                    error: initialization of 'Pixmap' {aka 'long unsigned
                    int'} from 'void *' makes integer from pointer without
                    a cast [-Wint-conversion]
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://pkg-status.freebsd.org/gohan04/data/140amd64-d
                    efault-foo/2024-08-29_19h57m48s/logs/errors/sliderule-
                    1.0_11.log
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: joerg@FreeBSD.org
          Reporter: salvadore@freebsd.org
            Blocks: 281091
          Assignee: joerg@FreeBSD.org
             Flags: maintainer-feedback?(joerg@FreeBSD.org)

Build fails with GCC 14. This blocks GCC_DEFAULT update to GCC 14.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<phase=
: build          >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D env: NO_DEPENDS=3Dyes USER=3Droot UID=3D0 GID=3D0
=3D=3D=3D>  Building for sliderule-1.0_11
gcc14  -O2 -pipe  -fstack-protector-strong -Wl,-rpath=3D/usr/local/lib/gcc14
-fno-strict-aliasing        -I/usr/local/include    -DCSRG_BASED=20
-DFUNCPROTO=3D15 -DNARROWPROTO   -DSLIDERULE  -c sr.c -o sr.o
sr.c:7:9: warning: extra tokens at end of #endif directive [-Wendif-labels]
    7 | #endif  lint
      |         ^~~~
sr.c:56:20: error: initialization of 'Pixmap' {aka 'long unsigned int'} from
'void *' makes integer from pointer without a cast [-Wint-conversion]
   56 | Pixmap  slidePix =3D NULL;
      |                    ^~~~

Stop.
make: stopped in /usr/ports/audio/funktrackergold

Full log:
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-08-29=
_19h57m48s/logs/errors/sliderule-1.0_11.log

Useful link: https://gcc.gnu.org/gcc-14/porting_to.html


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281091
[Bug 281091] [exp-run] Update GCC_DEFAULT to 14 etc.
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281225-7788>