Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

uclinux kernel build error

Hi,

I am trying to build the uC linux kernel for the microtronix cyclone board. The kernel build fails when I include the ethernet.

The reference design is build with the opencores_ethernet_mac.

Can someone help me ?

Here is a list of the errors(not all errors listed):

CC drivers/net/open_eth.o

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.c:80: error: parse error before '...' token

In file included from /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.c:91:

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.h:48: error: parse error before '}' token

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.h:48: warning: type defaults to `int' in declaration of `oeth_regs'

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.h:48: warning: data definition has no type or storage class

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.c:176: error: parse error before "oeth_regs"

...

...

...

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.c: In function `oeth_init':

/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/net/open_eth.c:2151: error: invalid application of `sizeof' to an incomplete type

make[3]: *** [drivers/net/open_eth.o] Error 1

make[2]: *** [drivers/net] Error 2

make[1]: *** [drivers] Error 2

make: *** [all] Error 2
No RepliesBe the first to reply