Nov 19 20:00:29: Building stage2 make: Entering directory '/build/nightly/next/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/build/nightly/next/lfs' make: Entering directory '/usr/src/lfs' ====================================== Installing stage2 ... Install started; saving file list to /usr/src/lsalr ... # Create directories mkdir -pv /{bin,boot,etc/opt,etc/modprobe.d,home,lib/firmware/brcm,mnt,opt,run} mkdir: created directory '/boot' mkdir: created directory '/etc/opt' mkdir: created directory '/etc/modprobe.d' mkdir: created directory '/home' mkdir: created directory '/lib' mkdir: created directory '/lib/firmware' mkdir: created directory '/lib/firmware/brcm' mkdir: created directory '/mnt' mkdir: created directory '/opt' mkdir: created directory '/run' mkdir -pv /{media/{floppy,cdrom,usbkey},sbin,srv,var} mkdir: created directory '/media' mkdir: created directory '/media/floppy' mkdir: created directory '/media/cdrom' mkdir: created directory '/media/usbkey' mkdir: created directory '/sbin' mkdir: created directory '/srv' mkdir: created directory '/var' install -dv -m 0750 /root install -dv -m 1777 /tmp /var/tmp install: creating directory '/var/tmp' mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src} mkdir: created directory '/usr/bin' mkdir: created directory '/usr/include' mkdir: created directory '/usr/lib' mkdir: created directory '/usr/sbin' mkdir: created directory '/usr/local' mkdir: created directory '/usr/local/bin' mkdir: created directory '/usr/local/include' mkdir: created directory '/usr/local/lib' mkdir: created directory '/usr/local/sbin' mkdir: created directory '/usr/local/src' mkdir -pv /usr/{,local/}share/{doc,info,locale,man} mkdir: created directory '/usr/share' mkdir: created directory '/usr/share/doc' mkdir: created directory '/usr/share/info' mkdir: created directory '/usr/share/locale' mkdir: created directory '/usr/share/man' mkdir: created directory '/usr/local/share' mkdir: created directory '/usr/local/share/doc' mkdir: created directory '/usr/local/share/info' mkdir: created directory '/usr/local/share/locale' mkdir: created directory '/usr/local/share/man' mkdir -v /usr/{,local/}share/{misc,terminfo,zoneinfo} mkdir: created directory '/usr/share/misc' mkdir: created directory '/usr/share/terminfo' mkdir: created directory '/usr/share/zoneinfo' mkdir: created directory '/usr/local/share/misc' mkdir: created directory '/usr/local/share/terminfo' mkdir: created directory '/usr/local/share/zoneinfo' mkdir -pv /usr/{,local/}share/man/man{1..8} mkdir: created directory '/usr/share/man/man1' mkdir: created directory '/usr/share/man/man2' mkdir: created directory '/usr/share/man/man3' mkdir: created directory '/usr/share/man/man4' mkdir: created directory '/usr/share/man/man5' mkdir: created directory '/usr/share/man/man6' mkdir: created directory '/usr/share/man/man7' mkdir: created directory '/usr/share/man/man8' mkdir: created directory '/usr/local/share/man/man1' mkdir: created directory '/usr/local/share/man/man2' mkdir: created directory '/usr/local/share/man/man3' mkdir: created directory '/usr/local/share/man/man4' mkdir: created directory '/usr/local/share/man/man5' mkdir: created directory '/usr/local/share/man/man6' mkdir: created directory '/usr/local/share/man/man7' mkdir: created directory '/usr/local/share/man/man8' #-for dir in /usr /usr/local; do \ # ln -sv share/{man,doc,info} $dir; \ #done # Symlink /var/run -> /run. ln -svf ../run /var/run '/var/run' -> '../run' ln -svf lib /lib64 '/lib64' -> 'lib' ln -svf lib /usr/lib64 '/usr/lib64' -> 'lib' # Symlinks # for this reason, stage2 rebuild will broke the iso:perl, grubbatch ln -sv /tools_aarch64/bin/{bash,cat,echo,pwd,stty} /bin '/bin/bash' -> '/tools_aarch64/bin/bash' '/bin/cat' -> '/tools_aarch64/bin/cat' '/bin/echo' -> '/tools_aarch64/bin/echo' '/bin/pwd' -> '/tools_aarch64/bin/pwd' '/bin/stty' -> '/tools_aarch64/bin/stty' ln -sv /tools_aarch64/bin/perl /usr/bin '/usr/bin/perl' -> '/tools_aarch64/bin/perl' ln -sv /tools_aarch64/lib/libgcc_s.so{,.1} /usr/lib '/usr/lib/libgcc_s.so' -> '/tools_aarch64/lib/libgcc_s.so' '/usr/lib/libgcc_s.so.1' -> '/tools_aarch64/lib/libgcc_s.so.1' ln -sv /tools_aarch64/lib/libstdc++.so{,.6} /usr/lib '/usr/lib/libstdc++.so' -> '/tools_aarch64/lib/libstdc++.so' '/usr/lib/libstdc++.so.6' -> '/tools_aarch64/lib/libstdc++.so.6' sed 's@/tools_aarch64@/usr@' /tools_aarch64/lib/libstdc++.la > /usr/lib/libstdc++.la ln -sv bash /bin/sh ln: failed to create symbolic link '/bin/sh': File exists make: [stage2:71: /usr/src/log/stage2] Error 1 (ignored) # Config files cp -rvf /usr/src/config/etc/* /etc; '/usr/src/config/etc/bashrc' -> '/etc/bashrc' '/usr/src/config/etc/certparams' -> '/etc/certparams' '/usr/src/config/etc/e2fsck.conf' -> '/etc/e2fsck.conf' '/usr/src/config/etc/group' -> '/etc/group' '/usr/src/config/etc/hddtemp.db' -> '/etc/hddtemp.db' '/usr/src/config/etc/host.conf' -> '/etc/host.conf' '/usr/src/config/etc/inittab' -> '/etc/inittab' '/usr/src/config/etc/inputrc' -> '/etc/inputrc' '/usr/src/config/etc/ipsec.user.conf' -> '/etc/ipsec.user.conf' '/usr/src/config/etc/ipsec.user.secrets' -> '/etc/ipsec.user.secrets' '/usr/src/config/etc/ld.so.conf' -> '/etc/ld.so.conf' '/usr/src/config/etc/logrotate.conf' -> '/etc/logrotate.conf' '/usr/src/config/etc/mime.types' -> '/etc/mime.types' '/usr/src/config/etc/modprobe.d/btmrvl_sdio.conf' -> '/etc/modprobe.d/btmrvl_sdio.conf' '/usr/src/config/etc/modprobe.d/nf_conntrack.conf' -> '/etc/modprobe.d/nf_conntrack.conf' '/usr/src/config/etc/modprobe.d/pcspeaker.conf' -> '/etc/modprobe.d/pcspeaker.conf' '/usr/src/config/etc/modules.conf' -> '/etc/modules.conf' '/usr/src/config/etc/nsswitch.conf' -> '/etc/nsswitch.conf' '/usr/src/config/etc/passwd' -> '/etc/passwd' '/usr/src/config/etc/profile' -> '/etc/profile' '/usr/src/config/etc/resolv.conf' -> '/etc/resolv.conf' '/usr/src/config/etc/securetty' -> '/etc/securetty' '/usr/src/config/etc/sysctl.conf' -> '/etc/sysctl.conf' '/usr/src/config/etc/syslog.conf' -> '/etc/syslog.conf' [ ! -d "/usr/src/config/etc-aarch64" ] || cp -rvf /usr/src/config/etc-aarch64/* /etc '/usr/src/config/etc-aarch64/sysctl-aarch64.conf' -> '/etc/sysctl-aarch64.conf' cp -rvf /usr/src/config/lib/* /lib; '/usr/src/config/lib/firmware/brcm/brcmfmac43362-sdio.txt' -> '/lib/firmware/brcm/brcmfmac43362-sdio.txt' touch /etc/fstab ln -s /proc/self/mounts /etc/mtab echo "IPFire v2.29 - www.ipfire.org" > /etc/issue echo "===============================" >> /etc/issue echo "\n running on \s \r \m" >> /etc/issue cat /etc/motd >> /etc/issue cat: /etc/motd: No such file or directory make: [stage2:81: /usr/src/log/stage2] Error 1 (ignored) # Bash startup files install --directory --mode=0755 --owner=root --group=root /etc/profile.d for i in /usr/src/config/profile.d/*; do \ [ -f $i ] && cp $i /etc/profile.d; \ done chmod 755 /etc/bashrc # Install root's bash files. for i in /usr/src/config/bash/dot_*; do \ [ -f $i ] && cp $i /root/$(basename ${i/dot_/\.}); \ done # Scripts for i in `find /usr/src/src/scripts -maxdepth 1 -type f`; do \ sed "s+CONFIG_ROOT+/var/ipfire+g" $i > /usr/local/bin/`basename $i`; \ chmod 755 /usr/local/bin/`basename $i`; \ done # Move script to correct place. mv -vf /usr/local/bin/openvpn-metrics /usr/sbin/ renamed '/usr/local/bin/openvpn-metrics' -> '/usr/sbin/openvpn-metrics' mv -vf /usr/local/bin/captive-cleanup /usr/bin/ renamed '/usr/local/bin/captive-cleanup' -> '/usr/bin/captive-cleanup' # Install firewall scripts. mkdir -pv /usr/lib/firewall mkdir: created directory '/usr/lib/firewall' install -m 755 /usr/src/config/firewall/rules.pl \ /usr/lib/firewall/rules.pl install -m 644 /usr/src/config/firewall/firewall-lib.pl \ /usr/lib/firewall/firewall-lib.pl install -m 755 /usr/src/config/firewall/ipsec-policy \ /usr/lib/firewall/ipsec-policy # Nobody user mkdir -p /home/nobody chown -R nobody:nobody /home/nobody # Create /var dirs and files mkdir -v /var/{lock,log,mail,spool,empty} mkdir: created directory '/var/lock' mkdir: created directory '/var/log' mkdir: created directory '/var/mail' mkdir: created directory '/var/spool' mkdir: created directory '/var/empty' mkdir -pv /var/{opt,cache,lib/misc,local} mkdir: created directory '/var/opt' mkdir: created directory '/var/cache' mkdir: created directory '/var/lib' mkdir: created directory '/var/lib/misc' mkdir: created directory '/var/local' mkdir -pv /var/log/{counter,calamaris} mkdir: created directory '/var/log/counter' mkdir: created directory '/var/log/calamaris' chown nobody.nobody /var/log/calamaris chown: warning: '.' should be ':': 'nobody.nobody' touch /var/log/{btmp,lastlog,wtmp} chmod -v 600 /var/log/btmp mode of '/var/log/btmp' changed from 0644 (rw-r--r--) to 0600 (rw-------) chgrp -v utmp /var/log/lastlog changed group of '/var/log/lastlog' from root to utmp chmod -v 664 /var/log/lastlog mode of '/var/log/lastlog' changed from 0644 (rw-r--r--) to 0664 (rw-rw-r--) # Permissions chmod 0711 /var/empty # A small hack to include /root to the iso but not all of it's files. touch /root/ipfire # System release echo "IPFire 2.29 (aarch64) - core190 Development Build: next/8f36e4c8" > /etc/system-release # OS release : >/etc/os-release echo "NAME=\"IPFire\"" >> /etc/os-release echo "VERSION=\"2.29\"" >> /etc/os-release echo "ID=ipfire" >> /etc/os-release echo "VERSION_ID=2" >> /etc/os-release echo "PRETTY_NAME=\"IPFire 2.29 (aarch64) - core190 Development Build: next/8f36e4c8\"" >> /etc/os-release echo "ANSI_COLOR=\"0:31\"" >> /etc/os-release # Pakfire mkdir -pv /opt/pakfire/db/core mkdir: created directory '/opt/pakfire' mkdir: created directory '/opt/pakfire/db' mkdir: created directory '/opt/pakfire/db/core' echo "190" > /opt/pakfire/db/core/mine # IPblocklist. mkdir -pv /var/lib/ipblocklist mkdir: created directory '/var/lib/ipblocklist' chown nobody:nobody /var/lib/ipblocklist Updating linker cache... Install done; saving file list to /usr/src/log/stage2 ... make: Leaving directory '/usr/src/lfs' Nov 19 20:00:30: Building linux HEADERS=1 make: Entering directory '/build/nightly/next/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/build/nightly/next/lfs' make: Entering directory '/usr/src/lfs' ====================================== Installing linux-6.6.62 ... Install started; saving file list to /usr/src/lsalr ... # Layer7-patch cd /usr/src/linux-6.6.62 && patch -Np1 < /usr/src/src/patches/linux/linux-6.6.26-layer7.patch patching file include/linux/skbuff.h patching file include/net/netfilter/nf_conntrack.h patching file include/uapi/linux/netfilter/xt_layer7.h patching file net/netfilter/Kconfig patching file net/netfilter/Makefile patching file net/netfilter/nf_conntrack_core.c patching file net/netfilter/nf_conntrack_standalone.c Hunk #1 succeeded at 366 (offset -3 lines). patching file net/netfilter/regexp/regexp.c patching file net/netfilter/regexp/regexp.h patching file net/netfilter/regexp/regmagic.h patching file net/netfilter/regexp/regsub.c patching file net/netfilter/xt_layer7.c # DVB Patches cd /usr/src/linux-6.6.62 && patch -Np2 < /usr/src/src/patches/v4l-dvb_fix_tua6034_pll.patch patching file drivers/media/dvb-frontends/dvb-pll.c Hunk #1 succeeded at 239 (offset -8 lines). # Wlan Patches cd /usr/src/linux-6.6.62 && patch -Np1 < /usr/src/src/patches/linux/linux-4.14_ath_user_regd.patch patching file drivers/net/wireless/ath/regd.c Hunk #5 succeeded at 388 (offset 1 line). Hunk #6 succeeded at 420 (offset 1 line). Hunk #7 succeeded at 655 (offset 1 line). cd /usr/src/linux-6.6.62 && patch -Np1 < /usr/src/src/patches/linux/linux-4.9.8-iwlwifi-noibss_only_on_radar_chan.patch patching file drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c Hunk #1 succeeded at 558 (offset -57 lines). # Fix igb and e1000e crash cd /usr/src/linux-6.6.62 && patch -Np1 < /usr/src/src/patches/linux/linux-4.14.1-igb-e1000e_fix_lock_at_update_stats.patch patching file drivers/net/ethernet/intel/e1000e/netdev.c Hunk #1 succeeded at 5970 (offset 18 lines). Hunk #2 succeeded at 6006 (offset 18 lines). patching file drivers/net/ethernet/intel/igb/igb_main.c Hunk #1 succeeded at 6625 (offset 1126 lines). # Fix uevent PHYSDEVDRIVER cd /usr/src/linux-6.6.62 && patch -Np1 < /usr/src/src/patches/linux/linux-2.6.32.27_mcs7830-fix-driver-name.patch patching file drivers/net/usb/mcs7830.c Hunk #1 succeeded at 104 (offset 16 lines). # fix Boot with enabled usercopy hardening cd /usr/src/linux-6.6.62 && patch -Np1 < /usr/src/src/patches/linux/linux-5.9-crypto_testmgr_allocate_buffers_with____GFP_COMP.patch patching file crypto/testmgr.c Hunk #1 succeeded at 167 (offset 11 lines). # Patch performance monitoring restrictions to allow further hardening cd /usr/src/linux-6.6.62 && patch -Np1 < /usr/src/src/patches/linux/linux-5.15.17-security-perf-allow-further-restriction-of-perf_event_open.patch patching file include/linux/perf_event.h Hunk #1 succeeded at 1617 (offset 271 lines). patching file kernel/events/core.c Hunk #1 succeeded at 419 (offset 5 lines). Hunk #2 succeeded at 12475 with fuzz 2 (offset 384 lines). # https://bugzilla.ipfire.org/show_bug.cgi?id=12760 cd /usr/src/linux-6.6.62 && patch -Np1 < /usr/src/src/patches/linux/linux-5.15-NFQUEUE-Hold-RCU-read-lock-while-calling-nf_reinject.patch patching file net/netfilter/nfnetlink_queue.c Hunk #1 succeeded at 232 with fuzz 1 (offset 4 lines). # Fix external module compile cd /usr/src/linux-6.6.62 && patch -Np1 < /usr/src/src/patches/linux/linux-6.0-fix_external_module_build.patch patching file Makefile Hunk #1 succeeded at 1791 (offset 57 lines). # Apply Arm kernel patches. cd /usr/src/linux-6.6.62 && cat patch /usr/src/src/patches/linux/aarch64/* | patch -Np1 cat: patch: No such file or directory patching file arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts patching file arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts patching file arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts patching file arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts patching file drivers/mmc/core/core.c Hunk #1 succeeded at 1368 (offset 5 lines). patching file drivers/pci/controller/pcie-rockchip-host.c patching file arch/arm64/boot/dts/rockchip/Makefile Hunk #1 succeeded at 50 (offset 1 line). patching file arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s-oc.dts patching file arch/arm64/boot/dts/rockchip/Makefile Hunk #1 FAILED at 15. 1 out of 1 hunk FAILED -- saving rejects to file arch/arm64/boot/dts/rockchip/Makefile.rej patching file arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2c-oc.dts patching file arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2c-plus-oc.dts patching file arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-oc.dts patching file arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts-oc.dts patching file arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-oc.dts make: *** [linux:125: /usr/src/log/linux-6.6.62-headers] Error 1 make: Leaving directory '/usr/src/lfs'