From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harley Laue Subject: Re: Still having a problem building elks kernel Date: Fri, 5 Mar 2010 15:47:57 -0600 Message-ID: References: <4B929115.7070201@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=IigGZShG63h3KVfJ9odtSqS+qORXpwFOxhYFTau+x7Y=; b=wQJmkSs6qNNToIwm6wFGh/xeAtgmigUYKtpMuXekQErpY/bxGfCG0XFp6Pj2cWBJi1 1VgYyc5R70gQmiXglBTtDslU8nFGtJaBEZ6ObRIqj7elJzT0sbI+YdamUjouQOP6I4Ga Q6/GjOoKZLIqg79R3VvW/JzkGlzRCvblTLsEk= In-Reply-To: <4B929115.7070201@gmail.com> Sender: linux-8086-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: linux-8086@vger.kernel.org On Sat, Mar 6, 2010 at 11:29 AM, Dieter R Kedrowitsch wrote: > With the help of a few folks on here I've gotten pretty far with buil= ding > the elks kernel, but it looks like I have one more problem before the= image > will build. =A0It seems there is a syntax error in the makefile ld86. > Has anyone else run into this? > > make[2]: Leaving directory `/usr/src/elks/arch/i86/drivers/block' > (cd ../.. ; ld86 -0 -i =A0 \ > =A0 =A0 =A0 arch/i86/boot/crt0.o arch/i86/boot/crt1.o \ > =A0 =A0 =A0 init/main.o kernel/kernel.a fs/fs.a lib/lib.a net/net.a > fs/minix/minixfs.a arch/i86/kernel/akernel.a arch/i86/lib/lib86.a > arch/i86/mm/mm.a =A0arch/i86/drivers/char/chr_drv.a > arch/i86/drivers/block/blk_drv.a \ > =A0 =A0 =A0 -t -M -o arch/i86/boot/system > System.tmp ; \ > =A0 =A0 =A0 sort -k4 System.tmp > System.map ; rm -f System.tmp ) > usage: ld86 [-03NMdimrstz[-]] [-llib_extension] [-o outfile] [-Ccrtfi= le] > =A0 =A0 =A0[-Llibdir] [-Olibfile] [-Ttextaddr] [-Ddataaddr] [-Hheapsi= ze] infile... > tools/build boot/bootsect boot/setup boot/system > boot/Image > Root device is (3, -128) > Non-Minix header of 'boot' > make[1]: *** [Image] Error 1 Sorry, I meant to get back to you sooner. I run into the exact same thing with Debian, but not Arch Linux. Here's the last little bit from Make on Arch which seems to work (I don't have the means to actually test it though) as86 -0 -o boot/crt0.o boot/crt0.s (cd ../.. ; ld86 -0 -i \ -t -M -o arch/i86/boot/system \ arch/i86/boot/crt0.o arch/i86/boot/crt1.o \ init/main.o kernel/kernel.a fs/fs.a lib/lib.a net/net.a fs/minix/minixfs.a arch/i86/kernel/akernel.a arch/i86/lib/lib86.a arch/i86/mm/mm.a arch/i86/drivers/char/chr_drv.a arch/i86/drivers/block/blk_drv.a \ > System.tmp ; \ sort -k4 System.tmp > System.map ; rm -f System.tmp ) tools/build boot/bootsect boot/setup boot/system > boot/Image Root device is (3, -128) Boot sector 512 bytes. Setup is 1596 bytes. System is 117788 B (58784 B code, 7728 B data and 51276 B bss) System is 66544 make[2]: Leaving directory `/home/harley/Source/elks-project/elks/arch/= i86' Obviously the ld86 is failing in Debian/Ubuntu, but like I said, I haven't looked into why yet other then the fact that it looks like "-t -M -o arch/i86/boot/system \" isn't in the Debian/Ubuntu's ld86's command for some reason... -- To unsubscribe from this list: send the line "unsubscribe linux-8086" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html