BUILD_CAUSE=UPSTREAMTRIGGER BUILD_CAUSE_UPSTREAMTRIGGER=true BUILD_DISPLAY_NAME=#1582 BUILD_ID=1582 BUILD_NUMBER=1582 BUILD_TAG=jenkins-tcwg-abe-test-label=tcwg-x86_64-build,test=abe-tests-1582 BUILD_URL=https://ci.linaro.org/job/tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests/1582/ EXECUTOR_NUMBER=1 GERRIT_BRANCH=master GERRIT_CHANGE_COMMIT_MESSAGE=lib/make.sh: Fix test-container tests on armhf The glibc tests are built in two different modes (enabled at configure time): 1. No RPATH defined, tests will run by issuing the loader along with the required library paths. It is the default option. 2. RPATH defined, tests will have RPATH pointing to the build directory, so the kernel will be responsible for running the loader. It enables with --enable-hardcoded-path-in-tests. In both cases, the loader consults the system cache (ld.so.cache), so any compiler dynamic library (libgcc_s.so for instance) is supplied by the system. However, this might fail for container tests, where even test-container (the binary that setups and runs the tests in a container mode) creates a loader cache that might not contain the required libraries. The glibc build system tries to check and provide the required libraries by tracing the DT_NEEDED one from a test binary, but the tracing inhibits the system loader, and thus it will not copy the required system libraries. It is expected the user top copy the required libraries to build a directory. This works for case 2., however, test-container does not issue the loader for case 1.: it will parse the command arguments and issue the binary and the kernel will be responsible for starting the loader. This has the side-effect of ignoring all the defined --library-path and thus making the compiler libraries copy trick ineffective. So we copy the compiler libraries on both the build directory and on the sysroot used by the test-container to set each test. The format handles the case 1., while the latter will place the libraries on the default system path, which will be included in the loader cache as well (and handling case 2.). Change-Id: I5b90c733a92a5980a8f33e5b6a5c67f768f91906 GERRIT_CHANGE_ID=I5b90c733a92a5980a8f33e5b6a5c67f768f91906 GERRIT_CHANGE_NUMBER=46859 GERRIT_CHANGE_OWNER=\"Adhemerval Zanella\" GERRIT_CHANGE_OWNER_EMAIL=adhemerval.zanella@linaro.org GERRIT_CHANGE_OWNER_NAME=Adhemerval Zanella GERRIT_CHANGE_PRIVATE_STATE=false GERRIT_CHANGE_SUBJECT=lib/make.sh: Fix test-container tests on armhf GERRIT_CHANGE_URL=https://review.linaro.org/c/toolchain/abe/+/46859 GERRIT_CHANGE_WIP_STATE=false GERRIT_EVENT_ACCOUNT=\"Adhemerval Zanella\" GERRIT_EVENT_ACCOUNT_EMAIL=adhemerval.zanella@linaro.org GERRIT_EVENT_ACCOUNT_NAME=Adhemerval Zanella GERRIT_EVENT_HASH=-119474690 GERRIT_EVENT_TYPE=patchset-created GERRIT_HOST=review.linaro.org GERRIT_NAME=review.linaro.org GERRIT_PATCHSET_NUMBER=1 GERRIT_PATCHSET_REVISION=810766da2de6e00de3f3f91904f210b4fd053c0e GERRIT_PATCHSET_UPLOADER=\"Adhemerval Zanella\" GERRIT_PATCHSET_UPLOADER_EMAIL=adhemerval.zanella@linaro.org GERRIT_PATCHSET_UPLOADER_NAME=Adhemerval Zanella GERRIT_PORT=29418 GERRIT_PROJECT=toolchain/abe GERRIT_REFSPEC=refs/changes/59/46859/1 GERRIT_SCHEME=ssh GERRIT_TOPIC=azanella/glibc-test-container-ci-fix GERRIT_VERSION=3.8.1 HOME=/home/tcwg-buildslave HOSTNAME=build-04 HUDSON_HOME=/var/jenkins_home HUDSON_SERVER_COOKIE=bd3c6a001cafdac9 HUDSON_URL=https://ci.linaro.org/ JENKINS_HOME=/var/jenkins_home JENKINS_SERVER_COOKIE=bd3c6a001cafdac9 JENKINS_URL=https://ci.linaro.org/ JOB_BASE_NAME=label=tcwg-x86_64-build,test=abe-tests JOB_NAME=tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests JOB_URL=https://ci.linaro.org/job/tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests/ LANG=en_US.UTF-8 LOGNAME=tcwg-buildslave MAIL=/var/mail/tcwg-buildslave NODE_LABELS=tcwg-build tcwg-x86_64-cam tcwg-x86_64-build-04 tcwg-parallel-jobs tcwg-x86_64 tcwg tcwg-x86_32-build tcwg-x86_64-2-cam tcwg-x86_64-build NODE_NAME=tcwg-x86_64-build-04 PATH=/home/tcwg-buildslave/bin:/home/tcwg-buildslave/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin PWD=/home/tcwg-buildslave ROOT_BUILD_CAUSE=SCMTRIGGER ROOT_BUILD_CAUSE_SCMTRIGGER=true RUN_ARTIFACTS_DISPLAY_URL=https://ci.linaro.org/job/tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests/1582/display/redirect?page=artifacts RUN_CHANGES_DISPLAY_URL=https://ci.linaro.org/job/tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests/1582/display/redirect?page=changes RUN_DISPLAY_URL=https://ci.linaro.org/job/tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests/1582/display/redirect RUN_TESTS_DISPLAY_URL=https://ci.linaro.org/job/tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests/1582/display/redirect?page=tests SHELL=/bin/bash SHLVL=0 SUDO_COMMAND=/bin/bash -c java -jar /home/tcwg-buildslave/jenkins-workdir-tcwg-x86_64-build-04/agent.jar -jnlpUrl https://ci.linaro.org/computer/tcwg-x86_64-build-04/slave-agent.jnlp -noReconnect -secret @jenkins/tcwg-x86_64-build-04.secret -workDir /home/tcwg-buildslave/jenkins-workdir-tcwg-x86_64-build-04 SUDO_GID=0 SUDO_UID=0 SUDO_USER=root TERM=xterm USER=tcwg-buildslave _=/usr/bin/java dryrun=false label=tcwg-x86_64-build scripts_branch=master test=abe-tests test_list=cross_build native_build testsuite abe-tests abe-tests-checkout