-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Area: CIArea: Continuous Integration of RIOT componentsArea: Continuous Integration of RIOT componentsArea: build systemArea: Build systemArea: Build systemArea: toolchainArea: toolchains; everything related to compilation, libc, linking, …Area: toolchains; everything related to compilation, libc, linking, …Area: toolsArea: Supplementary toolsArea: Supplementary toolsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)Type: trackingThe issue tracks and organizes the sub-tasks of a larger effortThe issue tracks and organizes the sub-tasks of a larger effort
Description
Description
Compilation behavior is different between murdock the docker image with BUILD_IN_DOCKER=1 even with RIOT_CI_BUILD=1.
It makes things hard to debug and understand the root cause of problems.
Like for the following PRs:
#9362 Warnings only on murdock
#9605 Warnings only on murdock with llvm
#9507 Enough memory on murdock but not in the container
Sub pull requests
- pkg/libfixmath: replace FILE by RIOT_FILE_NOPATH pkg/libfixmath: replace __FILE__ by RIOT_FILE_NOPATH #9643
- makefiles/docker.inc.mk: export RIOT_CI_BUILD to docker makefiles/docker.inc.mk: export RIOT_CI_BUILD to docker #9895
- makefiles/docker.inc.mk: handle building in git worktree makefiles/docker.inc.mk: handle building in git worktree #10303
- makefiles/docker.inc.mk: Use directories in RIOT when possible makefiles/docker.inc.mk: Use directories in RIOT when possible #9646
- Makefile.include: Fix BUILDRELPATH when RIOTPROJECT is CURDIR. Makefile.include: Fix BUILDRELPATH when RIOTPROJECT is CURDIR. #10302
- tests/*boot: handle building in docker tests/mcuboot: handle building in docker #11083
Steps to reproduce the issue
To take one as an example:
Building tests/pkg_fatfs_vfs for BOARD=wsn430-v1_4 works in murdock as it is not complaining but this does not
make -C tests/pkg_fatfs_vfs/ BOARD=wsn430-v1_4 clean all RIOT_CI_BUILD=1 BUILD_IN_DOCKER=1 DOCKER="sudo docker"
Expected results
It has the same behavior in docker as in murdock, so either both fail or both succeed.
Actual results
Murdock is ok, but in docker it fails with:
/data/riotbuild/riotproject/tests/pkg_fatfs_vfs/bin/wsn430-v1_4/fatfs.a(ff.o):(.debug_loc+0x1656): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol'
collect2: ld returned 1 exit status
/data/riotbuild/riotbase/Makefile.include:411: recipe for target '/data/riotbuild/riotproject/tests/pkg_fatfs_vfs/bin/wsn430-v1_4/pkg_fatfs_vfs.elf' failed
make: *** [/data/riotbuild/riotproject/tests/pkg_fatfs_vfs/bin/wsn430-v1_4/pkg_fatfs_vfs.elf] Error 1
Versions
Building with docker in master.
Reactions are currently unavailable
Metadata
Metadata
Labels
Area: CIArea: Continuous Integration of RIOT componentsArea: Continuous Integration of RIOT componentsArea: build systemArea: Build systemArea: Build systemArea: toolchainArea: toolchains; everything related to compilation, libc, linking, …Area: toolchains; everything related to compilation, libc, linking, …Area: toolsArea: Supplementary toolsArea: Supplementary toolsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)Type: trackingThe issue tracks and organizes the sub-tasks of a larger effortThe issue tracks and organizes the sub-tasks of a larger effort