Get error trying to compile the kernel

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.
HJED
Member
Member
Posts: 61
Joined: Tue Sep 04, 2007 4:18 am
Location: the world wide web
Contact:

Post by HJED »

alright i got it running now i get this error

Code: Select all

owner@HARRYS-VISTA /c/cross/binutils-src
$ configure --prefix=install --target=i386-elf --disable-nls -v
configure: error: can not find sources in . or ..
what am i doing wrong?
also what type of elf (i386 , i586, ect) should i use?
i am witting my kernel (based on above tutorial) 4 a intel IA-32e type prossesore if that helps
.................................. um what should i put here .............................?..........................................
..... :D................
HJED
Member
Member
Posts: 61
Joined: Tue Sep 04, 2007 4:18 am
Location: the world wide web
Contact:

Post by HJED »

plz help i am a noob and i don`t no what i am doing wrong :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
.................................. um what should i put here .............................?..........................................
..... :D................
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

plz help i am a noob and i don`t no what i am doing wrong Crying or Very sad Crying or Very sad Crying or Very sad Crying or Very sad Crying or Very sad Crying or Very sad Crying or Very sad Crying or Very sad Crying or Very sad Crying or Very sad
You know you posted that followup only 48 minutes later, don't you?!?!
HJED
Member
Member
Posts: 61
Joined: Tue Sep 04, 2007 4:18 am
Location: the world wide web
Contact:

Post by HJED »

yes i posted it because no one was repling
.................................. um what should i put here .............................?..........................................
..... :D................
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

I gave you the answer in the other thread, but since you asked for it:
READ READ READ READ and READ AGAIN
"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 ]
HJED
Member
Member
Posts: 61
Joined: Tue Sep 04, 2007 4:18 am
Location: the world wide web
Contact:

Post by HJED »

i did read the document i dose not explain any of the above questions
.................................. um what should i put here .............................?..........................................
..... :D................
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

I did read the document i dose not explain any of the above questions
Apparently not:
1. it told you to use Cygwin, you didn't read it.
2. it gave you the exact commands, you didn't copy it.
3. it provided you with an appropriate target, you still bother to ask.
So I stick with my opinion that you should RTFM. Again.

After all that, I even wonder wether you read my private message :shock:
"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 ]
HJED
Member
Member
Posts: 61
Joined: Tue Sep 04, 2007 4:18 am
Location: the world wide web
Contact:

Post by HJED »

PostPosted: 06 09 2007 2:54 am Post subject:

You can't run configure from a Windows (or DOS) command prompt.
If you're using MinGW you should try installing MSYS (download here) and using the included shell to run it.
i did do that which is an equvilant of cywin configure runs but it gets an error
aka different problem?
can some1 plz help me
.................................. um what should i put here .............................?..........................................
..... :D................
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post by frank »

Are you sure you extracted all of the files?
HJED
Member
Member
Posts: 61
Joined: Tue Sep 04, 2007 4:18 am
Location: the world wide web
Contact:

Post by HJED »

yes
i downloaded the gcc soures from the MinGW site is that that a problem?
i downloaded
binuntils.(add lots of numbers her).src
gcc_core.src or somthing like that and the g++ src
.................................. um what should i put here .............................?..........................................
..... :D................
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post by frank »

Maybe you should try the ones at http://ftp.gnu.org/gnu/
HJED
Member
Member
Posts: 61
Joined: Tue Sep 04, 2007 4:18 am
Location: the world wide web
Contact:

Post by HJED »

arn`t those for linux?
becouse i am using widows
.................................. um what should i put here .............................?..........................................
..... :D................
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Post by pcmattman »

HJED wrote:arn`t those for linux?
becouse i am using widows
Source is platform independent... If you're using Cygwin (mingw has some issues with osdev) then you can build and run programs that are made to run on *nix systems anyway - I know because I run squidGuard without any problems and I built that from source :D.
HJED
Member
Member
Posts: 61
Joined: Tue Sep 04, 2007 4:18 am
Location: the world wide web
Contact:

Post by HJED »

thanks now atlest it runs
but i get this error

Code: Select all

owner@HARRYS-VISTA /c/cc/binutils-2.17
$ configure --target=$TARGET --prefix=$PREFIX --enable-64-bit-bfd
loading cache ./config.cache
checking host system type... i686-pc-mingw32
checking target system type... x86_64-pc-elf
checking build system type... i686-pc-mingw32
checking for a BSD compatible install... /bin/install -c
checking whether ln works... yes
checking whether ln -s works... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
my path is

Code: Select all

$ $PATH
sh: .:/usr/local/bin:/mingw/bin:/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Program: No such file or directory
what am i doing wrong this time y can`t it find my compiler?
PS i am using MSYS as a comandline and MinGW as my compiler set
.................................. um what should i put here .............................?..........................................
..... :D................
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

This same problem was in another thread.... *sigh*

http://www.osdev.org/phpBB2/viewtopic.php?t=14894

The last post tells you what you need to get..... :roll:
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply