Page 1 of 2

Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 3:17 am
by TheBadBoy
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)

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 3:48 am
by Solar
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.

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 4:52 am
by TheBadBoy
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

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 5:08 am
by Solar
Have you bothered to take a look at the files yourself?

Code: Select all

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: Select all

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.

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 6:15 am
by TheBadBoy
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

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 6:50 am
by Solar
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.

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 7:14 am
by TheBadBoy
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>

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 7:50 am
by Solar
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.

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 8:02 am
by TheBadBoy
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

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 8:55 am
by Candy
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.

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 9:43 am
by TheBadBoy
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

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 10:47 am
by Firestryke31
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.

Re: Cygwin : error: no 8-bit type

Posted: Thu Jul 15, 2010 12:19 pm
by Combuster
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)

Re: Cygwin : error: no 8-bit type

Posted: Sat Jul 17, 2010 12:43 pm
by TheBadBoy
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

Re: Cygwin : error: no 8-bit type

Posted: Sat Jul 17, 2010 7:07 pm
by TheBadBoy
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