Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
# and not libcrypt.so.2. Python seems to link only to the former.
# The latter should be preferred but we'd rather not ship both.
./configure \
--prefix="$ORCHESTRA_ROOT" \
--disable-static \
--enable-hashes=strong,glibc \
--enable-obsolete-api=glibc \
--disable-failure-tokens
"dependencies": []
"install": |
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
COPYING.LIB
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies":
- |-
host-c-toolchain
- |-
cmake
- |-
glibc
"configure": "mkdir -p \"$BUILD_DIR/source\"\nextract.sh --into \"$BUILD_DIR/source\" \"https://github.com/yaml/libyaml/archive/refs/tags/0.2.5.tar.gz\"\ncd \"$BUILD_DIR\"\ncmake \"$BUILD_DIR/source\" \\\n -GNinja \\\n -DCMAKE_BUILD_TYPE=Release \\\n -DBUILD_SHARED_LIBS=On \\\n -DCMAKE_INSTALL_PREFIX=\"$ORCHESTRA_ROOT\" \n"
"dependencies": []
"install": |
cd "$BUILD_DIR"
ninja ${JOBS:+-j$JOBS} install
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
source/License
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies": []
extract.sh --into "$BUILD_DIR" https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz
cd "$BUILD_DIR" && ./configure \
--prefix="$ORCHESTRA_ROOT" \
--with-gmp="$ORCHESTRA_ROOT" \
--with-mpfr="$ORCHESTRA_ROOT" \
--enable-shared=no \
CFLAGS="-fPIC" \
CXXFLAGS="-fPIC" \
LDFLAGS="-static-libgcc"
"dependencies":
- |-
gmp
- |-
mpfr
"install": |
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
COPYING.LESSER
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies": []
extract.sh --into "$BUILD_DIR" https://www.mpfr.org/mpfr-4.1.0/mpfr-4.1.0.tar.xz
cd "$BUILD_DIR" && ./configure \
--with-gmp="$ORCHESTRA_ROOT" \
--enable-shared=no \
CFLAGS="-fPIC" \
CXXFLAGS="-fPIC" \
LDFLAGS="-static-libgcc"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies":
- |-
- |-
glibc
"configure": |
mkdir -p "$BUILD_DIR"
extract.sh --into "$BUILD_DIR" https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.3.tar.gz
--enable-pc-files \
--enable-widec \
--with-cxx \
--with-cxx-binding \
--with-cxx-shared \
--with-shared \
--with-versioned-syms \
--with-xterm-kbs=del \
--with-manpage-format=normal \
--without-ada \
--without-assertions \
--without-debug \
--without-dlsym \
--without-expanded \
--without-gpm \
--without-hashed-db \
--without-profile \
--without-tack \
--without-tests \
--without-trace \
--with-pkg-config-libdir="$ORCHESTRA_ROOT/lib/pkgconfig"
"dependencies": []
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
INSTALLDIR="${DESTDIR}${ORCHESTRA_ROOT}"
# Adapted from ArchLinux PKGBUILD
# fool packages looking to link to non-wide-character ncurses libraries
for lib in ncurses ncurses++ form panel menu; do
printf "INPUT(-l%sw)\n" "${lib}" > "$INSTALLDIR/lib/lib${lib}.so"
ln -sv lib${lib}w.so.6.3 "$INSTALLDIR/lib/lib${lib}.so.6.3"
ln -sv lib${lib}w.so.6.3 "$INSTALLDIR/lib/lib${lib}.so.6"
ln -sv ${lib}w.pc "$INSTALLDIR/lib/pkgconfig/${lib}.pc"
done
# some packages look for -lcurses during build
printf 'INPUT(-lncursesw)\n' > "$INSTALLDIR/lib/libcursesw.so"
ln -sv libncurses.so "$INSTALLDIR/lib/libcurses.so"
# tic and ticinfo functionality is built in by default
# make sure that anything linking against it links against libncursesw.so instead
for lib in tic tinfo; do
printf "INPUT(libncursesw.so.6)\n" > "$INSTALLDIR/lib/lib${lib}.so"
ln -sv libncursesw.so.6.3 "$INSTALLDIR/lib/lib${lib}.so.6.3"
ln -sv libncursesw.so.6.3 "$INSTALLDIR/lib/lib${lib}.so.6"
ln -sv ncursesw.pc "$INSTALLDIR/lib/pkgconfig/${lib}.pc"
done
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
COPYING
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
extract.sh --into "$BUILD_DIR" https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1q.tar.gz
#@ # Note: openssldir is set to /etc/ssl; we assume that distros provide this.
#@ # On distros that don't, the following check will fail at build-time,
#@ # but unfortunately not at install-time when binary archives are used.
if ! [[ -d /etc/ssl ]]; then
echo "Error: openssldir /etc/ssl is missing in host root!" >&2
exit 1
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
cd "$BUILD_DIR"
./Configure \
--prefix="$ORCHESTRA_ROOT" \
--openssldir="/etc/ssl" \
--libdir=lib64 \
linux-x86_64 \
enable-camellia \
enable-ec \
enable-ec2m \
enable-sm2 \
enable-srp \
enable-idea \
enable-mdc2 \
enable-rc5 \
no-ssl3 \
no-ssl3-method \
enable-asm \
no-rfc3779 \
no-sctp \
no-tests \
no-zlib \
no-heartbeats \
no-weak-ssl-ciphers \
shared \
threads
"dependencies": []
"install": |
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install_sw DESTDIR="$DESTDIR"
find "$DESTDIR" -name "*.a" -delete
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
LICENSE
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
extract.sh --into "$BUILD_DIR" https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tar.xz
# Implicitly force PYTHONNOUSERSITE
sed -i \
's/if (no_user_site_directory)/if (1)/' \
"$BUILD_DIR/Python/initconfig.c"
# orchestra's libc has a buggy getaddrinfo; we expect users to have a newer libc
ac_cv_buggy_getaddrinfo=no ./configure \
--prefix="$ORCHESTRA_ROOT" \
--libdir="${ORCHESTRA_ROOT}/lib64" \
--enable-optimizations \
--enable-shared \
--enable-ipv6 \
--disable-test-modules \
--with-ensurepip=install \
--with-lto \
--with-readline \
--with-system-ffi \
--with-system-expat \
--without-static-libpython
grep -v HAVE_SYS_AUXV_H pyconfig.h > pyconfig.h.tmp
mv pyconfig.h.tmp pyconfig.h
sqlite
"install": |
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
INSTALLDIR="${DESTDIR}${ORCHESTRA_ROOT}"
ln -s python3 "${INSTALLDIR}"/bin/python
ln -s python3-config "${INSTALLDIR}"/bin/python-config
ln -s idle3 "${INSTALLDIR}"/bin/idle
ln -s pydoc3 "${INSTALLDIR}"/bin/pydoc
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies": []
cat > requirements.txt <<'EOF'
wheel
no-manylinux
pip-package-list.py \
python-base-packages \
-r requirements.txt \
> packages.csv
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
mkdir -p packages
cd packages
while IFS=, read -r NAME URL; do
fetch.sh "$URL"
echo "$NAME" >> "../package-list.txt"
done < ../packages.csv
"dependencies":
- |-
python
"install": |-
cd "$BUILD_DIR"
export HARD_FLAGS_COMPILE="-I"$("${ORCHESTRA_DOTDIR}/support/get-python-path" include)" $HARD_FLAGS_COMPILE"
python \
-m pip \
--disable-pip-version-check \
--no-python-version-warning \
install \
--compile \
--no-index \
--no-build-isolation \
--no-warn-script-location \
--ignore-installed \
--root "$DESTDIR" \
--verbose \
packages/*
PYTHON_PACKAGES_DIR="$DESTDIR$ORCHESTRA_ROOT/share/orchestra/python-packages/"
mkdir -p "$PYTHON_PACKAGES_DIR"
cp \
-a \
package-list.txt \
"$PYTHON_PACKAGES_DIR/python-base-packages.txt"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies": []
"configure": |-
mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
cat > requirements.txt <<'EOF'
-r requirements.txt \
> packages.csv
mkdir -p packages
cd packages
while IFS=, read -r NAME URL; do
fetch.sh "$URL"
echo "$NAME" >> "../package-list.txt"
done < ../packages.csv
"dependencies":
- |-
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
- |-
cython
"install": |-
cd "$BUILD_DIR"
export HARD_FLAGS_COMPILE="-I"$("${ORCHESTRA_DOTDIR}/support/get-python-path" include)" $HARD_FLAGS_COMPILE"
python \
-m pip \
--disable-pip-version-check \
--no-python-version-warning \
install \
--compile \
--no-index \
--no-build-isolation \
--no-warn-script-location \
--ignore-installed \
--root "$DESTDIR" \
--verbose \
packages/*
PYTHON_PACKAGES_DIR="$DESTDIR$ORCHESTRA_ROOT/share/orchestra/python-packages/"
mkdir -p "$PYTHON_PACKAGES_DIR"
cp \
-a \
package-list.txt \
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": !!null |-
null
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
- "add_to_path": []
"builds":
"default":
"build_dependencies":
- |-
host-c-toolchain
- |-
glibc
"configure": |
mkdir -p "$BUILD_DIR"
extract.sh --into "$BUILD_DIR" https://ftp.gnu.org/gnu/readline/readline-8.1.2.tar.gz
cd "$BUILD_DIR"
./configure \
--prefix="$ORCHESTRA_ROOT" \
--enable-multibyte \
--disable-static \
--disable-install-examples \
--with-curses
"dependencies":
- |-
ncurses
"install": |+
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS} SHLIB_LIBS=-lncurses
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
COPYING
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
- "add_to_path": []
"builds":
"default":
"build_dependencies":
- |-
tcl
"configure": |
mkdir -p "$BUILD_DIR/source"
extract.sh --into "$BUILD_DIR/source" "https://github.com/sqlite/sqlite/archive/refs/tags/version-3.39.4.tar.gz"
cd "$BUILD_DIR" && ./source/configure \
--prefix="$ORCHESTRA_ROOT" \
--enable-shared \
--enable-all \
--with-pic \
--disable-tcl
"dependencies":
- |-
glibc
- |-
readline
"install": |
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
source/LICENSE.md
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies":
- |-
glibc
"configure": |
mkdir -p "$BUILD_DIR/source"
extract.sh --into "$BUILD_DIR/source" "https://prdownloads.sourceforge.net/tcl/tcl8.6.12-src.tar.gz"
cd "$BUILD_DIR" && ./source/unix/configure \
--prefix="$ORCHESTRA_ROOT" \
--enable-shared
"dependencies": []
"install": |+
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
ln -s tclsh8.6 "$DESTDIR$ORCHESTRA_ROOT/bin/tclsh"
ls "$DESTDIR$ORCHESTRA_ROOT/bin/tclsh"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
source/license.terms
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path":
- |-
${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/binutils-bin/2.39
"builds":
"default":
"build_dependencies":
- |-
glibc
- |-
toolchain/host/gcc
"configure": |
export SOURCE_DIR="$BUILD_DIR/source"
mkdir -p "$SOURCE_DIR"
extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/binutils/binutils-2.39.tar.bz2
cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
--build=x86_64-pc-linux-gnu \
--host=x86_64-pc-linux-gnu \
--target=x86_64-pc-linux-gnu \
--with-sysroot="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu" \
--prefix=$ORCHESTRA_ROOT \
--datadir=$ORCHESTRA_ROOT/share/binutils-data/x86_64-pc-linux-gnu/2.39 \
--infodir=$ORCHESTRA_ROOT/share/binutils-data/x86_64-pc-linux-gnu/2.39/info \
--mandir=$ORCHESTRA_ROOT/share/binutils-data/x86_64-pc-linux-gnu/2.39/man \
--bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/binutils-bin/2.39 \
--libdir=$ORCHESTRA_ROOT/lib64/binutils/x86_64-pc-linux-gnu/2.39 \
--libexecdir=$ORCHESTRA_ROOT/lib64/binutils/x86_64-pc-linux-gnu/2.39 \
--includedir=$ORCHESTRA_ROOT/lib64/binutils/x86_64-pc-linux-gnu/2.39/include \
--without-included-gettext \
--with-zlib \
--enable-poison-system-directories \
--enable-secureplt \
--enable-obsolete \
--enable-gold \
--disable-shared \
--enable-threads \
--enable-install-libiberty \
--disable-werror \
--disable-static \
--disable-gdb \
--disable-libdecnumber \
--disable-readline \
--disable-sim \
--without-debuginfod \
--without-stage1-ldflags \
--enable-gold=default \
CFLAGS="-w -ggdb3 -O3" \
CXXFLAGS="-w -ggdb3 -O3"
"dependencies":
- |-
gcc-runtime
"install": |
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
source/COPYING
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path":
- |-
${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/11.2.0
"builds":
"stage1":
"build_dependencies":
- |-
glibc
- |-
gmp
- |-
mpfr
- |-
mpc
"configure": |
export SOURCE_DIR="$BUILD_DIR/source"
mkdir -p "$SOURCE_DIR"
extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.gz
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-fixes.patch" "$SOURCE_DIR"
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-remove-dependency-on-libc_single_threaded.patch" "$SOURCE_DIR"
sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"
sed -i "s|SHLIB_LINK = .(CC)|\0 -L$ORCHESTRA_ROOT/link-only/lib|" "$SOURCE_DIR/libgcc/config/t-slibgcc"
sed -i 's|@multilib_flags@||' "$SOURCE_DIR/libgcc/config/t-slibgcc"
mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
echo 'char __libc_single_threaded __attribute__ ((weak));' > fake-libc-single-threaded.c
gcc -c -fPIC -x c fake-libc-single-threaded.c -o "$BUILD_DIR/fake-libc-single-threaded.o"
"$SOURCE_DIR/configure" \
--host=x86_64-pc-linux-gnu \
--build=x86_64-pc-linux-gnu \
--target=x86_64-pc-linux-gnu \
--prefix=$ORCHESTRA_ROOT \
--bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/11.2.0 \
--includedir=$ORCHESTRA_ROOT/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include \
--datadir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0 \
--mandir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/man \
--infodir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/info \
--enable-obsolete \
--enable-secureplt \
--disable-werror \
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
--without-included-gettext \
--enable-checking=release \
--enable-libstdcxx-time \
--enable-poison-system-directories \
--disable-host-shared \
--enable-shared \
--disable-libatomic \
--disable-bootstrap \
--disable-multilib \
--disable-altivec \
--disable-fixed-point \
--disable-libgcj \
--disable-libgomp \
--disable-libmudflap \
--disable-libssp \
--disable-libcilkrts \
--disable-vtable-verify \
--disable-libvtv \
--disable-libquadmath \
--disable-rpath \
--enable-lto \
--disable-vtable-verify \
--disable-libsanitizer \
--with-gmp="$ORCHESTRA_ROOT" \
--with-mpfr="$ORCHESTRA_ROOT" \
--with-mpc="$ORCHESTRA_ROOT" \
--without-zstd \
--without-cloog \
--enable-libsanitizer \
--enable-libssp \
--enable-shared \
--enable-libatomic \
--enable-libquadmath \
--enable-esp \
--disable-libstdcxx-pch \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--disable-altivec \
--disable-fixed-point \
--enable-targets=all \
--enable-libgomp \
--disable-libmudflap \
--disable-libssp \
--disable-systemtap \
--enable-lto \
--without-isl \
--enable-default-pie \
--enable-default-ssp \
--disable-libmpx \
--with-glibc-version=2.13 \
CC=$INSTALL_LINK_ONLY_PATH/early-gcc/bin/gcc \
CXX=$INSTALL_LINK_ONLY_PATH/early-gcc/bin/g++ \
CFLAGS_FOR_TARGET="--sysroot=$INSTALL_LINK_ONLY_PATH -I$ORCHESTRA_ROOT/include" \
CXXFLAGS_FOR_TARGET="--sysroot=$INSTALL_LINK_ONLY_PATH -I$ORCHESTRA_ROOT/include" \
LDFLAGS_FOR_TARGET="--sysroot=$INSTALL_LINK_ONLY_PATH -Wl,-z,origin -Wl,--enable-new-dtags -L$ORCHESTRA_ROOT/lib -L$INSTALL_LINK_ONLY_PATH/lib" \
--enable-languages=c \
CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter $ORCHESTRA_ROOT/include -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter $ORCHESTRA_ROOT/include -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=$INSTALL_LINK_ONLY_PATH -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc -static-libstdc++ $BUILD_DIR/fake-libc-single-threaded.o -L$INSTALL_LINK_ONLY_PATH/lib64 --sysroot=$INSTALL_LINK_ONLY_PATH"
"dependencies":
- |-
toolchain/host/linux-headers
"install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/11.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n fi\n\n mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/11.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n fi\n\n cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n\"$ORCHESTRA_DOTDIR\"/support/save-for-later \\\n -i \"${DESTDIR}${ORCHESTRA_ROOT}\" \\\n gcc-runtime \\\n '^lib(|32|64)\\/lib[^/]*$' '^lib(|32|64)\\/crt[^/]*\\.o$'\n"
"ndebug": !!bool |-
true
"stage2":
"build_dependencies":
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
- |-
glibc
- |-
gmp
- |-
mpfr
- |-
mpc
"configure": |
export SOURCE_DIR="$BUILD_DIR/source"
mkdir -p "$SOURCE_DIR"
extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.gz
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-fixes.patch" "$SOURCE_DIR"
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-remove-dependency-on-libc_single_threaded.patch" "$SOURCE_DIR"
sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"
sed -i "s|SHLIB_LINK = .(CC)|\0 -L$ORCHESTRA_ROOT/link-only/lib|" "$SOURCE_DIR/libgcc/config/t-slibgcc"
sed -i 's|@multilib_flags@||' "$SOURCE_DIR/libgcc/config/t-slibgcc"
mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
echo 'char __libc_single_threaded __attribute__ ((weak));' > fake-libc-single-threaded.c
gcc -c -fPIC -x c fake-libc-single-threaded.c -o "$BUILD_DIR/fake-libc-single-threaded.o"
"$SOURCE_DIR/configure" \
--host=x86_64-pc-linux-gnu \
--build=x86_64-pc-linux-gnu \
--target=x86_64-pc-linux-gnu \
--prefix=$ORCHESTRA_ROOT \
--bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/11.2.0 \
--includedir=$ORCHESTRA_ROOT/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include \
--datadir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0 \
--mandir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/man \
--infodir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/info \
--enable-obsolete \
--enable-secureplt \
--disable-werror \
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
--without-included-gettext \
--enable-checking=release \
--enable-libstdcxx-time \
--enable-poison-system-directories \
--disable-host-shared \
--enable-shared \
--disable-libatomic \
--disable-bootstrap \
--disable-multilib \
--disable-altivec \
--disable-fixed-point \
--disable-libgcj \
--disable-libgomp \
--disable-libmudflap \
--disable-libssp \
--disable-libcilkrts \
--disable-vtable-verify \
--disable-libvtv \
--disable-libquadmath \
--disable-rpath \
--enable-lto \
--disable-vtable-verify \
--disable-libsanitizer \
--with-gmp="$ORCHESTRA_ROOT" \
--with-mpfr="$ORCHESTRA_ROOT" \
--with-mpc="$ORCHESTRA_ROOT" \
--without-zstd \
--without-cloog \
--enable-libsanitizer \
--enable-libssp \
--enable-shared \
--enable-libatomic \
--enable-libquadmath \
--enable-esp \
--disable-libstdcxx-pch \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--disable-altivec \
--disable-fixed-point \
--enable-targets=all \
--enable-libgomp \
--disable-libmudflap \
--disable-libssp \
--disable-systemtap \
--enable-lto \
--without-isl \
--enable-default-pie \
--enable-default-ssp \
--disable-libmpx \
--with-glibc-version=2.13 \
CC=$INSTALL_LINK_ONLY_PATH/early-gcc/bin/gcc \
CXX=$INSTALL_LINK_ONLY_PATH/early-gcc/bin/g++ \
CFLAGS_FOR_TARGET="--sysroot=$INSTALL_LINK_ONLY_PATH -I$ORCHESTRA_ROOT/include" \
CXXFLAGS_FOR_TARGET="--sysroot=$INSTALL_LINK_ONLY_PATH -I$ORCHESTRA_ROOT/include" \
LDFLAGS_FOR_TARGET="--sysroot=$INSTALL_LINK_ONLY_PATH -Wl,-z,origin -Wl,--enable-new-dtags -L$ORCHESTRA_ROOT/lib -L$INSTALL_LINK_ONLY_PATH/lib" \
--enable-languages=c,c++ \
CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter $ORCHESTRA_ROOT/include -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter $ORCHESTRA_ROOT/include -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=$INSTALL_LINK_ONLY_PATH -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc -static-libstdc++ $BUILD_DIR/fake-libc-single-threaded.o -L$INSTALL_LINK_ONLY_PATH/lib64 --sysroot=$INSTALL_LINK_ONLY_PATH"
"dependencies":
- |-
toolchain/host/linux-headers
"install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/11.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n fi\n\n mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/11.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n fi\n\n cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n\"$ORCHESTRA_DOTDIR\"/support/save-for-later \\\n -i \"${DESTDIR}${ORCHESTRA_ROOT}\" \\\n gcc-runtime \\\n '^lib(|32|64)\\/lib[^/]*$' '^lib(|32|64)\\/crt[^/]*\\.o$'\n"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
stage2
"license": |-
source/COPYING
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies": []
"configure": |
mkdir -p "$BUILD_DIR"
extract.sh --into "$BUILD_DIR" https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.4.tar.xz
"dependencies": []
"install": |
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS} -C "$BUILD_DIR" \
ARCH=x86_64 \
INSTALL_HDR_PATH="${DESTDIR}${ORCHESTRA_ROOT}/link-only" headers_install
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies":
- |-
gcc-host-toolchain
- |-
glibc
"configure": |
mkdir -p "$BUILD_DIR"
extract.sh --into "$BUILD_DIR" https://zlib.net/fossils/zlib-1.2.12.tar.gz
cd "$BUILD_DIR"
./configure \
--shared \
--uname=linux \
--prefix="$ORCHESTRA_ROOT"
"dependencies": []
"install": |
cd "$BUILD_DIR"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
README
"repository": !!null |-
null
"skip_post_install": !!bool |-
false