f



Compiling a kernel... a compiler error!

OK, I am compiling a home-brew kernel. At the beginning, it was all 
Assembly, and ld.exe performed perfectly for linking. However,when I 
added some standard c code, I got an error which I can't resolve. First 
of all, here are my calls. BTW, NASM is the Assembly compiler:


C:\djgpp\bin\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer 
-finline-functions -nostdinc -fno-builtin -I./include -c -o main.o main.c
C:\Osdever\NASM\nasm.exe -f aout -o start.o start.asm
C:\djgpp\bin\ld.exe -T link.ld -o kernel.bin start.o main.o

And here is the error from gcc.exe:
In file included from <command line>:1:
c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver:1:25: sys/version.h: No such 
file or directory (ENOENT)

I can't figure it out, since I don't call version.h from ANYWHERE 
withing my code. Any ideas?
0
2/5/2007 8:16:17 AM
comp.os.msdos.djgpp 3308 articles. 2 followers. tigrepotrazosalvaje (34) is leader. Post Follow

1 Replies
727 Views

Similar Articles

[PageSpeed] 7

version.h tells gcc which version of djgpp is installed.  It's
included by default, so just provide an empty one in your local
include directory.

Note: before you say "gcc shouldn't do that", remember that you're
using a *djgpp* compiler.  So, yes, it should.  If you want to avoid
this, the right thing to do is build a cross compiler to, say,
i386-elf or i386-coff.  Then they won't include anything
djgpp-specific.
0
dj (1321)
2/5/2007 3:25:42 PM
Reply:

Similar Artilces:

To compile or not to compile
Is there some benefit in compiling the apache source yourself? -- //Points ------------------------------------------------------------ http://underthebed.homeip.net ...

Compile or not compile?
There's something that sometimes in while it bores me a little bit. How do I know if I need to compile a function/procedure or it will be able to compile "on fly". At the beginning I thought this was related to the paths idl "knew", but this happens for two functions/routines in the same directory. Can someone tell when a function can be runned without be compile? Nuno Oliveira wrote: > There's something that sometimes in while it bores me a little bit. How > do I know if I need to compile a function/procedure or it will be able > to compile &quo...

which compiler compiled?
Is there a way I can tell which compiler compiled an executable? I looked at the file with a hex editor and didn't see anything obvious. Lawrence "Lawrence" <just4me@nowhere.com> writes: > Is there a way I can tell which compiler compiled an executable? Yes with some compilers and some executable formats. E.g. on HP-UX for PA-RISC: $ aCC leak.C $ odump -compunit a.out ... 6 0 ANSI C++ leak.C /tmp ctcom options = -inst compiletime -diags 523 -inline_power 1 -longbranch 2 -unique_strings on -cachesize 256 B...

To compile or not to compile
Is there some benefit in compiling the apache source yourself? -- //Points ------------------------------------------------------------ http://underthebed.homeip.net ...

Compilation errors with aCC compiler
Hi, I am getting compilation error in folloing situation: Here, I am giving sample piece of code. a.h: ------- extern int g_switch; ------ in "a.c", g_switch = 0; it is giving following error: Error 173: "a.c", line 19 # Redefined symbol 'g_switch'; previously defined at ["../../include/a.h", line 3]. But this code is working fine in all other systems like Suse, Solaris and Windows. System information : HP-UX C3600 B.11.00 U 9000/785 2003506592 unlimited-user license aCC version : aCC: HP ANSI C++ B3910B A.03.55 Please let me know if any c...

compiling the kernel with a different compiler
hi! i've searched for a possible sollution on the web & in other groups, found nothing. i want to compile the kernel with a new gcc version (build from a snapshot). it is located in "/opt". i've tried to do "export CC=/opt/bin/gcc; export HOSTCC=/opt/bin/gcc" and used "-B/opt", but the kernel is still build with my default compiler! please help! thanks in advice! V Sat, 13 Jan 2007 17:11:56 -0800, linuxadmin napsal(a): > hi! > > i've searched for a possible sollution on the web & in other groups, > found nothing. > >...

