assassinlike commited on
Commit
40cc629
·
verified ·
1 Parent(s): 84afb07

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/about.json +96 -0
  2. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/files +1 -0
  3. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/git +0 -0
  4. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/hash_input.json +7 -0
  5. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/index.json +18 -0
  6. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/licenses/LICENSE0.txt +13 -0
  7. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/paths.json +11 -0
  8. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/conda_build_config.yaml +119 -0
  9. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/install_scripts/install-openmp_impl.sh +9 -0
  10. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/meta.yaml +38 -0
  11. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build.sh +34 -0
  12. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/binutils_host.sh +64 -0
  13. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/build.sh +121 -0
  14. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/build_env.sh +146 -0
  15. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/debug.sh +18 -0
  16. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/duma_target.sh +33 -0
  17. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/expat_host.sh +31 -0
  18. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/expat_target.sh +31 -0
  19. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/final.sh +50 -0
  20. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gcc_core.sh +99 -0
  21. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gcc_host.sh +122 -0
  22. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gdb_server.sh +61 -0
  23. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gdb_target.sh +67 -0
  24. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gettext_host.sh +47 -0
  25. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/glibc_core.sh +117 -0
  26. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gmp_host.sh +47 -0
  27. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gmp_target.sh +49 -0
  28. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/isl_host.sh +38 -0
  29. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/kernel_headers.sh +44 -0
  30. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/libelf_target.sh +35 -0
  31. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/libiconv_host.sh +37 -0
  32. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ltrace_target.sh +39 -0
  33. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/mpc_host.sh +35 -0
  34. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/mpfr_host.sh +42 -0
  35. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_build.sh +38 -0
  36. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_host.sh +39 -0
  37. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_target.sh +33 -0
  38. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/strace_target.sh +29 -0
  39. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/zlib_host.sh +31 -0
  40. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/c11threads.c +6 -0
  41. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/cleanup.sh +17 -0
  42. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/conda_build_config.yaml +49 -0
  43. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/decompress.sh +71 -0
  44. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/hello-world.cpp +7 -0
  45. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-duma.sh +10 -0
  46. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-g++.sh +56 -0
  47. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gcc.sh +211 -0
  48. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gdb-server.sh +33 -0
  49. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gdb.sh +34 -0
  50. data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gfortran.sh +76 -0
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/about.json ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "channels": [
3
+ "https://repo.anaconda.com/pkgs/main"
4
+ ],
5
+ "conda_build_version": "3.21.8",
6
+ "conda_private": false,
7
+ "conda_version": "4.11.0",
8
+ "env_vars": {
9
+ "CIO_TEST": "<not set>"
10
+ },
11
+ "extra": {
12
+ "copy_test_source_files": true,
13
+ "final": true,
14
+ "flow_run_id": "2f66d621-ebda-4fb5-92c1-4e86fe27c916",
15
+ "parent_recipe": {
16
+ "name": "gcc-compiler",
17
+ "path": "/feedstock/recipe",
18
+ "version": "11.2.0"
19
+ },
20
+ "recipe-maintainers": [
21
+ "katietz"
22
+ ],
23
+ "remote_url": "git@github.com:AnacondaRecipes/gcc_toolchain-feedstock.git",
24
+ "sha": "4c0a4d997795b643346dd071598ce13578be7b1e"
25
+ },
26
+ "home": "https://github.com/AnacondaRecipes/gcc-compiler-feedstock",
27
+ "identifiers": [],
28
+ "keywords": [],
29
+ "license": "BSD-3-Clause",
30
+ "license_file": "../LICENSE",
31
+ "root_pkgs": [
32
+ "_libgcc_mutex 0.1 main",
33
+ "_openmp_mutex 4.5 1_gnu",
34
+ "brotlipy 0.7.0 py39h27cfd23_1003",
35
+ "chardet 4.0.0 py39h06a4308_1003",
36
+ "conda-package-handling 1.7.3 py39h27cfd23_1",
37
+ "ld_impl_linux-64 2.35.1 h7274673_9",
38
+ "libffi 3.3 he6710b0_2",
39
+ "libgcc-ng 9.3.0 h5101ec6_17",
40
+ "libgomp 9.3.0 h5101ec6_17",
41
+ "libstdcxx-ng 9.3.0 hd4cf53a_17",
42
+ "pycosat 0.6.3 py39h27cfd23_0",
43
+ "pysocks 1.7.1 py39h06a4308_0",
44
+ "ruamel_yaml 0.15.100 py39h27cfd23_0",
45
+ "xz 5.2.5 h7b6447c_0",
46
+ "yaml 0.2.5 h7b6447c_0",
47
+ "beautifulsoup4 4.10.0 pyh06a4308_0",
48
+ "bzip2 1.0.8 h7b6447c_0",
49
+ "ca-certificates 2022.2.1 h06a4308_0",
50
+ "certifi 2021.10.8 py39h06a4308_2",
51
+ "cffi 1.15.0 py39hd667e15_1",
52
+ "charset-normalizer 2.0.4 pyhd3eb1b0_0",
53
+ "conda 4.11.0 py39h06a4308_0",
54
+ "conda-build 3.21.8 py39h06a4308_1",
55
+ "cryptography 36.0.0 py39h9ce1e76_0",
56
+ "filelock 3.6.0 pyhd3eb1b0_0",
57
+ "glob2 0.7 pyhd3eb1b0_0",
58
+ "icu 58.2 he6710b0_3",
59
+ "idna 3.3 pyhd3eb1b0_0",
60
+ "jinja2 2.11.3 pyhd3eb1b0_0",
61
+ "libarchive 3.4.2 h62408e4_0",
62
+ "liblief 0.10.1 h2531618_1",
63
+ "libxml2 2.9.12 h03d6c58_0",
64
+ "lz4-c 1.9.3 h295c915_1",
65
+ "markupsafe 2.0.1 py39h27cfd23_0",
66
+ "ncurses 6.3 h7f8727e_2",
67
+ "openssl 1.1.1m h7f8727e_0",
68
+ "patchelf 0.13 h295c915_0",
69
+ "pip 21.2.4 py39h06a4308_0",
70
+ "pkginfo 1.8.2 pyhd3eb1b0_0",
71
+ "psutil 5.8.0 py39h27cfd23_1",
72
+ "py-lief 0.10.1 py39h2531618_1",
73
+ "pycparser 2.21 pyhd3eb1b0_0",
74
+ "pyopenssl 22.0.0 pyhd3eb1b0_0",
75
+ "python 3.9.7 h12debd9_1",
76
+ "python-libarchive-c 2.9 pyhd3eb1b0_1",
77
+ "pytz 2021.3 pyhd3eb1b0_0",
78
+ "pyyaml 6.0 py39h7f8727e_1",
79
+ "readline 8.1.2 h7f8727e_1",
80
+ "requests 2.27.1 pyhd3eb1b0_0",
81
+ "ripgrep 12.1.1 0",
82
+ "setuptools 58.0.4 py39h06a4308_0",
83
+ "six 1.16.0 pyhd3eb1b0_1",
84
+ "soupsieve 2.3.1 pyhd3eb1b0_0",
85
+ "sqlite 3.38.0 hc218d9a_0",
86
+ "tk 8.6.11 h1ccaba5_0",
87
+ "tqdm 4.62.3 pyhd3eb1b0_1",
88
+ "tzdata 2021e hda174b7_0",
89
+ "urllib3 1.26.8 pyhd3eb1b0_0",
90
+ "wheel 0.37.1 pyhd3eb1b0_0",
91
+ "zlib 1.2.11 h7f8727e_4",
92
+ "zstd 1.4.9 haebb681_0"
93
+ ],
94
+ "summary": "OpenMP Implementation Mutex",
95
+ "tags": []
96
+ }
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/files ADDED
@@ -0,0 +1 @@
 
 
1
+ lib/libgomp.so.1
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/git ADDED
File without changes
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/hash_input.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "channel_targets": "defaults",
3
+ "libgomp_ver": "1.0.0",
4
+ "openmp_ver": "5.1",
5
+ "target_platform": "linux-64",
6
+ "_libgcc_mutex": "0.1 main"
7
+ }
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/index.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "arch": "x86_64",
3
+ "build": "1_gnu",
4
+ "build_number": 0,
5
+ "constrains": [
6
+ "openmp_impl 9999"
7
+ ],
8
+ "depends": [
9
+ "_libgcc_mutex 0.1 main",
10
+ "libgomp >=7.5.0"
11
+ ],
12
+ "license": "BSD-3-Clause",
13
+ "name": "_openmp_mutex",
14
+ "platform": "linux",
15
+ "subdir": "linux-64",
16
+ "timestamp": 1652859733309,
17
+ "version": "5.1"
18
+ }
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/licenses/LICENSE0.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ BSD 3-clause license
2
+ Copyright (c) 2022, Anaconda
3
+ All rights reserved.
4
+
5
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8
+
9
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10
+
11
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
12
+
13
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/paths.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "paths": [
3
+ {
4
+ "_path": "lib/libgomp.so.1",
5
+ "path_type": "softlink",
6
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
7
+ "size_in_bytes": 0
8
+ }
9
+ ],
10
+ "paths_version": 1
11
+ }
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/conda_build_config.yaml ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ VERBOSE_AT: V=1
2
+ VERBOSE_CM: VERBOSE=1
3
+ _libgcc_mutex: 0.1 main
4
+ apr: 1.6.3
5
+ blas_impl: openblas
6
+ boost: '1.73'
7
+ boost_cpp: '1.73'
8
+ bzip2: '1.0'
9
+ c_compiler: gcc
10
+ c_compiler_version: 7.5.0
11
+ cairo: '1.14'
12
+ channel_targets: defaults
13
+ clang_variant: clang
14
+ conda_glibc_ver: '2.17'
15
+ cpu_arch: x86_64
16
+ cpu_optimization_target: nocona
17
+ cran_mirror: https://mran.microsoft.com/snapshot/2018-01-01
18
+ cxx_compiler: gxx
19
+ cxx_compiler_version: 7.5.0
20
+ cyrus_sasl: 2.1.26
21
+ dbus: '1'
22
+ duma_version: 2.5.15
23
+ expat: '2.2'
24
+ extend_keys:
25
+ - ignore_version
26
+ - extend_keys
27
+ - pin_run_as_build
28
+ - ignore_build_only_deps
29
+ fontconfig: '2.13'
30
+ fortran_compiler: gfortran
31
+ fortran_compiler_version: 7.5.0
32
+ freetype: '2.10'
33
+ g2clib: '1.6'
34
+ gcc_version: 11.2.0
35
+ gcc_version_build_number: '0'
36
+ gdb_server_version: '11.2'
37
+ gdb_version: '11.2'
38
+ geos: 3.8.0
39
+ giflib: '5'
40
+ glib: '2'
41
+ gmp: '6.1'
42
+ gnu: '2.17'
43
+ gst_plugins_base: '1.14'
44
+ gstreamer: '1.14'
45
+ harfbuzz: '2.4'
46
+ hdf4: '4.2'
47
+ hdf5: 1.10.6
48
+ hdfeos2: '2.20'
49
+ hdfeos5: '5.1'
50
+ icu: '58'
51
+ ignore_build_only_deps:
52
+ - python
53
+ - numpy
54
+ jpeg: '9'
55
+ kernel_version: 3.10.0
56
+ libdap4: '3.19'
57
+ libffi: '3.3'
58
+ libgd: 2.2.5
59
+ libgdal: '3.0'
60
+ libgfortran_soname: '5'
61
+ libgomp_ver: 1.0.0
62
+ libgsasl: '1.8'
63
+ libkml: '1.3'
64
+ libnetcdf: '4.8'
65
+ libpng: '1.6'
66
+ libprotobuf: 3.11.2
67
+ libtiff: '4.1'
68
+ libwebp: 1.2.0
69
+ libxml2: '2.9'
70
+ libxslt: '1.1'
71
+ llvm_variant: llvm
72
+ ltrace_version: 0.7.3
73
+ lua: '5'
74
+ lzo: '2'
75
+ mkl: '2021'
76
+ mpfr: '4'
77
+ numpy: '1.21'
78
+ openblas: 0.3.3
79
+ openjpeg: '2.3'
80
+ openmp_ver: '5.1'
81
+ openssl: 1.1.1
82
+ perl: '5.26'
83
+ pin_run_as_build:
84
+ python:
85
+ min_pin: x.x
86
+ max_pin: x.x
87
+ r-base:
88
+ min_pin: x.x
89
+ max_pin: x.x
90
+ libboost:
91
+ max_pin: x.x.x
92
+ pixman: '0.30'
93
+ proj: 6.2.1
94
+ proj4: 5.2.0
95
+ python: '3.10'
96
+ python_impl: cpython
97
+ python_implementation: cpython
98
+ qtwebkit: 'true'
99
+ r_base: '3.5'
100
+ r_implementation: r-base
101
+ r_version: 3.5.0
102
+ readline: '8.0'
103
+ rust_compiler: rust
104
+ rust_compiler_version: 1.56.0
105
+ serf: 1.3.9
106
+ sqlite: '3'
107
+ strace_version: '5.16'
108
+ target_platform: linux-64
109
+ tk: '8.6'
110
+ xz: '5'
111
+ zip_keys:
112
+ - - gcc_version
113
+ - libgfortran_soname
114
+ - - kernel_version
115
+ - conda_glibc_ver
116
+ - cpu_arch
117
+ - - python
118
+ - numpy
119
+ zlib: '1.2'
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/install_scripts/install-openmp_impl.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ set -e -x
2
+
3
+ CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine)
4
+
5
+ mkdir -p ${PREFIX}/lib
6
+
7
+ pushd ${PREFIX}/lib/
8
+ ln -s libgomp.so.${libgomp_ver} libgomp.so.${libgomp_ver:0:1}
9
+ popd
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/meta.yaml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file created by conda-build 3.21.8
2
+ # ------------------------------------------------
3
+
4
+ package:
5
+ name: _openmp_mutex
6
+ version: 5.1
7
+ source:
8
+ path: /feedstock/recipe
9
+ build:
10
+ number: 0
11
+ run_exports:
12
+ strong:
13
+ - _openmp_mutex >=5.1
14
+ string: 1_gnu
15
+ requirements:
16
+ build: []
17
+ run:
18
+ - _libgcc_mutex 0.1 main
19
+ - libgomp >=7.5.0
20
+ run_constrained:
21
+ - openmp_impl 9999
22
+ test:
23
+ commands:
24
+ - test -f ${PREFIX}/lib/libgomp.so.1
25
+ - test `readlink ${PREFIX}/lib/libgomp.so.1` == "libgomp.so.1.0.0"
26
+ about:
27
+ home: https://github.com/AnacondaRecipes/gcc-compiler-feedstock
28
+ license: BSD-3-Clause
29
+ license_file: ../LICENSE
30
+ summary: OpenMP Implementation Mutex
31
+ extra:
32
+ copy_test_source_files: true
33
+ final: true
34
+ flow_run_id: 2f66d621-ebda-4fb5-92c1-4e86fe27c916
35
+ recipe-maintainers:
36
+ - katietz
37
+ remote_url: git@github.com:AnacondaRecipes/gcc_toolchain-feedstock.git
38
+ sha: 4c0a4d997795b643346dd071598ce13578be7b1e
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build.sh ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -ex
4
+
5
+ # debugging ...
6
+ if [ -z "${RECIPE_DIR}" ]; then
7
+ RECIPE_DIR=$PWD
8
+ fi
9
+
10
+ if [[ ${target_platform} =~ osx-.* ]]; then
11
+ if [[ ! -f ${BUILD_PREFIX}/bin/llvm-objcopy ]]; then
12
+ echo "no llvm-objcopy"
13
+ exit 1
14
+ fi
15
+ ln -s ${BUILD_PREFIX}/bin/llvm-objcopy ${BUILD_PREFIX}/bin/x86_64-apple-darwin19.6.0-objcopy
16
+ chmod +x ${BUILD_PREFIX}/bin/x86_64-apple-darwin19.6.0-objcopy
17
+ ln -s ${BUILD_PREFIX}/bin/llvm-objcopy ${BUILD_PREFIX}/bin/objcopy
18
+ chmod +x ${BUILD_PREFIX}/bin/objcopy
19
+ unset CC CXX
20
+ fi
21
+
22
+ if [[ $(uname) == Linux ]]; then
23
+ ulimit -s 32768 || true
24
+ fi
25
+
26
+ if [[ "${bootstrapping}" != "yes" ]]; then
27
+ # Use own compilers instead of relying on ones from the docker image/system
28
+ conda create -p $SRC_DIR/compilers gcc_${target_platform} gxx_${target_platform} binutils \
29
+ make gawk sed libtool --yes --quiet
30
+ fi
31
+
32
+ ${RECIPE_DIR}/build_scripts/build.sh
33
+
34
+ exit 0
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/binutils_host.sh ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ EXTRA_CONFIG="--enable-ld=yes --enable-gold=no"
8
+ case "${CFG_ARCH}" in
9
+ arm*)
10
+ EXTRA_CONFIG="--enable-ld=default --enable-gold=yes --enable-threads"
11
+ ;;
12
+ esac
13
+
14
+ rm -rf "${WDIR}/build/binutils-host"
15
+ mkdir "${WDIR}/build/binutils-host"
16
+ pushd "${WDIR}/build/binutils-host"
17
+
18
+ export ac_cv_func_glob=no
19
+
20
+ CC_FOR_BUILD="${HOST}-gcc" \
21
+ CFLAGS_FOR_BUILD="${HOST_CFLAG}" \
22
+ CXXFLAGS_FOR_BUILD="${HOST_CFLAG}" \
23
+ LDFLAGS_FOR_BUILD="${HOST_LDFLAG}" \
24
+ CFLAGS="-pipe ${HOST_CFLAG}" \
25
+ CXXFLAGS="-pipe ${HOST_CFLAG}" \
26
+ LDFLAGS="${HOST_LDFLAG}" \
27
+ bash "${WDIR}/binutils/configure" \
28
+ --build=${HOST} \
29
+ --host=${HOST} \
30
+ --target=${CFG_TARGET} \
31
+ --prefix=${WDIR}/gcc_built \
32
+ --with-sysroot=${WDIR}/gcc_built/${CFG_TARGET}/sysroot \
33
+ --disable-gdb --disable-multilib \
34
+ --disable-nls --disable-sim --disable-werror \
35
+ --enable-deterministic-archives --enable-plugins \
36
+ --with-pkgversion="Anaconda binutils" \
37
+ ${EXTRA_CONFIG}
38
+
39
+ echo "Building binutils ..."
40
+ make
41
+
42
+ echo "Installing binutils ..."
43
+ make install
44
+
45
+ popd
46
+
47
+ mkdir -p "${WDIR}/gcc_built/lib/bfd-plugins"
48
+ mkdir -p "${WDIR}/buildtools/bin"
49
+ pushd "${WDIR}/gcc_built/bin"
50
+ for t in "${CFG_TARGET}-"*; do
51
+ if [ "${t}" = "${CFG_TARGET}-*" ]; then
52
+ break
53
+ fi
54
+ _t="${CFG_TARGET}-${t#${CFG_TARGET}-}"
55
+ ln -sfv "${WDIR}/gcc_built/bin/${t}" "${WDIR}/buildtools/bin/${_t}"
56
+ done
57
+ popd
58
+
59
+ mkdir -p "${WDIR}/buildtools/${CFG_TARGET}"
60
+ ln -sv "${WDIR}/gcc_built/${CFG_TARGET}/bin" "${WDIR}/buildtools/${CFG_TARGET}/bin"
61
+
62
+ # clean up ...
63
+ rm -rf "${WDIR}/build/binutils-host"
64
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/build.sh ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ if [ $(id -u) -eq 0 ]; then
8
+ echo "WARNING: You cannot run this script as root and expecting save results"
9
+ # exit 1
10
+ fi
11
+
12
+ n_open_files=$(ulimit -n)
13
+ if [ "${n_open_files}" -lt 2048 ]; then
14
+ echo "Number of open files ${n_open_files} may not be sufficient to build the toolchain; increasing to 2048"
15
+ ulimit -n 2048
16
+ fi
17
+
18
+ ${RECIPE_DIR}/decompress.sh
19
+
20
+ mkdir -p "${WDIR}/build"
21
+ mkdir -p "${WDIR}/buildtools/bin"
22
+
23
+ echo "Preparing working directories ..."
24
+
25
+ rm -rf "${WDIR}/build" "${WDIR}/buildtools" "${WDIR}/gcc_built"
26
+
27
+ mkdir -p "${WDIR}/gcc_built"
28
+ chmod -R u+w "${WDIR}/gcc_built"
29
+
30
+ mkdir -p "${WDIR}/gcc_built/lib"
31
+ ln -s "${WDIR}/gcc_built/lib" "${WDIR}/gcc_built/lib64"
32
+
33
+ mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/debug-root/usr/lib"
34
+ ln -s "${WDIR}/gcc_built/${CFG_TARGET}/debug-root/usr/lib" "${WDIR}/gcc_built/${CFG_TARGET}/debug-root/usr/lib64"
35
+
36
+ mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include"
37
+ mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/lib"
38
+ ln -s "${WDIR}/gcc_built/${CFG_TARGET}/lib" "${WDIR}/gcc_built/${CFG_TARGET}/lib64"
39
+ mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/lib"
40
+ ln -s "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/lib" "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/lib64"
41
+ mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/lib"
42
+ ln -s "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/lib" "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/lib64"
43
+
44
+ mkdir -p "${WDIR}/build"
45
+ mkdir -p "${WDIR}/buildtools/bin"
46
+
47
+ echo "Making build system tools available with poisoned name"
48
+ for tool in ar as dlltool c++ c++filt cpp cc gcc gcc-ar gcc-nm gcc-ranlib \
49
+ g++ gcj gnatbind gnatmake ld libtool nm objcopy objdump ranlib \
50
+ strip windres; do
51
+ where=$(which "${ORG_HOST}-${tool}" 2>/dev/null || true)
52
+ [ -z "${where}" ] && where=$(which "${tool}" 2>/dev/null || true)
53
+
54
+ if [ -n "${where}" ]; then
55
+ printf "#!/bin/bash\nexec '${where}' \"\${@}\"\n" >"${WDIR}/buildtools/bin/${HOST}-${tool}"
56
+ chmod 700 "${WDIR}/buildtools/bin/${HOST}-${tool}"
57
+ fi
58
+ done
59
+
60
+ # for ncurses sake on powerpc and s390x we create a symlink for gcc
61
+ pushd "${WDIR}/buildtools/bin"
62
+ ln -s "${HOST}-gcc" gcc
63
+ ln -s "${HOST}-g++" g++ || true
64
+ popd
65
+
66
+ printf "#!/bin/bash\n$(which makeinfo 2>/dev/null || true) --force \"\${@}\"\ntrue\n" >"${WDIR}/buildtools/bin/makeinfo"
67
+ chmod 700 "${WDIR}/buildtools/bin/makeinfo"
68
+
69
+ echo "Checking that we can run gcc --version and being able to compile program ..."
70
+ echo " ${HOST}-gcc --version ..."
71
+ "${HOST}-gcc" --version || (ls compilers/bin && exit 1)
72
+
73
+ printf "int main()\n{\n return 0;\n}\n" >"${WDIR}/build/test.c"
74
+ "${HOST}-gcc" -pipe ${HOST_CFLAG} ${HOST_LDFLAG} "${WDIR}/build/test.c" -o "${WDIR}/build/out"
75
+ rm -f "${WDIR}/build/test.c" "${WDIR}/build/out"
76
+
77
+ echo "Starting the build ..."
78
+ bash ${RECIPE_DIR}/build_scripts/ncurses_build.sh
79
+ [ $? -eq 0 ]
80
+ bash ${RECIPE_DIR}/build_scripts/zlib_host.sh
81
+ [ $? -eq 0 ]
82
+ bash ${RECIPE_DIR}/build_scripts/gmp_host.sh
83
+ [ $? -eq 0 ]
84
+ bash ${RECIPE_DIR}/build_scripts/mpfr_host.sh
85
+ [ $? -eq 0 ]
86
+ bash ${RECIPE_DIR}/build_scripts/isl_host.sh
87
+ [ $? -eq 0 ]
88
+ bash ${RECIPE_DIR}/build_scripts/mpc_host.sh
89
+ [ $? -eq 0 ]
90
+ bash ${RECIPE_DIR}/build_scripts/expat_host.sh
91
+ [ $? -eq 0 ]
92
+ bash ${RECIPE_DIR}/build_scripts/ncurses_host.sh
93
+ [ $? -eq 0 ]
94
+ bash ${RECIPE_DIR}/build_scripts/libiconv_host.sh
95
+ [ $? -eq 0 ]
96
+ bash ${RECIPE_DIR}/build_scripts/gettext_host.sh
97
+ [ $? -eq 0 ]
98
+ bash ${RECIPE_DIR}/build_scripts/binutils_host.sh
99
+ [ $? -eq 0 ]
100
+ bash ${RECIPE_DIR}/build_scripts/kernel_headers.sh
101
+ [ $? -eq 0 ]
102
+ bash ${RECIPE_DIR}/build_scripts/gcc_core.sh
103
+ [ $? -eq 0 ]
104
+ bash ${RECIPE_DIR}/build_scripts/glibc_core.sh
105
+ [ $? -eq 0 ]
106
+ bash ${RECIPE_DIR}/build_scripts/gcc_host.sh
107
+ [ $? -eq 0 ]
108
+ bash ${RECIPE_DIR}/build_scripts/gmp_target.sh
109
+ [ $? -eq 0 ]
110
+ bash ${RECIPE_DIR}/build_scripts/expat_target.sh
111
+ [ $? -eq 0 ]
112
+ bash ${RECIPE_DIR}/build_scripts/ncurses_target.sh
113
+ [ $? -eq 0 ]
114
+ bash ${RECIPE_DIR}/build_scripts/libelf_target.sh
115
+ [ $? -eq 0 ]
116
+ bash ${RECIPE_DIR}/build_scripts/debug.sh
117
+ [ $? -eq 0 ]
118
+ bash ${RECIPE_DIR}/build_scripts/final.sh
119
+ [ $? -eq 0 ]
120
+
121
+ exit 0
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/build_env.sh ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # prevent to set variables more then once
4
+
5
+ if [ -z "${CFG_TARGET}" ]; then
6
+
7
+ set -e
8
+
9
+ nuke_dot_in_path() {
10
+ local new
11
+ local p
12
+ local IFS=:
13
+ for p in $PATH; do
14
+ if [ -n "${p}" -a -z "${p%%/*}" ]; then
15
+ new="${new}${new:+:}${p}"
16
+ fi
17
+ done
18
+ PATH="${new}"
19
+ }
20
+
21
+ export WDIR=$PWD
22
+
23
+ CFG_GLIBC_VER="2.17.0"
24
+
25
+ case "${target_platform}" in
26
+ *linux-64*|*osx-64*) CFG_ARCH="x86";;
27
+ *aarch64*|*arm64*)
28
+ CFG_ARCH="arm"
29
+ CFG_GLIBC_VER="2.26.0"
30
+ ;;
31
+ *ppc64le*) CFG_ARCH="powerpc";;
32
+ *s390x*) CFG_ARCH="s390";;
33
+ *)
34
+ echo "unsupported target architecture ${target_platform}"
35
+ exit 1
36
+ ;;
37
+ esac
38
+
39
+ export CFG_GLIBC_VER
40
+ export CFG_ARCH
41
+
42
+ unset ARCH_CFLAG
43
+ unset ARCH_LDFLAG
44
+
45
+ case "${CFG_ARCH}" in
46
+ arm*)
47
+ CFG_TARGET="aarch64-conda-linux-gnu"
48
+ ARCH_CFLAG="-mlittle-endian"
49
+ ARCH_LDFLAG="-Wl,-EL"
50
+ ;;
51
+ s390*)
52
+ CFG_TARGET="s390x-conda-linux-gnu"
53
+ ;;
54
+ powerpc*)
55
+ CFG_TARGET="powerpc64le-conda-linux-gnu"
56
+ ARCH_CFLAG="-mlittle-endian"
57
+ ARCH_LDFLAG="-Wl,-EL"
58
+ ;;
59
+ x86*)
60
+ CFG_TARGET="x86_64-conda-linux-gnu"
61
+ ;;
62
+ esac
63
+
64
+ if [[ "${bootstrapping}" != "yes" ]]; then
65
+ export PATH=$WDIR/compilers/bin:$PATH
66
+ if [ "${CFG_ARCH}" = "powerpc" ]; then
67
+ HOST="powerpc64le-conda_cos7-linux-gnu"
68
+ else
69
+ HOST="${CFG_TARGET}"
70
+ fi
71
+ fi
72
+
73
+ # we can't use conda's HOST compiler ...
74
+ # so we pick system-compiler instead
75
+ if [ -z "${HOST}" ]; then
76
+ HOST=$(gcc -dumpmachine)
77
+ fi
78
+
79
+ export CFG_TARGET
80
+ export ARCH_CFLAG
81
+ export ARCH_LDFLAG
82
+
83
+ export LC_ALL=C
84
+ export LANG=C
85
+
86
+ # make sure path does not contain current dir '.'
87
+ nuke_dot_in_path
88
+
89
+ unset GREP_OPTIONS
90
+ export CONFIG_SITE=
91
+
92
+ mkdir -p "${WDIR}/build"
93
+ mkdir -p "${WDIR}/buildtools/bin"
94
+
95
+ unset MAKEFLAGS
96
+ export SHELL="/bin/bash"
97
+
98
+ echo "Preparing working directories ..."
99
+
100
+ export ORG_HOST="${HOST}"
101
+
102
+ # poison name for enforcing cross-build
103
+ export HOST="${HOST/-/-build_}"
104
+
105
+ export PATH="${WDIR}/gcc_built/bin:${WDIR}/buildtools/bin:${PATH}"
106
+
107
+ CLANG_CFLAGS=
108
+ OSX_CFLAGS=
109
+ OSX_LDFLAGS=
110
+ if ${HOST}-gcc --version 2>&1 | grep clang; then
111
+ CLANG_CFLAGS=" -Qunused-arguments"
112
+ fi
113
+ case "${HOST}" in
114
+ *darwin*)
115
+ OSX_CLFAGS=" -fno-common"
116
+ OSX_LDFLAGS=" -framework CoreFoundation"
117
+ ;;
118
+ esac
119
+
120
+ export HOST_CFLAG="-O2 -g -I${WDIR}/buildtools/include ${CLANG_CFLAGS} ${OSX_CFLAGS}"
121
+ export HOST_LDFLAG="-L${WDIR}/buildtools/lib ${OSX_LDFLAGS}"
122
+
123
+ # the prefix flags ..
124
+ export TARGET_LDFLAG="-Wl,-rpath,${WDIR}/gcc_built/lib -Wl,-rpath-link,${WDIR}/gcc_built/lib -L${WDIR}/gcc_built/lib"
125
+
126
+ for d in CFLAGS LDFLAGS CPPFLAGS CXXFLAGS; do
127
+ eval export ${d}=
128
+ eval export DEBUG_${d}=
129
+ eval export ${d}_USED=
130
+ eval export DEBUG_${d}_USED=
131
+ done
132
+
133
+
134
+ for d in ADDR2LINE AR AS CC CPP CXX CXXFILT ELFEDIT GCC GCC_AR GCC_NM GCC_RANLIB \
135
+ GPROF GXX LD LD_GOLD NM RANLIB READELF SIZE STRINGS STRIP \
136
+ CMAKE_PREFIX_PATH CMAKE_ARGS OBJCOPY OBJDUMP \
137
+ host_alias build_aliasa \
138
+ CC_FOR_BUILD CXX_FOR_BUILD LD_FOR_BUILD CPP_FOR_BUILD; do
139
+ eval export ${d}=
140
+ eval unset ${d}
141
+ done
142
+
143
+ export BUILD=
144
+ export HOST=$HOST
145
+
146
+ fi
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/debug.sh ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ bash ${RECIPE_DIR}/build_scripts/duma_target.sh
8
+ [ $? -eq 0 ]
9
+ bash ${RECIPE_DIR}/build_scripts/ltrace_target.sh
10
+ [ $? -eq 0 ]
11
+ bash ${RECIPE_DIR}/build_scripts/strace_target.sh
12
+ [ $? -eq 0 ]
13
+ bash ${RECIPE_DIR}/build_scripts/gdb_server.sh
14
+ [ $? -eq 0 ]
15
+ bash ${RECIPE_DIR}/build_scripts/gdb_target.sh
16
+ [ $? -eq 0 ]
17
+
18
+ exit 0
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/duma_target.sh ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/duma-target"
8
+ mkdir -p "${WDIR}/build/duma-target"
9
+ pushd "${WDIR}/build/duma-target"
10
+ cp -r "${WDIR}"/duma/* .
11
+
12
+ echo "Building duma ..."
13
+ make DUMA_CPP=1 DUMASO= OS="linux" \
14
+ CC="${CFG_TARGET}-gcc ${ARCH_CFLAG}" \
15
+ CXX="${CFG_TARGET}-g++ ${ARCH_CFLAG}" \
16
+ HOSTCC="${HOST}-gcc" \
17
+ RANLIB="${CFG_TARGET}-ranlib" \
18
+ LDFLAGS="${TARGET_LDFLAG}" \
19
+ prefix="${WDIR}/gcc_built/${CFG_TARGET}/debug-root/usr" \
20
+ all
21
+
22
+ echo "Installing duma ..."
23
+ make DUMA_CPP=1 DUMASO= OS="linux" \
24
+ CC="${CFG_TARGET}-gcc ${ARCH_CFLAG}" \
25
+ CXX="${CFG_TARGET}-g++ ${ARCH_CFLAG}" \
26
+ HOSTCC="${HOST}-gcc" \
27
+ RANLIB="${CFG_TARGET}-ranlib" \
28
+ LDFLAGS="${TARGET_LDFLAG}" \
29
+ prefix="${WDIR}/gcc_built/${CFG_TARGET}/debug-root/usr" \
30
+ install
31
+
32
+ popd
33
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/expat_host.sh ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/expat-host"
8
+ mkdir "${WDIR}/build/expat-host"
9
+ pushd "${WDIR}/build/expat-host"
10
+
11
+ CFLAGS="-pipe ${HOST_CFLAG}" \
12
+ LDFLAGS="${HOST_LDFLAG}" \
13
+ bash "${WDIR}/expat/configure" \
14
+ --build=${HOST} \
15
+ --host=${HOST} \
16
+ --prefix="${WDIR}/buildtools" \
17
+ --enable-static \
18
+ --disable-shared \
19
+ --without-docbook
20
+
21
+ echo "Building expat ..."
22
+ make
23
+
24
+ echo "Installing expat ..."
25
+ make install
26
+
27
+ popd
28
+
29
+ # clean up ...
30
+ rm -rf "${WDIR}/build/expat-host"
31
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/expat_target.sh ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/expat-target"
8
+ mkdir "${WDIR}/build/expat-target"
9
+ pushd "${WDIR}/build/expat-target"
10
+
11
+ CFLAGS="${ARCH_CFLAG}" \
12
+ LDFLAGS="${TARGET_LDFLAG} ${ARCH_LDFLAG}" \
13
+ bash "${WDIR}/expat/configure" \
14
+ --build=${HOST} \
15
+ --host=${CFG_TARGET} \
16
+ --prefix="/usr" \
17
+ --enable-static \
18
+ --enable-shared \
19
+ --without-docbook
20
+
21
+ echo "Building expat ..."
22
+ make
23
+
24
+ echo "Installing expat ..."
25
+ make install DESTDIR="${WDIR}/gcc_built/${CFG_TARGET}/sysroot"
26
+
27
+ popd
28
+
29
+ # clean up ...
30
+ rm -rf "${WDIR}/build/expat-target"
31
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/final.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ echo "Finalizing the toolchain's directories ..."
8
+
9
+ STRIP_ARG="--strip-unneeded -v"
10
+ case "$HOST" in
11
+ *darwin*)
12
+ STRIP_ARG=""
13
+ ;;
14
+ esac
15
+
16
+ echo "Stripping all executables in prefix ..."
17
+ pushd "${WDIR}/gcc_built"
18
+
19
+ if [ -f "${CFG_TARGET}/debug-root/usr/bin/gdbserver" ]; then
20
+ "${CFG_TARGET}-strip" ${STRIP_ARG} "${CFG_TARGET}/debug-root/usr/bin/gdbserver"
21
+ fi
22
+ gcc_version=$(cat "${WDIR}/gcc/gcc/BASE-VER")
23
+ for _t in "bin/${CFG_TARGET}-"* \
24
+ "${CFG_TARGET}/bin/"* \
25
+ "libexec/gcc/${CFG_TARGET}/${gcc_version}/"* \
26
+ "libexec/gcc/${CFG_TARGET}/${gcc_version}/install-tools/"* \
27
+ ; do
28
+ _type="$( file "${_t}" |cut -d ' ' -f 2- )"
29
+ case "${_type}" in
30
+ *script*executable*)
31
+ ;;
32
+ *executable*|*shared*object*)
33
+ ${HOST}-strip ${STRIP_ARG} "${_t}"
34
+ ;;
35
+ esac
36
+ done
37
+ popd
38
+
39
+ rm -rf "${WDIR}/gcc_built/"{,usr/}{,share/}{man,info}
40
+ rm -rf "${WDIR}/gcc_built/${CFG_TARGET}/sysroot/"{,usr/}{,share/}{man,info}
41
+ rm -rf "${WDIR}/gcc_built/${CFG_TARGET}/debug-root/"{,usr/}{,share/}{man,info}
42
+
43
+ for licfile in $( find "${WDIR}" -follow -type f -a \( -name "COPYING*" -o -name "LICENSE*" \) ); do
44
+ dstdir="${licfile%/*}"
45
+ dstdir="${WDIR}/gcc_built/share/licenses${dstdir#${WDIR}}"
46
+ mkdir -p "${dstdir}"
47
+ cp -av "${licfile}" "${dstdir}/"
48
+ done
49
+
50
+ shopt -u nullglob
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gcc_core.sh ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/gcc-core"
8
+ mkdir -p "${WDIR}/build/gcc-core"
9
+ pushd "${WDIR}/build/gcc-core"
10
+
11
+ glibc_version=`echo "${CFG_GLIBC_VER}" | sed 's/\([1-9][0-9]*\.[1-9][0-9]*\).*/\1/'`
12
+
13
+ CLANG_CFLAG=
14
+ if ${HOST}-gcc --version 2>&1 | grep clang; then
15
+ CLANG_CFLAG="-fbracket-depth=512"
16
+ fi
17
+
18
+ CC_FOR_BUILD="${HOST}-gcc" \
19
+ CFLAGS="${HOST_CFLAG} ${CLANG_CFLAG}" \
20
+ CFLAGS_FOR_BUILD="${HOST_CFLAG} ${CLANG_CFLAG}" \
21
+ CXXFLAGS="${HOST_CFLAG} ${CLANG_CFLAG}" \
22
+ CXXFLAGS_FOR_BUILD="${HOST_CFLAG} ${CLANG_CFLAG}" \
23
+ LDFLAGS="${HOST_LDFLAG} -lstdc++ -lm" \
24
+ CFLAGS_FOR_TARGET="-g -O2 ${ARCH_CFLAG}" \
25
+ CXXFLAGS_FOR_TARGET="" \
26
+ LDFLAGS_FOR_TARGET="${TARGET_LDFLAG}" \
27
+ bash "${WDIR}/gcc/configure" \
28
+ --build=${HOST} \
29
+ --host=${HOST} \
30
+ --target=${CFG_TARGET} \
31
+ --prefix="${WDIR}/buildtools" \
32
+ --exec_prefix="${WDIR}/buildtools" \
33
+ --with-local-prefix="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \
34
+ --with-sysroot="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \
35
+ --enable-languages="c" \
36
+ --disable-multilib \
37
+ --disable-nls \
38
+ --with-gmp="${WDIR}/buildtools" \
39
+ --with-mpfr="${WDIR}/buildtools" \
40
+ --with-mpc="${WDIR}/buildtools" \
41
+ --with-isl="${WDIR}/buildtools" \
42
+ --without-zstd \
43
+ --with-glibc-version=${glibc_version} \
44
+ --with-newlib \
45
+ --enable-threads=no \
46
+ --disable-shared \
47
+ --enable-__cxa_atexit \
48
+ --disable-libgomp \
49
+ --disable-libmudflap \
50
+ --disable-libmpx \
51
+ --enable-libquadmath \
52
+ --enable-libquadmath-support \
53
+ --disable-libstdcxx-verbose \
54
+ --disable-libstdcxx \
55
+ --with-pkgversion="Anaconda bootstrap gcc" \
56
+ --enable-lto
57
+
58
+ make configure-gcc configure-libcpp configure-build-libiberty
59
+ make all-libcpp all-build-libiberty
60
+ if [ -d "${WDIR}/gcc/libdecnumber" ]; then
61
+ make configure-libdecnumber
62
+ make -C libdecnumber libdecnumber.a
63
+ fi
64
+ if [ -d "${WDIR}/gcc/libbacktrace" ]; then
65
+ make configure-libbacktrace
66
+ make -C libbacktrace
67
+ fi
68
+
69
+ make -C gcc libgcc.mvars
70
+ sed -r -i -e 's@-lc@@g' gcc/libgcc.mvars
71
+
72
+ echo "Building gcc core ..."
73
+ CFLAGS="${CFLAGS} -I${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include"
74
+ make all-gcc all-target-libgcc
75
+
76
+ echo "Installing gcc core ..."
77
+ make install-gcc install-target-libgcc
78
+
79
+ pushd "${WDIR}/buildtools"
80
+ find . -type f -name "*.la" -exec rm {} \;
81
+ popd
82
+
83
+ if [ -f "${WDIR}/buildtools/bin/${CFG_TARGET}-gcc" ]; then
84
+ ln -sfv "${CFG_TARGET}-gcc" "${WDIR}/buildtools/bin/${CFG_TARGET}-cc"
85
+ fi
86
+
87
+ multi_root=$( "${WDIR}/buildtools/bin/${CFG_TARGET}-gcc" -print-sysroot )
88
+ if [ ! -e "${multi_root}/lib" ]; then
89
+ ln -sfv lib "${multi_root}/lib"
90
+ fi
91
+ if [ ! -e "${multi_root}/usr/lib" ]; then
92
+ ln -sfv lib "${multi_root}/usr/lib"
93
+ fi
94
+
95
+ popd
96
+
97
+ # clean up ...
98
+ rm -rf "${WDIR}/build/gcc-core"
99
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gcc_host.sh ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/gcc-final"
8
+ mkdir "${WDIR}/build/gcc-final"
9
+ pushd "${WDIR}/build/gcc-final"
10
+
11
+ ARCH_CONFIG=
12
+ if [ "${CFG_ARCH}" = "x86" ]; then
13
+ ARCH_CONFIG="--enable-libmpx"
14
+ elif [ "${CFG_ARCH}" = "arm" ]; then
15
+ ARCH_CONFIG="--enable-gold"
16
+ fi
17
+
18
+ CLANG_CFLAG=
19
+ if ${HOST}-gcc --version 2>&1 | grep clang; then
20
+ CLANG_CFLAG="-fbracket-depth=512"
21
+ fi
22
+
23
+ CC_FOR_BUILD="${HOST}-gcc" \
24
+ CFLAGS="${HOST_CFLAG} ${CLANG_CFLAG}" \
25
+ CFLAGS_FOR_BUILD="${HOST_CFLAG} ${CLANG_CFLAG}" \
26
+ CXXFLAGS="${HOST_CFLAG} ${CLANG_CFLAG}" \
27
+ CXXFLAGS_FOR_BUILD="${HOST_CFLAG} ${CLANG_CFLAG}" \
28
+ LDFLAGS="${HOST_LDFLAG} -lstdc++ -lm" \
29
+ CFLAGS_FOR_TARGET="-g -O2 ${ARCH_CFLAG}" \
30
+ CXXFLAGS_FOR_TARGET="${ARCH_CFLAG}" \
31
+ LDFLAGS_FOR_TARGET="${TARGET_LDFLAG} ${ARCH_LDFLAG}" \
32
+ bash "${WDIR}/gcc/configure" \
33
+ --build=${HOST} \
34
+ --host=${HOST} \
35
+ --target=${CFG_TARGET} \
36
+ --prefix="${WDIR}/gcc_built" \
37
+ --exec_prefix="${WDIR}/gcc_built" \
38
+ --with-sysroot="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \
39
+ --with-local-prefix="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \
40
+ --enable-long-long \
41
+ --disable-multilib \
42
+ --disable-nls \
43
+ --with-gmp=${WDIR}/buildtools \
44
+ --with-mpfr=${WDIR}/buildtools \
45
+ --with-mpc=${WDIR}/buildtools \
46
+ --with-isl=${WDIR}/buildtools \
47
+ --without-zstd \
48
+ --enable-languages="c,c++,fortran,objc,obj-c++" \
49
+ --enable-__cxa_atexit \
50
+ --disable-libmudflap \
51
+ --enable-libgomp \
52
+ --enable-libquadmath \
53
+ --enable-libquadmath-support \
54
+ --enable-libsanitizer \
55
+ --disable-libstdcxx-verbose \
56
+ --enable-lto --enable-libcc1 \
57
+ --enable-threads=posix \
58
+ --enable-plugin \
59
+ --with-pkgversion="Anaconda gcc" \
60
+ "${ARCH_CONFIG}"
61
+
62
+ echo "Building final gcc compiler ..."
63
+ make all
64
+
65
+ echo "Installing final gcc compiler ..."
66
+ make install-strip
67
+
68
+ make install-target-libobjc
69
+
70
+ pushd "${WDIR}/gcc_built"
71
+ find . -type f -name "*.la" -exec rm {} \;
72
+ popd
73
+
74
+ if [ -f "${WDIR}/gcc_built/bin/${CFG_TARGET}-gcc" ]; then
75
+ ln -sfv "${WDIR}/gcc_built/bin/${CFG_TARGET}-gcc" "${WDIR}/gcc_built/bin/${CFG_TARGET}-cc"
76
+ fi
77
+
78
+ multi_root=$( "${WDIR}/gcc_built/bin/${CFG_TARGET}-gcc" -print-sysroot )
79
+ if [ ! -e "${multi_root}/lib" ]; then
80
+ ln -sfv lib "${multi_root}/lib"
81
+ fi
82
+ if [ ! -e "${multi_root}/usr/lib" ]; then
83
+ ln -sfv lib "${multi_root}/usr/lib"
84
+ fi
85
+ echo $multi_root
86
+ if [ -d "${WDIR}/gcc_built/lib/bfd-plugins" ]; then
87
+ gcc_version=$(cat "${WDIR}/gcc/gcc/BASE-VER" )
88
+ ln -sfv "../../libexec/gcc/${CFG_TARGET}/${gcc_version}/liblto_plugin.so" "${WDIR}/gcc_built/lib/bfd-plugins/liblto_plugin.so"
89
+ fi
90
+
91
+ popd
92
+
93
+ multi_root=$( "${CFG_TARGET}-gcc" -print-sysroot )
94
+
95
+ canon_root=$( cd "${multi_root}" && pwd -P )
96
+ canon_prefix=$( cd "${WDIR}/gcc_built" && pwd -P )
97
+
98
+ gcc_dir="${WDIR}/gcc_built/${CFG_TARGET}/lib"
99
+ if [ ! -d "${gcc_dir}" ]; then
100
+ return
101
+ fi
102
+ dst_dir="${canon_root}/lib"
103
+ rel=$( echo "${gcc_dir#${WDIR}/gcc_built/}" | sed 's#[^/]\{1,\}#..#g' )
104
+
105
+ ls "${gcc_dir}" | while read f; do
106
+ case "${f}" in
107
+ *.ld)
108
+ continue
109
+ ;;
110
+ esac
111
+ if [ -f "${gcc_dir}/${f}" ]; then
112
+ mkdir -p "${dst_dir}"
113
+ mv "${gcc_dir}/${f}" "${dst_dir}/${f}"
114
+ ln -sf "${rel}/${dst_dir#${canon_prefix}/}/${f}" "${gcc_dir}/${f}"
115
+ fi
116
+ done
117
+
118
+ # require working host "gcc" tool for successful configuration of ncurses, strace, ...
119
+ pushd "gcc_built/bin"
120
+ ln -s ${CFG_TARGET}-gcc gcc
121
+ popd
122
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gdb_server.sh ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/gdb-server"
8
+ mkdir -p "${WDIR}/build/gdb-server"
9
+ pushd "${WDIR}/build/gdb-server"
10
+
11
+ export ac_cv_func_strncmp_works=yes
12
+
13
+ export CONFIG_SHELL="/bin/bash"
14
+ export SHELL="/bin/bash"
15
+
16
+ CC_FOR_BUILD="${HOST}-gcc" \
17
+ CPP="${CFG_TARGET}-cpp" \
18
+ CC="${CFG_TARGET}-gcc" \
19
+ CXX="${CFG_TARGET}-g++" \
20
+ LD="${CFG_TARGET}-ld" \
21
+ CFLAGS="${ARCH_CFLAG}" \
22
+ CXXFLAGS="${ARCH_CFLAG}" \
23
+ LDFLAGS="${TARGET_LDFLAG} ${ARCH_LDFLAG}" \
24
+ bash "${WDIR}/gdb/configure" \
25
+ --build=${HOST} \
26
+ --host=${CFG_TARGET} \
27
+ --target=${CFG_TARGET} \
28
+ --prefix="/usr" --disable-multilib \
29
+ --with-build-sysroot="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \
30
+ --includedir="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include" \
31
+ --without-uiout \
32
+ --disable-gdb \
33
+ --disable-gdbtk \
34
+ --without-x \
35
+ --disable-sim \
36
+ --without-included-gettext \
37
+ --without-develop \
38
+ --sysconfdir=/etc \
39
+ --localstatedir=/var \
40
+ --disable-werror \
41
+ --enable-64bit-bfd \
42
+ --enable-deterministic-archives \
43
+ --program-prefix= \
44
+ --enable-gdbserver \
45
+ --disable-inprocess-agent \
46
+ --disable-binutils \
47
+ --disable-ld \
48
+ --disable-gas \
49
+ --enable-threads \
50
+ --disable-nls
51
+
52
+ echo "Building gdb ..."
53
+ make
54
+
55
+ echo "Installing gdb ..."
56
+ make DESTDIR="${WDIR}/gcc_built/${CFG_TARGET}/debug-root" install
57
+
58
+ unset ac_cv_func_strncmp_works
59
+
60
+ popd
61
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gdb_target.sh ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/gdb-cross"
8
+ mkdir -p "${WDIR}/build/gdb-cross"
9
+ pushd "${WDIR}/build/gdb-cross"
10
+
11
+ export ac_cv_func_strncmp_works=yes
12
+
13
+ export CONFIG_SHELL="/bin/bash"
14
+ export SHELL="/bin/bash"
15
+
16
+ CC_FOR_BUILD="${HOST}-gcc" \
17
+ CPP="${CFG_TARGET}-cpp" \
18
+ CC="${CFG_TARGET}-gcc" \
19
+ CXX="${CFG_TARGET}-g++" \
20
+ LD="${CFG_TARGET}-ld" \
21
+ CFLAGS="${ARCH_CFLAG}" \
22
+ CXXFLAGS="${ARCH_CFLAG}" \
23
+ LDFLAGS="${HOST_LDFLAG} ${ARCH_LDFLAG}" \
24
+ bash "${WDIR}/gdb/configure" \
25
+ --build=${HOST} \
26
+ --host=${CFG_TARGET} \
27
+ --target=${CFG_TARGET} \
28
+ --prefix=${WDIR}/gcc_built \
29
+ --with-sysroot=${WDIR}/gcc_built/${CFG_TARGET}/sysroot/ \
30
+ --with-build-sysroot="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \
31
+ --includedir="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include" \
32
+ --disable-werror \
33
+ --without-uiout \
34
+ --disable-gdbtk \
35
+ --without-x \
36
+ -disable-sim \
37
+ --without-included-gettext \
38
+ --without-develop \
39
+ --sysconfdir=/etc \
40
+ --localstatedir=/var \
41
+ --program-prefix= \
42
+ --disable-gdbserver \
43
+ --with-curses \
44
+ --with-expat \
45
+ --without-libexpat-prefix \
46
+ --enable-64bit-bfd \
47
+ --disable-multilib \
48
+ --disable-binutils \
49
+ --disable-ld \
50
+ --disable-gas \
51
+ --enable-threads \
52
+ --disable-nls \
53
+ --disable-inprocess-agent \
54
+ --with-python=no
55
+
56
+ # --with-python=$PYTHON ...
57
+ echo "Building gdb ..."
58
+ make
59
+
60
+ echo "Installing gdb ..."
61
+
62
+ make DESTDIR=${WDIR}/gcc_built/${CFG_TARGET}/debug-root install
63
+
64
+ unset ac_cv_func_strncmp_works
65
+
66
+ popd
67
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gettext_host.sh ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ case "${HOST}" in
8
+ *linux*)
9
+ exit 0
10
+ ;;
11
+ esac
12
+
13
+ rm -rf "${WDIR}/build/gettext-host"
14
+ mkdir "${WDIR}/build/gettext-host"
15
+ pushd "${WDIR}/build/gettext-host"
16
+
17
+ CFLAGS="-pipe ${HOST_CFLAG}" \
18
+ LDFLAGS="${HOST_LDFLAG}" \
19
+ bash "${WDIR}/gettext/configure" \
20
+ --build=${HOST} \
21
+ --host="${HOST}" \
22
+ --prefix="${WDIR}/buildtools" \
23
+ --enable-static \
24
+ --disable-java \
25
+ --disable-native-java \
26
+ --disable-csharp \
27
+ --without-emacs \
28
+ --disable-openmp \
29
+ --with-included-libxml \
30
+ --with-included-gettext \
31
+ --with-included-glib \
32
+ --with-included-libcroco \
33
+ --with-included-libunistring \
34
+ --with-libncurses-prefix="${WDIR}/buildtools" \
35
+ --with-libiconv-prefix="${WDIR}/buildtools" \
36
+ --without-libpth-prefix
37
+
38
+ echo "Building gettext ..."
39
+ make
40
+
41
+ echo "Installing gettext ..."
42
+ make install
43
+
44
+ popd
45
+
46
+ # save space ... clean up
47
+ rm -rf "${WDIR}/build/gettext-host"
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/glibc_core.sh ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ get_min_kernel_config()
8
+ {
9
+ version_file="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include/linux/version.h"
10
+ if [ ! -f "${version_file}" -o ! -r "${version_file}" ]; then
11
+ echo "The linux version header is unavailable in installed headers"
12
+ exit 1
13
+ fi
14
+ v=$(grep -E LINUX_VERSION_CODE "${version_file}" | cut -d' ' -f 3)
15
+ v1=$(((v>>16)&0xFF))
16
+ v2=$(((v>>8)&0xFF))
17
+ v3=$((v&0xFF))
18
+ echo "--enable-kernel=${v1}.${v2}.${v3}"
19
+ }
20
+
21
+ rm -rf "${WDIR}/build/glibc-core"
22
+ mkdir -p "${WDIR}/build/glibc-core"
23
+ pushd "${WDIR}/build/glibc-core"
24
+
25
+ EXTRA_ADDONS="nptl"
26
+ EXTRA_CFLAGS=
27
+ EXTRA_CONFIG=
28
+ EXTRA_ASFLAG=
29
+ if [ "${CFG_ARCH}" = "x86" ]; then
30
+ EXTRA_CONFIG="--enable-obsolete-rpc"
31
+ EXTRA_CFLAGS="-fcommon -Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized"
32
+ elif [ "${CFG_ARCH}" = "powerpc" ]; then
33
+ EXTRA_CFLAGS="-fcommon -Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized"
34
+ EXTRA_ADDONS="ports,nptl"
35
+ EXTRA_ASFLAG="-DBROKEN_PPC_8xx_CPU15"
36
+ elif [ "${CFG_ARCH}" = "arm" ]; then
37
+ EXTRA_CFLAGS="-fcommon -Wno-missing-attributes -Wno-array-bounds -Wno-array-parameter -Wno-stringop-overflow -Wno-maybe-uninitialized"
38
+ # building glibc >=2.26
39
+ EXTRA_ADDONS=""
40
+ fi
41
+
42
+ touch config.cache
43
+
44
+ echo "libc_cv_ssp=no" >>config.cache
45
+ echo "libc_cv_ssp_strong=no" >>config.cache
46
+ echo "libc_cv_forced_unwind=yes" >>config.cache
47
+ echo "libc_cv_c_cleanup=yes" >>config.cache
48
+
49
+ printf "\n" > configparms
50
+
51
+ echo "ac_cv_path_BASH_SHELL=/bin/bash" >>config.cache
52
+
53
+ mkdir -p "${WDIR}/gcc_built/${CFG_TARGET}/sysroot"
54
+
55
+ pushd "${WDIR}/gcc_built/bin"
56
+ for t in "${CFG_TARGET}-"*; do
57
+ if [ "${t}" = "${CFG_TARGET}-*" ]; then
58
+ break
59
+ fi
60
+ _t="${CFG_TARGET}-${t#${CFG_TARGET}-}"
61
+ ln -sfv "${WDIR}/gcc_built/bin/${t}" "${WDIR}/buildtools/bin/${_t}"
62
+ done
63
+ popd
64
+
65
+ export LDFLAGS="${TARGET_LDFLAG} ${ARCH_LDFLAG}"
66
+
67
+ BUILD_CC="${HOST}-gcc" \
68
+ CC="${CFG_TARGET}-gcc -g -O2 -U_FORTIFY_SOURCE ${ARCH_CFLAG} ${EXTRA_CFLAGS}" \
69
+ CPPFLAGS="-U_FORTIFY_SOURCE" \
70
+ CFLAGS="-U_FORTIFY_SOURCE" \
71
+ AR="${CFG_TARGET}-ar" \
72
+ RANLIB="${CFG_TARGET}-ranlib" LIBS="" \
73
+ bash "${WDIR}/glibc/configure" \
74
+ --prefix=/usr \
75
+ --build=${HOST} \
76
+ --host=${CFG_TARGET} \
77
+ --cache-file="$(pwd)/config.cache" \
78
+ --without-cvs \
79
+ --disable-profile \
80
+ --without-gd \
81
+ --with-headers="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr/include" \
82
+ --with-binutils="${WDIR}/gcc_built/bin" \
83
+ --disable-debug --disable-sanity-checks \
84
+ $(get_min_kernel_config) \
85
+ --with-__thread --with-tls \
86
+ --enable-shared \
87
+ --enable-add-ons="${EXTRA_ADDONS}" \
88
+ --with-pkgversion="Anaconda glibc" \
89
+ --disable-werror ${EXTRA_CONFIG}
90
+
91
+ OSX_CPP=
92
+ OSX_LD=
93
+ case "$HOST" in
94
+ *darwin*)
95
+ OSX_CPP="-I${WDIR}/buildtools/include/"
96
+ OSX_LD="-lintl -liconv"
97
+ ;;
98
+ esac
99
+
100
+ echo "Building glibc library ..."
101
+
102
+ ASFLAGS="${EXTRA_ASFLAG}" \
103
+ make default_cflags= CXX= BUILD_CFLAGS="${HOST_CFLAG}" \
104
+ BUILD_CPPFLAGS="${OSX_CPP}" BUILD_LDFLAGS="${HOST_LDFLAG} ${OSX_LD}" \
105
+ all
106
+
107
+ echo "Installing glibc library ..."
108
+
109
+ make default_cflags= CXX= BUILD_CFLAGS="${HOST_CFLAG}" \
110
+ BUILD_CPPFLAGS="${OSX_CPP}" BUILD_LDFLAGS="${HOST_LDFLAG} ${OSX_LD}" \
111
+ install_root="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \
112
+ install
113
+ popd
114
+
115
+ # save space ... clean up
116
+ rm -rf "${WDIR}/build/glibc-core"
117
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gmp_host.sh ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ GMP_HOST=$HOST
8
+ OSX_CONFIG=
9
+ case "${HOST}" in
10
+ *darwin*)
11
+ OSX_CONFIG="--with-pic"
12
+ ;;
13
+ *power*)
14
+ GMP_HOST="power8-pc-linux-gnu"
15
+ ;;
16
+ esac
17
+
18
+ rm -rf "${WDIR}/build/gmp-host"
19
+ mkdir "${WDIR}/build/gmp-host"
20
+ pushd "${WDIR}/build/gmp-host"
21
+
22
+ CC="${HOST}-gcc" \
23
+ CFLAGS="-pipe ${HOST_CFLAG} -fexceptions" \
24
+ LDFLAGS="${HOST_LDFLAG}" \
25
+ bash "${WDIR}/gmp/configure" \
26
+ --build=${HOST} \
27
+ --host=${GMP_HOST} \
28
+ --prefix="${WDIR}/buildtools" \
29
+ --enable-fft \
30
+ --enable-cxx \
31
+ --disable-shared \
32
+ --enable-static ${OSX_CONFIG}
33
+
34
+ echo "Building gmp ..."
35
+ make
36
+
37
+ echo "Checking gmp ..."
38
+ make -s check
39
+
40
+ echo "Installing gmp ..."
41
+ make install
42
+
43
+ popd
44
+
45
+ # clean up ...
46
+ rm -rf "${WDIR}/build/gmp-host"
47
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/gmp_target.sh ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ GMP_HOST=$CFG_TARGET
8
+ OSX_CONFIG=
9
+ case "${CFG_TARGET}" in
10
+ *darwin*)
11
+ OSX_CONFIG="--with-pic"
12
+ ;;
13
+ *power*)
14
+ GMP_HOST="power8-pc-linux-gnu"
15
+ ;;
16
+ esac
17
+
18
+ rm -rf "${WDIR}/build/gmp-target"
19
+ mkdir "${WDIR}/build/gmp-target"
20
+ pushd "${WDIR}/build/gmp-target"
21
+
22
+ CC="${CFG_TARGET}-gcc" \
23
+ CXX="${CFG_TARGET}-g++" \
24
+ CFLAGS="${ARCH_CFLAG} -fexceptions" \
25
+ CXXFLAGS="${ARCH_CFLAG}" \
26
+ LDFLAGS="${TARGET_LDFLAG} ${ARCH_LDFLAG}" \
27
+ bash "${WDIR}/gmp/configure" \
28
+ --build=${HOST} \
29
+ --host=${GMP_HOST} \
30
+ --prefix=/usr \
31
+ --enable-fft \
32
+ --enable-cxx \
33
+ --enable-shared \
34
+ --enable-static ${OSX_CONFIG}
35
+
36
+ echo "Building gmp ..."
37
+ make
38
+
39
+ # don't test here as C++ runtime is not working
40
+ # for built toolchain at this point
41
+
42
+ echo "Installing gmp ..."
43
+ make install DESTDIR="${WDIR}/gcc_built/${CFG_TARGET}/sysroot"
44
+
45
+ popd
46
+
47
+ # clean up ...
48
+ rm -rf "${WDIR}/build/gmp-target"
49
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/isl_host.sh ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/isl-host"
8
+ mkdir "${WDIR}/build/isl-host"
9
+ pushd "${WDIR}/build/isl-host"
10
+
11
+ CFLAGS="-pipe ${HOST_CFLAG}" \
12
+ CXXFLAGS="-pipe ${HOST_CFLAG}" \
13
+ LDFLAGS="${HOST_LDFLAG}" \
14
+ bash "${WDIR}/isl/configure" \
15
+ --build=${HOST} \
16
+ --host=${HOST} \
17
+ --prefix="${WDIR}/buildtools" \
18
+ "${extra_config[@]}" \
19
+ --disable-shared \
20
+ --enable-static \
21
+ --with-gmp=system \
22
+ --with-gmp-prefix="${WDIR}/buildtools" \
23
+ --with-clang=no
24
+
25
+ echo "Building ISL ..."
26
+ make
27
+
28
+ echo "Checking ISL ..."
29
+ make -s check
30
+
31
+ echo "Installing ISL ..."
32
+ make install
33
+
34
+ popd
35
+
36
+ # clean up ...
37
+ rm -rf "${WDIR}/build/isl-host"
38
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/kernel_headers.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/kernel-headers"
8
+ mkdir -p "${WDIR}/build/kernel-headers"
9
+ pushd "${WDIR}/build/kernel-headers"
10
+
11
+ case "${CFG_ARCH}:64" in
12
+ arm:64) kernel_arch="arm64";;
13
+ *) kernel_arch="${CFG_ARCH}";;
14
+ esac
15
+
16
+ echo "Installing kernel headers"
17
+ make -C "${WDIR}/linux" \
18
+ BASH="$(which bash)" \
19
+ HOSTCC="${HOST}-gcc" \
20
+ CROSS_COMPILE="${CFG_TARGET}-" \
21
+ O="${WDIR}/build/kernel-headers" \
22
+ ARCH=${kernel_arch} \
23
+ INSTALL_HDR_PATH="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr" \
24
+ V=0 \
25
+ headers_install
26
+
27
+ echo "Checking installed headers"
28
+ make -C "${WDIR}/linux" \
29
+ BASH="$(which bash)" \
30
+ HOSTCC="${HOST}-gcc" \
31
+ CROSS_COMPILE="${CFG_TARGET}-" \
32
+ O="${WDIR}/build/kernel-headers" \
33
+ ARCH=${kernel_arch} \
34
+ INSTALL_HDR_PATH="${WDIR}/gcc_built/${CFG_TARGET}/sysroot/usr" \
35
+ V=0 \
36
+ headers_check
37
+
38
+ find "${WDIR}/gcc_built/${CFG_TARGET}/sysroot" -type f \
39
+ \( -name '.install' -o -name '..install.cmd' -o -name '.check' -o -name '..check.cmd' \) -exec rm {} \;
40
+
41
+ popd
42
+
43
+ # clean up ...
44
+ rm -rf "${WDIR}/build/kernel-headers"
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/libelf_target.sh ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/libelf-target"
8
+ mkdir -p "${WDIR}/build/libelf-target"
9
+ pushd "${WDIR}/build/libelf-target"
10
+
11
+ CC="${CFG_TARGET}-gcc" \
12
+ RANLIB="${CFG_TARGET}-ranlib" \
13
+ CFLAGS="${ARCH_CFLAG} -fPIC" \
14
+ LDFLAGS="${TARGET_LDFLAG}" \
15
+ bash "${WDIR}/libelf/configure" \
16
+ --build=${HOST} \
17
+ --host=${CFG_TARGET} \
18
+ --target=${CFG_TARGET} \
19
+ --prefix=/usr \
20
+ --enable-compat \
21
+ --enable-elf64 \
22
+ --enable-extended-format \
23
+ --enable-static \
24
+ --enable-shared
25
+
26
+ echo "Building libelf ..."
27
+ make
28
+
29
+ echo "Installing libelf ..."
30
+ make instroot="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" install
31
+ popd
32
+
33
+ # clean up ...
34
+ rm -rf "${WDIR}/build/libelf-target"
35
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/libiconv_host.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ case "${HOST}" in
8
+ *linux*)
9
+ exit 0
10
+ ;;
11
+ esac
12
+
13
+ rm -rf "${WDIR}/build/libiconv-host"
14
+ mkdir "${WDIR}/build/libiconv-host"
15
+ pushd "${WDIR}/build/libiconv-host"
16
+
17
+ CFLAGS="-pipe ${HOST_CFLAG}" \
18
+ LDFLAGS="${HOST_LDFLAG}" \
19
+ bash "${WDIR}/libiconv/configure" \
20
+ --build=${HOST} \
21
+ --host="${HOST}" \
22
+ --prefix="${WDIR}/buildtools" \
23
+ --enable-static \
24
+ --disable-shared \
25
+ --disable-nls
26
+
27
+ echo "Building libiconv ..."
28
+ make CC="${HOST}-gcc -pipe ${HOST_CFLAG}"
29
+
30
+ echo "Installing libiconv ..."
31
+ make CC="${HOST}-gcc -pipe ${HOST_CFLAG}" install
32
+
33
+ popd
34
+
35
+ # clean up ...
36
+ rm -rf "${WDIR}/build/libiconv-host"
37
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ltrace_target.sh ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/ltrace-target"
8
+ mkdir -p "${WDIR}/build/ltrace-target"
9
+ pushd "${WDIR}/build/ltrace-target"
10
+ cp -r "${WDIR}"/ltrace/* .
11
+
12
+ EXTRA_CONFIG=
13
+ if [ "${CFG_ARCH}" = "arm" ]; then
14
+ cp $BUILD_PREFIX/share/libtool/build-aux/config.* config/autoconf/.
15
+ EXTRA_CONFIG="--disable-werror"
16
+ fi
17
+ # fixes a quirk in makefile, which uses cpu part of triplet
18
+ # to determine subfolder name ...
19
+ pushd "sysdeps/linux-gnu"
20
+ ln -s ppc powerpc64le
21
+ popd
22
+
23
+ CONFIG_SHELL="/bin/bash" \
24
+ LDFLAGS="${TARGET_LDFLAG}" \
25
+ bash ./configure \
26
+ --build=${HOST} \
27
+ --host=${CFG_TARGET} \
28
+ --prefix=/usr \
29
+ ${EXTRA_CONFIG} \
30
+ --with-gnu-ld
31
+
32
+ echo "Building ltrace ..."
33
+ make
34
+
35
+ echo "Installing ltrace ..."
36
+ make DESTDIR="${WDIR}/gcc_built/${CFG_TARGET}/debug-root" install
37
+
38
+ popd
39
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/mpc_host.sh ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/mpc-host"
8
+ mkdir "${WDIR}/build/mpc-host"
9
+ pushd "${WDIR}/build/mpc-host"
10
+
11
+ CFLAGS="-pipe ${HOST_CFLAG}" \
12
+ LDFLAGS="${HOST_LDFLAG}" \
13
+ bash "${WDIR}/mpc/configure" \
14
+ --build=${HOST} \
15
+ --host=${HOST} \
16
+ --prefix="${WDIR}/buildtools" \
17
+ --with-gmp="${WDIR}/buildtools" \
18
+ --with-mpfr="${WDIR}/buildtools" \
19
+ --disable-shared \
20
+ --enable-static
21
+
22
+ echo "Building mpc ..."
23
+ make
24
+
25
+ echo "Checking mpc ..."
26
+ make -s check
27
+
28
+ echo "Installing mpc ..."
29
+ make install
30
+
31
+ popd
32
+
33
+ # clean up ...
34
+ rm -rf "${WDIR}/build/mpc-host"
35
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/mpfr_host.sh ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ EXTRA_CONFIG="--enable-thread-safe"
8
+ case "${HOST}" in
9
+ *darwin*) EXTRA_CONFIG="--disable-thread-safe";;
10
+ esac
11
+
12
+ rm -rf "${WDIR}/build/mpfr-host"
13
+ mkdir "${WDIR}/build/mpfr-host"
14
+ pushd "${WDIR}/build/mpfr-host"
15
+
16
+ CC="${HOST}-gcc" \
17
+ CFLAGS="-pipe ${HOST_CFLAG}" \
18
+ LDFLAGS="${HOST_LDFLAG}" \
19
+ bash "${WDIR}/mpfr/configure" \
20
+ --build=${HOST} \
21
+ --host=${HOST} \
22
+ --prefix="${WDIR}/buildtools" \
23
+ --with-gmp="${WDIR}/buildtools" \
24
+ --disable-shared \
25
+ --enable-static \
26
+ ${EXTRA_CONFIG}
27
+
28
+ echo "Building mpfr ..."
29
+ make
30
+
31
+ # on s390x there are runtime failures with some c++ tests, so ignore them ...
32
+ echo "Checking mpfr ..."
33
+ make -s check || true
34
+
35
+ echo "Installing mpfr ..."
36
+ make install
37
+
38
+ popd
39
+
40
+ # clean up ...
41
+ rm -rf "${WDIR}/build/mpfr-host"
42
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_build.sh ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/ncurses-build"
8
+ mkdir "${WDIR}/build/ncurses-build"
9
+ pushd "${WDIR}/build/ncurses-build"
10
+
11
+ CFLAGS="${HOST_CFLAG}" \
12
+ LDFLAGS="${HOST_LDFLAG}" \
13
+ bash "${WDIR}/ncurses/configure" \
14
+ --build=${HOST} \
15
+ --host=${HOST} \
16
+ --prefix="" \
17
+ --with-install-prefix="${WDIR}/buildtools" \
18
+ --without-debug \
19
+ --enable-termcap \
20
+ --enable-symlinks \
21
+ --without-manpages \
22
+ --without-tests \
23
+ --without-cxx \
24
+ --without-cxx-binding \
25
+ --without-ada \
26
+ --without-fallbacks
27
+
28
+ echo "Building ncurses ..."
29
+ make
30
+
31
+ echo "Installing ncurses ..."
32
+ STRIP="${HOST}-strip" make "install.progs"
33
+
34
+ popd
35
+
36
+ # clean up ...
37
+ rm -rf "${WDIR}/build/ncurses-build"
38
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_host.sh ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/ncurses-host"
8
+ mkdir "${WDIR}/build/ncurses-host"
9
+ pushd "${WDIR}/build/ncurses-host"
10
+
11
+ CFLAGS="-pipe ${HOST_CFLAG}" \
12
+ LDFLAGS="${HOST_LDFLAG}" \
13
+ bash "${WDIR}/ncurses/configure" \
14
+ --build=${HOST} \
15
+ --host=${HOST} \
16
+ --prefix="${WDIR}/buildtools" \
17
+ --with-install-prefix="${destdir}" \
18
+ --without-debug \
19
+ --enable-termcap \
20
+ --enable-symlinks \
21
+ --without-manpages \
22
+ --without-tests \
23
+ --without-cxx \
24
+ --without-cxx-binding \
25
+ --without-ada \
26
+ --disable-database \
27
+ --disable-db-install \
28
+ --with-fallbacks="linux,xterm,xterm-color,xterm-256color,vt100"
29
+
30
+ echo "Building ncurses ..."
31
+ make
32
+
33
+ echo "Installing ncurses ..."
34
+ STRIP="${HOST}-strip" make install
35
+
36
+ popd
37
+
38
+ # clean up ...
39
+ rm -rf "${WDIR}/build/ncurses-host"
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/ncurses_target.sh ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/ncurses-target"
8
+ mkdir "${WDIR}/build/ncurses-target"
9
+ pushd "${WDIR}/build/ncurses-target"
10
+
11
+ CFLAGS="${ARCH_CFLAG}" \
12
+ LDFLAGS="${TARGET_LDFLAG}" \
13
+ bash "${WDIR}/ncurses/configure" \
14
+ --build=${HOST} \
15
+ --host=${CFG_TARGET} \
16
+ --prefix="/usr" \
17
+ --with-install-prefix="${WDIR}/gcc_built/${CFG_TARGET}/sysroot" \
18
+ --without-debug \
19
+ --enable-termcap \
20
+ --with-shared \
21
+ --without-sysmouse
22
+
23
+ echo "Building ncurses ..."
24
+ make
25
+
26
+ echo "Installing ncurses ..."
27
+ STRIP="${CFG_TARGET}-strip" make install
28
+
29
+ popd
30
+
31
+ # clean up ...
32
+ rm -rf "${WDIR}/build/ncurses-target"
33
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/strace_target.sh ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/strace-target"
8
+ mkdir -p "${WDIR}/build/strace-target"
9
+ pushd "${WDIR}/build/strace-target"
10
+
11
+ CC="${CFG_TARGET}-gcc" \
12
+ CFLAGS="${ARCH_CFLAG}" \
13
+ LDFLAGS="${TARGET_LDFLAG} ${ARCH_LDFLAG}" \
14
+ CPP="${CFG_TARGET}-cpp" \
15
+ LD="${CFG_TARGET}-ld" \
16
+ bash "${WDIR}/strace/configure" \
17
+ --build=${HOST} \
18
+ --host=${CFG_TARGET} \
19
+ --prefix=/usr \
20
+ --enable-mpers=check
21
+
22
+ echo "Building strace ..."
23
+ make
24
+
25
+ echo "Installing strace ..."
26
+ make DESTDIR="${WDIR}/gcc_built/${CFG_TARGET}/debug-root" install
27
+
28
+ popd
29
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/build_scripts/zlib_host.sh ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -ex
4
+
5
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
6
+
7
+ rm -rf "${WDIR}/build/zlib-host"
8
+ mkdir -p "${WDIR}/build/zlib-host"
9
+ pushd "${WDIR}/build/zlib-host"
10
+
11
+ CFLAGS="-pipe ${HOST_CFLAG}" \
12
+ LDFLAGS="${HOST_LDFLAG}" \
13
+ CHOST="${HOST}" \
14
+ bash "${WDIR}/zlib/configure" \
15
+ --prefix="${WDIR}/buildtools" \
16
+ --static
17
+
18
+ echo "Building zlib ..."
19
+ make
20
+
21
+ echo "Checking zlib ..."
22
+ make -s test
23
+
24
+ echo "Installing zlib ..."
25
+ make install
26
+
27
+ popd
28
+
29
+ # clean up ...
30
+ rm -rf "${WDIR}/build/zlib-host"
31
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/c11threads.c ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #include <threads.h>
2
+ int main() {
3
+ mtx_t mutex;
4
+ mtx_init(&mutex, mtx_plain);
5
+ }
6
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/cleanup.sh ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ printf "Cleaning up intermediate files ..."
6
+
7
+ for f in build gcc_built buildtools binutils gcc_toolchain-sources \
8
+ libelf mpfr expat glibc glibc-ports gmp linux ncurses gcc \
9
+ isl mpc zlib libiconv gettext duma ltrace strace gdb; do
10
+ printf "\rCleaning up intermediate files ... \r"
11
+ printf "Cleaning up intermediate files ... $f"
12
+ rm -rf $f
13
+ done
14
+
15
+ printf "\rCleaning up intermediate files done \n"
16
+
17
+ exit 0
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/conda_build_config.yaml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ c_compiler_version:
2
+ - 7.5.0
3
+ cxx_compiler_version:
4
+ - 7.5.0
5
+ cpu_arch:
6
+ - x86_64 # [linux and x86_64]
7
+ - s390x # [linux and s390x]
8
+ - powerpc64le # [linux and ppc64le]
9
+ - aarch64 # [linux and aarch64]
10
+ - dummy # [not linux]
11
+ gcc_version:
12
+ - 11.2.0
13
+ libgfortran_soname:
14
+ - 5
15
+ gcc_version_build_number:
16
+ - 0
17
+ _libgcc_mutex:
18
+ - 0.1 main
19
+ duma_version:
20
+ - 2.5.15
21
+ gnu:
22
+ - 2.17 # [not aarch64]
23
+ - 2.26 # [aarch64]
24
+ conda_glibc_ver:
25
+ - 2.17 # [not aarch64]
26
+ - 2.26 # [aarch64]
27
+ kernel_version:
28
+ - 3.10.0 # [not aarch64]
29
+ - 4.18.20 # [aarch64]
30
+ gdb_version:
31
+ - 11.2
32
+ gdb_server_version:
33
+ - 11.2
34
+ strace_version:
35
+ - 5.16
36
+ ltrace_version:
37
+ - 0.7.3 # [not aarch64]
38
+ - 0.7.91 # [aarch64]
39
+ openmp_ver:
40
+ - 5.1
41
+ libgomp_ver:
42
+ - 1.0.0
43
+
44
+ zip_keys:
45
+ - - kernel_version
46
+ - conda_glibc_ver
47
+ - cpu_arch
48
+ - - gcc_version
49
+ - libgfortran_soname
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/decompress.sh ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ . ${RECIPE_DIR}/build_scripts/build_env.sh
4
+
5
+ set -e
6
+ echo "Fetching sources ..."
7
+
8
+ rm -rf gcc_toolchain-sources
9
+ git clone -b "gcc-11.2-${target_platform}" https://github.com/AnacondaRecipes/gcc_toolchain-sources
10
+
11
+ echo "Extracting sources ..."
12
+
13
+ pushd "gcc_toolchain-sources"
14
+
15
+ for f in *.tar.*; do
16
+ H=${f/\.tar.*/}
17
+ B="$(sed -r -e 's/(\-|_)+[0-9].*//' <<<"${H}" )"
18
+ H="$(sed -r -e 's/\.[a-z].*//' <<<"${H}" )"
19
+ HH=${H/_/\-}
20
+ H="$(sed -r -e 's/\.[a-z].*//' <<<"${H}" )"
21
+ F="$(sed -r -e 's/.*\.tar.(.*)/\1/' <<<"${f}" )"
22
+ C=""
23
+ if [ "${F}" == bz2 ]; then
24
+ C="j"
25
+ elif [ "${F}" == xz ]; then
26
+ C="J"
27
+ elif [ "${F}" == gz ]; then
28
+ C="z"
29
+ fi
30
+ printf "\rUncompress \rUncompress ${H} ... "
31
+ rm -rf ${WDIR}/${B} ${WDIR}/${H} ${WDIR}/${HH}
32
+ cp $f ${WDIR}/.
33
+ pushd "${WDIR}"
34
+ tar -x${C}f $f
35
+ if [ -d ./${H} ]; then
36
+ mv $H $B
37
+ elif [ -d ./${HH} ]; then
38
+ mv $HH $B
39
+ else
40
+ echo "\nCannot find extracted $H nor $HH ... please check"
41
+ exit 1
42
+ fi
43
+ # remove copied tar file after decompression ...
44
+ rm -f $f
45
+ popd
46
+ done
47
+
48
+ printf "\rUncompressed all source packages successful! \n"
49
+
50
+ # create ports support for glibc
51
+ ln -s §{WDIR}/glibc-ports ${WDIR}/glibc/ports
52
+
53
+ CUR=$PWD/patches
54
+
55
+ for f in binutils duma gcc gdb glibc "glibc-ports" gmp libelf ltrace; do
56
+ echo "Patching $f ..."
57
+ pushd "${WDIR}/${f}"
58
+ for g in ${CUR}/${f}/*.patch; do echo "proocess ${g}"; patch -f -p1 -g0 -F1 -i $g; done
59
+ popd
60
+ done
61
+
62
+ case "${HOST}" in
63
+ *linux*)
64
+ # we don't need them on linux architectures ... part of glibc
65
+ rm -rf ${WDIR}/gettext ${WDIR}/libiconv
66
+ ;;
67
+ esac
68
+
69
+ popd
70
+
71
+ exit 0
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/hello-world.cpp ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ #include <iostream>
2
+
3
+ int main(int argc, char * argv[])
4
+ {
5
+ std::cout << "Hello World!\n" << std::endl;
6
+ return 0;
7
+ }
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-duma.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ set -e -x
2
+
3
+ CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine)
4
+ export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH}
5
+
6
+ pushd ${SRC_DIR}/build/duma-target
7
+ make prefix=${PREFIX} HOSTCC=$(uname -m)-build_pc-linux-gnu-gcc CC=${CHOST}-gcc CXX=${CHOST}-g++ RANLIB=${CHOST}-ranlib OS=linux DUMA_CPP=1 install
8
+ popd
9
+
10
+ source ${RECIPE_DIR}/install_scripts/make_tool_links.sh
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-g++.sh ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set -e -x
2
+
3
+ CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine)
4
+ declare -a COMMON_MAKE_OPTS=()
5
+ COMMON_MAKE_OPTS+=(prefix=${PREFIX} exec_prefix=${PREFIX})
6
+
7
+ _libdir=libexec/gcc/${CHOST}/${PKG_VERSION}
8
+ # libtool wants to use ranlib that is here, macOS install doesn't grok -t etc
9
+ # .. do we need this scoped over the whole file though?
10
+ export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH}
11
+
12
+ pushd ${SRC_DIR}/build/gcc-final/
13
+
14
+ make -C gcc "${COMMON_MAKE_OPTS[@]}" c++.install-common
15
+
16
+ # How it used to be:
17
+ # install -m755 -t ${PREFIX}/bin/ gcc/{cc1plus,lto1}
18
+ for file in cc1plus; do
19
+ if [[ -f gcc/${file} ]]; then
20
+ install -c gcc/${file} ${PREFIX}/${_libdir}/${file}
21
+ fi
22
+ done
23
+
24
+ # Following 3 are in libstdcxx-devel
25
+ #make -C $CHOST/libstdc++-v3/src "${COMMON_MAKE_OPTS[@]}" install
26
+ #make -C $CHOST/libstdc++-v3/include "${COMMON_MAKE_OPTS[@]}" install
27
+ #make -C $CHOST/libstdc++-v3/libsupc++ "${COMMON_MAKE_OPTS[@]}" install
28
+ make -C $CHOST/libstdc++-v3/python "${COMMON_MAKE_OPTS[@]}" install
29
+
30
+ # Probably don't want to do this for cross-compilers
31
+ # mkdir -p ${PREFIX}/share/gdb/auto-load/usr/lib/
32
+ # cp ${SRC_DIR}/gcc_built/${CHOST}/sysroot/lib/libstdc++.so.6.*-gdb.py ${PREFIX}/share/gdb/auto-load/usr/lib/
33
+
34
+ make -C libcpp "${COMMON_MAKE_OPTS[@]}" install
35
+
36
+ popd
37
+
38
+ set +x
39
+ # Strip executables, we may want to install to a different prefix
40
+ # and strip in there so that we do not change files that are not
41
+ # part of this package.
42
+ pushd ${PREFIX}
43
+ _files=$(find . -type f)
44
+ for _file in ${_files}; do
45
+ _type="$( file "${_file}" | cut -d ' ' -f 2- )"
46
+ case "${_type}" in
47
+ *script*executable*)
48
+ ;;
49
+ *executable*)
50
+ ${SRC_DIR}/gcc_built/bin/${CHOST}-strip --strip-unneeded -v "${_file}" || :
51
+ ;;
52
+ esac
53
+ done
54
+ popd
55
+
56
+ source ${RECIPE_DIR}/install_scripts/make_tool_links.sh
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gcc.sh ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set -e -x
2
+
3
+ CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine)
4
+ declare -a COMMON_MAKE_OPTS=()
5
+ COMMON_MAKE_OPTS+=(prefix=${PREFIX} exec_prefix=${PREFIX})
6
+
7
+ _libdir=libexec/gcc/${CHOST}/${PKG_VERSION}
8
+ # libtool wants to use ranlib that is here, macOS install doesn't grok -t etc
9
+ # .. do we need this scoped over the whole file though?
10
+ export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH}
11
+
12
+ pushd ${SRC_DIR}/build/gcc-final/
13
+ # We may not have built with plugin support so failure here is not fatal:
14
+ make "${COMMON_MAKE_OPTS[@]}" install-lto-plugin || true
15
+ make -C gcc "${COMMON_MAKE_OPTS[@]}" install-driver install-cpp install-gcc-ar install-headers install-plugin install-lto-wrapper install-collect2
16
+ # not sure if this is the same as the line above. Run both, just in case
17
+ make -C lto-plugin "${COMMON_MAKE_OPTS[@]}" install
18
+ install -dm755 ${PREFIX}/lib/bfd-plugins/
19
+
20
+ # statically linked, so this so does not exist
21
+ # ln -s $PREFIX/lib/gcc/$CHOST/liblto_plugin.so ${PREFIX}/lib/bfd-plugins/
22
+
23
+ make -C libcpp "${COMMON_MAKE_OPTS[@]}" install
24
+
25
+ # Include languages we do not have any other place for here (and also lto1)
26
+ for file in gnat1 brig1 cc1 go1 lto1 cc1obj cc1objplus; do
27
+ if [[ -f gcc/${file} ]]; then
28
+ install -c gcc/${file} ${PREFIX}/${_libdir}/${file}
29
+ fi
30
+ done
31
+
32
+ # https://github.com/gcc-mirror/gcc/blob/gcc-7_3_0-release/gcc/Makefile.in#L3481-L3526
33
+ # Could have used install-common, but it also installs cxx binaries, which we
34
+ # don't want in this package. We could patch it, or use the loop below:
35
+ for file in gcov{,-tool,-dump}; do
36
+ if [[ -f gcc/${file} ]]; then
37
+ install -c gcc/${file} ${PREFIX}/bin/${CHOST}-${file}
38
+ fi
39
+ done
40
+
41
+ # make -C ${CHOST}/libgcc "${COMMON_MAKE_OPTS[@]}" install
42
+
43
+ # mkdir -p $PREFIX/$CHOST/sysroot/lib
44
+
45
+ # cp ${SRC_DIR}/gcc_built/$CHOST/sysroot/lib/libgomp.so* $PREFIX/$CHOST/sysroot/lib
46
+ # if [ -e ${SRC_DIR}/gcc_built/$CHOST/sysroot/lib/libquadmath.so* ]; then
47
+ # cp ${SRC_DIR}/gcc_built/$CHOST/sysroot/lib/libquadmath.so* $PREFIX/$CHOST/sysroot/lib
48
+ # fi
49
+
50
+ make prefix=${PREFIX}/lib/gcc/${CHOST}/${gcc_version} \
51
+ exec_prefix=${PREFIX}/lib/gcc/${CHOST}/${gcc_version} install-libcc1
52
+ install -d ${PREFIX}/share/gdb/auto-load/usr/lib
53
+
54
+ make "${COMMON_MAKE_OPTS[@]}" install-fixincludes
55
+ make -C gcc "${COMMON_MAKE_OPTS[@]}" install-mkheaders
56
+
57
+ if [[ -d ${CHOST}/libgomp ]]; then
58
+ make -C ${CHOST}/libgomp "${COMMON_MAKE_OPTS[@]}" install-nodist_{libsubinclude,toolexeclib}HEADERS
59
+ fi
60
+
61
+ if [[ -d ${CHOST}/libitm ]]; then
62
+ make -C ${CHOST}/libitm "${COMMON_MAKE_OPTS[@]}" install-nodist_toolexeclibHEADERS
63
+ fi
64
+
65
+ if [[ -d ${CHOST}/libquadmath ]]; then
66
+ make -C ${CHOST}/libquadmath "${COMMON_MAKE_OPTS[@]}" install-nodist_libsubincludeHEADERS
67
+ fi
68
+
69
+ if [[ -d ${CHOST}/libsanitizer ]]; then
70
+ make -C ${CHOST}/libsanitizer "${COMMON_MAKE_OPTS[@]}" install-nodist_{saninclude,toolexeclib}HEADERS
71
+ fi
72
+
73
+ if [[ -d ${CHOST}/libsanitizer/asan ]]; then
74
+ make -C ${CHOST}/libsanitizer/asan "${COMMON_MAKE_OPTS[@]}" install-nodist_toolexeclibHEADERS
75
+ fi
76
+
77
+ if [[ -d ${CHOST}/libsanitizer/tsan ]]; then
78
+ make -C ${CHOST}/libsanitizer/tsan "${COMMON_MAKE_OPTS[@]}" install-nodist_toolexeclibHEADERS
79
+ fi
80
+
81
+ make -C libiberty "${COMMON_MAKE_OPTS[@]}" install
82
+ # install PIC version of libiberty
83
+ install -m644 libiberty/pic/libiberty.a ${PREFIX}/lib/gcc/${CHOST}/${gcc_version}
84
+
85
+ make -C gcc "${COMMON_MAKE_OPTS[@]}" install-man install-info
86
+
87
+ make -C gcc "${COMMON_MAKE_OPTS[@]}" install-po
88
+
89
+ # many packages expect this symlink
90
+ [[ -f ${PREFIX}/bin/${CHOST}-cc ]] && rm ${PREFIX}/bin/${CHOST}-cc
91
+ pushd ${PREFIX}/bin
92
+ ln -s ${CHOST}-gcc ${CHOST}-cc
93
+ popd
94
+
95
+ # POSIX conformance launcher scripts for c89 and c99
96
+ cat > ${PREFIX}/bin/${CHOST}-c89 <<"EOF"
97
+ #!/bin/sh
98
+ fl="-std=c89"
99
+ for opt; do
100
+ case "$opt" in
101
+ -ansi|-std=c89|-std=iso9899:1990) fl="";;
102
+ -std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2
103
+ exit 1;;
104
+ esac
105
+ done
106
+ exec gcc $fl ${1+"$@"}
107
+ EOF
108
+
109
+ cat > ${PREFIX}/bin/${CHOST}-c99 <<"EOF"
110
+ #!/bin/sh
111
+ fl="-std=c99"
112
+ for opt; do
113
+ case "$opt" in
114
+ -std=c99|-std=iso9899:1999) fl="";;
115
+ -std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2
116
+ exit 1;;
117
+ esac
118
+ done
119
+ exec gcc $fl ${1+"$@"}
120
+ EOF
121
+
122
+ chmod 755 ${PREFIX}/bin/${CHOST}-c{8,9}9
123
+
124
+ rm ${PREFIX}/bin/${CHOST}-gcc-${PKG_VERSION}
125
+
126
+ popd
127
+
128
+ # Install kernel headers
129
+ kernel_arch=${cpu_arch}
130
+ if [[ ${kernel_arch} == aarch64 ]]; then
131
+ kernel_arch=arm64
132
+ elif [[ ${kernel_arch} == i686 ]]; then
133
+ kernel_arch=x86
134
+ elif [[ ${kernel_arch} == s390x ]]; then
135
+ kernel_arch=s390
136
+ fi
137
+
138
+
139
+ # generate specfile so that we can patch loader link path
140
+ # link_libgcc should have the gcc's own libraries by default (-R)
141
+ # so that LD_LIBRARY_PATH isn't required for basic libraries.
142
+ #
143
+ # GF method here to create specs file and edit it. The other methods
144
+ # tried had no effect on the result. including:
145
+ # setting LINK_LIBGCC_SPECS on configure
146
+ # setting LINK_LIBGCC_SPECS on make
147
+ # setting LINK_LIBGCC_SPECS in gcc/Makefile
148
+ specdir=$PREFIX/lib/gcc/$CHOST/${gcc_version}
149
+ $PREFIX/bin/${CHOST}-gcc -dumpspecs > $specdir/specs
150
+ # We use double quotes here because we want $PREFIX and $CHOST to be expanded at build time
151
+ # and recorded in the specs file. It will undergo a prefix replacement when our compiler
152
+ # package is installed.
153
+ sed -i -e "/\*link_libgcc:/,+1 s+%.*+& -rpath ${PREFIX}/lib+" $specdir/specs
154
+
155
+ # Install Runtime Library Exception
156
+ install -Dm644 $SRC_DIR/gcc/COPYING.RUNTIME \
157
+ ${PREFIX}/share/licenses/gcc/$CHOST/RUNTIME.LIBRARY.EXCEPTION
158
+
159
+ # Next problem: macOS targetting uClibc ends up with broken symlinks in sysroot/usr/lib:
160
+ if [[ $(uname) == Darwin ]]; then
161
+ pushd ${PREFIX}/${CHOST}/sysroot/usr/lib64
162
+ links=$(find . -type l | cut -c 3-)
163
+ for link in ${links}; do
164
+ target=$(readlink ${link} | sed 's#^/##' | sed 's#//#/#')
165
+ rm ${link}
166
+ ln -s ${target} ${link}
167
+ done
168
+ popd
169
+ fi
170
+
171
+ # Install the crosstool-ng config program to help with reproducibility:
172
+ # cp ${SRC_DIR}/gcc_built/bin/${CHOST}-ct-ng.config ${PREFIX}/bin
173
+
174
+ set +x
175
+ # Strip executables, we may want to install to a different prefix
176
+ # and strip in there so that we do not change files that are not
177
+ # part of this package.
178
+ pushd ${PREFIX}
179
+ _files=$(find . -type f)
180
+ for _file in ${_files}; do
181
+ _type="$( file "${_file}" | cut -d ' ' -f 2- )"
182
+ case "${_type}" in
183
+ *script*executable*)
184
+ ;;
185
+ *executable*)
186
+ ${SRC_DIR}/gcc_built/bin/${CHOST}-strip --strip-unneeded -v "${_file}" || :
187
+ ;;
188
+ esac
189
+ done
190
+ popd
191
+
192
+ #${PREFIX}/bin/${CHOST}-gcc "${RECIPE_DIR}"/c11threads.c -std=c11
193
+
194
+ # making these this way so conda build doesn't muck with them
195
+ pushd ${PREFIX}/${CHOST}/sysroot/lib64
196
+ ln -sf ../../../lib/libgomp.so libgomp.so
197
+ popd
198
+
199
+ # make links to libs in the sysroot
200
+ for lib in libgcc_s libstdc++ libgfortran libatomic libquadmath libitm lib{a,l,ub,t}san; do
201
+ ln -s ${PREFIX}/lib/${lib}.so* ${PREFIX}/${CHOST}/sysroot/lib64/
202
+ done
203
+
204
+ # Copy the liblto_plugin.so from the build tree. This is something of a hack and, on OSes other
205
+ # than the build OS, may cause segfaults. This plugin is used by gcc-ar, gcc-as and gcc-ranlib.
206
+ pushd ${SRC_DIR}/build/gcc-final/gcc/
207
+ mkdir -p ${PREFIX}/libexec/gcc/${CHOST}/${TOP_PKG_VERSION}/
208
+ cp -a liblto* ${PREFIX}/libexec/gcc/${CHOST}/${TOP_PKG_VERSION}/
209
+ popd
210
+
211
+ source ${RECIPE_DIR}/install_scripts/make_tool_links.sh
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gdb-server.sh ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set -e -x
2
+
3
+ CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine)
4
+
5
+ # libtool wants to use ranlib that is here
6
+ # for psuedo-cross, depending on the build and host,
7
+ # build-gdb-native could be used (it will have been built
8
+ # with the newer GCC instead of the system one).
9
+ pushd ${SRC_DIR}/build/gdb-server
10
+ export PATH=${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:$PATH
11
+ make prefix=${PREFIX} install
12
+ # Gets installed by binutils:
13
+ rm ${PREFIX}/share/info/bfd.info
14
+ popd
15
+
16
+ set +x
17
+ # Strip executables, we may want to install to a different prefix
18
+ # and strip in there so that we do not change files that are not
19
+ # part of this package.
20
+ pushd ${PREFIX}
21
+ _files=$(find . -type f)
22
+ for _file in ${_files}; do
23
+ _type="$( file "${_file}" | cut -d ' ' -f 2- )"
24
+ case "${_type}" in
25
+ *script*executable*)
26
+ ;;
27
+ *executable*)
28
+ ${SRC_DIR}/gcc_built/bin/${CHOST}-strip --strip-unneeded -v "${_file}" || :
29
+ ;;
30
+ esac
31
+ done
32
+ popd
33
+
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gdb.sh ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set -e -x
2
+
3
+ CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine)
4
+
5
+ # libtool wants to use ranlib that is here
6
+ # for psuedo-cross, depending on the build and host,
7
+ # build-gdb-native could be used (it will have been built
8
+ # with the newer GCC instead of the system one).
9
+ pushd ${SRC_DIR}/build/gdb-cross
10
+ export PATH=${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:$PATH
11
+ make prefix=${PREFIX} install
12
+ # Gets installed by binutils:
13
+ rm ${PREFIX}/share/info/bfd.info
14
+ popd
15
+
16
+ set +x
17
+ # Strip executables, we may want to install to a different prefix
18
+ # and strip in there so that we do not change files that are not
19
+ # part of this package.
20
+ pushd ${PREFIX}
21
+ _files=$(find . -type f)
22
+ for _file in ${_files}; do
23
+ _type="$( file "${_file}" | cut -d ' ' -f 2- )"
24
+ case "${_type}" in
25
+ *script*executable*)
26
+ ;;
27
+ *executable*)
28
+ ${SRC_DIR}/gcc_built/bin/${CHOST}-strip --strip-unneeded -v "${_file}" || :
29
+ ;;
30
+ esac
31
+ done
32
+ popd
33
+
34
+ source ${RECIPE_DIR}/install_scripts/make_tool_links.sh
data/miniconda3/pkgs/_openmp_mutex-5.1-1_gnu/info/recipe/parent/install_scripts/install-gfortran.sh ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set -e -x
2
+
3
+ CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine)
4
+ declare -a COMMON_MAKE_OPTS=()
5
+ COMMON_MAKE_OPTS+=(prefix=${PREFIX} exec_prefix=${PREFIX})
6
+
7
+ _libdir=libexec/gcc/${CHOST}/${PKG_VERSION}
8
+ # libtool wants to use ranlib that is here, macOS install doesn't grok -t etc
9
+ # .. do we need this scoped over the whole file though?
10
+ export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/buildtools/bin:${SRC_DIR}/compilers/bin:${PATH}
11
+
12
+ pushd ${SRC_DIR}/build/gcc-final/
13
+
14
+ # adapted from Arch install script from https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/gcc/PKGBUILD
15
+ # We cannot make install since .la files are not relocatable so libtool deliberately prevents it:
16
+ # libtool: install: error: cannot install `libgfortran.la' to a directory not ending in ${SRC_DIR}/work/gcc_built/${CHOST}/lib/../lib
17
+ make -C ${CHOST}/libgfortran "${COMMON_MAKE_OPTS[@]}" all-multi libgfortran.spec ieee_arithmetic.mod ieee_exceptions.mod ieee_features.mod config.h
18
+ make -C gcc "${COMMON_MAKE_OPTS[@]}" fortran.install-{common,man,info}
19
+
20
+ # How it used to be:
21
+ # install -Dm755 gcc/f951 ${PREFIX}/${_libdir}/f951
22
+ for file in f951; do
23
+ if [[ -f gcc/${file} ]]; then
24
+ install -c gcc/${file} ${PREFIX}/${_libdir}/${file}
25
+ fi
26
+ done
27
+
28
+ cp ${CHOST}/libgfortran/libgfortran.spec ${PREFIX}/${CHOST}/sysroot/lib64
29
+
30
+ pushd ${PREFIX}/bin
31
+ ln -s ${CHOST}-gfortran ${CHOST}-f95
32
+ popd
33
+
34
+ popd
35
+
36
+ mkdir -p $PREFIX/lib/gcc/${CHOST}/${gcc_version}/finclude
37
+ rsync -av ${SRC_DIR}/gcc_built/lib/gcc/${CHOST}/${gcc_version}/finclude/ $PREFIX/lib/gcc/${CHOST}/${gcc_version}/finclude
38
+
39
+ # Install Runtime Library Exception
40
+ install -Dm644 $SRC_DIR/gcc/COPYING.RUNTIME \
41
+ ${PREFIX}/share/licenses/gcc-fortran/RUNTIME.LIBRARY.EXCEPTION
42
+
43
+ # generate specfile so that we can patch loader link path
44
+ # link_libgcc should have the gcc's own libraries by default (-R)
45
+ # so that LD_LIBRARY_PATH isn't required for basic libraries.
46
+ #
47
+ # GF method here to create specs file and edit it. The other methods
48
+ # tried had no effect on the result. including:
49
+ # setting LINK_LIBGCC_SPECS on configure
50
+ # setting LINK_LIBGCC_SPECS on make
51
+ # setting LINK_LIBGCC_SPECS in gcc/Makefile
52
+ specdir=`dirname $($PREFIX/bin/${CHOST}-gfortran -print-libgcc-file-name -no-canonical-prefixes)`
53
+ mv $PREFIX/bin/${CHOST}-gfortran $PREFIX/bin/${CHOST}-gfortran.bin
54
+ echo '#!/bin/sh' > $PREFIX/bin/${CHOST}-gfortran
55
+ echo $PREFIX/bin/${CHOST}-gfortran.bin -specs=$specdir/specs '"$@"' >> $PREFIX/bin/${CHOST}-gfortran
56
+ chmod +x $PREFIX/bin/${CHOST}-gfortran
57
+
58
+ set +x
59
+ # Strip executables, we may want to install to a different prefix
60
+ # and strip in there so that we do not change files that are not
61
+ # part of this package.
62
+ pushd ${PREFIX}
63
+ _files=$(find . -type f)
64
+ for _file in ${_files}; do
65
+ _type="$( file "${_file}" | cut -d ' ' -f 2- )"
66
+ case "${_type}" in
67
+ *script*executable*)
68
+ ;;
69
+ *executable*)
70
+ ${SRC_DIR}/gcc_built/bin/${CHOST}-strip --strip-unneeded -v "${_file}" || :
71
+ ;;
72
+ esac
73
+ done
74
+ popd
75
+
76
+ source ${RECIPE_DIR}/install_scripts/make_tool_links.sh