OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 Linux version 4.15.0-rc9-00064-gf923ce3a29af (rjones@trick.home.annexia.org) (gcc version 7.3.1 20180129 (GCC)) #1 SMP Thu Feb 15 10:59:13 GMT 2018 bootconsole [early0] enabled Initial ramdisk at: 0x (ptrval) (512 bytes) Zone ranges: DMA32 empty Normal [mem 0x0000000080200000-0x000000017fffffff] Movable zone start for each node Early memory node ranges node 0: [mem 0x0000000080200000-0x000000017fffffff] Initmem setup node 0 [mem 0x0000000080200000-0x000000017fffffff] elf_hwcap is 0x112d percpu: Embedded 15 pages/cpu @ (ptrval) s29592 r0 d31848 u61440 Built 1 zonelists, mobility grouping on. Total pages: 1033735 Kernel command line: console=ttyS0 ro root=/dev/vda init=/init Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) Sorting __ex_table... Memory: 4119648K/4192256K available (5849K kernel code, 340K rwdata, 1541K rodata, 200K init, 847K bss, 72608K reserved, 0K cma-reserved) SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 Hierarchical RCU implementation. RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0 riscv,cpu_intc,0: 64 local interrupts mapped riscv,cpu_intc,1: 64 local interrupts mapped riscv,cpu_intc,2: 64 local interrupts mapped riscv,cpu_intc,3: 64 local interrupts mapped ------------[ cut here ]------------ WARNING: CPU: 3 PID: 0 at drivers/irqchip/irq-riscv-intc.c:159 riscv_irq_enable+0x92/0x94 CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.15.0-rc9-00064-gf923ce3a29af #1 Call Trace: [< (ptrval)>] walk_stackframe+0x0/0xa2 [< (ptrval)>] show_stack+0x26/0x34 [< (ptrval)>] dump_stack+0x5e/0x7c [< (ptrval)>] __warn+0xc6/0xdc [< (ptrval)>] warn_slowpath_null+0x2c/0x3e [< (ptrval)>] riscv_irq_enable+0x8e/0x94 [< (ptrval)>] irq_enable+0x3a/0x6a [< (ptrval)>] __irq_startup+0x80/0x88 [< (ptrval)>] irq_startup+0x4e/0xe2 [< (ptrval)>] irq_activate_and_startup+0x1c/0x28 [< (ptrval)>] __irq_do_set_handler+0x6e/0x134 [< (ptrval)>] irq_set_chained_handler_and_data+0x2c/0x4a [< (ptrval)>] plic_init+0x216/0x34a [< (ptrval)>] of_irq_init+0x132/0x232 [< (ptrval)>] irqchip_init+0x10/0x1c [< (ptrval)>] init_IRQ+0x8/0x14 [< (ptrval)>] start_kernel+0x1f6/0x32c [< (ptrval)>] _sinittext+0x4e/0x56 random: get_random_bytes called from print_oops_end_marker+0x3a/0x52 with crng_init=0 ---[ end trace 3f245499100bcdd5 ]--- riscv,plic0,c000000: mapped 10 interrupts to 4/8 handlers clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns Console: colour dummy device 80x25 Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 8192 (order: 4, 65536 bytes) Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes) Hierarchical SRCU implementation. smp: Bringing up secondary CPUs ... clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns smp: Brought up 1 node, 4 CPUs devtmpfs: initialized clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns futex hash table entries: 1024 (order: 4, 65536 bytes) NET: Registered protocol family 16 vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb clocksource: Switched to clocksource riscv_clocksource NET: Registered protocol family 2 TCP established hash table entries: 32768 (order: 6, 262144 bytes) TCP bind hash table entries: 32768 (order: 7, 524288 bytes) TCP: Hash tables configured (established 32768 bind 32768) UDP hash table entries: 2048 (order: 4, 65536 bytes) UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. Unpacking initramfs... Initialise system trusted keyrings workingset: timestamp_bits=62 max_order=20 bucket_order=0 NFS: Registering the id_resolver key type Key type id_resolver registered Key type id_legacy registered nfs4filelayout_init: NFSv4 File Layout Driver Registering... nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... SGI XFS with ACLs, security attributes, no debug enabled random: fast init done NET: Registered protocol family 38 Key type asymmetric registered Asymmetric key parser 'x509' registered Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) io scheduler mq-deadline registered io scheduler kyber registered Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled console [ttyS0] disabled 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 13, base_baud = 230400) is a 16550A OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 Linux version 4.15.0-rc9-00064-gf923ce3a29af (rjones@trick.home.annexia.org) (gcc version 7.3.1 20180129 (GCC)) #1 SMP Thu Feb 15 10:59:13 GMT 2018 bootconsole [early0] enabled Initial ramdisk at: 0x (ptrval) (512 bytes) Zone ranges: DMA32 empty Normal [mem 0x0000000080200000-0x000000017fffffff] Movable zone start for each node Early memory node ranges node 0: [mem 0x0000000080200000-0x000000017fffffff] Initmem setup node 0 [mem 0x0000000080200000-0x000000017fffffff] elf_hwcap is 0x112d percpu: Embedded 15 pages/cpu @ (ptrval) s29592 r0 d31848 u61440 Built 1 zonelists, mobility grouping on. Total pages: 1033735 Kernel command line: console=ttyS0 ro root=/dev/vda init=/init Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) Sorting __ex_table... Memory: 4119648K/4192256K available (5849K kernel code, 340K rwdata, 1541K rodata, 200K init, 847K bss, 72608K reserved, 0K cma-reserved) SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 Hierarchical RCU implementation. RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0 riscv,cpu_intc,0: 64 local interrupts mapped riscv,cpu_intc,1: 64 local interrupts mapped riscv,cpu_intc,2: 64 local interrupts mapped riscv,cpu_intc,3: 64 local interrupts mapped ------------[ cut here ]------------ WARNING: CPU: 3 PID: 0 at drivers/irqchip/irq-riscv-intc.c:159 riscv_irq_enable+0x92/0x94 CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.15.0-rc9-00064-gf923ce3a29af #1 Call Trace: [< (ptrval)>] walk_stackframe+0x0/0xa2 [< (ptrval)>] show_stack+0x26/0x34 [< (ptrval)>] dump_stack+0x5e/0x7c [< (ptrval)>] __warn+0xc6/0xdc [< (ptrval)>] warn_slowpath_null+0x2c/0x3e [< (ptrval)>] riscv_irq_enable+0x8e/0x94 [< (ptrval)>] irq_enable+0x3a/0x6a [< (ptrval)>] __irq_startup+0x80/0x88 [< (ptrval)>] irq_startup+0x4e/0xe2 [< (ptrval)>] irq_activate_and_startup+0x1c/0x28 [< (ptrval)>] __irq_do_set_handler+0x6e/0x134 [< (ptrval)>] irq_set_chained_handler_and_data+0x2c/0x4a [< (ptrval)>] plic_init+0x216/0x34a [< (ptrval)>] of_irq_init+0x132/0x232 [< (ptrval)>] irqchip_init+0x10/0x1c [< (ptrval)>] init_IRQ+0x8/0x14 [< (ptrval)>] start_kernel+0x1f6/0x32c [< (ptrval)>] _sinittext+0x4e/0x56 random: get_random_bytes called from print_oops_end_marker+0x3a/0x52 with crng_init=0 ---[ end trace 3f245499100bcdd5 ]--- riscv,plic0,c000000: mapped 10 interrupts to 4/8 handlers clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns Console: colour dummy device 80x25 Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 8192 (order: 4, 65536 bytes) Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes) Hierarchical SRCU implementation. smp: Bringing up secondary CPUs ... clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns smp: Brought up 1 node, 4 CPUs devtmpfs: initialized clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns futex hash table entries: 1024 (order: 4, 65536 bytes) NET: Registered protocol family 16 vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb clocksource: Switched to clocksource riscv_clocksource NET: Registered protocol family 2 TCP established hash table entries: 32768 (order: 6, 262144 bytes) TCP bind hash table entries: 32768 (order: 7, 524288 bytes) TCP: Hash tables configured (established 32768 bind 32768) UDP hash table entries: 2048 (order: 4, 65536 bytes) UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. Unpacking initramfs... Initialise system trusted keyrings workingset: timestamp_bits=62 max_order=20 bucket_order=0 NFS: Registering the id_resolver key type Key type id_resolver registered Key type id_legacy registered nfs4filelayout_init: NFSv4 File Layout Driver Registering... nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... SGI XFS with ACLs, security attributes, no debug enabled random: fast init done NET: Registered protocol family 38 Key type asymmetric registered Asymmetric key parser 'x509' registered Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) io scheduler mq-deadline registered io scheduler kyber registered Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled console [ttyS0] disabled 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 13, base_baud = 230400) is a 16550A console [ttyS0] enabled console [ttyS0] enabled [drm] radeon kernel modesetting enabled. [drm] radeon kernel modesetting enabled. loop: module loaded loop: module loaded libphy: Fixed MDIO Bus: probed libphy: Fixed MDIO Bus: probed e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k e1000e: Copyright(c) 1999 - 2015 Intel Corporation. e1000e: Copyright(c) 1999 - 2015 Intel Corporation. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver ehci-pci: EHCI PCI platform driver ehci-platform: EHCI generic platform driver ehci-platform: EHCI generic platform driver ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ohci-pci: OHCI PCI platform driver ohci-pci: OHCI PCI platform driver ohci-platform: OHCI generic platform driver ohci-platform: OHCI generic platform driver usbcore: registered new interface driver uas usbcore: registered new interface driver uas usbcore: registered new interface driver usb-storage usbcore: registered new interface driver usb-storage mousedev: PS/2 mouse device common for all mice mousedev: PS/2 mouse device common for all mice usbcore: registered new interface driver usbhid usbcore: registered new interface driver usbhid usbhid: USB HID core driver usbhid: USB HID core driver NET: Registered protocol family 10 NET: Registered protocol family 10 Segment Routing with IPv6 Segment Routing with IPv6 sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver NET: Registered protocol family 17 NET: Registered protocol family 17 Key type dns_resolver registered Key type dns_resolver registered bootconsole [early0] uses init memory and must be disabled even before the real one is ready bootconsole [early0] uses init memory and must be disabled even before the real one is ready bootconsole [early0] disabled bootconsole [early0] disabled Loading compiled-in X.509 certificates EXT4-fs (vda): couldn't mount as ext3 due to feature incompatibilities EXT4-fs (vda): couldn't mount as ext2 due to feature incompatibilities EXT4-fs (vda): INFO: recovery required on readonly filesystem EXT4-fs (vda): write access will be enabled during recovery EXT4-fs (vda): recovery complete EXT4-fs (vda): mounted filesystem with ordered data mode. Opts: (null) VFS: Mounted root (ext4 filesystem) readonly on device 254:0. Freeing unused kernel memory: 200K This architecture does not have kernel memory protection. EXT4-fs (vda): re-mounted. Opts: (null) Mon Feb 19 14:57:00 UTC 2018 1: lo: mtu 65536 qdisc noop state DOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff inet 10.0.2.15/24 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe12:3456/64 scope link tentative valid_lft forever preferred_lft forever 3: sit0@NONE: mtu 1480 qdisc noop state DOWN group default qlen 1000 link/sit 0.0.0.0 brd 0.0.0.0 default via 10.0.2.2 dev eth0 10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15 Welcome to the Fedora/RISC-V stage4 builder + set -e + exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + rpmbuild --rebuild /var/tmp/libdigidoc-3.10.2-1.fc25.src.rpm --define 'debug_package %{nil}' --undefine _annotated_build --define '_topdir /rpmbuild' --define '_missing_doc_files_terminate_build %{nil}' --define '_unitdir /usr/lib/systemd/system' --define '_sysctldir /usr/lib/sysctl.d' --define '_tmpfilesdir /usr/lib/tmpfiles.d' --define '_udevrulesdir /usr/lib/udev/rules.d' --define '_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d' --define '_emacs_sitelispdir /usr/share/emacs/site-lisp' --nocheck Installing /var/tmp/libdigidoc-3.10.2-1.fc25.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kgCGSq + umask 022 + cd /rpmbuild/BUILD + cd /rpmbuild/BUILD + rm -rf libdigidoc-3.10.2 + /usr/bin/gzip -dc /rpmbuild/SOURCES/libdigidoc-3.10.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libdigidoc-3.10.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OjNXfZ + umask 022 + cd /rpmbuild/BUILD + cd libdigidoc-3.10.2 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON . -DCMAKE_INSTALL_SYSCONFDIR=/etc -- The C compiler identification is GNU 7.3.1 -- The CXX compiler identification is GNU 7.3.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test C11 -- Performing Test C11 - Success -- Performing Test C0X -- Performing Test C0X - Success -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.3") -- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.1.0g") -- Found PKCS11_Module: opensc-pkcs11.so -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Success -- Found Iconv: /usr/lib64/libc.so -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /rpmbuild/BUILD/libdigidoc-3.10.2 + make -j4 /usr/bin/cmake -H/rpmbuild/BUILD/libdigidoc-3.10.2 -B/rpmbuild/BUILD/libdigidoc-3.10.2 --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /rpmbuild/BUILD/libdigidoc-3.10.2/CMakeFiles /rpmbuild/BUILD/libdigidoc-3.10.2/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/rpmbuild/BUILD/libdigidoc-3.10.2' make -f libdigidoc/CMakeFiles/digidoc.dir/build.make libdigidoc/CMakeFiles/digidoc.dir/depend make[2]: Entering directory '/rpmbuild/BUILD/libdigidoc-3.10.2' cd /rpmbuild/BUILD/libdigidoc-3.10.2 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /rpmbuild/BUILD/libdigidoc-3.10.2 /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc /rpmbuild/BUILD/libdigidoc-3.10.2 /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/CMakeFiles/digidoc.dir/DependInfo.cmake --color= Scanning dependencies of target digidoc make[2]: Leaving directory '/rpmbuild/BUILD/libdigidoc-3.10.2' make -f libdigidoc/CMakeFiles/digidoc.dir/build.make libdigidoc/CMakeFiles/digidoc.dir/buildrandom: crng init done make[2]: Entering directory '/rpmbuild/BUILD/libdigidoc-3.10.2' [ 4%] Building C object libdigidoc/CMakeFiles/digidoc.dir/DigiDocConfig.c.o cd /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc && /usr/bin/cc -DBUILD_DATE=\"19.02.2018\" -DBUILD_VER=0 -DDOMAINURL=\"ria.ee\" -DMAJOR_VER=3 -DMINOR_VER=10 -DORG=\"RIA\" -DRELEASE_VER=1 -DVER_SUFFIX=\"\" -Ddigidoc_EXPORTS -I/rpmbuild/BUILD/libdigidoc-3.10.2 -I/usr/include/libxml2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fvisibility=hidden -fPIC -o CMakeFiles/digidoc.dir/DigiDocConfig.c.o -c /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConfig.c [ 8%] Building C object libdigidoc/CMakeFiles/digidoc.dir/DigiDocPKCS11.c.o cd /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc && /usr/bin/cc -DBUILD_DATE=\"19.02.2018\" -DBUILD_VER=0 -DDOMAINURL=\"ria.ee\" -DMAJOR_VER=3 -DMINOR_VER=10 -DORG=\"RIA\" -DRELEASE_VER=1 -DVER_SUFFIX=\"\" -Ddigidoc_EXPORTS -I/rpmbuild/BUILD/libdigidoc-3.10.2 -I/usr/include/libxml2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fvisibility=hidden -fPIC -o CMakeFiles/digidoc.dir/DigiDocPKCS11.c.o -c /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocPKCS11.c [ 12%] Building C object libdigidoc/CMakeFiles/digidoc.dir/DigiDocObj.c.o [ 16%] Building C object libdigidoc/CMakeFiles/digidoc.dir/DigiDocLib.c.o cd /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc && /usr/bin/cc -DBUILD_DATE=\"19.02.2018\" -DBUILD_VER=0 -DDOMAINURL=\"ria.ee\" -DMAJOR_VER=3 -DMINOR_VER=10 -DORG=\"RIA\" -DRELEASE_VER=1 -DVER_SUFFIX=\"\" -Ddigidoc_EXPORTS -I/rpmbuild/BUILD/libdigidoc-3.10.2 -I/usr/include/libxml2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fvisibility=hidden -fPIC -o CMakeFiles/digidoc.dir/DigiDocLib.c.o -c /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c cd /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc && /usr/bin/cc -DBUILD_DATE=\"19.02.2018\" -DBUILD_VER=0 -DDOMAINURL=\"ria.ee\" -DMAJOR_VER=3 -DMINOR_VER=10 -DORG=\"RIA\" -DRELEASE_VER=1 -DVER_SUFFIX=\"\" -Ddigidoc_EXPORTS -I/rpmbuild/BUILD/libdigidoc-3.10.2 -I/usr/include/libxml2 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fvisibility=hidden -fPIC -o CMakeFiles/digidoc.dir/DigiDocObj.c.o -c /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConfig.c: In function 'initConfigStore': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConfig.c:330:93: warning: the address of 'g_szPrivateConfigFile' will always evaluate as 'true' [-Waddress] ddocDebug(3, "initConfigStore", "Reading private config file: %s", (g_szPrivateConfigFile ? g_szPrivateConfigFile : "NULL")); ^ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocPKCS11.c: In function 'closePKCS11Library': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocPKCS11.c:108:9: warning: variable 'rv' set but not used [-Wunused-but-set-variable] CK_RV rv; ^~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c: In function 'ddocGetDataFileCachedData': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:375:11: warning: unused variable 'len' [-Wunused-variable] int len; ^~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConfig.c: In function 'verifySignatureAndNotary': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConfig.c:1957:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(pCA) ^~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConfig.c:1959:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if(err2) { ^~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConfig.c: In function 'ddocVerifyCertByOCSPWithIp': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConfig.c:2117:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(pNotCert) ^~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConfig.c:2120:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' ddocDebug(1, "ddocVerifyCertByOCSPWithIp", "Verifying notary: %d", err); ^~~~~~~~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c: In function 'calculateFileSignature': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:477:15: error: storage size of 'ctx' isn't known EVP_MD_CTX ctx; ^~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:477:15: warning: unused variable 'ctx' [-Wunused-variable] /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c: In function 'signData': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:538:15: error: storage size of 'ctx' isn't known EVP_MD_CTX ctx; ^~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:538:15: warning: unused variable 'ctx' [-Wunused-variable] /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c: In function 'getTempFileName': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:688:13: warning: unused variable 'f' [-Wunused-variable] int f = 0; ^ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c: In function 'setSignatureCert': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:711:7: warning: variable 'err' set but not used [-Wunused-but-set-variable] int err = ERR_OK; ^~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c: In function 'ddocPullUrl': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:848:28: error: 'BIO_R_BAD_HOSTNAME_LOOKUP' undeclared (first use in this function); did you mean 'BIO_R_BAD_FOPEN_MODE'? if(ERR_GET_REASON(e) == BIO_R_BAD_HOSTNAME_LOOKUP || ^~~~~~~~~~~~~~~~~~~~~~~~~ BIO_R_BAD_FOPEN_MODE /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:848:28: note: each undeclared identifier is reported only once for each function it appears in /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:849:25: error: 'OCSP_R_SERVER_WRITE_ERROR' undeclared (first use in this function); did you mean 'OCSP_R_SERVER_RESPONSE_ERROR'? ERR_GET_REASON(e) == OCSP_R_SERVER_WRITE_ERROR) ^~~~~~~~~~~~~~~~~~~~~~~~~ OCSP_R_SERVER_RESPONSE_ERROR /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c: In function 'calculateSignedPropertiesDigest': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:3266:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] buf3 = canonicalizeXML((char*)buf2, strlen((const char*)buf2)); ^ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c: In function 'hasSignatureWithWrongDataFileHash': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:3310:9: warning: 'verifiedByWrongDataFileHash' is deprecated [-Wdeprecated-declarations] j = verifiedByWrongDataFileHash(pSigInfo); ^ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:3282:16: note: declared here EXP_OPTION int verifiedByWrongDataFileHash(const SignatureInfo* pSigInfo) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:86:0: /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c: In function 'getFullFileName': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocDefs.h:64:19: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] #define _getcwd getcwd /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.c:644:5: note: in expansion of macro '_getcwd' _getcwd(szDest, len); ^~~~~~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c: In function 'ddocGetOcspRespIdTypeAndValue': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:3708:14: error: dereferencing pointer to incomplete type 'OCSP_BASICRESP {aka struct ocsp_basic_response_st}' switch(br->tbsResponseData->responderId->type) { ^~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c: In function 'ddocNotInfo_GetThisUpdate': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:3859:72: error: dereferencing pointer to incomplete type 'OCSP_SINGLERESP {aka struct ocsp_single_response_st}' ddocDebug(3, "ddocNotInfo_GetThisUpdate", "This update: %s", single->thisUpdate); ^~ make[2]: *** [libdigidoc/CMakeFiles/digidoc.dir/build.make:90: libdigidoc/CMakeFiles/digidoc.dir/DigiDocLib.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c: In function 'ddocNotInfo_GetOcspRealDigest': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:4054:44: error: dereferencing pointer to incomplete type 'X509_EXTENSION {aka struct X509_extension_st}' int l1 = ASN1_STRING_length(ext->value); ^~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:4055:13: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations] p = ASN1_STRING_data(ext->value); ^ In file included from /usr/include/openssl/bn.h:31:0, from /usr/include/openssl/asn1.h:24, from /usr/include/openssl/objects.h:916, from /usr/include/openssl/evp.h:27, from /usr/include/openssl/x509.h:23, from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.h:27, from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:23: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:4064:44: warning: pointer targets in passing argument 3 of 'bin2hex' differ in signedness [-Wpointer-sign] bin2hex((const byte*)p, l1, (byte*)buf2, &l2); ^ In file included from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:26:0: /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConvert.h:70:17: note: expected 'char *' but argument is of type 'byte * {aka unsigned char *}' EXP_OPTION void bin2hex(const byte* bin, int blen, char* hex, int* len); ^~~~~~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:4038:31: warning: unused variable 'l1' [-Wunused-variable] int err = ERR_OK, nIdx = 0, l1 = 0, l2 = 0, nCheckOcspLen = 0; ^~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c: In function 'calculateSignatureWithPkcs12': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:4331:15: error: storage size of 'ctx' isn't known EVP_MD_CTX ctx; ^~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:4362:75: warning: pointer targets in passing argument 4 of 'calculateDigest' differ in signedness [-Wpointer-sign] err = calculateDigest((const byte*)mbuf1.pMem, mbuf1.nLen, DIGEST_SHA1, sigDig, &l2); ^~~~~~ In file included from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConvert.h:25:0, from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:26: /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocLib.h:123:16: note: expected 'byte * {aka unsigned char *}' but argument is of type 'char *' EXP_OPTION int calculateDigest(const byte* data, int nDataLen, int nDigestType, ^~~~~~~~~~~~~~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:4388:35: warning: pointer targets in passing argument 3 of 'encode' differ in signedness [-Wpointer-sign] encode((const byte*)sigDig, l2, (char*)signature, &sigLen); ^ In file included from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:26:0: /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocConvert.h:114:17: note: expected 'byte * {aka unsigned char *}' but argument is of type 'char *' EXP_OPTION void encode(const byte* raw, int rawlen, byte* buf, int* buflen); ^~~~~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:4402:29: warning: pointer targets in passing argument 2 of 'EVP_SignFinal' differ in signedness [-Wpointer-sign] err = EVP_SignFinal(&ctx, signature, &sigLen, pkey); ^~~~~~~~~ In file included from /usr/include/openssl/x509.h:23:0, from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.h:27, from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:23: /usr/include/openssl/evp.h:579:12: note: expected 'unsigned char *' but argument is of type 'char *' __owur int EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s, ^~~~~~~~~~~~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:4402:40: warning: pointer targets in passing argument 3 of 'EVP_SignFinal' differ in signedness [-Wpointer-sign] err = EVP_SignFinal(&ctx, signature, &sigLen, pkey); ^ In file included from /usr/include/openssl/x509.h:23:0, from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.h:27, from /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:23: /usr/include/openssl/evp.h:579:12: note: expected 'unsigned int *' but argument is of type 'int *' __owur int EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s, ^~~~~~~~~~~~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:4331:15: warning: unused variable 'ctx' [-Wunused-variable] EVP_MD_CTX ctx; ^~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c: In function 'DataFile_new': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocObj.c:282:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf1, sizeof(buf1), hFile); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [libdigidoc/CMakeFiles/digidoc.dir/build.make:114: libdigidoc/CMakeFiles/digidoc.dir/DigiDocObj.c.o] Error 1 /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocPKCS11.c: In function 'decryptWithEstID': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocPKCS11.c:859:12: warning: 'slId' may be used uninitialized in this function [-Wmaybe-uninitialized] hSession = OpenSession(slId, pin); ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocPKCS11.c: In function 'findUsersCertificate': /rpmbuild/BUILD/libdigidoc-3.10.2/libdigidoc/DigiDocPKCS11.c:932:3: warning: 'slId' may be used uninitialized in this function [-Wmaybe-uninitialized] ddocDebug(3, "findUsersCertificate", "OpenSession slotid %d", slId); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/rpmbuild/BUILD/libdigidoc-3.10.2' make[1]: *** [CMakeFiles/Makefile2:128: libdigidoc/CMakeFiles/digidoc.dir/all] Error 2 make[1]: Leaving directory '/rpmbuild/BUILD/libdigidoc-3.10.2' make: *** [Makefile:131: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.OjNXfZ (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.OjNXfZ (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ mount.static -o remount,ro / ++ poweroff reboot: Power down Power off