Compilation error with seperate compilation
Can anyone help me with the following problem When i compile a program which is devided in three files and i compile with GCC i'm getting the follwong error However when i put it in one file it conpiles and runs perfectly So it has probaly something to do with the includes , but i do not see what Many regards Nico Heiligers **** Build of configuration Debug for project acc **** **** Internal Builder is used for build **** g++ -O0 -g3 -Wall -c -fmessage-length=0 -oreadadfile.o .. \readadfile.cpp In file included from ..\readadfile.cpp:1: ...\adfile.h:12: error: ISO C++ forbids declaration ...

compiling plpython compilation error
Hi all. Im having a hard time trying to compile the plpython package. This is the error make gives me: gherzig@vdb:/usr/local/src/postgresql-8.2.5/src/pl/plpython> make gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fpic -shared -Wl,-soname,libplpython.so.0 plpython.o -L/usr/lib/python2.5/config -L../../../src/port -lpython2.5 -lpthread -ldl -lutil -lm -Wl,-rpath,'/usr/lib/python2.5/config' -o libplpython.so.0.0 /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: /usr/lib...

compiling Qt .... compiling Qt ....compiling Qt.... compiling Qt
I got myself new kernel from kernel.org... make xconfig needs Qt (new system). So I got new Qt source this afternoon. It is still compiling.... Who said MS is bloat has not done this. What does Qt do? Dunno, how about xforms for xconfig? On Thu, 02 Feb 2006 19:18:09 +0000, Jan Panteltje wrote: > Dunno, how about xforms for xconfig? Why not curses based? menuform -- Hilsen/Regards Michael Rasmussen http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917 On a sunny day (Thu, 02 Feb 2006 21:55:33 +0100) it happened Michael Rasmussen <mir@miras.org> wrote in <pan.2006.02.02.20.55.33.763274@miras.org>: >On Thu, 02 Feb 2006 19:18:09 +0000, Jan Panteltje wrote: > >> Dunno, how about xforms for xconfig? >Why not curses based? menuform Because last time I tried that it was broken to unusable? I may try it again, QT installed, env set .. QTDIR etc.. still make xconfig aborts... grep -r "Unable to find the QT installation" scripts/kconfig/Makefile: echo "* Unable to find the QT installation. Please make sure that"; \ It is a complot by ? to make it impossible to make a small fast systemm.. ;-) You REALLY have to know a lot to get any of this stuff to work. So now I will look at and perhaps edit scripts/kconfig/Makefile to find whay it complains. The good thing is QT installed and completed without aborting and the demos work. The bad thing is some of thsos...

kernel compile error
Hi community, I'm trying to compile from a GENERIC kernel, release 1.6.2, where I've just modified the following options: options RTC_OFFSET=-60 # hardware clock is this many mins. west of GMT options PCKBD_LAYOUT="KB_IT" options GATEWAY # packet forwarding options IPFILTER_DEFAULT_BLOCK # block all packets by default These are the error messages I've got: cc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized -Di386 -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DIPFILTER_DEFAULT_BLOCK -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /sys/arch/i386/compile/martello/../../../../dev/ic/tropic.c cc: Internal compiler error: program cc1 got fatal signal 11 *** Error code 1 Stop. make: stopped in /sys/arch/i386/compile/martello martello# Any suggestion about what I'm missing or what else should I do? Thanks a lot in advance PS: here's my whole configuration file: martello# vi martello # $NetBSD: GENERIC,v 1.491.4.6 2003/10/05 11:49:20 tron Exp $ # # GENERIC machine description file # # This machine description file is used to generate the default NetBSD # kernel. The generic kernel does not include all options, subsystems # and device drivers, but should be useful for most applications. # # The machine description file can be customised for your specific # machine to re...

kernel compilation error
I'm attempting to compile a new kernel, using the HOWTO located here; http://newbiedoc.sourceforge.net/system/kernel-pkg.html I can get everything compiled, and installed according to the docs, with one exception. I cannot get the initrd file built/made/etc. Without that file, my computer refuses to boot using the new kernel I used these examples to build the deb package; sudo make-kpkg --append-to-version=.052004 kernel_image sudo make-kpkg --initrd --append-to-version=.052004 kernel_image Thanks for the help In comp.os.linux.misc, Rodney D. Myers uttered these immortal words: >...

