FAQ's DJGPP ELF Instructions

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Jamie Thompson

FAQ's DJGPP ELF Instructions

Post by Jamie Thompson »

II tried this months ago and failed miserably :'( , but now Ive decided to try again, with slightly more success :)  (More success being defined as not crashing :-/ )

However, when following your instructions using the current set of tools, I get the error "E:\bin\bash.EXE: not COFF (Check for viruses)" whenever I try to execute ./configure

I have the generic sources for BinUtils 2.11, and the current (V2) set of DJGPP tools (Bash, flex, bison etc).

Any/all help is greatly appreciated.

PS, I'm running Win2K.
Zero

Re: FAQ's DJGPP ELF Instructions

Post by Zero »

You can do it !  ;D
Bart Grantham

Re: FAQ's DJGPP ELF Instructions

Post by Bart Grantham »

Try looking here:

http://www.multimania.com/placr/binutils.html

I struggled with the same thing myself (DJGPP under win2k) until I broke down and emailed df and he gave me that URL.
Jamie

Re: FAQ's DJGPP ELF Instructions

Post by Jamie »

Thanks for the suggestion. I already found that link through my research, but I was trying to get things setup so I could build new tools when new upadtes become availible.

Just have to bit the bullet I guess.
E:o(
Jamie

Re: FAQ's DJGPP ELF Instructions

Post by Jamie »

Well I finally managed it.

[glow=yellow,2,300]Halleluiah[/glow]
I'm back at my parents house for easter (and bored out of my wits without my machine to play with), so I decided to give this old chestnut a go on their box.

Well, using the latest sources and packages, I managed it...just.

Firstly, I had to download a lot more GNU utilities than I first thought, I had to get the fileutils, the diffutils, the textutils, as well as a few other little tools I was missing.

After i got rid of all the command not found messages, I then had some wonderful segfaults to deal with. These have a documented bodge on the djgpp site which involves patching them to fix a address wrapping bug, (I had to patch sed and grep).  This should be fixed by the next release, but currently (2.03) seems to ship with them still, (If 2.04 is shipping now by default, ignore this whole section).

Following that, there were some real freaky problems building LD, (It was trying to invoke ylwrap with an empty string ??? ).  I had to solve these by manually editing the makefile that configure had produced and hardcoding the bison command line into it instead of the variables it normally uses.

Funny thing is, everything else built fine, even the other binutils. Strange.

Still, I thought I'd share this with you lot in case anyone else is having problems. ;D

Finally, world domination can begin............

[glow=red,5,600] 8)mwhahahahahahahahahaha 8)[/glow]
Kernel Panic

Re: FAQ's DJGPP ELF Instructions

Post by Kernel Panic »

BTW, I also rebuilt binutils (if that's what you're talking about) some time ago. If anyone wants the binaries, they are at [url]elfbinutils.narod.ru[/url] along with some instructions on how to set them up.
Post Reply