compiling buildroot

      compiling buildroot

      Hello

      On page 71 i.MX6 Linux First Steps (2016-12-5), pag 71, chapter 8.6 Compiling Buildroot and Linux Kernel

      Source Code

      1. [rvelazquez@Fedora23 buildroot-2016.05-fsimx6-V3.0]$ pwd
      2. /home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0
      3. [rvelazquez@Fedora23 buildroot-2016.05-fsimx6-V3.0]$ make fsimx6_std_defconfig
      4. which: no g++ in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/rvelazquez/.local/bin:/home/rvelazquez/bin:/usr/local/arm/fs-toolchain-5.2.0-armv7ahf/bin)
      5. #
      6. # configuration written to /home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/.config
      7. #
      8. [rvelazquez@Fedora23 buildroot-2016.05-fsimx6-V3.0]$ make
      9. which: no g++ in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/rvelazquez/.local/bin:/home/rvelazquez/bin:/usr/local/arm/fs-toolchain-5.2.0-armv7ahf/bin)
      10. which: no flex in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/rvelazquez/.local/bin:/home/rvelazquez/bin:/usr/local/arm/fs-toolchain-5.2.0-armv7ahf/bin)
      11. which: no bison in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/rvelazquez/.local/bin:/home/rvelazquez/bin:/usr/local/arm/fs-toolchain-5.2.0-armv7ahf/bin)
      12. /usr/bin/make -j1 HOSTCC="/usr/bin/gcc" HOSTCXX="g++" silentoldconfig
      13. BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/output/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/output/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/output/build/buildroot-config/tristate.config BR2_CONFIG=/home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/.config BR2_EXTERNAL=support/dummy-external HOST_GCC_VERSION="5" SKIP_LEGACY= /home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/output/build/buildroot-config/conf --silentoldconfig Config.in
      14. You may have to install 'g++' on your build machine
      15. which: no patch in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/rvelazquez/.local/bin:/home/rvelazquez/bin:/usr/local/arm/fs-toolchain-5.2.0-armv7ahf/bin)
      16. You must install 'patch' on your build machine
      17. support/dependencies/dependencies.mk:28: recipe for target 'core-dependencies' failed
      18. make[1]: *** [core-dependencies] Error 1
      19. Makefile:36: recipe for target '_all' failed
      20. make: *** [_all] Error 2


      It says I does not have g++, it says I need to install a patch.

      I think the toolchain is properly installed, and environment correctly set.

      Source Code

      1. [rvelazquez@Fedora23 bin]$ pwd
      2. /usr/local/arm/fs-toolchain-5.2.0-armv7ahf/bin
      3. [rvelazquez@Fedora23 bin]$ ls -la *++
      4. -r-xr-xr-x. 2 500 500 747664 abr 8 2016 arm-fs-linux-gnueabihf-c++
      5. -r-xr-xr-x. 2 500 500 747664 abr 8 2016 arm-fs-linux-gnueabihf-g++
      6. lrwxrwxrwx. 1 500 500 26 abr 8 2016 arm-linux-c++ -> arm-fs-linux-gnueabihf-c++
      7. lrwxrwxrwx. 1 500 500 26 abr 8 2016 arm-linux-g++ -> arm-fs-linux-gnueabihf-g++
      8. [rvelazquez@Fedora23 bin]$ echo $PATH
      9. /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/rvelazquez/.local/bin:/home/rvelazquez/bin:/usr/local/arm/fs-toolchain-5.2.0-armv7ahf/bin
      10. [rvelazquez@Fedora23 bin]$ echo $ARCH
      11. arm
      12. [rvelazquez@Fedora23 bin]$ echo $CROSS_COMPILE
      13. arm-linux-


      Thanks a lot

      More information

      Hello

      The gcc packages I have currently installed are attached (gcc packages.PNG)

      Source Code

      1. [rvelazquez@Fedora23 build-dir]$ rpm -qa | grep gcc
      2. libgcc-5.3.1-6.fc23.i686
      3. libgcc-5.3.1-6.fc23.x86_64
      4. gcc-5.3.1-6.fc23.x86_64


      Do I need gcc 5.3 but i686 architecture ??

      Thanks
      Images
      • gcc packages.PNG

        64.72 kB, 1,359×442, viewed 88 times
      You need to install the packages gcc-c++ and patch (patch is a program to apply diff files, so-called patches, to an existing source tree).

      Usually there are also some other packages needed:

      glibc (i686)
      glibc-devel (i686)
      zlib (i686)
      bison
      wget
      perl-ExtUtils-MakeMaker
      texinfo
      git

      Depending on what packages you compile in Buildroot, more host packages may be necessary for your PC.

      Your F&S Support Team
      F&S Elektronik Systeme GmbH
      As this is an international forum, please try to post in English.
      Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.
      Hello

      I have installed the packages you mentioned, and others. It got better.

      Now I have the error

      Source Code

      1. [rvelazquez@Fedora23 buildroot-2016.05-fsimx6-V3.0]$ make fsimx6_std_defconfig
      2. #
      3. # configuration written to /home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/.config
      4. #
      5. [rvelazquez@Fedora23 buildroot-2016.05-fsimx6-V3.0]$ make
      6. /usr/bin/make -j1 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
      7. BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/output/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/output/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/output/build/buildroot-config/tristate.config BR2_CONFIG=/home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/.config BR2_EXTERNAL=support/dummy-external HOST_GCC_VERSION="5" SKIP_LEGACY= /home/rvelazquez/fsimx6-V3.0/build-dir/buildroot-2016.05-fsimx6-V3.0/output/build/buildroot-config/conf --silentoldconfig Config.in
      8. Your Perl installation is not complete enough; at least the following
      9. modules are missing:
      10. Thread::Queue
      11. support/dependencies/dependencies.mk:28: recipe for target 'core-dependencies' failed
      12. make[1]: *** [core-dependencies] Error 1
      13. Makefile:36: recipe for target '_all' failed
      14. make: *** [_all] Error 2


      I can read "Your Perl installation is not complete enough;"
      I have the "Perlbal" package installed, see please attached screen shot.

      Source Code

      1. [rvelazquez@Fedora23 buildroot-2016.05-fsimx6-V3.0]$ rpm -qa | grep Perl
      2. perl-Pod-Perldoc-3.26-1.fc23.noarch
      3. Perlbal-1.80-17.fc23.noarch
      4. perl-Perlbal-XS-HTTPHeaders-0.20-18.fc23.x86_64


      Moreover, it says there is not available any Perl package

      Source Code

      1. [rvelazquez@Fedora23 buildroot-2016.05-fsimx6-V3.0]$ sudo dnf install Perl
      2. Fedora 23 - x86_64 - Updates 51 kB/s | 25 MB 08:29
      3. Última comprobación de caducidad de metadatos hecha hace 0:04:25, el Tue Dec 13 22:13:46 2016.
      4. No hay disponible ningún paquete Perl.
      5. Error: No es posible encontrar algun resultado.


      Thanks
      Images
      • Perlbal package.PNG

        35.29 kB, 1,360×307, viewed 115 times
      Have you tried installing 'perl' written in lowercase? This is relevant.
      In my case (Fedora 21) there is a perl package and its called 'perl.x86_64'.

      So asking to install Perl says no package available.

      Source Code

      1. [ph@localhost ~]$ sudo dnf install Perl
      2. Using metadata from Thu Dec 8 09:09:26 2016 (6 days, 3:32:13 hours old)
      3. Kein Paket Perl verfügbar.
      4. Fehler: no package matched: Perl


      But asking for perl will find the package. In my case it's allready installed.

      Source Code

      1. [ph@localhost ~]$ sudo dnf install perl
      2. Using metadata from Thu Dec 8 09:09:26 2016 (6 days, 3:32:19 hours old)
      3. Paket perl-4:5.18.4-310.fc21.x86_64 ist bereits installiert, wird übersprungen.
      4. Abhängigkeiten sind aufgelöst.
      5. Nichts zu tun.
      6. Komplett!


      Best Regards
      Your F&S Support Team
      F&S Elektronik Systeme GmbH
      As this is an international forum, please try to post in English.
      Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.
      Perl is divided into a whole lot of small packages. For example try

      Source Code

      1. sudo yum list all "perl*"


      and you'll see a list of more than 100 packages. Here you'll find the necessary sub-package. (Maybe you'll have to replace "yum" with "dnf".)

      By the way I would use yum-extender as a graphical frontend. There you can easily search for packages.

      Your F&S Support Team
      F&S Elektronik Systeme GmbH
      As this is an international forum, please try to post in English.
      Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.