Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40934 - 64 bit userland patches for base system
Summary: 64 bit userland patches for base system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-08 20:53 UTC by Josh Grebe (RETIRED)
Modified: 2005-01-10 03:53 UTC (History)
1 user (show)

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


Attachments
patch for current sparc openssl, 0.9.7c-r1 (openssl-0.9.7c-r1.patch,1.16 KB, patch)
2004-02-08 20:57 UTC, Josh Grebe (RETIRED)
Details | Diff
patch for glibc-2.3.2- (glibc-2.3.2-r3.patch,472 bytes, patch)
2004-02-08 20:58 UTC, Josh Grebe (RETIRED)
Details | Diff
patch for glibc-2.3.2-r1 to fix a glibc bug (glibc-2.3.2-r3.pause.c.patch,295 bytes, patch)
2004-02-08 21:19 UTC, Josh Grebe (RETIRED)
Details | Diff
replacement ebuild for glibc-2.3.2-r3 (glibc-2.3.2-r3.ebuild,17.24 KB, patch)
2004-02-08 21:35 UTC, Josh Grebe (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Grebe (RETIRED) gentoo-dev 2004-02-08 20:53:26 UTC
I'm posting patches as I create them, trying to build a fully 64 but userland on sparc64.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Josh Grebe (RETIRED) gentoo-dev 2004-02-08 20:57:02 UTC
Created attachment 25230 [details, diff]
patch for current sparc openssl, 0.9.7c-r1

This patch adds a check against CHOST for sparc64,
and sets the openssl target platform to linux64-sparcv9.
Comment 2 Josh Grebe (RETIRED) gentoo-dev 2004-02-08 20:58:11 UTC
Created attachment 25231 [details, diff]
patch for glibc-2.3.2-

This patch tests CHOST for sparc64, and avoids a 32bit userland configure
option
Comment 3 Josh Grebe (RETIRED) gentoo-dev 2004-02-08 21:19:38 UTC
Created attachment 25233 [details, diff]
patch for glibc-2.3.2-r1 to fix a glibc bug

for some reason they try to include a file that doesn't exist... so I comment
that out
Comment 4 Josh Grebe (RETIRED) gentoo-dev 2004-02-08 21:23:38 UTC
As an aside, I'm getting some random segfaults andd bus errors while compiling glibc. I'm doing -j10, and continuing the compile by hand, if I can get it to complete I'll try it again at -j1. my gcc is:
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)
compiled for 64 bit...
Comment 5 Josh Grebe (RETIRED) gentoo-dev 2004-02-08 21:35:02 UTC
Created attachment 25234 [details, diff]
replacement ebuild for glibc-2.3.2-r3

This ebuild fixes the sparc64 check that breaks sparc64, applies the patch
#25233 which fixes missing pause.c, and also forces -j1 to (hopefully)
alleviate segfault/bus errors...
Comment 6 Sven Blumenstein (RETIRED) gentoo-dev 2004-02-08 23:48:37 UTC
The Openssl patch needs another fix to get the CFLAGS replaced:

- 	for a in $( grep -n -e "^\"linux-" Configure ); do
+ 	for a in $( grep -n -e "^\"linux64-" Configure ); do

You should determine this by the CHOST too. 

Binutils needs a patch too, so it doesnt attach "64" if the CHOST is already "sparc64". I could write up something when I am back at home :)
Comment 7 Sven Blumenstein (RETIRED) gentoo-dev 2004-03-06 15:56:40 UTC
Ok, I can verify that OpenSSL also needs a replace-flags to set '-O1' if anything higher is set. Using -O2, -O3 or higher causes the ripemd160 test to fail.
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-10 03:53:54 UTC
fixed in 20040808-r1