Skip to content

Commit

Permalink
Merge pull request #32 from beckermr/sysroot-deps
Browse files Browse the repository at this point in the history
ENH add extra sysroot deps to mark builds
  • Loading branch information
isuruf authored Jul 25, 2020
2 parents 883e60a + a50963c commit c467055
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .drone.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion .scripts/run_docker_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ctng_vendor:
#ctng_duma:
# - 2.5.15
ctng_gcc_build_number:
- 8
- 9
ctng_gmp:
- 6.1.2
ctng_isl:
Expand Down
6 changes: 6 additions & 0 deletions recipe/install-binutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ pushd ${SRC_DIR}/.build/${CHOST}/build/build-binutils-host-*
make prefix=${PREFIX} install-strip
popd

# clean up the sysroot
for tool in ar as ld ld.bfd ld.gold nm objcopy objdump ranlib readelf stri; do
rm -rf $PREFIX/$CHOST/bin/$tool
ln -s $PREFIX/bin/$CHOST-$tool $PREFIX/$CHOST/bin/$tool || true;
done

# Copy the liblto_plugin.so from the build tree. This is something of a hack and, on OSes other
# than the build OS, may cause segfaults. This plugin is used by gcc-ar, gcc-as and gcc-ranlib.
pushd ${SRC_DIR}/.build/*-*-*-*/build/build-cc-gcc-core-pass-2/gcc/
Expand Down
10 changes: 8 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ outputs:
run:
# For cpp and crt{i,n}.o
- {{ pin_subpackage("gcc_impl_" ~ ctng_target_platform, exact=True) }}
# not needed due to pinning above but marks this build as using the new sysroots
- sysroot_{{ ctng_target_platform }}
run_exports:
# impose this requirement across the build/host boundary
strong:
Expand Down Expand Up @@ -146,6 +148,8 @@ outputs:
- {{ pin_subpackage("gcc_impl_" ~ ctng_target_platform, exact=True) }}
host:
- {{ pin_subpackage("gcc_impl_" ~ ctng_target_platform, exact=True) }}
# not needed due to pinning above but marks this build as using the new sysroots
- sysroot_{{ ctng_target_platform }}
run:
# For cpp and crt{i,n}.o
- gcc_impl_{{ ctng_target_platform }} >=7.2.0
Expand Down Expand Up @@ -187,13 +191,15 @@ outputs:
missing_dso_whitelist:
- "*"
requirements:
run:
- sysroot_{{ ctng_target_platform }}
run_constrained:
- gcc_impl_{{ ctng_target_platform }} {{ ctng_gcc }}.*
- gfortran_impl_{{ ctng_target_platform }} {{ ctng_gcc }}.*
test:
commands:
- test -f ${PREFIX}/{{ ctng_cpu_arch }}*/bin/ar
- test -f ${PREFIX}/{{ ctng_cpu_arch }}*/bin/ld
- test -f ${PREFIX}/{{ ctng_cpu_arch }}-{{ ctng_vendor }}-linux-gnu/bin/ar
- test -f ${PREFIX}/{{ ctng_cpu_arch }}-{{ ctng_vendor }}-linux-gnu/bin/ld
- test -f ${PREFIX}/bin/{{ ctng_cpu_arch }}-conda_cos6-linux-gnu-ar # [x86_64]
- test -f ${PREFIX}/bin/{{ ctng_cpu_arch }}-conda_cos7-linux-gnu-ar # [not x86_64]
- test -f ${PREFIX}/bin/{{ ctng_cpu_arch }}-conda_cos6-linux-gnu-ld # [x86_64]
Expand Down

0 comments on commit c467055

Please sign in to comment.