OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:35 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 3:17 am 
Offline
User avatar

Joined: Thu Jul 15, 2010 3:00 am
Posts: 10
Hi guys ,
i don't now if i'm on the correct forum or not ... :roll:
i just downloaded all packages as mentioned http://wiki.osdev.org/GCC_Cross-Compiler and done all the steps about setup and other things
but when i type "make all" , bash start working as expected until it displays this error message :
checking for type equivalent to int8_t... configure: error: no 8-bit type

the hole bash text after typing the "make all" command is in attachement for those who want it

please help me

(sorry for my bad english)


Attachments:
cygwinerr.txt [6.25 KiB]
Downloaded 71 times

_________________
The WORLD is RELATIVE .
http://en.wikipedia.org/wiki/Theory_of_relativity
Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 3:48 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
As always when autoconfig balks at something, the actually more interesting output is in the file config.log. About 50% of the time, the error message you see on the screen tells only half of the story.

config.log contains your configure parameters (so we can check *them* for anything unusual), and lists exactly how autoconfig tried to check for a int8_t, and why it thinks there isn't any.

PS: Please, no colored text. Some of us use differently colored themes.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 4:52 am 
Offline
User avatar

Joined: Thu Jul 15, 2010 3:00 am
Posts: 10
ah , sorrt about the coloring stuff i didn't now #-o

there one little detail : there is 3 directorie in my /build-binutils dir each dir contain a file
so i renamed them like this : dirname-config.log
i've zipped the 3 files
hope this may help you help me :D

thanks man


Attachments:
cygwin-log.zip [32.54 KiB]
Downloaded 96 times

_________________
The WORLD is RELATIVE .
http://en.wikipedia.org/wiki/Theory_of_relativity
Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 5:08 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
Have you bothered to take a look at the files yourself?

Code:
configure:15938: cl -o conftest.exe -g   conftest.c  >&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

Command line warning D4002 : ignoring unknown option '-g'
conftest.c
Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.


And behold, a second look at your configure output shows (check first and last line specifically):

Code:
checking for i686-pc-cygwin-gcc... cl
checking for C compiler default output file name... conftest.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... obj
checking whether we are using the GNU C compiler... no


So, either you don't have GCC installed, or you have tweaked your system to prefer the MS compiler over GCC.

The tutorial assumes you're using GCC.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 6:15 am 
Offline
User avatar

Joined: Thu Jul 15, 2010 3:00 am
Posts: 10
sorry for late response ,
i have installed Visual Studios 6.0 (vb , vc++ , FoxPro ...) a few days ago
and yesterday i installed cygwin + make + + bison + flex but not gcc
when i install gcc it displays another error message at the binutils config phase
it looks that the config file is confused between gcc that came with cygwin and the one i have installed

dsl I'm a beginner and a little confused

the file in attachment contain the text that apears in bash (in file cygwinerr.txt) and the config.log
there is 1 log file only this time .

thanks for your help


Attachments:
Cygwin-gcc-err.zip [3.88 KiB]
Downloaded 73 times

_________________
The WORLD is RELATIVE .
http://en.wikipedia.org/wiki/Theory_of_relativity
Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 6:50 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
Well, it seems your environment is pretty much FUBAR. In your Cygwin shell, you now have three compilers in your executable path - the Microsoft one, the MinGW one, and the Cygwin GCC.

Well, what could I say?

Clean up!

If you don't know how to do that, I seriously suggest you refrain from trying your hand at OS development, and instead do some more application development until you become competent in handling your toolchains.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 7:14 am 
Offline
User avatar

Joined: Thu Jul 15, 2010 3:00 am
Posts: 10
notice that i'm a begginer to os devlopement but
i have a collection of program that i've done in vb & asm (nasm ,fasm , masm)
i'm now cleaning-up my system
ok ,thanks anyway , but if yuo can help me more just to get started , that would be great
this is a great forum =D>

_________________
The WORLD is RELATIVE .
http://en.wikipedia.org/wiki/Theory_of_relativity


Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 7:50 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
This is a subject of dispute among the regulars on this board - whether or not it's a wise decision to do the hardest thing there is in software engineering (an operating system) in an environment you're not proficiently familiar with. Although I was pretty "green" myself when I set out on my OS project those long nine years ago, today I am a firm believer that you shouldn't.

