-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/libfixmath: replace __FILE__ by RIOT_FILE_NOPATH #9643
Conversation
I updated to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the insufficient memory problems that arise with the Docker update to Bionic. However, it does not seem to fix the boards that are already listed in BOARD_INSUFFICIENT_MEMORY
.
Test with the current Docker image:
user@user ~/Desktop/RIOT_libfixmath_debug/tests/libfixmath_unittests $ make BUILD_IN_DOCKER=1 buildtest
Launching build container using image "riot/riotbuild:latest".
docker run --rm -t -u "$(id -u)" \
-v '/home/user/Desktop/RIOT_libfixmath_debug:/data/riotbuild/riotbase' \
-v '/home/user/Desktop/RIOT_libfixmath_debug/cpu:/data/riotbuild/riotcpu' \
-v '/home/user/Desktop/RIOT_libfixmath_debug/boards:/data/riotbuild/riotboard' \
-v '/home/user/Desktop/RIOT_libfixmath_debug/makefiles:/data/riotbuild/riotmake' \
-v '/home/user/Desktop/RIOT_libfixmath_debug:/data/riotbuild/riotproject' \
-v /etc/localtime:/etc/localtime:ro \
-e 'RIOTBASE=/data/riotbuild/riotbase' \
-e 'CCACHE_BASEDIR=/data/riotbuild/riotbase' \
-e 'RIOTCPU=/data/riotbuild/riotcpu' \
-e 'RIOTBOARD=/data/riotbuild/riotboard' \
-e 'RIOTMAKE=/data/riotbuild/riotmake' \
-e 'RIOTPROJECT=/data/riotbuild/riotproject' \
\
-w '/data/riotbuild/riotproject/tests/libfixmath_unittests/' \
'riot/riotbuild:latest' make buildtest
Building for acd52832 ... success.
Building for airfy-beacon ... success.
Building for arduino-due ... success.
Building for arduino-mkr1000 ... success.
Building for arduino-mkrfox1200 ... success.
Building for arduino-mkrzero ... success.
Building for arduino-zero ... success.
Building for avsextrem ... success.
Building for b-l072z-lrwan1 ... success.
Building for b-l475e-iot01a ... success.
Building for bluepill ... success.
Building for calliope-mini ... success.
Building for cc2538dk ... success.
Building for cc2650-launchpad ... success.
Building for cc2650stk ... success.
Building for ek-lm4f120xl ... success.
Building for f4vi1 ... success.
Building for feather-m0 ... success.
Building for fox ... success.
Building for frdm-k22f ... success.
Building for frdm-k64f ... success.
Building for frdm-kw41z ... success.
Building for hifive1 ... success.
Building for ikea-tradfri ... success.
Building for iotlab-a8-m3 ... success.
Building for iotlab-m3 ... success.
Building for limifrog-v1 ... success.
Building for maple-mini ... success.
Building for mbed_lpc1768 ... success.
Building for microbit ... success.
Building for mips-malta ... success.
Building for msba2 ... success.
Building for msbiot ... success.
Building for mulle ... success.
Building for native ... success.
Building for nrf51dongle ... success.
Building for nrf52840dk ... success.
Building for nrf52dk ... success.
Building for nrf6310 ... success.
Building for nucleo-f030r8 ... success.
Building for nucleo-f031k6 ... failed!
Building for nucleo-f042k6 ... failed!
Building for nucleo-f070rb ... success.
Building for nucleo-f072rb ... success.
Building for nucleo-f091rc ... success.
Building for nucleo-f103rb ... success.
Building for nucleo-f207zg ... success.
Building for nucleo-f302r8 ... success.
Building for nucleo-f303k8 ... success.
Building for nucleo-f303re ... success.
Building for nucleo-f303ze ... success.
Building for nucleo-f334r8 ... success.
Building for nucleo-f401re ... success.
Building for nucleo-f410rb ... success.
Building for nucleo-f411re ... success.
Building for nucleo-f412zg ... success.
Building for nucleo-f413zh ... success.
Building for nucleo-f429zi ... success.
Building for nucleo-f446re ... success.
Building for nucleo-f446ze ... success.
Building for nucleo-f722ze ... success.
Building for nucleo-f746zg ... success.
Building for nucleo-f767zi ... success.
Building for nucleo-l031k6 ... failed!
Building for nucleo-l053r8 ... success.
Building for nucleo-l073rz ... success.
Building for nucleo-l152re ... success.
Building for nucleo-l432kc ... success.
Building for nucleo-l433rc ... success.
Building for nucleo-l452re ... success.
Building for nucleo-l476rg ... success.
Building for nucleo-l496zg ... success.
Building for nz32-sc151 ... success.
Building for opencm904 ... success.
Building for openmote-cc2538 ... success.
Building for pba-d-01-kw2x ... success.
Building for pic32-clicker ... success.
Building for pic32-wifire ... success.
Building for remote-pa ... success.
Building for remote-reva ... success.
Building for remote-revb ... success.
Building for ruuvitag ... success.
Building for samd21-xpro ... success.
Building for saml21-xpro ... success.
Building for samr21-xpro ... success.
Building for seeeduino_arch-pro ... success.
Building for slstk3401a ... success.
Building for slstk3402a ... success.
Building for sltb001a ... success.
Building for slwstk6000b ... success.
Building for slwstk6220a ... success.
Building for sodaq-autonomo ... success.
Building for sodaq-explorer ... success.
Building for spark-core ... success.
Building for stk3600 ... success.
Building for stk3700 ... success.
Building for stm32f0discovery ... success.
Building for stm32f3discovery ... success.
Building for stm32f429i-disc1 ... success.
Building for stm32f4discovery ... success.
Building for stm32f769i-disco ... success.
Building for stm32l476g-disco ... success.
Building for stm32mindev ... success.
Building for teensy31 ... success.
Building for thingy52 ... success.
Building for ublox-c030-u201 ... success.
Building for udoo ... success.
Building for yunjia-nrf51822 ... success.
/data/riotbuild/riotmake/buildtests.inc.mk:7: recipe for target 'buildtest' failed
make: *** [buildtest] Error 1
/home/user/Desktop/RIOT_libfixmath_debug/makefiles/docker.inc.mk:90: recipe for target '..in-docker-container' failed
make: *** [..in-docker-container] Error 2
Test with the new Bionic image:
user@user ~/Desktop/RIOT_libfixmath_debug/tests/libfixmath_unittests $ make BUILD_IN_DOCKER=1 buildtest
Launching build container using image "riotdocker_bionic:latest".
docker run --rm -t -u "$(id -u)" \
-v '/home/user/Desktop/RIOT_libfixmath_debug:/data/riotbuild/riotbase' \
-v '/home/user/Desktop/RIOT_libfixmath_debug/cpu:/data/riotbuild/riotcpu' \
-v '/home/user/Desktop/RIOT_libfixmath_debug/boards:/data/riotbuild/riotboard' \
-v '/home/user/Desktop/RIOT_libfixmath_debug/makefiles:/data/riotbuild/riotmake' \
-v '/home/user/Desktop/RIOT_libfixmath_debug:/data/riotbuild/riotproject' \
-v /etc/localtime:/etc/localtime:ro \
-e 'RIOTBASE=/data/riotbuild/riotbase' \
-e 'CCACHE_BASEDIR=/data/riotbuild/riotbase' \
-e 'RIOTCPU=/data/riotbuild/riotcpu' \
-e 'RIOTBOARD=/data/riotbuild/riotboard' \
-e 'RIOTMAKE=/data/riotbuild/riotmake' \
-e 'RIOTPROJECT=/data/riotbuild/riotproject' \
\
-w '/data/riotbuild/riotproject/tests/libfixmath_unittests/' \
'riotdocker_bionic:latest' make buildtest
Building for acd52832 ... success.
Building for airfy-beacon ... success.
Building for arduino-due ... success.
Building for arduino-mkr1000 ... success.
Building for arduino-mkrfox1200 ... success.
Building for arduino-mkrzero ... success.
Building for arduino-zero ... success.
Building for avsextrem ... success.
Building for b-l072z-lrwan1 ... success.
Building for b-l475e-iot01a ... success.
Building for bluepill ... success.
Building for calliope-mini ... success.
Building for cc2538dk ... success.
Building for cc2650-launchpad ... success.
Building for cc2650stk ... success.
Building for ek-lm4f120xl ... success.
Building for f4vi1 ... success.
Building for feather-m0 ... success.
Building for fox ... success.
Building for frdm-k22f ... success.
Building for frdm-k64f ... success.
Building for frdm-kw41z ... success.
Building for hifive1 ... success.
Building for ikea-tradfri ... success.
Building for iotlab-a8-m3 ... success.
Building for iotlab-m3 ... success.
Building for limifrog-v1 ... success.
Building for maple-mini ... success.
Building for mbed_lpc1768 ... success.
Building for microbit ... success.
Building for mips-malta ... success.
Building for msba2 ... success.
Building for msbiot ... success.
Building for mulle ... success.
Building for native ... success.
Building for nrf51dongle ... success.
Building for nrf52840dk ... success.
Building for nrf52dk ... success.
Building for nrf6310 ... success.
Building for nucleo-f030r8 ... success.
Building for nucleo-f031k6 ... failed!
Building for nucleo-f042k6 ... failed!
Building for nucleo-f070rb ... success.
Building for nucleo-f072rb ... success.
Building for nucleo-f091rc ... success.
Building for nucleo-f103rb ... success.
Building for nucleo-f207zg ... success.
Building for nucleo-f302r8 ... success.
Building for nucleo-f303k8 ... success.
Building for nucleo-f303re ... success.
Building for nucleo-f303ze ... success.
Building for nucleo-f334r8 ... success.
Building for nucleo-f401re ... success.
Building for nucleo-f410rb ... success.
Building for nucleo-f411re ... success.
Building for nucleo-f412zg ... success.
Building for nucleo-f413zh ... success.
Building for nucleo-f429zi ... success.
Building for nucleo-f446re ... success.
Building for nucleo-f446ze ... success.
Building for nucleo-f722ze ... success.
Building for nucleo-f746zg ... success.
Building for nucleo-f767zi ... success.
Building for nucleo-l031k6 ... failed!
Building for nucleo-l053r8 ... success.
Building for nucleo-l073rz ... success.
Building for nucleo-l152re ... success.
Building for nucleo-l432kc ... success.
Building for nucleo-l433rc ... success.
Building for nucleo-l452re ... success.
Building for nucleo-l476rg ... success.
Building for nucleo-l496zg ... success.
Building for nz32-sc151 ... success.
Building for opencm904 ... success.
Building for openmote-cc2538 ... success.
Building for pba-d-01-kw2x ... success.
Building for pic32-clicker ... success.
Building for pic32-wifire ... success.
Building for remote-pa ... success.
Building for remote-reva ... success.
Building for remote-revb ... success.
Building for ruuvitag ... success.
Building for samd21-xpro ... success.
Building for saml21-xpro ... success.
Building for samr21-xpro ... success.
Building for seeeduino_arch-pro ... success.
Building for slstk3401a ... success.
Building for slstk3402a ... success.
Building for sltb001a ... success.
Building for slwstk6000b ... success.
Building for slwstk6220a ... success.
Building for sodaq-autonomo ... success.
Building for sodaq-explorer ... success.
Building for spark-core ... success.
Building for stk3600 ... success.
Building for stk3700 ... success.
Building for stm32f0discovery ... success.
Building for stm32f3discovery ... success.
Building for stm32f429i-disc1 ... success.
Building for stm32f4discovery ... success.
Building for stm32f769i-disco ... success.
Building for stm32l476g-disco ... success.
Building for stm32mindev ... success.
Building for teensy31 ... success.
Building for thingy52 ... success.
Building for ublox-c030-u201 ... success.
Building for udoo ... success.
Building for yunjia-nrf51822 ... success.
/data/riotbuild/riotmake/buildtests.inc.mk:7: recipe for target 'buildtest' failed
make: *** [buildtest] Error 1
/home/user/Desktop/RIOT_libfixmath_debug/makefiles/docker.inc.mk:90: recipe for target '..in-docker-container' failed
make: *** [..in-docker-container] Error 2
tests/libfixmath_unittests/Makefile
Outdated
@@ -7,8 +7,6 @@ BOARD_BLACKLIST := arduino-mega2560 waspmote-pro arduino-uno arduino-duemilanove | |||
# The MSP boards don't feature round(), exp(), and log(), which are used in the unittests | |||
BOARD_BLACKLIST += chronos msb-430 msb-430h telosb wsn430-v1_3b wsn430-v1_4 z1 | |||
|
|||
BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6 nucleo-l031k6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is safe to remove this, according to my test above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the review. It is cool that it fixes the upgrade.
I removed this line to get the report from murdock, I will re-re-re-revert when it fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It indeed failed also on murdock
I reverted the BOARD_INSUFFICIENT_MEMORY
commit.
c740f7e
to
bb0c94e
Compare
Please tell me if I can squash to provide the final commits. |
You can squash. I think we need another opinion on the changes to |
My bad for the docker thing, I rebased it on #9643 to be able to test and forgot to remove it… |
The binary file size changes when the RIOT directory is moved. This caused the `libfixmath_unittests` to fail on my computer. I used RIOT_FILE_NOPATH instead of RIOT_FILE_RELATIVE as 'TEST' is used a lot and it would allow more boards to be tested, full path is not that important.
bb0c94e
to
7913dd9
Compare
ACK. Everything looks good. |
Backport provided in #9657 |
Contribution description
Update the TEST macro to use our
RIOT_FILE_RELATIVERIOT_FILE_NOPATH macro.The binary file size changes when the RIOT directory is moved.
This caused the
libfixmath_unittests
to fail on my computer.This saves
18726632 bytes of rom forsamr21-xpro
on my computer.Issues/PRs references
Same reasons as why the macro was introduced #2969
Found during release testing