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.
i recently ran into a problem with my code, and upon searching through the forums, i found the solution was a cross compiler. so i set off trying to make a cross compiler (AGAIN!!!) and all was fine. until i reached the configuration of the gcc package.
i am following the wiki tutorial for the cross compiler, and the first section (binutils) went perfect. all things compiled and configured fine. but then upon running the gcc configuration file, i get the following error:
../gcc-4.2.4/configure: line 7498: cmp: command not found
a little research i did shows that it is a file comparison program. what i dont understand is how there is no cmp program in the cygwin application. is there a cmp.exe program for the cygwin shell?(hidden in the depths of teh interweb) or am i doomed? im currently searching through the cygwin install package to see if there is anything there.
i have seen so many people say "oh yes, it compiled fine for me in cygwin under windows!" but so far i see no evidence.
i havent finished migrating yet. i have my cross compiler set up. it worked first time. just followed the wiki tutorial for making the cross compiler. but now i need to replace the current gcc with my cross compiler, but cant figure out how havent spent much time on it though to be honest. been getting my website on the go
if you manage to migrate successfully, please let me know? so i have someone to fall back on lol!
Those errors are actually new to me... and no, it doesn't have anything to do with Cygwin, actually the Tutorial was written for Cygwin and generalized only later.
Right now I don't have the time to try to reproduce your errors, but:
xDDunce wrote:but now i need to replace the current gcc with my cross compiler, but cant figure out how
thanks solar, but that doesnt work. if i do that, then every time i run gcc from the terminal then it runs the xcode gcc. also if i use the -b or -V options, i get an error saying either: -b must come at beginning of command (for -b) and for -V it tries to run some imaginary binary from where the xcode gcc tools are installed. if i use both then i just get the -b error again.
The wiki says to add /usr/cross/bin to your PATH. That directory should contain files named [TARGET]-gcc, [TARGET]-as etc, with [TARGET] being i586-pc-elf or somesuch.
"gcc" should still invoke /usr/bin/gcc, since there is no "gcc" in /usr/cross/bin. Not the last dozen times I tried...
Every good solution is obvious once you've found it.
well i just spent half hour trying to work it out, and i got it running but... my source doesn't compile because it cannot see my include files for some strange reason.
i have set up PATH by calling export PATH= etc. etc... and all of these commands return the same errors. they run, but they cannot find any of my includes, despite me giving them the FULL PATH to their location. what is going wrong??
have you checked that that directory actually exists?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
ok, so im almost finished. i have gcc working, but whenever i run nasm it claims not to be able to find the file... is there a way to pause the bash execution like in windows batch files? i think it's trying to do everything faster than the USB controller can keep up with (keeping my OS on a usb stick so i never leave it behind and can work on it around college).