Forum Discussion

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

buildroot does not compile

Hello,

I'm trying to build a new uClinux for several hours now...

We are currently using the Microtronix 1.4 Linux. Actually, it works very well, but we need some applications/ tools/ deamons that are not included in this release like SSH(D), an useable editor, a better shell (bash) and some other stuff (sysvinit).

There is a buildroot guide in the nios wiki with a fancy script, but this one doesn't work, because the snapshots used there are no longer available (wget 404).

So I downloaded the latest buildroot snapshot. It seemed to be easy with make menuconfig, make, ...., but it does not compile:

libc/sysdeps/linux/common/access.c: In function `access':
libc/sysdeps/linux/common/access.c:12: error: `errno' undeclared (first use in this function)
libc/sysdeps/linux/common/access.c:12: error: (Each undeclared identifier is reported only once
libc/sysdeps/linux/common/access.c:12: error: for each function it appears in.)
make: ***  Error 1
make: Leaving directory `/home/rtptf/nios2/buildroot/toolchain_build_nios2/uClibc'
make: ***  Error 2

What am I doing wrong?

Thanks a lot!

3 Replies

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

    The latest buildroot does not work, it still need update.

    You can find the 20060320 attached in the wiki page, and rename them as snapshot.

    http://nioswiki.jot.com/wikihome/operating.../buildrootguide (http://nioswiki.jot.com/wikihome/operatingsystems/buildrootguide)

    I had posted the nios2gcc and nios2libs (built from buildroot 20060320), you can use them to build ssh.

    http://nioswiki.jot.com/wikihome/operating...binarytoolchain (http://nioswiki.jot.com/wikihome/operatingsystems/binarytoolchain)

    You can use uClinux-dist, which has ssh and sshd ported to uClinux.

    http://nioswiki.jot.com/wikihome/operating...ems/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/uclinuxdist)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I downloaded these files and renamed them, but now another error occurred.

    I did exactly as described in the article in the wiki.

    /bin/sh: line 1: /homes/sfrey/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-gcc: No such file or directory
    make: /homes/sfrey/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-gcc: Command not found
    make: Entering directory `/homes/sfrey/buildroot/toolchain_build_nios2/uClibc'
    libc-make: /homes/sfrey/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-gcc: Command not found
    d@d@make -C extra/config conf
    /bin/sh: line 1: /homes/sfrey/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-gcc: No such file or directory
    make: /homes/sfrey/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-gcc: Command not found
    �@�make: /homes/sfrey/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-gcc: Command not found
    �@�@make: *** No rule to make target `|', needed by `../../extra/config/conf.o'.  Stop.
    make: ***  Error 2
    make: Leaving directory `/homes/sfrey/buildroot/toolchain_build_nios2/uClibc'
    make: ***  Error 2
    mkdir: cannot create directory `/homes/sfrey/rootfs': File exists
    ./build: line 55: cd: /homes/sfrey/buildroot/build_nios2/staging_dir/include/linux: No such file or directory
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The build script should not run more than once.

    You will need to edit the script.

    You need to check if you have the cross gcc build in the staging dirs.

    But I would suggest you to use the prebuild binary, and uClinux-dist.

    Which are eaiser for beginner.

    I don't want you to spend too much time on buildroot.

    You can try buildroot later, when you get more understanding of the tools.