Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492646 - x11-base/xorg-server-1.14.4 fails to compile in mips64, due to casting wrong size int to pointer
Summary: x11-base/xorg-server-1.14.4 fails to compile in mips64, due to casting wrong ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: MIPS Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2013-11-26 23:59 UTC by Cherry Mui
Modified: 2014-06-05 15:57 UTC (History)
1 user (show)

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


Attachments
build.log (tail lines) (build.log,13.65 KB, text/plain)
2013-11-26 23:59 UTC, Cherry Mui
Details
emerge --info (emerge--info.log,5.01 KB, text/plain)
2013-11-27 00:00 UTC, Cherry Mui
Details
xorg-server-1.14.4-mips64-uintptr_t.patch (xorg-server-1.14.4-mips64-uintptr_t.patch,608 bytes, patch)
2013-11-27 00:01 UTC, Cherry Mui
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.