Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942506 - x11-base/xorg-server-21.1.14: fails to (cross-)compile for sparc64
Summary: x11-base/xorg-server-21.1.14: fails to (cross-)compile for sparc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL: https://gitlab.freedesktop.org/xorg/x...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-10-30 07:42 UTC by BogDan
Modified: 2024-12-17 18:09 UTC (History)
2 users (show)

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


Attachments
sparc64-unknown-linux-gnu-emerge --info '=x11-base/xorg-server-21.1.14::gentoo' (file_942506.txt,5.74 KB, text/plain)
2024-10-30 07:43 UTC, BogDan
Details
build log error (file_942506.txt,21.67 KB, text/plain)
2024-10-30 07:44 UTC, BogDan
Details
fix_compile.patch (file_942506.txt,725 bytes, patch)
2024-10-30 07:45 UTC, BogDan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description BogDan 2024-10-30 07:42:50 UTC
gcc 14 is not happy with:
[...]
../xorg-server-21.1.14/hw/xfree86/common/xf86sbusBus.c: In function ‘xf86SbusConfigureNewDev’:
../xorg-server-21.1.14/hw/xfree86/common/xf86sbusBus.c:751:21: error: passing argument 1 of ‘XNFasprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
  751 |         XNFasprintf(&GDev->busID, "SBUS:%s", promPath);
      |                     ^~~~~~~~~~~~
      |                     |
      |                     const char **
In file included from ../xorg-server-21.1.14/include/os.h:272,
                 from ../xorg-server-21.1.14/hw/xfree86/common/xf86sbusBus.c:32:
../xorg-server-21.1.14/include/Xprintf.h:58:20: note: expected ‘char **’ but argument is of type ‘const char **’
   58 | XNFasprintf(char **ret, const char *_X_RESTRICT_KYWD fmt, ...)
      |             ~~~~~~~^~~
../xorg-server-21.1.14/hw/xfree86/common/xf86sbusBus.c:755:21: error: passing argument 1 of ‘XNFasprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
  755 |         XNFasprintf(&GDev->busID, "SBUS:fb%d", sBus->fbNum);
      |                     ^~~~~~~~~~~~
      |                     |
      |                     const char **
../xorg-server-21.1.14/include/Xprintf.h:58:20: note: expected ‘char **’ but argument is of type ‘const char **’
   58 | XNFasprintf(char **ret, const char *_X_RESTRICT_KYWD fmt, ...)
[...]

I think it should happen when not cross compiling.

Reproducible: Always
Comment 1 BogDan 2024-10-30 07:43:36 UTC
Created attachment 907307 [details]
sparc64-unknown-linux-gnu-emerge --info '=x11-base/xorg-server-21.1.14::gentoo'
Comment 2 BogDan 2024-10-30 07:44:32 UTC
Created attachment 907308 [details]
build log error
Comment 3 BogDan 2024-10-30 07:45:56 UTC
Created attachment 907309 [details, diff]
fix_compile.patch
Comment 4 Matt Turner gentoo-dev 2024-10-31 17:52:49 UTC
Did 21.1.13 compile successfully?
Comment 5 BogDan 2024-10-31 18:47:22 UTC
Nope, I used the same patch to pass the compilation error.
Comment 6 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2024-11-16 06:39:49 UTC
Also happened now on catbus testing container, so not a cross issue
Comment 7 Matt Turner gentoo-dev 2024-12-17 03:28:55 UTC
Looks like this file wasn't built until https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/813 -- 6c1a1fcc4 ("hw/xfree86: fix sbus build for SPARC")

This commit was cherry picked to the server-21.1-branch and was included in 21.1.2 as commit 9fe2991075aca3321d59d03f3e45faca6cb718b8.
Comment 9 Larry the Git Cow gentoo-dev 2024-12-17 18:09:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f735ba59e17bfa4b79060b6090e604cab90bdc1

commit 8f735ba59e17bfa4b79060b6090e604cab90bdc1
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2024-12-17 18:02:23 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2024-12-17 18:09:34 +0000

    x11-base/xorg-server: Version bump to 21.1.15
    
    Closes: https://bugs.gentoo.org/942506
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-base/xorg-server/Manifest                   |   1 +
 x11-base/xorg-server/xorg-server-21.1.15.ebuild | 195 ++++++++++++++++++++++++
 2 files changed, 196 insertions(+)