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: 2 PID: 0 at drivers/irqchip/irq-riscv-intc.c:159 riscv_irq_enable+0x92/0x94 CPU: 2 PID: 0 Comm: swapper/2 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: 2 PID: 0 at drivers/irqchip/irq-riscv-intc.c:159 riscv_irq_enable+0x92/0x94 CPU: 2 PID: 0 Comm: swapper/2 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) Sun Feb 18 12:47: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/devio-1.2-12.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/devio-1.2-12.fc25.src.rpm warning: bogus date in %changelog: Wed Sep 15 2009 Dan HorĂ¡k - 1.2-2 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.gRcKTg + umask 022 + cd /rpmbuild/BUILD + cd /rpmbuild/BUILD + rm -rf devio-1.2 + /usr/bin/gzip -dc /rpmbuild/SOURCES/devio-1.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd devio-1.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.B3DoSX + umask 022 + cd /rpmbuild/BUILD + cd devio-1.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 + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking whether stat file-mode macros are broken... no checking for an ANSI C-conforming const... yes checking for off_t... yes checking for size_t... yes checking for struct stat.st_blksize... yes checking for struct stat.st_blocks... yes checking for struct stat.st_rdev... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... random: crng init done yes checking for working memcmp... yes checking for fdatasync... yes checking for memset... yes checking for strerror... yes checking for strtoul... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands + make -j4 make all-recursive make[1]: Entering directory '/rpmbuild/BUILD/devio-1.2' Making all in src make[2]: Entering directory '/rpmbuild/BUILD/devio-1.2/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -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 -c devio.c devio.c: In function 'my_strdup': devio.c:126:21: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] size_t cb = strlen(from)+1; ^~~~ In file included from devio.c:40:0: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'const unsigned char *' extern size_t strlen (const char *__s) ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:129:3: note: in expansion of macro 'die' die("out of memory", from); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'size_mtd': devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:201:5: note: in expansion of macro 'pdie' pdie("lseek(length)", pfile->pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:203:5: note: in expansion of macro 'pdie' pdie("lseek(length reset)", pfile->pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:210:3: note: in expansion of macro 'die' die("cannot find size of this device", pfile->pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'new_mtd': devio.c:220:27: warning: pointer targets in passing argument 1 of 'my_strdup' differ in signedness [-Wpointer-sign] pfile->pname = my_strdup(pname); ^~~~~ devio.c:125:16: note: expected 'const unsigned char *' but argument is of type 'const char *' unsigned char *my_strdup(const unsigned char *from) { ^~~~~~~~~ devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:229:3: note: in expansion of macro 'pdie' pdie("fstat", pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:31: warning: pointer targets in passing argument 2 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:229:3: note: in expansion of macro 'pdie' pdie("fstat", pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'const char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:236:3: note: in expansion of macro 'die' die("invalid device", pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:29: warning: pointer targets in passing argument 2 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:236:3: note: in expansion of macro 'die' die("invalid device", pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'const char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'open_mtd': devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:252:3: note: in expansion of macro 'pdie' pdie("open", pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:31: warning: pointer targets in passing argument 2 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:252:3: note: in expansion of macro 'pdie' pdie("open", pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'const char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:254:3: note: in expansion of macro 'die' die("no standard streams", "-"); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:29: warning: pointer targets in passing argument 2 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:254:3: note: in expansion of macro 'die' die("no standard streams", "-"); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'write_mtd': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:278:5: note: in expansion of macro 'die' die("verification failed", pfile->pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:285:5: note: in expansion of macro 'pdie' pdie("lseek(write)", pfile->pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:320:6: note: in expansion of macro 'pdie' pdie("write", pfile->pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c: In function 'close_mtd': devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:392:6: note: in expansion of macro 'pdie' pdie("sync", pfile->pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:399:5: note: in expansion of macro 'pdie' pdie("close", pfile->pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c: In function 'buffer_mtd': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:427:4: note: in expansion of macro 'die' die("out of memory", pfile->pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'read_mtd': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:454:3: note: in expansion of macro 'die' die("read outside file", pfile->pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:479:5: note: in expansion of macro 'pdie' pdie("lseek(read)", pfile->pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:500:5: note: in expansion of macro 'pdie' pdie("lseek(read reset)", pfile->pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:505:4: note: in expansion of macro 'pdie' pdie("read", pfile->pname); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:507:4: note: in expansion of macro 'die' die("unexpected end of file", pfile->pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'mtd_putb': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:546:3: note: in expansion of macro 'die' die("file is not writeable", pfile->pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'mtd_readbytes': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:561:3: note: in expansion of macro 'die' die("read beyond end of file", pfile->pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'mtd_writebytes': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:591:3: note: in expansion of macro 'die' die("file is not writeable", pfile->pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:593:3: note: in expansion of macro 'die' die("write beyond end of file", pfile->pname); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'quit': devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:716:3: note: in expansion of macro 'pdie' pdie("output failed", "stdout"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:31: warning: pointer targets in passing argument 2 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:716:3: note: in expansion of macro 'pdie' pdie("output failed", "stdout"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c: In function 'inb': devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:728:4: note: in expansion of macro 'pdie' pdie("read error", "stdin"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:31: warning: pointer targets in passing argument 2 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:728:4: note: in expansion of macro 'pdie' pdie("read error", "stdin"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c: In function 'outb': devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:740:4: note: in expansion of macro 'pdie' pdie("write error", "stdout"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:31: warning: pointer targets in passing argument 2 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:740:4: note: in expansion of macro 'pdie' pdie("write error", "stdout"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c: In function 'outputbytes': devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:751:4: note: in expansion of macro 'pdie' pdie("write error", "stdout"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:31: warning: pointer targets in passing argument 2 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:751:4: note: in expansion of macro 'pdie' pdie("write error", "stdout"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:753:27: warning: pointer targets in passing argument 2 of 'mtd_writebytes' differ in signedness [-Wpointer-sign] mtd_writebytes(pp->pto, pbuf, cb); ^~~~ devio.c:589:13: note: expected 'const unsigned char *' but argument is of type 'const char *' static void mtd_writebytes(mtd_file *pfile, const unsigned char *pbuf, size_t cb) { ^~~~~~~~~~~~~~ devio.c: In function 'copybytes': devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:781:5: note: in expansion of macro 'pdie' pdie("read error", "stdin"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:31: warning: pointer targets in passing argument 2 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:781:5: note: in expansion of macro 'pdie' pdie("read error", "stdin"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:788:19: warning: pointer targets in passing argument 2 of 'outputbytes' differ in signedness [-Wpointer-sign] outputbytes(pp, buf, cbavail); ^~~ devio.c:748:13: note: expected 'const char *' but argument is of type 'unsigned char *' static void outputbytes(parse_buf *pp, const char *pbuf, size_t cb) { ^~~~~~~~~~~ devio.c: In function 'fillbytes': devio.c:805:19: warning: pointer targets in passing argument 2 of 'outputbytes' differ in signedness [-Wpointer-sign] outputbytes(pp, buf, cbavail); ^~~ devio.c:748:13: note: expected 'const char *' but argument is of type 'unsigned char *' static void outputbytes(parse_buf *pp, const char *pbuf, size_t cb) { ^~~~~~~~~~~ devio.c: In function 'push': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:815:3: note: in expansion of macro 'die' die("stack overflow", str); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'pop': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:823:3: note: in expansion of macro 'die' die("stack underflow", str); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'top': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:830:3: note: in expansion of macro 'die' die("stack underflow", str); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'parse_expression': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:860:5: note: in expansion of macro 'die' die("() stack overflow", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:956:4: note: in expansion of macro 'die' die("bad [: or [) nesting", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:990:19: warning: pointer targets in passing argument 1 of 'strtoul' differ in signedness [-Wpointer-sign] num = strtoul(lp, &end, 0); ^~ In file included from devio.c:38:0: /usr/include/stdlib.h:180:26: note: expected 'const char * restrict' but argument is of type 'const unsigned char *' extern unsigned long int strtoul (const char *__restrict __nptr, ^~~~~~~ devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:992:6: note: in expansion of macro 'pdie' pdie("invalid number", lp); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1056:7: note: in expansion of macro 'die' die("size of input unknown", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1061:7: note: in expansion of macro 'die' die("position of input unknown", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1066:7: note: in expansion of macro 'die' die("size of output unknown", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1071:7: note: in expansion of macro 'die' die("position of output unknown", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1076:7: note: in expansion of macro 'die' die("input device number unknown", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1082:7: note: in expansion of macro 'die' die("output block size unknown", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1087:7: note: in expansion of macro 'die' die("input block size unknown", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:1095:8: warning: pointer targets in passing argument 2 of 'parse_expression' differ in signedness [-Wpointer-sign] P("@8{@+8{@+8{@+;# 4 byte big-endian read"); ^ devio.c:1094:47: note: in definition of macro 'P' #define P(st) (void)parse_expression(pp, st, 0, (sizeof st)-1) ^~ devio.c:847:12: note: expected 'const unsigned char *' but argument is of type 'char *' static int parse_expression(parse_buf *pp, const unsigned char *line, int Ac, int AcEnd) { ^~~~~~~~~~~~~~~~ devio.c:1098:8: warning: pointer targets in passing argument 2 of 'parse_expression' differ in signedness [-Wpointer-sign] P("@@@@8{+8{+8{+;# 4 byte little-endian read"); ^ devio.c:1094:47: note: in definition of macro 'P' #define P(st) (void)parse_expression(pp, st, 0, (sizeof st)-1) ^~ devio.c:847:12: note: expected 'const unsigned char *' but argument is of type 'char *' static int parse_expression(parse_buf *pp, const unsigned char *line, int Ac, int AcEnd) { ^~~~~~~~~~~~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1112:6: note: in expansion of macro 'die' die("invalid operator", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1124:3: note: in expansion of macro 'die' die("unclosed ( )", line); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'need': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1139:3: note: in expansion of macro 'die' die("too few arguments", line+Ac); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'string': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1167:4: note: in expansion of macro 'die' die("unterminated quoted string", line+start); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1171:4: note: in expansion of macro 'die' die("stuff on line after quoted string", line+start); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1181:3: note: in expansion of macro 'die' die("string too long", line+start); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'find_file': devio.c:1216:11: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] strcmp(name, pp->files[i].pname) == 0) ^~~~ In file included from devio.c:40:0: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'const unsigned char *' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ devio.c:1216:17: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] strcmp(name, pp->files[i].pname) == 0) ^~ In file included from devio.c:40:0: /usr/include/string.h:136:12: note: expected 'const char *' but argument is of type 'unsigned char *' extern int strcmp (const char *__s1, const char *__s2) ^~~~~~ devio.c: In function 'open_file': devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1230:3: note: in expansion of macro 'die' die("no more files", name); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:1231:24: warning: pointer targets in passing argument 2 of 'open_mtd' differ in signedness [-Wpointer-sign] open_mtd(pp->files+i, name, fwrite, pp->fverify, pp->fprogress); ^~~~ devio.c:248:13: note: expected 'const char *' but argument is of type 'const unsigned char *' static void open_mtd(mtd_file *pfile, const char *pname, ^~~~~~~~ devio.c: In function 'parse': devio.c:1267:31: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] const unsigned char *line = prog[Al]; ^~~~ devio.c:1268:28: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] const int AcEnd = strlen(line); ^~~~ In file included from devio.c:40:0: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'const unsigned char *' extern size_t strlen (const char *__s) ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1295:6: note: in expansion of macro 'die' die("exec stack overflow", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:1347:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] line = prog[Al]; ^ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1366:5: note: in expansion of macro 'die' die("exec stack underflow", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1392:7: note: in expansion of macro 'die' die("attempt to open a read file for write", buffer); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1415:7: note: in expansion of macro 'die' die("no such file to close", buffer); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1423:6: note: in expansion of macro 'die' die("<> (close) requires an argument", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1429:6: note: in expansion of macro 'die' die("no output file", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1436:6: note: in expansion of macro 'die' die("no input file", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1449:13: note: in expansion of macro 'die' default:die("byte count out of range", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1461:13: note: in expansion of macro 'die' default:die("byte count out of range", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:1467:36: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] outputbytes(pp, buffer, strlen(buffer)); ^~~~~~ In file included from devio.c:40:0: /usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^~~~~~ devio.c:1467:21: warning: pointer targets in passing argument 2 of 'outputbytes' differ in signedness [-Wpointer-sign] outputbytes(pp, buffer, strlen(buffer)); ^~~~~~ devio.c:748:13: note: expected 'const char *' but argument is of type 'unsigned char *' static void outputbytes(parse_buf *pp, const char *pbuf, size_t cb) { ^~~~~~~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1477:6: note: in expansion of macro 'die' die("fill value out of range", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1495:6: note: in expansion of macro 'die' die("invalid byte count", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:99:27: warning: pointer targets in passing argument 1 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:1505:6: note: in expansion of macro 'pdie' pdie("write error", "stdout"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:99:31: warning: pointer targets in passing argument 2 of 'do_pdie' differ in signedness [-Wpointer-sign] #define pdie(a,b) do_pdie((a),(b)) ^ devio.c:1505:6: note: in expansion of macro 'pdie' pdie("write error", "stdout"); ^~~~ devio.c:94:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_pdie(const unsigned char *why, const unsigned char *infile) { ^~~~~~~ devio.c:1516:13: warning: pointer targets in passing argument 1 of 'printf' differ in signedness [-Wpointer-sign] printf(buffer, stack[0], stack[-1], stack[-2], stack[-3], ^~~~~~ In file included from /usr/include/stdio.h:862:0, from devio.c:39: /usr/include/bits/stdio2.h:102:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' printf (const char *__restrict __fmt, ...) ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1538:6: note: in expansion of macro 'die' die("unknown command", lp); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:25: warning: pointer targets in passing argument 1 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1551:3: note: in expansion of macro 'die' die("unclosed $( $)", "eof"); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c:80:29: warning: pointer targets in passing argument 2 of 'do_die' differ in signedness [-Wpointer-sign] #define die(a,b) do_die((a),(b)) ^ devio.c:1551:3: note: in expansion of macro 'die' die("unclosed $( $)", "eof"); ^~~ devio.c:75:13: note: expected 'const unsigned char *' but argument is of type 'char *' static void do_die(const unsigned char *why, const unsigned char *infile) { ^~~~~~ devio.c: In function 'main': devio.c:1587:30: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] const unsigned char *p = argv[i]; ^~~~ devio.c:1590:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "Enter the keyword in [] contained after the command list\n" ^ devio.c:1595:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = " commands are terminated by ';', newline or the end of input:\n" ^ devio.c:1612:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "conditional evalation\n" ^ devio.c:1638:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "conditional: $( condition; do if (condition) {\n"; ^ devio.c:1641:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "conditional: $( condition; } else if (condition) {\n"; ^ devio.c:1644:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "conditional: $: condition; } while (condition);\n"; ^ devio.c:1647:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "conditional: $: condition; if (condition) break;\n"; ^ devio.c:1650:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "program termination commands:\n" ^ devio.c:1658:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "exit: !? code; if (code != 0) exit(code);\n"; ^ devio.c:1661:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "exit: !! code; exit(code);\n"; ^ devio.c:1664:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "input/output control:\n" ^ devio.c:1680:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "io: >> file; select file as the current output device\n" ^ devio.c:1684:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "io: << file; select file as the current input device\n" ^ devio.c:1688:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "io: <> file; close file\n"; ^ devio.c:1691:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "io: >< file; close file\n"; ^ devio.c:1694:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "io: >= offset; set the 'to' pointer: output device file pointer\n"; ^ devio.c:1697:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "io: <= offset; set the 'from' pointer: input device file pointer\n"; ^ devio.c:1700:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "writing to the output:\n" ^ devio.c:1706:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "write: wb number bytes; write number in bytes big endian bytes\n"; ^ devio.c:1709:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "write: wl number bytes; write number in bytes little endian bytes\n"; ^ devio.c:1712:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "write: ws string; write string\n"; ^ devio.c:1715:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "write: fb number byte; write number bytes of value 'byte'\n"; ^ devio.c:1718:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "write: cp number; copy number bytes from input to output\n"; ^ devio.c:1721:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "write: xp number bytes; byte swap number bytes from input to output\n" ^ devio.c:1725:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "writing to stdout:\n" ^ devio.c:1735:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "message: pr number; printf(\"%lu\\n\", number);\n"; ^ devio.c:1738:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "message: pf string; printf(string, 1, 2, 3, 4, 5, 6, 7, 8)\n" ^ devio.c:1744:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "message: pn; prints a newline (printf(\"\\n\");)\n"; ^ devio.c:1747:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = ".= [number]\n" ^ devio.c:1750:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "= [number] ( is an upper case character in the range A-Z)\n" ^ devio.c:1754:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "string format\n" ^ devio.c:1762:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "number format\n" ^ devio.c:1777:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = "operators\n" ^ gcc -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 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o devio devio.o make[2]: Leaving directory '/rpmbuild/BUILD/devio-1.2/src' make[2]: Entering directory '/rpmbuild/BUILD/devio-1.2' make[2]: Leaving directory '/rpmbuild/BUILD/devio-1.2' make[1]: Leaving directory '/rpmbuild/BUILD/devio-1.2' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.pFZie7 + umask 022 + cd /rpmbuild/BUILD + '[' /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64 '!=' / ']' + rm -rf /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64 ++ dirname /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64 + mkdir -p /rpmbuild/BUILDROOT + mkdir /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64 + cd devio-1.2 + make install DESTDIR=/rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64 Making install in src make[1]: Entering directory '/rpmbuild/BUILD/devio-1.2/src' make[2]: Entering directory '/rpmbuild/BUILD/devio-1.2/src' test -z "/usr/bin" || mkdir -p -- "/rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64/usr/bin" /usr/bin/install -c 'devio' '/rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64/usr/bin/devio' make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/rpmbuild/BUILD/devio-1.2/src' make[1]: Leaving directory '/rpmbuild/BUILD/devio-1.2/src' make[1]: Entering directory '/rpmbuild/BUILD/devio-1.2' make[2]: Entering directory '/rpmbuild/BUILD/devio-1.2' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/rpmbuild/BUILD/devio-1.2' make[1]: Leaving directory '/rpmbuild/BUILD/devio-1.2' + install -Dp -m 644 /rpmbuild/SOURCES/devio.man /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64/usr/share/man/man1/devio.1 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: devio-1.2-12.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.QYyOo9 + umask 022 + cd /rpmbuild/BUILD + cd devio-1.2 + DOCDIR=/rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64/usr/share/doc/devio + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64/usr/share/doc/devio + cp -pr AUTHORS /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64/usr/share/doc/devio + cp -pr COPYING /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64/usr/share/doc/devio + cp -pr ChangeLog /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64/usr/share/doc/devio + cp -pr NEWS /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64/usr/share/doc/devio + cp -pr README /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64/usr/share/doc/devio + exit 0 Provides: devio = 1.2-12.fc28 devio(riscv-64) = 1.2-12.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64 warning: Could not canonicalize hostname: stage4-builder Wrote: /rpmbuild/RPMS/riscv64/devio-1.2-12.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.uGHvp6 + umask 022 + cd /rpmbuild/BUILD + cd devio-1.2 + /usr/bin/rm -rf /rpmbuild/BUILDROOT/devio-1.2-12.fc28.riscv64 + exit 0 Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.rpmXk9 + umask 022 + cd /rpmbuild/BUILD + rm -rf devio-1.2 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + mount.static -o remount,ro / + poweroff reboot: Power down Power off