BUILD_CAUSE=UPSTREAMTRIGGER BUILD_CAUSE_UPSTREAMTRIGGER=true BUILD_DISPLAY_NAME=#1507 BUILD_ID=1507 BUILD_NUMBER=1507 BUILD_TAG=jenkins-tcwg-abe-test-label=tcwg-x86_64-build,test=abe-tests-1507 BUILD_URL=https://ci.linaro.org/job/tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests/1507/ EXECUTOR_NUMBER=0 GERRIT_BRANCH=master GERRIT_CHANGE_COMMIT_MESSAGE=gcc.conf: Add --with-native-system-header-dir=/include when using newlib Newlib installs its header files under $(exec_prefix)/$(host_alias)/include, but by default GCC expects them under $(exec_prefix)/$(host_alias)/usr/include. Before this patch, GCC's configure sets inhibit_libc to 'true', thus preventing libgcc2 from containing any code which requires libc support. For instance, this means that libgcov.a is essentially empty. This patch adds --with-headers=yes --with-native-system-header-dir=/include, so that GCC's configure detects the presence of the needed headers. --with-headers=yes is to be safe, as we don't want it to be set to no, see this part of GCC's configure: -------------------------------------------------- : ${inhibit_libc=false} if { { test x$host != x$target && test \"x$with_sysroot\" = x ; } || test x$with_newlib = xyes ; } && { test \"x$with_headers\" = xno || test ! -f \"$target_header_dir/stdio.h\"; } ; then inhibit_libc=true fi -------------------------------------------------- Change-Id: I4521aea24509dbf5021e844e4a9647df24221966 GERRIT_CHANGE_ID=I4521aea24509dbf5021e844e4a9647df24221966 GERRIT_CHANGE_NUMBER=45724 GERRIT_CHANGE_OWNER=\"Christophe Lyon\" GERRIT_CHANGE_OWNER_EMAIL=christophe.lyon@linaro.org GERRIT_CHANGE_OWNER_NAME=Christophe Lyon GERRIT_CHANGE_PRIVATE_STATE=false GERRIT_CHANGE_SUBJECT=gcc.conf: Add --with-native-system-header-dir=/include when using newlib GERRIT_CHANGE_URL=https://review.linaro.org/c/toolchain/abe/+/45724 GERRIT_CHANGE_WIP_STATE=false GERRIT_EVENT_ACCOUNT=\"Christophe Lyon\" GERRIT_EVENT_ACCOUNT_EMAIL=christophe.lyon@linaro.org GERRIT_EVENT_ACCOUNT_NAME=Christophe Lyon GERRIT_EVENT_HASH=1309562017 GERRIT_EVENT_TYPE=patchset-created GERRIT_HOST=review.linaro.org GERRIT_NAME=review.linaro.org GERRIT_PATCHSET_NUMBER=2 GERRIT_PATCHSET_REVISION=1956e915825a3e1c1ec99ee032f7c8fe51027cb7 GERRIT_PATCHSET_UPLOADER=\"Christophe Lyon\" GERRIT_PATCHSET_UPLOADER_EMAIL=christophe.lyon@linaro.org GERRIT_PATCHSET_UPLOADER_NAME=Christophe Lyon GERRIT_PORT=29418 GERRIT_PROJECT=toolchain/abe GERRIT_REFSPEC=refs/changes/24/45724/2 GERRIT_SCHEME=ssh GERRIT_TOPIC= GERRIT_VERSION=3.8.1 HOME=/home/tcwg-buildslave HOSTNAME=build-08 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 tcwg-build tcwg-fast-disk tcwg-parallel-jobs tcwg-x86_32-build tcwg-x86_64 tcwg-x86_64-2-cam tcwg-x86_64-build tcwg-x86_64-build-08 tcwg-x86_64-cam NODE_NAME=tcwg-x86_64-build-08 PATH=/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/1507/display/redirect?page=artifacts RUN_CHANGES_DISPLAY_URL=https://ci.linaro.org/job/tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests/1507/display/redirect?page=changes RUN_DISPLAY_URL=https://ci.linaro.org/job/tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests/1507/display/redirect RUN_TESTS_DISPLAY_URL=https://ci.linaro.org/job/tcwg-abe-test/label=tcwg-x86_64-build,test=abe-tests/1507/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-08/agent.jar -jnlpUrl https://ci.linaro.org/computer/tcwg-x86_64-build-08/slave-agent.jnlp -noReconnect -secret @jenkins/tcwg-x86_64-build-08.secret -workDir /home/tcwg-buildslave/jenkins-workdir-tcwg-x86_64-build-08 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