Giter Site home page Giter Site logo

Comments (5)

c-mauderer avatar c-mauderer commented on June 10, 2024

Basically the linker error tells you that there is too much code for the application and it doesn't fit in the available memory. For the libbsd examples, that happened if the applications are built so that they are executed from the internal flash instead of the SDRAM. To avoid that the build-libbsd.sh implements a workaround that uses the linkcmds for the SDRAM. It seems the workarround didn't work here.

Do you have the log before the libbsd is build. There should be a lot of lines starting with + and ++. That is the output of the shell script.

from grisp-software.

c-mauderer avatar c-mauderer commented on June 10, 2024

I tried it with dash on OpenSUSE and had no problem. But I'm not 100% sure whether it is enough to just call dash ./build/build.sh to replace every sh call with a dash. So the sub-scripts might still have used bash.

But I got the relevant log output. Shortly before libbsd is build, you should get that one. Please take a special note whether the four bold lines are the same (except for the path and that they won't appear bold in your log).

[...]
+ /home/EB/christian_m/Projekte/grisp-software-test/build/build-libbsd.sh clean install
+ set -e -u
+++ dirname -- /home/EB/christian_m/Projekte/grisp-software-test/build/build-libbsd.sh
++ CDPATH=
++ cd -- /home/EB/christian_m/Projekte/grisp-software-test/build
++ pwd
+ SCRIPTDIR=/home/EB/christian_m/Projekte/grisp-software-test/build
+ PROJECTDIR=/home/EB/christian_m/Projekte/grisp-software-test/build/../
+ . /home/EB/christian_m/Projekte/grisp-software-test/build/configuration.sh
++ BSP_NAME=atsamv
++ RTEMS_CPU=arm
++ RTEMS_VERSION=4.12
++ TARGET=arm-rtems4.12
++ PREFIX=/home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12/
++ RTEMS_SOURCE_DIR=/home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems
++ LIBBSD_SOURCE_DIR=/home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-libbsd
++ LIBINIH_SOURCE_DIR=/home/EB/christian_m/Projekte/grisp-software-test/build/..//libinih
++ LIBGRISP_SOURCE_DIR=/home/EB/christian_m/Projekte/grisp-software-test/build/..//libgrisp
++ BSP_CONFIG_OPT='
        --disable-tests
        --disable-networking
        --enable-chip=same70q21
        --enable-sdram=is42s16320f-7bl
        ATSAM_CONSOLE_DEVICE_TYPE=1
        ATSAM_CONSOLE_DEVICE_INDEX=2
        ATSAM_MEMORY_QSPIFLASH_SIZE=0x0
        ATSAM_MEMORY_NOCACHE_SIZE=0x8000
        '
+ export PATH=/home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12//bin:/home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12//bin:/home/EB/christian_m/perl5/bin:/home/EB/christian_m/perl5/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/lib/mit/bin:/sbin:/usr/sbin:/home/EB/christian_m/scripts:/home/EB/christian_m/t32/bin/pc_linux64:/sbin:/usr/sbin:/home/EB/christian_m/scripts:/home/EB/christian_m/t32/bin/pc_linux64
+ PATH=/home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12//bin:/home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12//bin:/home/EB/christian_m/perl5/bin:/home/EB/christian_m/perl5/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/lib/mit/bin:/sbin:/usr/sbin:/home/EB/christian_m/scripts:/home/EB/christian_m/t32/bin/pc_linux64:/sbin:/usr/sbin:/home/EB/christian_m/scripts:/home/EB/christian_m/t32/bin/pc_linux64
+ cd /home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-libbsd
+ '[' atsamv == atsamv ']'
+ '[' '!' -e /home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12//arm-rtems4.12/atsamv/lib/linkcmds.org ']'
+ mv /home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12//arm-rtems4.12/atsamv/lib/linkcmds /home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12//arm-rtems4.12/atsamv/lib/linkcmds.org
+ cp /home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12//arm-rtems4.12/atsamv/lib/linkcmds.sdram /home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12//arm-rtems4.12/atsamv/lib/linkcmds
+ DO_CLEAN=0
+ DO_INSTALL=0
+ for i in '"$@"'
+ case "$i" in
+ DO_CLEAN=1
+ for i in '"$@"'
+ case "$i" in
+ DO_INSTALL=1
+ '[' 1 -ne 0 ']'
+ '[' -e build ']'
+ waf configure --prefix=/home/EB/christian_m/Projekte/grisp-software-test/build/..//rtems-install/rtems-4.12/ --rtems-bsps=arm/atsamv
Setting top to                           : /home/EB/christian_m/Projekte/grisp-software-test/rtems-libbsd 
Setting out to                           : /home/EB/christian_m/Projekte/grisp-software-test/rtems-libbsd/build 
RTEMS Version                            : 4.12 
Architectures                            : arm-rtems4.12 
Board Support Package                    : arm-rtems4.12-atsamv 
Show commands                            : no 
Long commands                            : no 
[...]

from grisp-software.

holzingk avatar holzingk commented on June 10, 2024

Seems to be a Dash/Bash error.

See the entire build.log.

Relevant part:

+ BSP_NAME=atsamv
+ RTEMS_CPU=arm
+ RTEMS_VERSION=4.12
+ TARGET=arm-rtems4.12
+ PREFIX=/home/kilian/grisp-software/build/..//rtems-install/rtems-4.12/
+ RTEMS_SOURCE_DIR=/home/kilian/grisp-software/build/..//rtems
+ LIBBSD_SOURCE_DIR=/home/kilian/grisp-software/build/..//rtems-libbsd
+ LIBINIH_SOURCE_DIR=/home/kilian/grisp-software/build/..//libinih
+ LIBGRISP_SOURCE_DIR=/home/kilian/grisp-software/build/..//libgrisp
+ BSP_CONFIG_OPT=
	--disable-tests
	--disable-networking
	--enable-chip=same70q21
	--enable-sdram=is42s16320f-7bl
	ATSAM_CONSOLE_DEVICE_TYPE=1
	ATSAM_CONSOLE_DEVICE_INDEX=2
	ATSAM_MEMORY_QSPIFLASH_SIZE=0x0
	ATSAM_MEMORY_NOCACHE_SIZE=0x8000
	
+ export PATH=/home/kilian/grisp-software/build/..//rtems-install/rtems-4.12//bin:/home/kilian/grisp-software/build/..//rtems-install/rtems-4.12//bin:/home/kilian/bin:/home/kilian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ cd /home/kilian/grisp-software/build/..//rtems-libbsd
+ [ atsamv == atsamv ]
/home/kilian/grisp-software/build/build-libbsd.sh: 18: [: atsamv: unexpected operator
+ DO_CLEAN=0
+ DO_INSTALL=0
+ DO_CLEAN=1
+ DO_INSTALL=1
+ [ 1 -ne 0 ]
+ [ -e build ]
+ waf clean
'clean-arm-rtems4.12-atsamv' finished successfully (0.410s)
+ waf configure --prefix=/home/kilian/grisp-software/build/..//rtems-install/rtems-4.12/ --rtems-bsps=arm/atsamv
Setting top to                           : /home/kilian/grisp-software/rtems-libbsd 
Setting out to                           : /home/kilian/grisp-software/rtems-libbsd/build 
RTEMS Version                            : 4.12 
Architectures                            : arm-rtems4.12 
Board Support Package                    : arm-rtems4.12-atsamv 
Show commands                            : no 
Long commands                            : no 

from grisp-software.

c-mauderer avatar c-mauderer commented on June 10, 2024

Yes. Seems that two equal signs are not POSIX but work in bash. Should be fixed now.

from grisp-software.

holzingk avatar holzingk commented on June 10, 2024

Works now. Thanks you!

from grisp-software.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.