Re: Kernel troubles on sparc32

2001-04-28 Thread Anton Blanchard

Hi,

> The canonical source for sparc kernels is from the CVS tree, rather than
> from linus' or alan's trees. Having said that, the error below occurs
> currently in the CVS tree. Check the archives of sparclinux@vger.kernel.org
> mailing list and you will find a solution for this compile problem.
> However, there are still other compile issues which prevent me from
> compiling CVS kernels on sparc32 right now. Anton is the primary maintainer
> of sparc32 right now, and he has been otherwise occupied for the past little
> while, hopefully he'll come back soon and make us compile again. :-)

I have just finished changing jobs and am now removing my sparcs from
storage :)

Anton



Re: Kernel troubles on sparc32

2001-04-26 Thread James Moody
The canonical source for sparc kernels is from the CVS tree, rather than
from linus' or alan's trees. Having said that, the error below occurs
currently in the CVS tree. Check the archives of sparclinux@vger.kernel.org
mailing list and you will find a solution for this compile problem.
However, there are still other compile issues which prevent me from
compiling CVS kernels on sparc32 right now. Anton is the primary maintainer
of sparc32 right now, and he has been otherwise occupied for the past little
while, hopefully he'll come back soon and make us compile again. :-)

Hope this helps,

james

On Thu, Apr 26, 2001 at 10:29:55AM -0400, Andrew Herdman wrote:
> Hi;
> 
> I now this is off topic and not specific to Debian.  But has anyone else here 
> been having problems compiling a recent (2.4.2, 2.4.3, 2.4.4, ac, pre etc) 
> kernel on a sparc32?  I haven't had any luck and always get the following:
> 
> gcc -D__KERNEL__ -I/usr/src/linux-sparc/include -Wall -Wstrict-prototypes -O2 
> -fomit-frame-pointer -fno-strict-aliasing -m32 -pipe -mno-fpu -fcall-used-g5 
> -fcall-used-g7-c -o memory.o memory.c
> memory.c:183: macro `pmd_alloc' used with too many (3) args
> memory.c:204: macro `pte_alloc' used with too many (3) args
> memory.c:668: macro `pte_alloc' used with too many (3) args
> memory.c:693: macro `pmd_alloc' used with too many (3) args
> memory.c:748: macro `pte_alloc' used with too many (3) args
> memory.c:775: macro `pmd_alloc' used with too many (3) args
> memory.c:1282: macro `pmd_alloc' used with too many (3) args
> memory.c:1285: macro `pte_alloc' used with too many (3) args
> memory.c:1335: macro `pte_alloc' used with too many (3) args
> memory.c: In function `copy_page_range':
> memory.c:183: warning: passing arg 1 of `___f_pmd_alloc' from incompatible 
> pointer type
> memory.c:183: warning: passing arg 2 of `___f_pmd_alloc' makes integer from 
> pointer without a cast
> memory.c:204: warning: passing arg 1 of `___f_pte_alloc' from incompatible 
> pointer type
> memory.c:204: warning: passing arg 2 of `___f_pte_alloc' makes integer from 
> pointer without a cast
> memory.c: In function `zeromap_pmd_range':
> memory.c:668: warning: passing arg 1 of `___f_pte_alloc' from incompatible 
> pointer type
> memory.c:668: warning: passing arg 2 of `___f_pte_alloc' makes integer from 
> pointer without a cast
> memory.c: In function `zeromap_page_range':
> memory.c:693: warning: passing arg 1 of `___f_pmd_alloc' from incompatible 
> pointer type
> memory.c:693: warning: passing arg 2 of `___f_pmd_alloc' makes integer from 
> pointer without a cast
> memory.c: In function `remap_pmd_range':
> memory.c:748: warning: passing arg 1 of `___f_pte_alloc' from incompatible 
> pointer type
> memory.c:748: warning: passing arg 2 of `___f_pte_alloc' makes integer from 
> pointer without a cast
> memory.c: In function `remap_page_range':
> memory.c:775: warning: passing arg 1 of `___f_pmd_alloc' from incompatible 
> pointer type
> memory.c:775: warning: passing arg 2 of `___f_pmd_alloc' makes integer from 
> pointer without a cast
> memory.c: In function `handle_mm_fault':
> memory.c:1282: warning: passing arg 1 of `___f_pmd_alloc' from incompatible 
> pointer type
> memory.c:1282: warning: passing arg 2 of `___f_pmd_alloc' makes integer from 
> pointer without a cast
> memory.c:1285: warning: passing arg 1 of `___f_pte_alloc' from incompatible 
> pointer type
> memory.c:1285: warning: passing arg 2 of `___f_pte_alloc' makes integer from 
> pointer without a cast
> memory.c: In function `__pmd_alloc':
> memory.c:1307: warning: implicit declaration of function `pmd_alloc_one_fast'
> memory.c:1307: warning: assignment makes pointer from integer without a cast
> memory.c:1310: warning: implicit declaration of function `pmd_alloc_one'
> memory.c:1310: warning: assignment makes pointer from integer without a cast
> memory.c:1324: warning: implicit declaration of function `pgd_populate'
> memory.c: At top level:
> memory.c:1336: conflicting types for `___f_pte_alloc'
> /usr/src/linux-sparc/include/asm/pgalloc.h:125: previous declaration of 
> `___f_pte_alloc'
> memory.c: In function `___f_pte_alloc':
> memory.c:1341: warning: implicit declaration of function `pte_alloc_one_fast'
> memory.c:1341: `address' undeclared (first use in this function)
> memory.c:1341: (Each undeclared identifier is reported only once
> memory.c:1341: for each function it appears in.)
> memory.c:1341: warning: assignment makes pointer from integer without a cast
> memory.c:1344: warning: implicit declaration of function `pte_alloc_one'
> memory.c:1344: warning: assignment makes pointer from integer without a cast
> memory.c:1358: warning: implicit declaration of function `pmd_populate'
> make[3]: *** [memory.o] Error 1
> make[3]: Leaving directory `/usr/src/linux-sparc/mm'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory `/usr/src/linux-sparc/mm'
> make[1]: *** [_dir_mm] Error 2
> make[1]: Leaving directory `/usr/src/linux-

Kernel troubles on sparc32

2001-04-26 Thread Andrew Herdman
Hi;

I now this is off topic and not specific to Debian.  But has anyone else here 
been having problems compiling a recent (2.4.2, 2.4.3, 2.4.4, ac, pre etc) 
kernel on a sparc32?  I haven't had any luck and always get the following:

gcc -D__KERNEL__ -I/usr/src/linux-sparc/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strict-aliasing -m32 -pipe -mno-fpu -fcall-used-g5 
-fcall-used-g7-c -o memory.o memory.c
memory.c:183: macro `pmd_alloc' used with too many (3) args
memory.c:204: macro `pte_alloc' used with too many (3) args
memory.c:668: macro `pte_alloc' used with too many (3) args
memory.c:693: macro `pmd_alloc' used with too many (3) args
memory.c:748: macro `pte_alloc' used with too many (3) args
memory.c:775: macro `pmd_alloc' used with too many (3) args
memory.c:1282: macro `pmd_alloc' used with too many (3) args
memory.c:1285: macro `pte_alloc' used with too many (3) args
memory.c:1335: macro `pte_alloc' used with too many (3) args
memory.c: In function `copy_page_range':
memory.c:183: warning: passing arg 1 of `___f_pmd_alloc' from incompatible 
pointer type
memory.c:183: warning: passing arg 2 of `___f_pmd_alloc' makes integer from 
pointer without a cast
memory.c:204: warning: passing arg 1 of `___f_pte_alloc' from incompatible 
pointer type
memory.c:204: warning: passing arg 2 of `___f_pte_alloc' makes integer from 
pointer without a cast
memory.c: In function `zeromap_pmd_range':
memory.c:668: warning: passing arg 1 of `___f_pte_alloc' from incompatible 
pointer type
memory.c:668: warning: passing arg 2 of `___f_pte_alloc' makes integer from 
pointer without a cast
memory.c: In function `zeromap_page_range':
memory.c:693: warning: passing arg 1 of `___f_pmd_alloc' from incompatible 
pointer type
memory.c:693: warning: passing arg 2 of `___f_pmd_alloc' makes integer from 
pointer without a cast
memory.c: In function `remap_pmd_range':
memory.c:748: warning: passing arg 1 of `___f_pte_alloc' from incompatible 
pointer type
memory.c:748: warning: passing arg 2 of `___f_pte_alloc' makes integer from 
pointer without a cast
memory.c: In function `remap_page_range':
memory.c:775: warning: passing arg 1 of `___f_pmd_alloc' from incompatible 
pointer type
memory.c:775: warning: passing arg 2 of `___f_pmd_alloc' makes integer from 
pointer without a cast
memory.c: In function `handle_mm_fault':
memory.c:1282: warning: passing arg 1 of `___f_pmd_alloc' from incompatible 
pointer type
memory.c:1282: warning: passing arg 2 of `___f_pmd_alloc' makes integer from 
pointer without a cast
memory.c:1285: warning: passing arg 1 of `___f_pte_alloc' from incompatible 
pointer type
memory.c:1285: warning: passing arg 2 of `___f_pte_alloc' makes integer from 
pointer without a cast
memory.c: In function `__pmd_alloc':
memory.c:1307: warning: implicit declaration of function `pmd_alloc_one_fast'
memory.c:1307: warning: assignment makes pointer from integer without a cast
memory.c:1310: warning: implicit declaration of function `pmd_alloc_one'
memory.c:1310: warning: assignment makes pointer from integer without a cast
memory.c:1324: warning: implicit declaration of function `pgd_populate'
memory.c: At top level:
memory.c:1336: conflicting types for `___f_pte_alloc'
/usr/src/linux-sparc/include/asm/pgalloc.h:125: previous declaration of 
`___f_pte_alloc'
memory.c: In function `___f_pte_alloc':
memory.c:1341: warning: implicit declaration of function `pte_alloc_one_fast'
memory.c:1341: `address' undeclared (first use in this function)
memory.c:1341: (Each undeclared identifier is reported only once
memory.c:1341: for each function it appears in.)
memory.c:1341: warning: assignment makes pointer from integer without a cast
memory.c:1344: warning: implicit declaration of function `pte_alloc_one'
memory.c:1344: warning: assignment makes pointer from integer without a cast
memory.c:1358: warning: implicit declaration of function `pmd_populate'
make[3]: *** [memory.o] Error 1
make[3]: Leaving directory `/usr/src/linux-sparc/mm'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-sparc/mm'
make[1]: *** [_dir_mm] Error 2
make[1]: Leaving directory `/usr/src/linux-sparc'
make: *** [stamp-build] Error 2


Any pointeres appreciated.


Thanks
  Andrew