Kernel compilation error
Hello there, I've a machine running FC3 and linux kernel-2.6.12.1 and Today I was trying to compile the Linux kernel 2.6.12 after applying the latest patch 2.6.12.5; I got the following error(s) while doing -- prompt># make menuconfig prompt># make bzImage .... kernel/power/pm.c:259: warning: `pm_register' is deprecated (declared at kernel/power/pm.c:62) kernel/power/pm.c:260: warning: `pm_unregister' is deprecated (declared at kernel/power/pm.c:86) kernel/power/pm.c:261: warning: `pm_unregister_all' is deprecated (declared at kernel/power/pm.c:115) kerne...

Error compiling kernel
I just cvsupped OpenBSD-src today and tried to compile the default kernel. I followed the directions of the FAQ but the compiling process fails. I've included the compiling output where it fails. FWIW I'm running OpenBSD on a hp pavillion ze4400 notebok. .. .. .. cc -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized - Wno-format -Wno-main -O2 -nostdinc -I. -I/usr/src/sys/arch/i386/compile/DARKST AR/../../../../arch -I/usr/src/sys/arch/i386/compile/DARKSTAR/../../../.. -DDDB -DDIAGNOSTIC -DKTRACE -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM...

Error in kernel compilation
Hi all, I downloaded kernel 2.4.20 in my home directory. switched to root. I did 'make xconfig'. Din't do any changes, saved and exit. on command prompt I typed 'make dep' which was successful and then 'make'. The result of make was as follows: (these are the last few lines of the output) make[3]: Entering directory `/home/vineet/linux-2.4.20/drivers/ide' ld -m elf_i386 -r -o ide-mod.o ide.o ide-features.o ide-taskfile.o cmd640.o ide-adma.o ide-dma.o ide-pci.o piix.o rz1000.o ide-proc.o ld -m elf_i386 -r -o ide-probe-mod.o ide-probe.o ide-geometry....

program that compiles in C compiler but not in C++ compiler
Hi, I need a small program that compiles in C compiler but not in C++ compiler. Thx in advans, Karthik Balaguru KBG <karthik.balaguru@lntinfotech.com> wrote: > I need a small program that compiles in C compiler but not in C++ > compiler. No problem, just send $10 to paypal@zevv.nl and I'll do your homework for you. -- :wq ^X^Cy^K^X^C^C^C^C KBG said: > Hi, > > I need a small program that compiles in C compiler but not in C++ > compiler. Can you think of any syntactic differences between C and C++? For example, what about keywords? They are very, very sensitive to syntax. Worth thinking about. -- Richard Heathfield "Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk email: rjh at above domain (but drop the www, obviously) KBG wrote: > I need a small program that compiles in C compiler but not in C++ > compiler. Have a look at: http://david.tribble.com/text/cdiffs.htm -- mail1dotstofanetdotdk KBG wrote: > Hi, > > I need a small program that compiles in C compiler but not in C++ > compiler. > For sufficiently recent definitions of "C compiler, the following does the trick, but if this is a homework question it's probably not the answer you want. #include <stdio.h> int main(void) { char * restrict hi = "Hello, world\n"; printf("%s", hi); return 0; } Hi, Loooks interesting. Need to give these and the links a try this weekend :):) ...

