Comments (5)
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.
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.
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.
Yes. Seems that two equal signs are not POSIX but work in bash. Should be fixed now.
from grisp-software.
Works now. Thanks you!
from grisp-software.
Related Issues (20)
- Updating the booloader on macOS 10.13.1 HOT 2
- Build fails on Mac OS 10.10.5 HOT 17
- Built-in shell hangs after editing file HOT 2
- Building grisp project failing on Mac OS 10.10.5 HOT 3
- GCC no longer builds on macOS 10.13 HOT 1
- Issue with the provided udev rules. HOT 3
- Debugging symbols missing when trying to debug the beam with gdb and supports script. HOT 4
- Question: when building toolchain, is there a way to re-use build artifacts? HOT 2
- Debugging with OpenOCD/GDB is not working. HOT 4
- OpenOCD no longer builds on GCC7
- Usage of PIO_ConfigureIt() leads to wpa_supplicant not starting HOT 8
- git.rtems.org down: rtems-sourcebuilder sub-module reference points to nonexisting changeset HOT 11
- Testsuite build: undefined reference to `_bsd_at91_mci_nexusmodule_sys_init' HOT 2
- When wpa_supplicant is not configure but Wifi enable it connects to the first unencrypted network
- Consider hosting rtems toolchain build-dependencies on GitHub HOT 13
- OpenOCD does not build with gcc 7.3.1 HOT 1
- Add instructions of how to create custom RTEMS binaries
- Missing Licence HOT 7
- Device will sometimes not boot
- Build fails on MacOS 10.15 Catalina HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grisp-software.