Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266564 - toolchain.eclass changes for amd64 32bit userland profile
Summary: toolchain.eclass changes for amd64 32bit userland profile
Status: RESOLVED DUPLICATE of bug 349405
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-17 17:24 UTC by Daniel Gryniewicz (RETIRED)
Modified: 2012-04-09 20:10 UTC (History)
0 users

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


Attachments
patch to allow a bi-arch gcc on i686 (toolchain-32bit-userland.patch,1.19 KB, patch)
2009-04-17 17:25 UTC, Daniel Gryniewicz (RETIRED)
Details | Diff
New toolchain.eclass patch with suggested changes (toolchain-32bit-userland.patch,1.36 KB, patch)
2009-04-21 14:52 UTC, Daniel Gryniewicz (RETIRED)
Details | Diff
Patch to allow 32/64-bit gcc on a 32bit host (toolchain-32bit-userland.patch,1.93 KB, patch)
2009-05-27 14:34 UTC, Daniel Gryniewicz (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Gryniewicz (RETIRED) gentoo-dev 2009-04-17 17:24:02 UTC
I'm in the process of developing a 32bit userland profile for amd64.  It generally works great, but it needs a bi-arch gcc in the i686 CHOST domain.  I have a patched toolchain.eclass that provides this.  Is there any way this could be applied to the main toolchain.eclass?
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-04-17 17:25:09 UTC
Created attachment 188701 [details, diff]
patch to allow a bi-arch gcc on i686
Comment 2 SpanKY gentoo-dev 2009-04-18 17:32:12 UTC
the last hunk looks good, thanks

as for the first hunk, how about:
if [[ ${CTARGET} == *linux* ]] && is_multilib &&
   [[ ${GCCMAJOR}.${GCCMINOR} > 4.2 ]]
then
    case $(tc-arch) in
        sparc|x86) confgcc="${confgcc} --enable-targets=all"
    esac
fi

try to keep the arch parsing logic in tc-arch to avoid duplication and/or missing cases
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-04-21 14:52:05 UTC
Created attachment 189049 [details, diff]
New toolchain.eclass patch with suggested changes

Okay, here's a new patch, incorporating your suggestions.
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-05-27 14:34:47 UTC
Created attachment 192600 [details, diff]
Patch to allow 32/64-bit gcc on a 32bit host

Here's the current patch I have.  It works great for me.  It incorporates the !crosscompile fix from a few days ago, and disables the default setting of i686 for multilib, since that breaks gcc -m64 without -march=nocona/core2/k8.
Comment 5 SpanKY gentoo-dev 2012-04-09 20:10:13 UTC
should be deployed now

*** This bug has been marked as a duplicate of bug 349405 ***