Newer
Older
COPYING.LIB
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
"build_dependencies": []
"configure": |-
mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
cat > requirements.txt <<'EOF'
# lit version should always match clang-release and llvm version
lit==12.0.0
EOF
pip-package-list.py \
lit \
-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":
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
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/lit.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": []
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"
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
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":
1218
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
cmake
"configure": |
mkdir -p "$BUILD_DIR/build"
extract.sh --into "$BUILD_DIR" https://github.com/ninja-build/ninja/archive/refs/tags/v1.11.0.tar.gz
patch-if-exists "${ORCHESTRA_DOTDIR}/patches/ninja-shell-for-rule.patch" "$BUILD_DIR"
cd "$BUILD_DIR/build"
cmake \
"$BUILD_DIR" \
-Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$ORCHESTRA_ROOT
"dependencies": []
"install": |
cd "$BUILD_DIR/build"
make ${JOBS:+-j$JOBS}
make ${JOBS:+-j$JOBS} install
"ndebug": !!bool |-
true
"commit": !!null |-
null
"default_build": |-
default
"license": |-
COPYING
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
- "add_to_path": []
"builds":
"default":
"build_dependencies":
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
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
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
"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
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
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
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
- "add_to_path": []
"builds":
"default":
"build_dependencies":
- |-
host-c-toolchain
"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
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
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
- "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 \
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
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
--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":
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
- |-
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 \
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
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
--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" \
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
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": |-
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
- "add_to_path": []
"builds":
"default":
"build_dependencies":
- |-
host-c-toolchain
"configure": |
mkdir -p "$BUILD_DIR"
extract.sh --into "$BUILD_DIR" https://tukaani.org/xz/xz-5.4.0.tar.bz2
cd "$BUILD_DIR"
./configure \
--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": |-
COPYING
"repository": !!null |-
null
"skip_post_install": !!bool |-
false
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
- "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