Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 492646

Summary: x11-base/xorg-server-1.14.4 fails to compile in mips64, due to casting wrong size int to pointer
Product: Gentoo Linux Reporter: Cherry Mui <lunaria21>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: mips
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: MIPS   
OS: Linux   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=72126
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log (tail lines)
emerge --info
xorg-server-1.14.4-mips64-uintptr_t.patch

Description Cherry Mui 2013-11-26 23:59:38 UTC
Created attachment 364040 [details]
build.log (tail lines)

emerge xorg-server-1.14.4 fails at compile phase on mips64el (loongson2e). it is due to casting unsigned int to pointer, which are of different sizes on mips64. build.log is attached.

changing unsigned int to uintptr_t solves the problem on my machine. hope the patch does not break other architectures.

The same problem happens on previous versions of xorg-server, e.g. 1.14.3-r2.
Comment 1 Cherry Mui 2013-11-27 00:00:41 UTC
Created attachment 364042 [details]
emerge --info
Comment 2 Cherry Mui 2013-11-27 00:01:29 UTC
Created attachment 364044 [details, diff]
xorg-server-1.14.4-mips64-uintptr_t.patch
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2013-11-27 08:46:04 UTC
This problem needs to be reported upstream
Comment 4 Cherry Mui 2013-11-28 15:36:20 UTC
(In reply to Markos Chandras from comment #3)
> This problem needs to be reported upstream

okay. reported to https://bugs.freedesktop.org/show_bug.cgi?id=72126
is it correct? thanks.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2013-12-09 16:34:57 UTC
Seems about right. Thanks
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-06-05 15:02:45 UTC
It appears that a possible fix was applied to xorg-server-1.15.99.903, you may want to try that version.