summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-June/005588.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2011-June/005588.html')
-rw-r--r--zarb-ml/mageia-dev/2011-June/005588.html256
1 files changed, 256 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-June/005588.html b/zarb-ml/mageia-dev/2011-June/005588.html
new file mode 100644
index 000000000..58925a83b
--- /dev/null
+++ b/zarb-ml/mageia-dev/2011-June/005588.html
@@ -0,0 +1,256 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] Cross compile x86_64 on i586 for icecream?
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Cross%20compile%20x86_64%20on%20i586%20for%20icecream%3F&In-Reply-To=%3C4DF72DA0.8050805%40colin.guthr.ie%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="005584.html">
+ <LINK REL="Next" HREF="005462.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] Cross compile x86_64 on i586 for icecream?</H1>
+ <B>Colin Guthrie</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Cross%20compile%20x86_64%20on%20i586%20for%20icecream%3F&In-Reply-To=%3C4DF72DA0.8050805%40colin.guthr.ie%3E"
+ TITLE="[Mageia-dev] Cross compile x86_64 on i586 for icecream?">mageia at colin.guthr.ie
+ </A><BR>
+ <I>Tue Jun 14 11:45:04 CEST 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="005584.html">[Mageia-dev] Cross compile x86_64 on i586 for icecream?
+</A></li>
+ <LI>Next message: <A HREF="005462.html">[Mageia-dev] [RPM] cauldron core/release biew-6.1.0-1.mga2
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#5588">[ date ]</a>
+ <a href="thread.html#5588">[ thread ]</a>
+ <a href="subject.html#5588">[ subject ]</a>
+ <a href="author.html#5588">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>'Twas brillig, and Colin Guthrie at 14/06/11 09:27 did gyre and gimble:
+&gt;<i> 'Twas brillig, and Christiaan Welvaart at 13/06/11 12:24 did gyre and
+</I>&gt;<i> gimble:
+</I>&gt;&gt;<i> On Mon, 13 Jun 2011, Colin Guthrie wrote:
+</I>&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> I'm not exactly a guru with icecream but is it possible to build a
+</I>&gt;&gt;&gt;<i> toolchain that can allow i586 nodes to compile x86_64 code?
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> If your question is about the toolchain, have you tried simply passing
+</I>&gt;&gt;<i> -m64 to gcc?
+</I>&gt;<i>
+</I>&gt;<i> OK, so for the record, this doesn't work.
+</I>&gt;<i>
+</I>&gt;<i> However I checked out our tool chain and the RPMs accept some handy
+</I>&gt;<i> arguments. Yay!
+</I>&gt;<i>
+</I>&gt;<i> Sadly they don't really work!
+</I>&gt;<i>
+</I>&gt;<i> I was able to build binutils via:
+</I>&gt;<i> rpmbuild --define &quot;cross x86_64&quot; --define &quot;_topdir $(pwd)&quot; -bb
+</I>&gt;<i> SPECS/binutils.spec
+</I>&gt;<i>
+</I>&gt;<i> But then I tried gcc via:
+</I>&gt;<i> rpmbuild --define &quot;cross_bootstrap x86_64&quot; --define &quot;_topdir $(pwd)&quot;
+</I>&gt;<i> -bb SPECS/gcc.spec
+</I>&gt;<i>
+</I>&gt;<i> (it needs to bootstrap to build glibc which can then be used to rebuild
+</I>&gt;<i> gcc again fully).
+</I>&gt;<i>
+</I>&gt;<i> Sadly this bombed out:
+</I>&gt;<i> /home/colin/Mageia/gcc/BUILD/gcc-4.5.2/obj-x86_64-mageia-linux-gnu/./gcc/xgcc
+</I>&gt;<i> -B/home/colin/Mageia/gcc/BUILD/gcc-4.5.2/obj-x86_64-mageia-linux-gnu/./gcc/
+</I>&gt;<i> -B/usr/x86_64-mageia-linux-gnu/bin/ -B/usr/x86_64-mageia-linux-gnu/lib/
+</I>&gt;<i> -isystem /usr/x86_64-mageia-linux-gnu/include -isystem
+</I>&gt;<i> /usr/x86_64-mageia-linux-gnu/sys-include
+</I>&gt;<i> --sysroot=/home/colin/Mageia/gcc/BUILD/gcc-4.5.2/obj-x86_64-mageia-linux-gnu/../sysroot
+</I>&gt;<i> -O2 -g -pipe -m32 -O2 -O2 -g -pipe -DIN_GCC
+</I>&gt;<i> -DCROSS_DIRECTORY_STRUCTURE -DNATIVE_CROSS -W -Wall -Wwrite-strings
+</I>&gt;<i> -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
+</I>&gt;<i> -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2
+</I>&gt;<i> -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc -I../../../../libgcc
+</I>&gt;<i> -I../../../../libgcc/. -I../../../../libgcc/../gcc
+</I>&gt;<i> -I../../../../libgcc/../include -I../../../../libgcc/config/libbid
+</I>&gt;<i> -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT
+</I>&gt;<i> _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c
+</I>&gt;<i> ../../../../libgcc/../gcc/libgcc2.c
+</I>&gt;<i> In file included from ../../../../libgcc/../gcc/tsystem.h:87:0,
+</I>&gt;<i> from ../../../../libgcc/../gcc/libgcc2.c:29:
+</I>&gt;<i> /home/colin/Mageia/gcc/BUILD/gcc-4.5.2/obj-x86_64-mageia-linux-gnu/./gcc/include-fixed/stdio.h:13:23:
+</I>&gt;<i> fatal error: sys/types.h: No such file or directory
+</I>&gt;<i> compilation terminated.
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> Now it seems that adding -Dinhibit_libc here works a treat, but I've no
+</I>&gt;<i> idea if this is appropriate. The files sys/types.h is included in the
+</I>&gt;<i> source but e.g. sys/syscall.h is not (this is subsequently needed if you
+</I>&gt;<i> fix the include path to point at the included lsb headers).
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> As I know nothing about the tool chain....
+</I>&gt;<i>
+</I>&gt;<i> Q1. Should we be setting -Dinhibit_libc during this bootstrap stage?
+</I>&gt;<i> Q2. Would it be better to use the lsb-headers instead and somehow find
+</I>&gt;<i> syscall.h?
+</I>&gt;<i> Q3. Am I doing something dumb?
+</I>
+
+Added <A HREF="https://bugs.mageia.org/show_bug.cgi?id=1794">https://bugs.mageia.org/show_bug.cgi?id=1794</A> on RTPs request.
+
+:<i>)
+</I>
+
+--
+
+Colin Guthrie
+mageia(at)colin.guthr.ie
+<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>
+
+Day Job:
+ Tribalogic Limited [<A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>]
+Open Source:
+ Mageia Contributor [<A HREF="http://www.mageia.org/">http://www.mageia.org/</A>]
+ PulseAudio Hacker [<A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>]
+ Trac Hacker [<A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>]
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="005584.html">[Mageia-dev] Cross compile x86_64 on i586 for icecream?
+</A></li>
+ <LI>Next message: <A HREF="005462.html">[Mageia-dev] [RPM] cauldron core/release biew-6.1.0-1.mga2
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#5588">[ date ]</a>
+ <a href="thread.html#5588">[ thread ]</a>
+ <a href="subject.html#5588">[ subject ]</a>
+ <a href="author.html#5588">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>