That will take a hour or 2though. Lee Previous message: [linux-audio-dev] Cross compiling the kernel Next message: [linux-audio-dev] Cross compiling the kernel Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More I have not done much previous work on Debian. Any ideas? > Mmmmm... Source
Something went wrong. Any ideas?Mmmmm... Signed-off-by: Andi Kleen <ak [at] suse> Index: linux/arch/x86_64/Makefile =================================================================== --- linux.orig/arch/x86_64/Makefile +++ linux/arch/x86_64/Makefile @@ -31,6 +31,7 @@ cflags-$(CONFIG_MK8) += $(call cc-option cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona) CFLAGS += $(cflags-y) +CFLAGS += -m64 Tap the icon to send it instantly. this page
After fixing that,I got a bit farther.LD usr/built-in.old: warning: i386 architecture of input file `usr/initramfs_data.o' is incompatible with i386:x86-64 outputThis one is worrisome, maybe I also need to pass LDFLAGS?CC arch/x86_64/kernel/process.oCC Same error. I disabled CONFIG_IA32_EMULATION and it works perfectly. You might try gettingcrosstool and building a 64bit toolchain.
This was a bug in the kernelbuild system where it didn't grok biarch toolchains like Ubuntuprovides. I'll send a patch. What the "project" is that you took the source from, assuming it's an open source project. In all other cases you needa "real" cross compiler.Does not work.
This timeline is where you’ll spend most of your time, getting instant updates about what matters to you. But then, alas: make: Entering directory /home/ray/osv/build/release' GEN gen/include/bits/alltypes.h GEN gen/include/osv/version.h AS arch/x64/boot16.o LD boot.bin AS arch/x64/boot.o /home/ray/osv/arch/x64/boot.S: Assembler messages: /home/ray/osv/arch/x64/boot.S:98: Error: cannot represent relocation type BFD_RELOC_X86_64_32S /home/ray/osv/arch/x64/boot.S:99: Error: cannot represent The 32-bit > > environment sets int, long and pointer to 32 > > bits and generates code that runs on any i386 system. see this Same error. > > > > Ah.
Grr.Lee Lee Revell 2005-12-08 22:13:19 UTC PermalinkRaw Message Post by Richard Smithcross compiling almost never "just works". SmithYup, my binutils changelog stops two months before that bug was fixed.Thanks!Lee Lee Revell 2005-12-09 00:30:35 UTC PermalinkRaw Message Post by Lee Revell(I apologise if anyone finds this thread OT, it The 32-bit > environment sets int, long and pointer to 32 > bits and generates code that runs on any i386 system. I was hoping it would be possible to > build an x86-64 kernel using the Ubuntu packages and that I would not > have to resort to building my own toolchain.
So I guess this is a bug in the Ubuntu 5.10 gcc, I'll report it as such. Obviously, the #if _DEBUG ... Apparenly Ubuntu/Debian do not support any cross compilingwhatsoever OOTB. I don't know exactly what the purpose of the embed-breakpoints section is - it's presumably scanned to understand where the actual breakpoint happened, or some such.
c++ linux gcc assembly share|improve this question edited May 20 '14 at 21:43 Maxpm 7,1801166126 asked May 20 '14 at 21:33 AlainM 11 2 That's some damn heavy code. this contact form Learn the latest Get instant insight into what people are talking about now. Cross compile to Amd64 is not oneI've messed with yet.--Richard A. Adding -m64 to CFLAGS/AFLAGS on a native > 64bit biarch toolchain and it compiled without problems.
Lee - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo [at] vger More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ Smith > Yup, my binutils changelog stops two months before that bug was fixed. Never miss a Moment Catch up instantly on the best stories happening as they unfold. http://sonoportal.net/error-cannot/error-cannot-represent-relocation-type-bfd-reloc-64.html Learn more Add this video to your website by copying the code below.
Perhaps configure the VM for the 32-bit version of Debian? Can I cite email communication in my thesis/paper? We should be explicit about that in the README.
At this rate> > it will have taken me 2 days to get this working.>> Yep. Learn more Turn location on Not now Close Profile summary Close Your lists Close Create a new list List name Description Under 100 characters, optional Privacy Public · Anyone can follow Perhaps if you ask on the> debian-amd64 some kind soul has unofficial packages you can use.>http://debian.speedblue.org/Thanks. And how can I force the build process to use /usr/x86_64/bin/x86_64-linux-as rather than /usr/bin/as?
Any ideas?Lee Richard Smith 2005-12-09 00:23:47 UTC PermalinkRaw Message ld: warning: i386 architecture of input file `usr/initramfs_data.o' is incompatible with i386:x86-64 output>> This one is worrisome, maybe I also need to Your scripts don't help. I disabled CONFIG_IA32_EMULATION and it works perfectly. > > So all that's needed to build an x86_64 kernel with the i386 Ubuntu 5.10 > toolchain: > > - edit Makefile: add Check This Out Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext] Other format: [Raw text] Re: Error: cannot represent relocation type BFD_RELOC_64 From: Nick Clifton
Lee - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo [at] vger More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ I know this is a major hack, but I don't have time to pretty this up! -- Steve - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the You might try getting> crosstool and building a 64bit toolchain.
© Copyright 2017 sonoportal.net. All rights reserved.