at my attemp of compile digos, I got this error, how do I compile my digos of 32bits kernel using 64 bits gcc under ubuntu 9.04 64bits ?
ld: i386 architecture of input file `strtoul.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `pci32.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `cmd.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `svga.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `svgalib.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `gui.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `guiapp1.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `dia.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `kstart.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `lib.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `pci32a.o' is incompatible with i386:x86-64 output
?? any help please?
ld of gcc 64
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: ld of gcc 64
-m32
EDIT: specifically on GCC.
EDIT: specifically on GCC.
-
- Member
- Posts: 199
- Joined: Sat Jun 28, 2008 6:44 pm
Re: ld of gcc 64
For any multilib setup, CFLAGS += -m32 and LDFLAGS += -m elf_i386. This will compile correctly.
Otherwise you will need a crosscompiler.
Otherwise you will need a crosscompiler.