Page 2 of 2
Posted: Sat Dec 29, 2007 10:42 pm
by hazardoxide
hmm. i solved all the problems, but when i did, i got 2 more.
Code: Select all
c:/djgpp/tmp/ccfQT6v6.s: Assembler messages:
c:/djgpp/tmp/ccfQT6v6.s:28: Error: suffix or operands invalid for 'out'
what now.
p.s. i apologize for all the questions.
Posted: Sun Dec 30, 2007 4:12 am
by Combuster
combuster, im using djgpp, so yes. gcc.
Read again: djgpp is
not a gcc
cross-compiler.
Posted: Sun Dec 30, 2007 5:41 am
by Steve the Pirate
lukem_95 wrote:then you need to include GRUB in your image...
i have a very round-about way of making iso's, as im using a windows platform.
what i do:
+ Compile the source into kernel.bin
+ Use this + grub in VFD (virtual floppy driver) for testing
+ Save this as .img
+ Using MagicISO take the boot code from the .img, and add the boot folder for grub, along with kernel.bin to a new bootable .iso
+ Save and burn to disk using Nero
Code: Select all
cp /usr/lib/grub/i386-pc/stage2_eltorito image/boot/grub
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o sos.iso image
Then double click to burn...
Posted: Mon Dec 31, 2007 1:55 am
by hazardoxide
hmm... i got everytihng to compile, but when linking, if i comile start.asm as -f aout, ld says its unrocognized. if i compile start.asm as -f elf, ld says cannot perform PE operation.
Posted: Mon Dec 31, 2007 3:53 am
by Combuster
The Wiki wrote: Why an OS developer should build a cross-compiler
(...)
* ...Cygwin complains about "PE operation on non-PE file"
For the last time:
GCC Cross-Compiler.
May I also note that this is a well known issue and that the reason you asked only indicates that you didn't bother to spend some time solving the problem yourself. Keep in mind that if you are unable to use google and everything properly then your attempts at writing an OS are destined to fail as well.