Error compiling file using lcc compiler
Hi I'm using the lcc compiler for win32. I tried compiling a program but there's an error stating: "cpp: Can't open input file clrscr()" I don't get it - I've included <tcconio.h>. (strange why they couldn't have just left it as <conio.h>?): #include <tcconio.h> // code ---- Albert Albert wrote: > Hi > I'm using the lcc compiler for win32. I tried compiling a program but > there's an error stating: "cpp: Can't open input file clrscr()" > > I don't get it - I've included <tcconio.h>. ...

Kernel compile errors for 2.6.9
I installed RHEL4 Update 4 on my laptop (kernel 2.6.9-42) and am trying to just educate myself on the process of compiling a new kernel. What better way to do this than just go through a exercise, right? So i download the kernel 2.6.9 from kernel.org. I then attempt to configure it using the same .config file from my existing, working kernel. I make bzImage. And then i attempt to compile all modules. This is where I keep getting the following errors: drivers/scsi/qla2xxx/qla_os.c: In function `qla2x00_queuecommand': drivers/scsi/qla2xxx/qla_os.c:315: sorry, unimplemented: inlining faile...

[wxMac 2.8.4, wxMSW ?] "Strange" Mac g++ compiler errors trying to compile Windows compilable wx code
Hi, folks! I'm trying to compile some wx C++ code written by a colleague; I'm working late so can't consult him, but seeing as how he's primarily a Windows developer and the code in question compiles thereon, I'm not sure how much he'd be able to help me figure out why I'm having the problems I'm having trying to do it on a Mac w/ g++. The first "symptom" was the compiler complaining about an overloaded method ambiguity: "error: call of overloaded 'wxString(const char [33])' is ambiguous" Here's the problem lin...

how to setup compile-mode to not scroll up to the last compilation error
Hi emacsian, when I compile something I get the compilation buffer scroll to the end of the compilation message. If I want to jump to the first error, I have to scroll back up to the beginning of the message, then I can move to the next error with C-'. Is there a system to tell to compilation mode not to scroll up to the end, but to stop to scroll to the first error/warning point, so that I can avoid to scroll up to it? Many thanks in advance. -- Stefano Sabatini Linux user number 337176 (see http://counter.li.org) Stefano Sabatini schrieb: > Hi emacsian, > > when I compile something I get the compilation buffer scroll to the > end of the compilation message. If I want to jump to the first error, > I have to scroll back up to the beginning of the message, then I can > move to the next error with C-'. > > Is there a system to tell to compilation mode not to scroll up to the > end, but to stop to scroll to the first error/warning point, so > that I can avoid to scroll up to it? I don't known, but my pritate solution for this problem is following in my .emacs: ;; jump to error (defun goto-error-message () (interactive) (setq compiler-window (car (get-buffer-window-list "*compilation*"))) (if (not (equal compiler-window nil)) (progn (select-window compiler-window) (search-forward ": error")))) (global-set-key [f5] 'goto-error-message) (global-set-key [f7] 'compile) So first I ...

Meta4... a compiler-compiler
in the csa2 gmail account... description is very interesting. in the Pidgin for Apple II/Merlin/6502 message Rich ...

Cross-compiling error when compiling 2.6.1...
I come across the following error: checking for chflags... configure: error: cannot run test program while cross compiling See `config.log' for more details. make-3.81[1]: *** [/nobackup/garrcoop/python_upgrade/contrib/python/obj-mips32/Makefile] Error 1 make-3.81[1]: Leaving directory `/nobackup/garrcoop/python_upgrade' make-3.81: *** [all] Error 2 The blurb from configure that does this test says: # On Tru64, chflags seems to be present, but calling it will # exit Python Basically this testcase (while valid for Tru64) doesn't work with many cross-compilation environments. Cou...

compiling error in FC4 kernel
I recently upgraded from RH9 to FC4 and wanted to rebuild my kernel. Well, I was getting errors. So I said F this and: #rpm -e kernel-devel #rpm -rf 2.6.11-1.1369_FC4-i686 #to get rid of any remaining files #rpm -Uvh kernel-devel-2.6.11-1.1369_FC4.i686.rpm #cd 2.6.11-1.1369_FC4-i686 #make clean fs/hostfs/Makefile:11: arch/um/scripts/Makefile.rules: No such file or directory make[2]: *** No rule to make target `arch/um/scripts/Makefile.rules'. Stop. make[1]: *** [fs/hostfs] Error 2 make: *** [_clean_fs] Error 2 There is no arch/um/scripts/ directory! Plenty of post...

Error compiling new kernel
I am trying to compile a new kernel (2.4.20) with ISDN support as a module. Linux runs fine on my system, which is as follows: Pentium III 10 Gb IDE harddisk 250 Mb RAM I run Xwindows/Gnome. My disk has 4 partitions: - One for Windows2000 - One for Linux (root) - One for Linux (home) - One for Linux (swap) I have successfully compiled a new kernel with the ISDN driver (HiSax) built in. However, according to the documentation I have to compile it as a loadable module in order for it to work with my ISDN card. This is where I'm stuck at the moment. I have run make xconfig make dep make clean So far everything seems fine. When I run make bzImage the process aborts with the following error messages (please help, someone!): make -C pci make[2]: Entering directory `/home/ari/linux-2.4.20-9asp/drivers/pci' make all_targets make[3]: Entering directory `/home/ari/linux-2.4.20-9asp/drivers/pci' gcc -D__KERNEL__ -I/home/ari/linux-2.4.20-9asp/include -Wall -Wstrict-protot ypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointe r -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=pci -DEXPORT_SYMTAB -c pci.c In file included from /home/ari/linux-2.4.20-9asp/include/linux/modversions.h:133, from /home/ari/linux-2.4.20-9asp/include/linux/module.h:21, from pci.c:13: /home/ari/linux-2.4.20-9asp/include/linux/modules/i386_ksyms.ver:92:1: warning: &qu...

Error compiling new kernel
I am trying to compile a new kernel (2.4.20) with ISDN support as a module. Linux runs fine on my system, which is as follows: Pentium III 10 Gb IDE harddisk 250 Mb RAM I run Xwindows/Gnome. My disk has 4 partitions: - One for Windows2000 - One for Linux (root) - One for Linux (home) - One for Linux (swap) I have successfully compiled a new kernel with the ISDN driver (HiSax) built in. However, according to the documentation I have to compile it as a loadable module in order for it to work with my ISDN card. This is where I'm stuck at the moment. I have run make xconfig make dep make clean So far everything seems fine. When I run make bzImage the process aborts with the following error messages (please help, someone!): make -C pci make[2]: Entering directory `/home/ari/linux-2.4.20-9asp/drivers/pci' make all_targets make[3]: Entering directory `/home/ari/linux-2.4.20-9asp/drivers/pci' gcc -D__KERNEL__ -I/home/ari/linux-2.4.20-9asp/include -Wall -Wstrict-protot ypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointe r -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=pci -DEXPORT_SYMTAB -c pci.c In file included from /home/ari/linux-2.4.20-9asp/include/linux/modversions.h:133, from /home/ari/linux-2.4.20-9asp/include/linux/module.h:21, from pci.c:13: /home/ari/linux-2.4.20-9asp/include/linux/modules/i386_ksyms.ver:92:1: warning: "EISA_bus" redefined In file included from /h...

Web resources about - Compiling a kernel... a compiler error! - comp.os.msdos.djgpp

Cool tools for compiling to JavaScript
Every programmer has a favorite language or two. JavaScript lovers are the luckiest these days because their language is taking over the Internet ...

Feds put protest activity under microscope in compiling national 'risk forecast'
Use of social media, the spread of "citizen journalism," and the involvement of young people are among the key trends highlighted by a federal ...

10 Tips For Compiling A Deal Sheet
Compiling a deal sheet is a great way of taking stock of your experience and of seeing where your experience may be lacking.

Compiling 64-Bit Code
Describes the 64-bit features available in OS X.

Is there a benefit to compiling your code as you go?
Stack Exchange This Q&A is part of a weekly series of posts highlighting common questions encountered by technophiles and answered by users ...

6 cool tools for compiling to JavaScript
Every programmer has a favorite language or two. JavaScript lovers are the luckiest these days because their language is taking over the Internet ...

Compiling The Absurd Box Score For Space Jam ; Or, Shawn Bradley Sucked Against Cartoons, Too
This is Regressing, a numbers-minded column by our clever friends at the Harvard College Sports Analysis Collective. Over the next few days, ...

We're Compiling Every Police-Involved Shooting In America. Help Us.
The United States has no database of police shootings. There is no standardized process by which officers log when they've discharged their weapons ...

Flat UI Pro Tutorial: Setting and Compiling Using LESS
In this video tutorial, you use components from Flat UI Pro to create a complete simple mail app using LESS. He takes you through the steps to ...

Industrious 4chan user is compiling a list of every videogame ever made
... me to enter a few hundreds of games into my Backloggery account , and I haven't even finished it yet. Ambitious 4chan user Data_baser is compiling ...

Resources last updated: 3/22/2016 4:54:48 PM