Forum Discussion

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

Trouble compiling kernel

I'm having a bit of trouble trying to get the kernel to compile. In the NIOS II IDE, I right-click on the linux_kernel project and select "Build All."

The errors I get are not at all enlightening (at least not to me):

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

Using /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x as source for kernel

ln: creating symbolic link `include2/asm&#39; to `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/include/asm-nios2nommu&#39;: File exists

make[1]: *** [prepare2] Error 1

make: *** [_all] Error 2

make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x&#39;[/b]

--- Quote End ---

I tried deleting /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/include2/asm

but I still get the same error - it looks like make re-creates it via a sym link.

Any hints would be GREATLY appreciated.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by jomegat@Sep 29 2005, 11:52 AM

    i&#39;m having a bit of trouble trying to get the kernel to compile. in the nios ii ide, i right-click on the linux_kernel project and select "build all."

    --- Quote End ---

    I uninstalled EVERYTHING - Quartus, NIOS II Dev Kit, and the uCLinux kit. I deleted everything I could find in the Windows registry related to Altera, NIOS, Quartus, cygwin, or uCLinux. Then I reinstalled everything again. But I still get the same error. My working space is on a network drive, and I wonder if /that/ could be the root of the problem?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by jomegat@Oct 7 2005, 12:17 PM

    my working space is on a network drive, and i wonder if /that/ could be the root of the problem?

    --- Quote End ---

    Perhaps. I moved everything to a local drive and that problem went away. After fighting through a couple more errors, I got stuck on this one:

    CC arch/nios2nommu/kernel/asm-offsets.s

    /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/nios2nommu/kernel/asm-offsets.c: In function `main&#39;:

    /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/nios2nommu/kernel/asm-offsets.c:149: error: `na_onchip_memory_0&#39; undeclared (first use in this function)

    Help?