OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Sep 26, 2017 5:11 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Compilation test error
PostPosted: Mon Feb 27, 2017 3:24 am 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 58
Location: Moscow, Russia
G'day mates,
Tim here,
I have trouble with the makefile. I tried to make a makefile and as a result, the output says: "[Error] bootinfo.h: No such file or directory".
I tried adding the header for my test OS and it didn't work. I know I didn't yet finish the project, but I was trying to figure out the problem, but it didn't work. Any suggestions?

Sincerely,
Tim Ryazanoff (Tim Williams)

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 4:26 am 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 717
Location: Tallinn, Estonia
It says "Tim" five times in this post but not a single word about your project structure or contents of your makefile.

_________________
Learn to read.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 5:15 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2965
Location: Chichester, UK
TimRyazanoff wrote:
the output says: "[Error] bootinfo.h: No such file or directory".
Quote:
Any suggestions?

I suggest that bootinfo.h doesn't exist in your INCLUDE path.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 5:34 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7127
Location: Germany
Well, it isn't where the computer is looking for it. So check your assumptions. (Paths, file names, current work directories, etc.)

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


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 8:37 am 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 58
Location: Moscow, Russia
Here is the example: #include <bootinfo.h>
#include <fat.h> and that's it. Note that I am not yet done with coding. The kernel is well organised by folders, such as: Kernel, Lib, FAT12, floppy, Include and proc.


Attachments:
linking problem.PNG
linking problem.PNG [ 46.58 KiB | Viewed 1032 times ]

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes
Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 10:29 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7127
Location: Germany
So where is bootinfo.h, and how did you tell your compiler where to find it?

Oh, and while we're at it:

Do not try to learn C, debugging C, the intricacies of your toolchain, and writing an operating system at the same time. Please.

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


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 10:33 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2965
Location: Chichester, UK
I have no doubt that you are #including the file. But that doesn't guarantee that it exists in your INCLUDE path, does it? The compiler is telling you that it doesn't.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 10:51 am 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 58
Location: Moscow, Russia
Problem no. 2: "**recipe commences before first target. Stop".
Linked bootinfo.h in Dev C++, but MinGW is being a real pain in the arse. I use Dev C++ with GCC in MinGW.


Attachments:
bootinfo.h [697 Bytes]
Downloaded 6 times

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes
Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 12:43 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2965
Location: Chichester, UK
Have you tried Googling that error message? It's probably more productive than expecting people to guess what your makefile looks like.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 1:06 pm 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 58
Location: Moscow, Russia
I tried, but they were all for different IDEs, especially Linux. I am using Dev-C++, as I told you, so I need a bit of assistance, then I can go on my own.

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 1:11 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2965
Location: Chichester, UK
So we're left with guessing. I'm not sure that's very productive.

Hint: I'm not convinced that which IDE you are using is relevant.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 2:23 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 953
Location: Athens, GA, USA
iansjack wrote:
Hint: I'm not convinced that which IDE you are using is relevant.


It may be, at least in regards to advice on ways to check how it is configured; it may be using a different search path than the one you think it is using, for example. In other words, it may matter iff you aren't sure what it is doing, and need help with the IDE itself (as opposed to the programming).

However, such a problem is something that should be addressed before you even consider OS dev. You might also find it better to try a message board specifically about C++ and/or the IDE you are using (and by that I assume you mean the Orwell fork; if you are using the older, unmaintained Bloodshed Dev-C++, then for Eris' sake, delete it right now and get one that has been updated more recently than 2005). I have used Dev-C++ before, and a few others here may have as well, but I doubt there is anyone here who is an expert on it.

EDIT: OK, I can see from the screenshot that it is indeed the current version of Orwell Dev-C++. That's at least something. Unfortunately, checking the SF repo, it looks like that fork has stalled as well, with no updates since June 2015. Have you considered using something like Eclipse, Code::Blocks, or Geany, instead? For that matter, you might want to set aside the IDEs entirely and get your hands dirty with the command-line tools for a bit, if you haven't done that before, as it can really help you understand the things those tools are doing for you - automation is great, but to use it well you have to understand what is being automated.

_________________
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
μή εἶναι βασιλικήν ἀτραπόν ἐπί γεωμετρίαν
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.


Last edited by Schol-R-LEA on Mon Feb 27, 2017 2:42 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Mon Feb 27, 2017 2:37 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2965
Location: Chichester, UK
The "recipe" error message normally refers to a malformed makefile raher than a search path.

But this is all just guessork without a sight of the code or the makefile.

i agree that this is not the best forum to deal with such errors.


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Tue Feb 28, 2017 2:44 am 
Offline
Member
Member

Joined: Sat Sep 17, 2016 2:14 am
Posts: 58
Location: Moscow, Russia
I have seen that my project is a Win32 Console Application, although I started on an empty project (no files whatsoever), but I will keep trying to get it to work.

_________________
I will be back... - Arnold Schwarzenegger
Code:
if tired = no then
code = yes
sleep = no
else
code = no
sleep = yes


Top
 Profile  
 
 Post subject: Re: Compilation test error
PostPosted: Tue Feb 28, 2017 3:07 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 2965
Location: Chichester, UK
The cause of your error is listed in the error messages section of the GNU make manual. https://www.gnu.org/software/make/manua ... ed-by-Make

Check your makefile. (No-one else can do so.)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot] and 6 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group