summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-June/005584.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2011-June/005584.html')
-rw-r--r--zarb-ml/mageia-dev/2011-June/005584.html255
1 files changed, 255 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-June/005584.html b/zarb-ml/mageia-dev/2011-June/005584.html
new file mode 100644
index 000000000..36f7a1b6f
--- /dev/null
+++ b/zarb-ml/mageia-dev/2011-June/005584.html
@@ -0,0 +1,255 @@
+<!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=%3C4DF71B77.1090901%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="005527.html">
+ <LINK REL="Next" HREF="005588.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=%3C4DF71B77.1090901%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 10:27:35 CEST 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="005527.html">[Mageia-dev] Cross compile x86_64 on i586 for icecream?
+</A></li>
+ <LI>Next message: <A HREF="005588.html">[Mageia-dev] Cross compile x86_64 on i586 for icecream?
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#5584">[ date ]</a>
+ <a href="thread.html#5584">[ thread ]</a>
+ <a href="subject.html#5584">[ subject ]</a>
+ <a href="author.html#5584">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>'Twas brillig, and Christiaan Welvaart at 13/06/11 12:24 did gyre and
+gimble:
+&gt;<i> On Mon, 13 Jun 2011, Colin Guthrie wrote:
+</I>&gt;<i>
+</I>&gt;&gt;<i> I'm not exactly a guru with icecream but is it possible to build a
+</I>&gt;&gt;<i> toolchain that can allow i586 nodes to compile x86_64 code?
+</I>&gt;<i>
+</I>&gt;<i> If your question is about the toolchain, have you tried simply passing
+</I>&gt;<i> -m64 to gcc?
+</I>
+OK, so for the record, this doesn't work.
+
+However I checked out our tool chain and the RPMs accept some handy
+arguments. Yay!
+
+Sadly they don't really work!
+
+I was able to build binutils via:
+ rpmbuild --define &quot;cross x86_64&quot; --define &quot;_topdir $(pwd)&quot; -bb
+SPECS/binutils.spec
+
+But then I tried gcc via:
+ rpmbuild --define &quot;cross_bootstrap x86_64&quot; --define &quot;_topdir $(pwd)&quot;
+-bb SPECS/gcc.spec
+
+(it needs to bootstrap to build glibc which can then be used to rebuild
+gcc again fully).
+
+Sadly this bombed out:
+/home/colin/Mageia/gcc/BUILD/gcc-4.5.2/obj-x86_64-mageia-linux-gnu/./gcc/xgcc
+-B/home/colin/Mageia/gcc/BUILD/gcc-4.5.2/obj-x86_64-mageia-linux-gnu/./gcc/
+-B/usr/x86_64-mageia-linux-gnu/bin/ -B/usr/x86_64-mageia-linux-gnu/lib/
+-isystem /usr/x86_64-mageia-linux-gnu/include -isystem
+/usr/x86_64-mageia-linux-gnu/sys-include
+--sysroot=/home/colin/Mageia/gcc/BUILD/gcc-4.5.2/obj-x86_64-mageia-linux-gnu/../sysroot
+ -O2 -g -pipe -m32 -O2 -O2 -g -pipe -DIN_GCC
+-DCROSS_DIRECTORY_STRUCTURE -DNATIVE_CROSS -W -Wall -Wwrite-strings
+-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
+-Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2
+-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc -I../../../../libgcc
+-I../../../../libgcc/. -I../../../../libgcc/../gcc
+-I../../../../libgcc/../include -I../../../../libgcc/config/libbid
+-DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT
+_muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c
+../../../../libgcc/../gcc/libgcc2.c
+In file included from ../../../../libgcc/../gcc/tsystem.h:87:0,
+ from ../../../../libgcc/../gcc/libgcc2.c:29:
+/home/colin/Mageia/gcc/BUILD/gcc-4.5.2/obj-x86_64-mageia-linux-gnu/./gcc/include-fixed/stdio.h:13:23:
+fatal error: sys/types.h: No such file or directory
+compilation terminated.
+
+
+
+Now it seems that adding -Dinhibit_libc here works a treat, but I've no
+idea if this is appropriate. The files sys/types.h is included in the
+source but e.g. sys/syscall.h is not (this is subsequently needed if you
+fix the include path to point at the included lsb headers).
+
+
+As I know nothing about the tool chain....
+
+ Q1. Should we be setting -Dinhibit_libc during this bootstrap stage?
+ Q2. Would it be better to use the lsb-headers instead and somehow find
+syscall.h?
+ Q3. Am I doing something dumb?
+
+Cheers
+
+Col
+
+--
+
+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="005527.html">[Mageia-dev] Cross compile x86_64 on i586 for icecream?
+</A></li>
+ <LI>Next message: <A HREF="005588.html">[Mageia-dev] Cross compile x86_64 on i586 for icecream?
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#5584">[ date ]</a>
+ <a href="thread.html#5584">[ thread ]</a>
+ <a href="subject.html#5584">[ subject ]</a>
+ <a href="author.html#5584">[ 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>