Gentoo Archives: gentoo-ppc-user

From: nello martuscielli <ppc.addon@×××××.com>
To: gentoo-ppc-user@l.g.o
Subject: Re: [gentoo-ppc-user] 32bit user mode, want to compile 64bit programs
Date: Tue, 11 Feb 2014 19:23:50
Message-Id: CABMX=WxoDJy4mFBJpbgBQ20aCrmO5w6SeVdrVOL58+mcBc790A@mail.gmail.com
In Reply to: [gentoo-ppc-user] 32bit user mode, want to compile 64bit programs by Christian Groessler
1 you cannot do it... or you could give a try installing a 64bit chroot
2
3 On Mon, Feb 10, 2014 at 9:00 AM, Christian Groessler
4 <chris@×××××××××.org> wrote:
5 > Hi,
6 >
7 > I'm new to gentoo and I've installed 64bit kernel and 32bit userland on a
8 > PowerMac G5.
9 >
10 > Now I want to compile a program as 64bit.
11 >
12 > $ gcc -m64 -o hello hello.c
13 > In file included from /usr/include/features.h:400:0,
14 > from /usr/include/stdio.h:27,
15 > from hello.c:1:
16 > /usr/include/gnu/stubs.h:11:27: fatal error: gnu/stubs-64.h: No such file or
17 > directory
18 > compilation terminated.
19 > $
20 >
21 >
22 > I assume, I'm missing the 64bit version of glibc (and maybe other libs).
23 >
24 > How do I install 64bit versions of selected libraries? I don't want to
25 > switch to 64bit userland,
26 > I just want to have the ability to compile some of my programs as 64bit.
27 >
28 > regards,
29 > chris
30 >
31 >
32
33
34
35 --
36 my blog: http://linuxpowerpc.blogspot.com
37 --
38 Power Mac G4 AGP 450MHz - CRUX PPC (32bit)

Replies

Subject Author
Re: [gentoo-ppc-user] 32bit user mode, want to compile 64bit programs Christian Groessler <chris@×××××××××.org>