tc9_x86 (on core, uname_hack loaded for i486) tce-load -i compiletc perl5 ncurses-dev bash cloog-dev mpc-dev udev-dev texinfo coreutils glibc_apps export TC=/mnt/tc [***] sudo mkdir $TC [***] sudo mount /dev/sdc1 $TC [***] sudo mkdir $TC/tools [***] sudo chown tc:staff $TC/tools [***] sudo ln -s $TC/tools / [***] sudo mkdir $TC/sources sudo chown tc:staff $TC/sources cat > ~/.bash_profile << "EOF" exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash EOF cat > ~/.bashrc << "EOF" set +h umask 022 TC=/mnt/tc LC_ALL=POSIX TC_TGT=i486-tc-linux-gnu PATH=/tools/bin:/usr/local/bin:/bin:/usr/bin export TC LC_ALL TC_TGT PATH EOF source ~/.bash_profile ---------- cd binutils-2.29.1 mkdir build cd build ../configure --prefix=/tools --with-sysroot=$TC --with-lib-path=/tools/lib --target=$TC_TGT --disable-nls --disable-werror make [2m27.516s] make install cd gcc-7.2.0 tar -xf ../mpfr-3.1.6.tar.xz mv mpfr-3.1.6 mpfr tar -xf ../gmp-6.1.2.tar.xz mv gmp-6.1.2 gmp tar -xf ../mpc-1.0.3.tar.gz mv mpc-1.0.3 mpc for file in $(find gcc/config -name linux64.h -o -name linux.h) do cp $file $file.orig sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' -e 's@/usr@/tools@g' $file.orig > $file echo ' #undef STANDARD_STARTFILE_PREFIX_1 #undef STANDARD_STARTFILE_PREFIX_2 #define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/" #define STANDARD_STARTFILE_PREFIX_2 ""' >> $file touch $file.orig done mkdir build cd build ../configure --target=$TC_TGT --prefix=/tools --with-glibc-version=2.11 --with-sysroot=$TC --with-newlib --without-headers --with-local-prefix=/tools --with-native-system-header-dir=/tools/include --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libatomic --disable-libgomp --disable-libmpx --disable-libquadmath --disable-libssp --disable-libvtv --disable-libstdcxx --enable-languages=c,c++ make [24m0.003s] make install cd linux-4.14.3 make mrproper make INSTALL_HDR_PATH=dest headers_install cp -r dest/include/* /tools/include cd glibc-2.26 mkdir build cd build ../configure --prefix=/tools --host=$TC_TGT --build=$(../scripts/config.guess) --enable-kernel=4.2.9 --with-headers=/tools/include libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes make [7m56.166s] make install echo 'int main(){}' > dummy.c $TC_TGT-gcc dummy.c readelf -l a.out | grep ': /tools' [Requesting program interpreter: /tools/lib/ld-linux.so.2] rm dummy.c a.out cd gcc-7.2.0 (libstdc++-7.2.0) mkdir build cd build ../libstdc++-v3/configure --host=$TC_TGT --prefix=/tools --disable-multilib --disable-nls --disable-libstdcxx-threads --disable-libstdcxx-pch --with-gxx-include-dir=/tools/$TC_TGT/include/c++/7.2.0 make [0m36.696s] make install cd binutils-2.29.1 mkdir build cd build CC=$TC_TGT-gcc AR=$TC_TGT-ar RANLIB=$TC_TGT-ranlib ../configure --prefix=/tools --disable-nls --disable-werror --with-lib-path=/tools/lib --with-sysroot make [1m59.789s] make install make -C ld clean make -C ld LIB_PATH=/usr/lib:/lib cp ld/ld-new /tools/bin cd gcc-7.2.0 cat gcc/limitx.h gcc/glimits.h gcc/limity.h > `dirname $($TC_TGT-gcc -print-libgcc-file-name)`/include-fixed/limits.h for file in $(find gcc/config -name linux64.h -o -name linux.h) do cp $file $file.orig sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' -e 's@/usr@/tools@g' $file.orig > $file echo ' #undef STANDARD_STARTFILE_PREFIX_1 #undef STANDARD_STARTFILE_PREFIX_2 #define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/" #define STANDARD_STARTFILE_PREFIX_2 ""' >> $file touch $file.orig done tar -xf ../mpfr-3.1.6.tar.xz mv mpfr-3.1.6 mpfr tar -xf ../gmp-6.1.2.tar.xz mv gmp-6.1.2 gmp tar -xf ../mpc-1.0.3.tar.gz mv mpc-1.0.3 mpc mkdir build cd build CC=$TC_TGT-gcc CXX=$TC_TGT-g++ AR=$TC_TGT-ar RANLIB=$TC_TGT-ranlib ../configure --prefix=/tools --with-local-prefix=/tools --with-native-system-header-dir=/tools/include --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp make [23m51.553s] make install ln -s gcc /tools/bin/cc echo 'int main(){}' > dummy.c cc dummy.c readelf -l a.out | grep ': /tools' [Requesting program interpreter: /tools/lib/ld-linux.so.2] rm dummy.c a.out cd ncurses-6.0 sed -i s/mawk// configure ./configure --prefix=/tools --with-shared --without-debug --without-ada --enable-widec --enable-overwrite make [0m50.191s] make install cd bash-4.4.12 ./configure --prefix=/tools --without-bash-malloc make [0m31.060s] make install ln -s bash /tools/bin/sh cd bison-3.0.4 ./configure --prefix=/tools make [0m12.649s] make install cd bzip2-1.0.6 make [0m2.959s] make PREFIX=/tools install cd coreutils-8.28 ./configure --prefix=/tools --enable-install-program=hostname make [0m50.569s] make install cd diffutils-3.6 ./configure --prefix=/tools make [0m7.566s] make install cd file-5.32 ./configure --prefix=/tools make [0m4.253s] make install cd findutils-4.6.0 ./configure --prefix=/tools make [0m10.375s] make install cd gawk-4.2.0 ./configure --prefix=/tools make [0m18.392s] make install cd gettext-0.19.8.1 cd gettext-tools EMACS="no" ./configure --prefix=/tools --disable-shared make -C gnulib-lib [0m48.232s] make -C intl pluralx.c make -C src msgfmt make -C src msgmerge make -C src xgettext cp src/msgfmt /tools/bin cp src/msgmerge /tools/bin cp src/xgettext /tools/bin cd grep-3.1 ./configure --prefix=/tools make [0m6.276s] make install cd gzip-1.8 ./configure --prefix=/tools make [0m3.790s] make install cd m4-1.4.18 ./configure --prefix=/tools make [0m6.488s] make install cd make-4.2.1 ./configure --prefix=/tools --without-guile make [0m5.239s] make install cd patch-2.7.5 ./configure --prefix=/tools make [0m5.805s] make install cd perl-5.26.1 sh Configure -des -Dprefix=/tools -Dlibs=-lm make [2m9.429s] cp perl cpan/podlators/scripts/pod2man /tools/bin mkdir -p /tools/lib/perl5/5.26.1 cp -R lib/* /tools/lib/perl5/5.26.1 cd sed-4.4 ./configure --prefix=/tools make [0m3.867s] make install cd tar-1.29 ./configure --prefix=/tools make [0m14.384s] make install cd texinfo-6.5 ./configure --prefix=/tools make [0m6.824s] make install cd util-linux-2.31 ./configure --prefix=/tools --without-python --disable-makeinstall-chown --without-systemdsystemunitdir --without-ncurses PKG_CONFIG="" make [1m48.312s] make install cd xz-5.2.3 ./configure --prefix=/tools make [0m23.853s] make install ---------- sudo chown -R root:root $TC/tools sudo mkdir -p $TC/dev sudo mkdir -p $TC/proc sudo mkdir -p $TC/sys sudo mkdir -p $TC/run sudo mknod -m 600 $TC/dev/console c 5 1 sudo mknod -m 666 $TC/dev/null c 1 3 sudo mount --bind /dev $TC/dev [***] sudo mount -t devpts devpts $TC/dev/pts -o gid=5,mode=620 [***] sudo mount -t proc proc $TC/proc [***] sudo mount -t sysfs sysfs $TC/sys [***] sudo mount -t tmpfs tmpfs $TC/run [***] sudo chroot "$TC" /tools/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h ---------- mkdir -pv /{bin,boot,etc/{opt,sysconfig},home,lib/firmware,mnt,opt} mkdir -pv /{media/{floppy,cdrom},sbin,srv,var} install -dv -m 0750 /root install -dv -m 1777 /tmp /var/tmp mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src} mkdir -pv /usr/{,local/}share/{color,dict,doc,info,locale,man} mkdir -v /usr/{,local/}share/{misc,terminfo,zoneinfo} mkdir -v /usr/libexec mkdir -pv /usr/{,local/}share/man/man{1..8} mkdir -v /var/{log,mail,spool} ln -sv /run /var/run ln -sv /run/lock /var/lock mkdir -pv /var/{opt,cache,lib/{color,misc,locate},local} ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin ln -sv /tools/bin/perl /usr/bin ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib ln -sv /tools/lib/libstdc++.so{,.6} /usr/lib sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la ln -sv bash /bin/sh ln -sv /proc/self/mounts /etc/mtab [copy tc /etc/passwd and /etc/group files to $TC/etc] exec /tools/bin/bash --login +h touch /var/log/{btmp,lastlog,faillog,wtmp} chmod -v 664 /var/log/lastlog chmod -v 600 /var/log/btmp ---------- cd linux-4.14.3 make mrproper make INSTALL_HDR_PATH=dest headers_install find dest/include \( -name .install -o -name ..install.cmd \) -delete cp -rv dest/include/* /usr/include cd glibc-2.26 patch -Np1 -i ../glibc-2.26-fhs-1.patch ln -sfv /tools/lib/gcc /usr/lib rm -f /usr/include/limits.h mkdir build cd build echo "CFLAGS += -march=i486 -mtune=i686 -pipe" > configparms CC="gcc -isystem /usr/lib/gcc/i486-pc-linux-gnu/7.2.0/include -isystem /usr/include" ../configure --prefix=/usr --libexecdir=/usr/lib/glibc --enable-kernel=4.2.9 --enable-stack-protector=strong libc_cv_slibdir=/lib --disable-werror find . -name config.make -type f -exec sed -i 's/-g -O2/-O2/g' {} \; find . -name config.status -type f -exec sed -i 's/-g -O2/-O2/g' {} \; [fails with -Os] make [6m26.236s] touch /etc/ld.so.conf sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile make install [install install_root=/tmp/pkg] cp ../nscd/nscd.conf /etc/nscd.conf mkdir -p /var/cache/nscd make localedata/install-locales [4m48.259s] [copy tc /etc/nsswitch.conf and /etc/ld.so.conf files to $TC/etc] ---------- mv -v /tools/bin/{ld,ld-old} mv -v /tools/i486-pc-linux-gnu/bin/{ld,ld-old} mv -v /tools/bin/{ld-new,ld} ln -sv /tools/bin/ld /tools/i486-pc-linux-gnu/bin/ld gcc -dumpspecs | sed -e 's@/tools@@g' -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > `dirname $(gcc --print-libgcc-file-name)`/specs echo 'int main(){}' > dummy.c cc dummy.c -v -Wl,--verbose &> dummy.log readelf -l a.out | grep ': /lib' [Requesting program interpreter: /lib/ld-linux.so.2] grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log [/usr/lib/../lib/crt1.o succeeded /usr/lib/../lib/crti.o succeeded /usr/lib/../lib/crtn.o succeeded] grep -B1 '^ /usr/include' dummy.log [#include <...> search starts here: /usr/include] grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g' [SEARCH_DIR("=/tools/i486-pc-linux-gnu/lib64") SEARCH_DIR("/usr/lib") SEARCH_DIR("/lib") SEARCH_DIR("=/tools/i486-pc-linux-gnu/lib");] grep "/lib.*/libc.so.6 " dummy.log [attempt to open /lib/libc.so.6 succeeded] grep found dummy.log [found ld-linux.so.2 at /lib/ld-linux.so.2] rm -v dummy.c a.out dummy.log ---------- cd zlib-1.2.11 CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr find . -name Makefile -type f -exec sed -i 's/-O3//g' {} \; make [0m3.944s] make install cd file-5.32 CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr make [0m3.490s] make install cd readline-7.0 sed -i '/MV.*old/d' Makefile.in sed -i '/{OLDSUFF}/c:' support/shlib-install CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/readline-7.0 make SHLIB_LIBS="-L/tools/lib -lncursesw" [0m4.657s] make SHLIB_LIBS="-L/tools/lib -lncurses" install cd m4-1.4.18 CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr make [0m5.283s] make install cd bc-1.07.1 cat > bc/fix-libmath_h << "EOF" #! /bin/bash sed -e '1 s/^/{"/' -e 's/$/",/' -e '2,$ s/^/"/' -e '$ d' -i libmath.h sed -e '$ s/$/0}/' -i libmath.h EOF ln -sv /tools/lib/libncursesw.so.6 /usr/lib/libncursesw.so.6 ln -sfv libncurses.so.6 /usr/lib/libncurses.so sed -i -e '/flex/s/as_fn_error/: ;; # &/' configure CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr --with-readline --mandir=/usr/share/man --infodir=/usr/share/info make [0m2.546s] make install cd binutils-2.29.1 mkdir build cd build CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" ../configure --prefix=/usr --prefix=/usr --enable-gold --enable-ld=default --enable-plugins --enable-shared --disable-werror --with-system-zlib find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-O2 -g//g' {} \; make tooldir=/usr [4m47.413s] make tooldir=/usr install cd gmp-6.1.2 mv config{fsf,}.guess mv config{fsf,}.sub CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr --enable-cxx --disable-static --docdir=/usr/share/doc/gmp-6.1.2 make [0m46.049s] make install cd mpfr-3.1.6 CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr --disable-static --enable-thread-safe --docdir=/usr/share/doc/mpfr-3.1.6 make [0m34.038s] make install cd mpc-1.0.3 CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/mpc-1.0.3 make [0m6.557s] make install http://isl.gforge.inria.fr/isl-0.18.tar.xz cd isl-0.18 CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr --disable-static make [0m36.025s] make install mkdir -pv /usr/share/gdb/auto-load/usr/lib mv -v /usr/lib/libisl.so.15.3.0-gdb.py/usr/share/gdb/auto-load/usr/lib http://www.bastoul.net/cloog/pages/download/cloog-0.18.4.tar.gz cd cloog-0.18.4 CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr --disable-static --with-isl=system make [0m3.321s] make install cd gcc-7.2.0 rm -f /usr/lib/gcc mkdir build cd build SED=sed CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" ../configure --prefix=/usr --enable-languages=c,c++ --disable-multilib --disable-bootstrap --with-system-zlib --libexecdir=/usr/lib --enable-frame-pointer find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-O2 -g//g' {} \; find . -name config.status -type f -exec sed -i 's/-g -O2//g' {} \; make [22m6.132s] make install ln -sv ../usr/bin/cpp /lib ln -sv gcc /usr/bin/cc install -v -dm755 /usr/lib/bfd-plugins ln -sfv ../../lib/gcc/i486-pc-linux-gnu/7.2.0/liblto_plugin.so /usr/lib/bfd-plugins/ mkdir -pv /usr/share/gdb/auto-load/usr/lib mv -v /usr/lib/libstdc++.so.6.0.24-gdb.py /usr/share/gdb/auto-load/usr/lib ---------- echo 'int main(){}' > dummy.c cc dummy.c -v -Wl,--verbose &> dummy.log readelf -l a.out | grep ': /lib' [Requesting program interpreter: /lib/ld-linux.so.2] grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log [/usr/lib/gcc/i486-pc-linux-gnu/7.2.0/../../../crt1.o succeeded /usr/lib/gcc/i486-pc-linux-gnu/7.2.0/../../../crti.o succeeded /usr/lib/gcc/i486-pc-linux-gnu/7.2.0/../../../crtn.o succeeded] grep -B4 '^ /usr/include' dummy.log [#include <...> search starts here: /usr/lib/gcc/i486-pc-linux-gnu/7.2.0/include /usr/local/include /usr/lib/gcc/i486-pc-linux-gnu/7.2.0/include-fixed /usr/include] grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g' [SEARCH_DIR("/usr/i486-pc-linux-gnu/lib32") SEARCH_DIR("/usr/local/lib32") SEARCH_DIR("/lib32") SEARCH_DIR("/usr/lib32") SEARCH_DIR("/usr/i486-pc-linux-gnu/lib") SEARCH_DIR("/usr/local/lib") SEARCH_DIR("/lib") SEARCH_DIR("/usr/lib");] grep "/lib.*/libc.so.6 " dummy.log [attempt to open /lib/libc.so.6 succeeded] grep found dummy.log [found ld-linux.so.2 at /lib/ld-linux.so.2] rm -v dummy.c a.out dummy.log ---------- export PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/sbin:/usr/sbin:/tools/bin [***] cd bzip2-1.0.6 patch -Np1 -i ../bzip2-1.0.6-install_docs-1.patch Edit Makefile-libbz2_so CC=gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe CFLAGS=-fpic -fPIC -Wall -Winline $(BIGFILES) sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile make -f Makefile-libbz2_so [0m2.541s] make clean Edit Makefile CC=gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe CFLAGS=-Wall -Winline $(BIGFILES) make [0m2.688s] make PREFIX=/usr/local install cp bzip2-shared /usr/local/bin/bzip2 cp -a libbz2.so* /usr/local/lib cd /usr/local/lib ln -s libbz2.so.1.0 libbz2.so cd ../bin rm {bunzip2,bzcat} ln -s bzip2 bunzip2 ln -s bzip2 bzcat cd pkg-config-0.29.2 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --with-pc-path="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/share/pkgconfig" --with-internal-glib --disable-host-tool --docdir=/usr/share/doc/pkg-config-0.29.1 find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m16.966s] make install cd ncurses-6.0 sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr --mandir=/usr/share/man --with-shared --without-debug --without-normal --enable-pc-files --enable-overwrite --with-termlib --with-ticlib find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make [0m39.485s] make install cd attr-2.4.47 sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in sed -i -e "/SUBDIRS/s|man2||" man/Makefile CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static find . -name builddefs -type f -exec sed -i 's/-g -O2//g' {} \; make [0m1.828s] make install install-dev install-lib chmod 755 /usr/local/lib/libattr.so cd acl-2.2.52 sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in sed -i "s:| sed.*::g" test/{sbits-restore,cp,misc}.test sed -i 's/{(/\\{(/' test/run sed -i -e "/TABS-1;/a if (x > (TABS-1)) x = (TABS-1);" libacl/__acl_to_any_text.c CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --libexecdir=/usr/local/lib --disable-static find . -name builddefs -type f -exec sed -i 's/-g -O2//g' {} \; make [0m4.388s] make install install-dev install-lib chmod 755 /usr/local/lib/libacl.so cd libcap-2.25 sed -i '/install.*STALIBNAME/d' libcap/Makefile edit Make.Rules CC := gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe CFLAGS := -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 make [0m1.326s] make RAISE_SETFCAP=no prefix=/usr/local install chmod 755 /usr/local/lib/libcap.so cd sed-4.4 sed -i 's/usr/tools/' build-aux/help2man sed -i 's/testsuite.panic-tests.sh//' Makefile.in CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-acl find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m3.775s] make install cd bison-3.0.4 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --docdir=/usr/share/doc/bison-3.0.4 find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m12.439s] make install cd flex-2.6.4 sed -i "/math.h/a #include " src/flexdef.h CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --docdir=/usr/share/doc/flex-2.6.4 find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m9.349s] make install cd /usr/local/bin ln -s flex lex cd grep-3.1 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m5.890s] make install cd bash-4.4.12 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --docdir=/usr/share/doc/bash-4.4.12 --without-bash-malloc --with-installed-readline find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m27.984s] make install cd /bin rm bash ln -s /usr/local/bin/bash bash exec /bin/bash --login +h cd libtool-2.4.6 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m1.819s] make install cd gdbm-1.13 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --enable-libgdbm-compat find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m6.156s] make install cd gperf-3.1 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local find . -name config.status -type f -exec sed -i 's/-g -O2//g' {} \; make [0m2.624s] make install cd expat-2.2.5 sed -i 's|usr/bin/env |bin/|' run.sh.in CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m5.269s] make install cd perl-5.26.1 cp tc /etc/hosts export BUILD_ZLIB=False export BUILD_BZIP2=0 sh Configure -des -Dcc="gcc -march=i486 -mtune=i686 -Os -pipe" -Dprefix=/usr/local -Dvendorprefix=/usr/local -Dman1dir=/usr/local/share/man/man1 -Dman3dir=/usr/local/share/man/man3 -Dpager="/usr/bin/less -isR" -Duseshrplib -Dusethreads find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make [3m11.697s] make install unset BUILD_ZLIB BUILD_BZIP2 rm /usr/bin/perl cd XML-Parser-2.44 perl Makefile.PL make [0m2.510s] make install cd intltool-0.51.0 sed -i 's:\\\${:\\\$\\{:' intltool-update.in CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local make make install cd autoconf-2.69 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local make make install cd automake-1.15.1 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local make make install cd xz-5.2.3 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m17.718s] make install cd gettext-0.19.8.1 sed -i '/^TESTS =/d' gettext-runtime/tests/Makefile.in sed -i 's/test-lock..EXEEXT.//' gettext-tools/gnulib-tests/Makefile.in CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name config.status -type f -exec sed -i 's/-g -O2//g' {} \; make [2m56.044s] /bin/sh ../libtool --tag=CC --mode=link gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -o msgfmt msgfmt-msgfmt.o msgfmt-write-mo.o msgfmt-write-java.o msgfmt-write-csharp.o msgfmt-write-resources.o msgfmt-write-tcl.o msgfmt-write-qt.o msgfmt-write-desktop.o msgfmt-write-xml.o ../../gettext-runtime/intl/msgfmt-hash-string.o libgettextsrc.la libtool: link: gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -o .libs/msgfmt msgfmt-msgfmt.o msgfmt-write-mo.o msgfmt-write-java.o msgfmt-write-csharp.o msgfmt-write-resources.o msgfmt-write-tcl.o msgfmt-write-qt.o msgfmt-write-desktop.o msgfmt-write-xml.o ../../gettext-runtime/intl/msgfmt-hash-string.o ./.libs/libgettextsrc.so /sources/gettext-0.19.8.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so -lacl -lc -fopenmp /sources/gettext-0.19.8.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so: undefined reference to `fmod' /sources/gettext-0.19.8.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so: undefined reference to `pow' /sources/gettext-0.19.8.1/gettext-tools/gnulib-lib/.libs/libgettextlib.so: undefined reference to `log10' collect2: error: ld returned 1 exit status make[5]: *** [Makefile:2766: msgfmt] Error 1 make[5]: Leaving directory '/sources/gettext-0.19.8.1/gettext-tools/src' make[4]: *** [Makefile:2556: all] Error 2 need to add -lm to gettext-tools/src/libgettextsrc.la and gettext-tools/gnulib-lib/libgettextlib.la make install chmod -v 0755 /usr/local/lib/preloadable_libintl.so cd e2fsprogs-1.43.7 mkdir build cd build LIBS=-L/tools/lib CFLAGS=-I/tools/include PKG_CONFIG_PATH=/tools/lib/pkgconfig CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ../configure --prefix=/usr --bindir=/bin --with-root-prefix="" --enable-elf-shlibs --disable-libblkid --disable-libuuid --disable-uuidd --disable-fsck find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make [0m40.602s] make install make install-libs chmod u+w /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a cd coreutils-8.28 patch -Np1 -i ../coreutils-8.28-i18n-1.patch FORCE_UNSAFE_CONFIGURE=1 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --enable-no-install-program=kill,uptime --libexecdir=/usr/local/lib find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name config.status -type f -exec sed -i 's/-g -O2//g' {} \; edit configure if test "$GCC" = yes; then CFLAGS="-g -O2" -> CFLAGS="" FORCE_UNSAFE_CONFIGURE=1 make [3m15.592s] make install rm /bin/{cat,echo,pwd,stty} cd /bin ln -s /usr/local/bin/cat cat ln -s /usr/local/bin/echo echo ln -s /usr/local/bin/pwd pwd ln -s /usr/local/bin/stty stty cd diffutils-3.6 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m7.962s] make install cd gawk-4.2.0 sed -i 's/extras//' Makefile.in CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --libexecdir=/usr/local/lib/gawk find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m19.493s] make install cd findutils-4.6.0 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var/lib/locate --libexecdir=/usr/local/lib/findutils find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m11.056s] make install [modify /usr/local/bin/sort -> /bin/sort in updatedb for busybox] cd groff-1.22.3 PAGE=A4 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m58.543s] make install cd gzip-1.8 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m3.607s] make install cd make-4.2.1 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m5.595s] make install cd patch-2.7.5 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m5.418s] make install cd util-linux-2.31 add tty:x:4: to $TC/etc/group exec /usr/local/bin/bash --login +h mkdir -p /var/lib/hwclock ADJTIME_PATH=/var/lib/hwclock/adjtime CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --disable-chfn-chsh --disable-login --disable-nologin --disable-su --disable-setpriv --disable-runuser --disable-pylibmount --disable-static --without-python --without-systemd --without-systemdsystemunitdir --libexecdir=/lib find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [1m39.766s] make install cd tar-1.29 FORCE_UNSAFE_CONFIGURE=1 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --libexecdir=/usr/local/lib/tar find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m15.134s] make install cd texinfo-6.5 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m14.376s] make install make TEXMF=/usr/local/share/texmf install-tex ---------- cd gmp-6.1.2 mv config{fsf,}.guess mv config{fsf,}.sub CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr/local --enable-cxx --disable-static find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-mtune=i486 -march=i486//g' {} \; find . -name gmp.h -type f -exec sed -i 's/-O2//g' {} \; find . -name gmp.h -type f -exec sed -i 's/-mtune=i486 -march=i486//g' {} \; make [1m1.805s] make install cd mpfr-3.1.6 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr/local --disable-static --enable-thread-safe --with-gmp=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m43.900s] make install cd mpc-1.0.3 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr/local --disable-static --with-gmp=/usr/local --with-mpfr=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m16.706s] make install cd isl-0.18 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr/local --disable-static --with-gmp-prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-O3//g' {} \; find . -name Makefile -type f -exec sed -i 's/-march=pentium2//g' {} \; make [0m48.952s] make install mkdir -pv /usr/local/share/gdb/auto-load/usr/lib mv -v /usr/local/lib/libisl.so.15.3.0-gdb.py /usr/local/share/gdb/auto-load/usr/lib cd cloog-0.18.4 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr/local --disable-static --with-isl=system --with-isl-prefix=/usr/local --with-gmp-prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O3//g' {} \; find . -name Makefile -type f -exec sed -i 's/-O3//g' {} \; find . -name Makefile -type f -exec sed -i 's/-march=pentium2//g' {} \; make [0m8.648s] make install cd binutils-2.29.1 mkdir build cd build CC="gcc -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -march=i486 -mtune=i686 -Os -pipe" ../configure --prefix=/usr/local --enable-shared --disable-werror --enable-gold --enable-ld=default --enable-plugins --enable-system-zlib --with-mpc=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-isl=/usr/local [static libs huge with -flto] find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-O2 -g//g' {} \; make tooldir=/usr/local [5m53.600s] make tooldir=/usr/local install cd gcc-7.2.0 mkdir build cd build CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" ../configure --prefix=/usr/local --enable-languages=c,c++ --disable-multilib --disable-bootstrap --with-system-zlib --libexecdir=/usr/local/lib --enable-frame-pointer --with-mpfr=/usr/local --with-gmp=/usr/local --with-cloog=/usr/local --with-isl=/usr/local find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-O2 -g//g' {} \; find . -name config.status -type f -exec sed -i 's/-g -O2//g' {} \; make [24m31.627s] make install cd /usr/local/bin ln -s gcc cc cd /usr/local/lib ln -s ../bin/cpp ./ install -v -dm755 /usr/local/lib/bfd-plugins cd /usr/local/lib/bfd-plugins ln -s ../gcc/i486-pc-linux-gnu/7.2.0/liblto_plugin.so ./ mkdir -pv /usr/local/share/gdb/auto-load/usr/lib mv -v /usr/local/lib/libstdc++.so.6.0.24-gdb.py /usr/local/share/gdb/auto-load/usr/lib ---------- [remove binutils, gmp, mpfr, mpc, isl, cloog from /usr] [remove gcc, except libgcc, libstdc++ for /usr] [remove libgcc, libstdc++ for /usr/local] [for F in `cat files_list`; do rm "$F"; done] ---------- cd util-linux-2.31 ADJTIME_PATH=/var/lib/hwclock/adjtime CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-chfn-chsh --disable-login --disable-nologin --disable-su --disable-setpriv --disable-runuser --disable-pylibmount --disable-static --without-python --without-systemd --without-systemdsystemunitdir --libexecdir=/usr/local/lib --localstatedir=/var find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [1m39.320s] make install [remove files to match base/extension setup] cd e2fsprogs-1.43.7 mkdir build cd build CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ../configure --prefix=/usr/local --enable-elf-shlibs --disable-libblkid --disable-libuuid --disable-uuidd --disable-fsck find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m40.266s] make install make install-libs chmod u+w /usr/local/lib/{libcom_err,libe2p,libext2fs,libss}.a [remove files to match base/extension setup] cd file-5.32 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make [0m5.186s] make install [remove file from /usr] cd /usr/bin ln -s ../local/bin/file ./ cd m4-1.4.18 CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make [0m5.761s] make install [remove m4 from /usr] cd bc-1.07.1 cat > bc/fix-libmath_h << "EOF" #! /bin/bash sed -e '1 s/^/{"/' -e 's/$/",/' -e '2,$ s/^/"/' -e '$ d' -i libmath.h sed -e '$ s/$/0}/' -i libmath.h EOF sed -i -e '/flex/s/as_fn_error/: ;; # &/' configure CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --with-readline --mandir=/usr/local/share/man --infodir=/usr/local/share/info find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m4.594s] make install [remove bc from /usr]