Forum Discussion

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

building uClinux for Nios II problem, HELP!

Hi, All,

I'm a new starter to Nios. I'm trying to build a kernel for my Nios II.

I downloaded the snapshot (1/30/06 copy) and tried to compile on my FC3 PC(kernel 2.6.9 with gcc 3.4.2).

I did a "make menuconfig" and chose "nios2" as the processor and kept all other options as default. Then I run "make" to compile the whole thing. I run this whole procedure as a normal user.

After a while, I go this error:

make[2]: Leaving directory `/home/bdu/NIOS/buildroot/toolchain_build_nios2/uClibc/utils'

make[1]: Leaving directory `/home/bdu/NIOS/buildroot/toolchain_build_nios2/uClibc'

mkdir -p /home/bdu/NIOS/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/target_utils

install -c /home/bdu/NIOS/buildroot/build_nios2/root/usr/bin/ldd

/home/bdu/NIOS/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/target_utils/ldd

install: cannot stat `/home/bdu/NIOS/buildroot/build_nios2/root/usr/bin/ldd': No such file or directory

make: *** [/home/bdu/NIOS/buildroot/build_nios2/root/usr/bin/ldd] Error 1

I later tried to repeat this as root and still got this error. So please help me and tell me what did I miss or do wrong.

Thanks for all the help!

-Bo

1 Reply

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

    --- Quote Start ---

    originally posted by bdu@Feb 3 2006, 12:12 PM

    hi, all,

    i'm a new starter to nios. i'm trying to build a kernel for my nios ii.

    i downloaded the snapshot (1/30/06 copy) and tried to compile on my fc3 pc(kernel 2.6.9 with gcc 3.4.2).

    i did a "make menuconfig" and chose "nios2" as the processor and kept all other options as default. then i run "make" to compile the whole thing. i run this whole procedure as a normal user.

    after a while, i go this error:

    make[2]: leaving directory `/home/bdu/nios/buildroot/toolchain_build_nios2/uclibc/utils'

    make[1]: leaving directory `/home/bdu/nios/buildroot/toolchain_build_nios2/uclibc'

    mkdir -p /home/bdu/nios/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/target_utils

    install -c /home/bdu/nios/buildroot/build_nios2/root/usr/bin/ldd

    /home/bdu/nios/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/target_utils/ldd

    install: cannot stat `/home/bdu/nios/buildroot/build_nios2/root/usr/bin/ldd': no such file or directory

    make: *** [/home/bdu/nios/buildroot/build_nios2/root/usr/bin/ldd] error 1

    i later tried to repeat this as root and still got this error. so please help me and tell me what did i miss or do wrong.

    thanks for all the help!

    -bo

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=12534)

    --- quote end ---

    --- Quote End ---

    Start with this thread - http://forum.niosforum.com/forum/index.php...wtopic=3174&hl= (http://forum.niosforum.com/forum/index.php?showtopic=3174&hl=)