building OSKit for GCC 4.8.1

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
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: building OSKit for GCC 4.8.1

Post by sortie »

brighteningeyes: The thing the assembler is failing at is a C preprocessor macro, as heavily used by NetBSD assembly. The assembly files #include some special headers that #define a bunch of things to help writing assembly. The _C_LABEL(cpu_class) expression expands somehow to (OSKIT_NETBSD_UVM_cpu_class). This isn't legal assembler in AT&T (but that's irrelevant, actually). Your problem is that the macro doesn't expand to what it is supposed to and you generate the wrong code. This is a C preprocessor problem - You should have known that since you claim expertise of C and C++.

The solution is to find out where _C_LABEL is declared and what part of the expansion process fails. My bet is that you failed to #define OSKIT_NETBSD_UVM_cpu_class yourself, or perhaps that particular expression is glued from OSKIT_NETBSD_UVM and cpu_class and you need to #define OSKIT_NETBSD_UVM. I don't know the answer to this, you'll need to read the headers yourself. This has nothing to do with AT&T syntax, so don't blame it on that.
brighteningeyes
Member
Member
Posts: 45
Joined: Sat Sep 07, 2013 8:26 am
Contact:

Re: building OSKit for GCC 4.8.1

Post by brighteningeyes »

you right,
a file: oskit/machine/pmap.h has not been included
i include it now and the errors has bee fixed
but some errors that i think that i can fix them
thanks a lot
testing the operating system is very hard when your eyes can't see well
like me and many others
Post Reply