{"id":22,"date":"2005-04-04T00:19:13","date_gmt":"2005-04-03T22:19:13","guid":{"rendered":"http:\/\/blog.blackdown.de\/2005\/04\/04\/per_linux32-fixes-for-linuxppc64\/"},"modified":"2016-10-29T03:51:02","modified_gmt":"2016-10-29T01:51:02","slug":"per_linux32-fixes-for-linuxppc64","status":"publish","type":"post","link":"https:\/\/blackdown.de\/articles\/per_linux32-fixes-for-linuxppc64\/","title":{"rendered":"PER_LINUX32 Fixes for Linux\/ppc64"},"content":{"rendered":"
I’ve tried to rebuild the latest Debian packages of Mozilla and Firefox with my jsarena pointer arithmetic fix<\/a> on ppc32\/ppc64 today. Rebuilding worked fine with older versions but this time it failed because the makefiles identified my G5 as an i386 box! The makefiles use As my old work-around (providing a I’ve finally found two issues with the This patch<\/a> for 2.6.12-rc1-mm4 fixes both issues:<\/p>\n Without the patch all three commands return ‘ppc64’.<\/p>\n","protected":false},"excerpt":{"rendered":" I’ve tried to rebuild the latest Debian packages of Mozilla and Firefox with my jsarena pointer arithmetic fix on ppc32\/ppc64 today. Rebuilding worked fine with older versions but this time it failed because the makefiles identified my G5 as an i386 box! The makefiles use uname -m to determine the CPU type, there’s no codeuname -m<\/code> to determine the CPU type, there’s no code to handle ‘ppc64’ and the default is ‘x86’.<\/p>\n
uname<\/code> command that returns ‘ppc’) didn’t work anymore, this forced me to look at the root cause of the problem.<\/p>\n
PER_LINUX32<\/code> personality:<\/p>\n
\n
uname(2)<\/code> didn’t respect
PER_LINUX32<\/code><\/li>\n
PER_LINUX32<\/code><\/li>\n<\/ul>\n
$ uname -m\r\nppc64\r\n$ linux32 uname -m\r\nppc\r\n$ linux32 sh -c "uname -m"\r\nppc<\/pre>\n
[→ Read the rest of this entry<\/a>]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[2,12],"tags":[],"yoast_head":"\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n