[?]Help Making OS [?] (Linker Error)

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.
User avatar
JackScott
Member
Member
Posts: 1035
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Mastodon: https://aus.social/@jackscottau
Matrix: @JackScottAU:matrix.org
GitHub: https://github.com/JackScottAU
Contact:

Re: [?]Help Starting OS [?]

Post by JackScott »

GeniusCobyWalker wrote:Thanks for the links Combuster sorry that I haven't read them before.
To be honest, I don't think that's something I'd be admitting to...
User avatar
JackScott
Member
Member
Posts: 1035
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Mastodon: https://aus.social/@jackscottau
Matrix: @JackScottAU:matrix.org
GitHub: https://github.com/JackScottAU
Contact:

Re: [?]Help Starting OS [?]

Post by JackScott »

It's not that the Genius need not apply (he could be a member of MENSA, for all we know). It's just that it's extrememly arrogant.
Socrates wrote:Wisest is she who knows she does not know
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: [?]Help Starting OS [?]

Post by Troy Martin »

Ubuntu i386 AMD64
Does anybody know how to start a project for this in Code::Blocks?
(Unfamiliar with Ubuntu's file system)
I call troll on this one, especially since the VFS provides a *cough*windows-like*cough* simple way of accessing and saving files. How can you not get that??

LOCK THREAD PLZ!
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
GeniusCobyWalker
Member
Member
Posts: 65
Joined: Mon Jan 12, 2009 4:17 pm

Re: [?]Help Starting OS [?]

Post by GeniusCobyWalker »

I just need help whats wrong with that?

Genius Coby Walker was a GMail Suggestion :roll:

Also I think this is appropriate, I want to learn to make an OS.
:( Kinda don't appreciate "not Smart" (Not trying to brag)
I know how to program in 14 programming languages (Signiture)
I can soldier and build Analog/ Digital Circuits
I have built a Video Game System from discrete analog/ digital curcuits
(LEDs, NTSC Video, Analog Sound, Joystick/Button input, Reset button, Programming Port)
I know how to use fully use Blender (Most Advanced 3d Modeler)
Green screening and Video Editing (Adobe After Effects)

Next step is making an OS
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
ru2aqare
Member
Member
Posts: 342
Joined: Fri Jul 11, 2008 5:15 am
Location: Hungary

Re: [?]Help Starting OS [?]

Post by ru2aqare »

GeniusCobyWalker wrote:Also I think this is appropriate, I want to learn to make an OS.
:( Kinda don't appreciate "not Smart" (Not trying to brag)
I know how to program in 14 programming languages (Signiture)

Next step is making an OS
If you are that smart, surely you can spell signature correctly, and find your way in a Linux filesystem...
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: [?]Help Starting OS [?]

Post by PatrickV »

Man look at the at these posts fly. With in a matter of 2 days 3 pages. I don't want to be rude anything, but i said before Os developing can be very tricky and specialy if no one knows what they are doing. Take Bill Gates for examples, when he finds it tough, he wacks his keyboard over his head when something does not work or go his way. Surly some people do that when things don't go their way. I did once. Look at build gates, he might find it tough but he got their at the end taking the nobel prize.

Just remember GeniusCobyWalker os developing is not a walk in the part or snapping your fingers. It is skill and time with lot of pactice and experence
User avatar
GeniusCobyWalker
Member
Member
Posts: 65
Joined: Mon Jan 12, 2009 4:17 pm

Re: [?]Help Starting OS [?]

Post by GeniusCobyWalker »

Thanks for the advice
Still committed to making an OS
Look at build gates, he
Build Gates :D Ha
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: [?]Help Starting OS [?]

Post by JohnnyTheDon »

Look at build gates, he might find it tough but he got their at the end taking the nobel prize.
LOL. When did he win this?
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: [?]Help Starting OS [?]

Post by JamesM »

Hi there,
GeniusCobyWalker wrote:I just need help, what's wrong with that?
Absolutely nothing, provided that you have done the prerequisite required reading and have the prerequisite knowledge.
Genius Coby Walker was a GMail Suggestion :roll:
Perhaps not Google's finest hour.
:( Kinda don't appreciate "not Smart" (Not trying to brag)
Appreciated that you're not trying to brag, but you appear to not have read the required reading before posting (You say you have, then when Combuster posts some prerequisite links you say you haven't...), which is "not smart".
I know how to program in 14 programming languages (Signiture)[sic]
Quoting from your signature:
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
That's (in order of reverse relevance):
  • One markup language (GML, the predecessor to SGML, the most common dialect being HTML)
  • Four flavours of BASIC (!!) - Ti-Basic, Dark Basic (pro), dark gdk.
  • Two flavours of C++
  • Two flavours of assembly
Which by my count makes four, not 14. (OpenGL is not a language, it's an API, and PSP coding is not a language either, it is an action).

The last two languages are the ones of relevance - this means you meet the prerequisites as far as language is concerned, which is a good thing.
I can soldier and build Analog/ Digital Circuits
I have built a Video Game System from discrete analog/ digital curcuits
(LEDs, NTSC Video, Analog Sound, Joystick/Button input, Reset button, Programming Port)
Sounds like your bog standard second year University module. I did a very similar thing. It didn't prepare me for OS-Dev, however.

I know how to use fully use Blender (Most Advanced 3d Modeler)
Green screening and Video Editing (Adobe After Effects)
How totally useless.

Now - first you need to learn how to use your chosen development environment. Many people find it easier to develop in a UNIX environment (be that a POSIX OS such as Mac OSX, Linux, BSD or Windows w/Cygwin) because of the customisability and flexibility of the toolchain, among other reasons. Others prefer to develop in MS Windows with MS Visual Studio. It's your option, but you must learn to be comfortable (completely!) with your environment before you start. If you're new to UNIX, this may involve writing a few test programs and seeing how to compile them (with different options etc).

Please don't respond by asking how to set up MSVC, there is a wiki for that and plenty of forum threads about it - search before asking! - one of the reasons people here are responding negatively to you is that you appear to be blindly posting without prior research. This is not the way it's done around here.

Once you're happy with your toolchain, read some of the getting started articles in the wiki, and some tutorials. Without (or with? ;) )shamelessly self-plugging, I wrote a set of tutorials expressly for this purpose. You can find them here. Some people find them useful.

I hope this advice has been of constructive use to you - I really don't want to try and scare you away from the subject or the board (unlike some) but the rules of the road must be adhered to.

Cheers,

James
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: [?]Help Starting OS [?]

Post by Troy Martin »

James: Most script kiddies and trolls these days don't know about the (S)GML family. Most of them assume GML to be Game Maker Language.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: [?]Help Starting OS [?]

Post by piranha »

Also I think this is appropriate, I want to learn to make an OS.
:( Kinda don't appreciate "not Smart" (Not trying to brag)
I know how to program in 14 programming languages (Signiture)
I can soldier and build Analog/ Digital Circuits
I have built a Video Game System from discrete analog/ digital curcuits
(LEDs, NTSC Video, Analog Sound, Joystick/Button input, Reset button, Programming Port)
I know how to use fully use Blender (Most Advanced 3d Modeler)
Green screening and Video Editing (Adobe After Effects)
The key words are "want to learn".
Ti-BASIC doesn't count.
I can build circuits too. Its not that hard.
Congrats. Hardly makes you a genius though. LEDs is a feature? :lol:
Does that apply? Any trained chimp can use a computer program. Making one that works is the harder part.
See last comment.

Overall, I agree, you need a lot more research and more experience with the tools that you choose to use.

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
GeniusCobyWalker
Member
Member
Posts: 65
Joined: Mon Jan 12, 2009 4:17 pm

Re: [?]Help Starting OS [?]

Post by GeniusCobyWalker »

I'm just staying with Ubuntu, GEdit, and the Terminal.
I really don't need to waste time setting up an IDE. (Controls too much of your program- I was told)
Forget Microsoft

I've finally started to figure things out done every thing up to...
Link using: ld -T linker.ld -o kernel.bin loader.o kernel.o
I keep getting this error:
ld: i386 architecture of input file `loader.o' is incompatible with i386:x86-64 output
Yes it's typed correctly :?

Whats wrong?
First real question while working on OS!
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: [?]Help Starting OS [?]

Post by piranha »

Thats something that you should be aware of having researched the tools (i hope).

Add -m elf_i386 to the linker command line

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
GeniusCobyWalker
Member
Member
Posts: 65
Joined: Mon Jan 12, 2009 4:17 pm

Re: [?]Help Starting OS [?] ( Linker Error)

Post by GeniusCobyWalker »

Add -m elf_i386 to the linker command line
Did that got the same exact error.
Except:
ld: i386:x86-64 architecture of input file `kernel.o' is incompatible with i386 output
(Backwards?)

Someone figure this out.

Title changed to "[?]Help Making OS [?] (Linker Error)" more relevent
Last edited by GeniusCobyWalker on Wed Jan 14, 2009 6:35 pm, edited 2 times in total.
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: [?]Help Starting OS [?]

Post by piranha »

Are both the files compiled to 32 bit output? If so, then its a simple command line option, similar to what I gave you. Type ld --help and it will give you a list of emulation types. Choose one thats a 32bit elf executable.

Very simple.
Someone figure this out.
If you want peoples help stop acting like an @$$.

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
Locked