Think a while about whether it wouldn't be more interesting to learn C/C++ in userspace, where you don't need emulators, failures don't generate reboots and the toolchain support is much, much better.

If you still think you should go for OS development without further ado, try hard to put as much effort into finding your solutions yourself as possible. Some around here react poorly to questions that could've been answered by ten minutes of research. (I mean, even poorer than I do. 8) )

If you do show that effort, rest assured you will find help and guidance here should you meet a roadblock.

_________________
Every good solution is obvious once you've found it.


Last edited by Solar on Thu Jul 15, 2010 8:05 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 8:02 am 
Offline
User avatar

Joined: Thu Jul 15, 2010 3:00 am
Posts: 10
OK thanks Solar you give me a big help
so now I've found the wrong thing...
it was the vc98/bin directory which contain cl.exe , and it was in my path variable
anyway thanks man
one more thing , I'm very familiar with C/C++ but I've not wrote much apps in these languages ...
so , yes , I'll try to go ahead and put the situations like this out of my way

_________________
The WORLD is RELATIVE .
http://en.wikipedia.org/wiki/Theory_of_relativity


Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 8:55 am 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 11:33 pm
Posts: 3882
Location: Eindhoven
TheBadBoy wrote:
I'm very familiar with C/C++ but I've not wrote much apps in these languages ...


C++ is a language where "familiar" can mean very different things. Grouping C and C++ gives me the feeling you should study up on regular software more first. Make a webserver, mail client, minor compiler and such. Kernel-space <any language> assumes you know <any language> incredibly well and then gives you your hands full of new stuff.


Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 9:43 am 
Offline
User avatar

Joined: Thu Jul 15, 2010 3:00 am
Posts: 10
Ok guys
i'm sure your more expert than me in this things i'll take your advices gracefully

it seem that the clean-up/resetup works fine , but i'm leaving , i'll do some other things to get more expert as Solar and Candy says
thanks guys

_________________
The WORLD is RELATIVE .
http://en.wikipedia.org/wiki/Theory_of_relativity


Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 10:47 am 
Offline
Member
Member
User avatar

Joined: Sat Nov 29, 2008 1:07 pm
Posts: 550
Location: Throw a dart at central Texas
Okay, I know this has nothing to do with 99% of this thread, but...

TheBadBoy wrote:
i have installed Visual Studios 6.0 (vb , vc++ , FoxPro ...) a few days ago


Eeewww. Use at very least VC++08 Express. It's free and far more modern standards compliant than 6.0. They even have 2010 Express out, though the IDE for that is a bit bloated.

_________________
Owner of Fawkes Software.
Wierd Al wrote:
You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?


Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Thu Jul 15, 2010 12:19 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
I'm more worried about the fact that he installed a compiler a few days ago.

Did you know....
Image
(I have the idea this applies to you)

_________________
"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 ]


Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Sat Jul 17, 2010 12:43 pm 
Offline
User avatar

Joined: Thu Jul 15, 2010 3:00 am
Posts: 10
you're right guys
it was the Vc++ 6.0 that confuses with the other (cl.exe) .
i removed the vc++ path from my path variable and reinstalled cygwin correctly , and all worked like a charm
but now i'm moving to get more experienced with c++ .
thanks guys

_________________
The WORLD is RELATIVE .
http://en.wikipedia.org/wiki/Theory_of_relativity


Top
 Profile  
 
 Post subject: Re: Cygwin : error: no 8-bit type
PostPosted: Sat Jul 17, 2010 7:07 pm 
Offline
User avatar

Joined: Thu Jul 15, 2010 3:00 am
Posts: 10
Hi guys!
I've found a book in my school's library teaching the C language , so I've started reading and discovered many new things .To practice , I've took a look at the C bare bones tuto , and wrote a kernel that does 2 things
Clear the screen , Print a hello message in protected mode
it's just to practice . it's loaded by grub .
so i was thinking if someone of you may take a look at my source code and tell me some thins about my programming/writing manner , some advices ....
so the source and the an boot image are included in the attachment .
Thanks guys


Attachments:
ngos.rar [56.77 KiB]
Downloaded 95 times

_________________
The WORLD is RELATIVE .
http://en.wikipedia.org/wiki/Theory_of_relativity
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group