Gentoo Archives: gentoo-ppc-user

From: Christian Groessler <chris@×××××××××.org>
To: gentoo-ppc-user@l.g.o
Subject: [gentoo-ppc-user] 32bit user mode, want to compile 64bit programs
Date: Mon, 10 Feb 2014 08:00:17
Message-Id: 52F88704.2030805@groessler.org
1 Hi,
2
3 I'm new to gentoo and I've installed 64bit kernel and 32bit userland on
4 a PowerMac G5.
5
6 Now I want to compile a program as 64bit.
7
8 $ gcc -m64 -o hello hello.c
9 In file included from /usr/include/features.h:400:0,
10 from /usr/include/stdio.h:27,
11 from hello.c:1:
12 /usr/include/gnu/stubs.h:11:27: fatal error: gnu/stubs-64.h: No such
13 file or directory
14 compilation terminated.
15 $
16
17
18 I assume, I'm missing the 64bit version of glibc (and maybe other libs).
19
20 How do I install 64bit versions of selected libraries? I don't want to
21 switch to 64bit userland,
22 I just want to have the ability to compile some of my programs as 64bit.
23
24 regards,
25 chris

Replies

Subject Author
Re: [gentoo-ppc-user] 32bit user mode, want to compile 64bit programs nello martuscielli <ppc.addon@×××××.com>