pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/52983: sysutils/memtestplus w/-O0 build fails on netbsd-7



>Number:         52983
>Category:       pkg
>Synopsis:       sysutils/memtestplus w/-O0 build fails on netbsd-7
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 06 22:50:00 +0000 2018
>Originator:     John D. Baker
>Release:        NetBSD-7.1_STABLE (i386, amd64)
>Organization:
>Environment:
NetBSD yggdrasil.technoskunk.fur 7.1_STABLE NetBSD 7.1_STABLE (YGGDRASIL) #126: Tue Jan 23 13:08:26 CST 2018  sysop%yggdrasil.technoskunk.fur@localhost:/r0/build/netbsd-7/obj/amd64/sys/arch/amd64/compile/YGGDRASIL amd64

NetBSD verthandi.technoskunk.fur 7.1_STABLE NetBSD 7.1_STABLE (VERTHANDI) #56: Sun Feb  4 23:18:23 CST 2018  sysop%x3650.technoskunk.fur@localhost:/r1/build/netbsd-7/obj/i386/sys/arch/i386/compile/VERTHANDI i386

>Description:
Using pkgsrc-2017Q4 with the relevant part of pullup pkgsrc-5698
applied manually and preserved as a local patch, "sysutils/memtestplus"
fails the build phase with:

[...]
ld --allow-multiple-definition --warn-constructors --warn-common -static -T memtest_shared.lds \
 -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o cpuid.o linuxbios.o pci.o memsize.o spd.o error.o dmi.o controller.o smp.o vmem.o random.o && \
ld --allow-multiple-definition -shared -Bsymbolic -T memtest_shared.lds -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o cpuid.o linuxbios.o pci.o memsize.o spd.o error.o dmi.o controller.o smp.o vmem.o random.o
init.o: In function `display_init':
init.c:(.text+0x376): undefined reference to `__outb'
init.c:(.text+0x38a): undefined reference to `__outb'
init.c:(.text+0x39e): undefined reference to `__outb'
init.c:(.text+0x3b2): undefined reference to `__outb'
init.o: In function `init':
init.c:(.text+0x527): undefined reference to `__outb'
init.o: In function `cpuspeed':
init.c:(.text+0x298e): undefined reference to `__inbc'
init.c:(.text+0x29a9): undefined reference to `__outbc'
init.c:(.text+0x29bd): undefined reference to `__outbc'
init.c:(.text+0x29d1): undefined reference to `__outbc'
init.c:(.text+0x29e5): undefined reference to `__outbc'
init.c:(.text+0x2a11): undefined reference to `__inbc'
lib.o: In function `reboot':
lib.c:(.text+0x47): undefined reference to `__outbc'
lib.c:(.text+0x5b): undefined reference to `__outb'
lib.c:(.text+0x6f): undefined reference to `__outb'
lib.c:(.text+0x83): undefined reference to `__outb'
lib.o: In function `get_key':
lib.c:(.text+0x16a1): undefined reference to `__inbc'
lib.c:(.text+0x16ed): undefined reference to `__inb'
lib.c:(.text+0x1724): undefined reference to `__inb'
lib.c:(.text+0x174e): undefined reference to `__inbc'
lib.o: In function `serial_echo_init':
lib.c:(.text+0x1de7): undefined reference to `__inb'
lib.c:(.text+0x1e26): undefined reference to `__outb'
lib.c:(.text+0x1e4a): undefined reference to `__inb'
lib.c:(.text+0x1e76): undefined reference to `__inb'
lib.c:(.text+0x1eb2): undefined reference to `__outb'
lib.c:(.text+0x1f00): undefined reference to `__outb'
lib.c:(.text+0x1f4a): undefined reference to `__outb'
lib.c:(.text+0x1f7a): undefined reference to `__outb'
lib.c:(.text+0x1fae): undefined reference to `__outb'
lib.o:lib.c:(.text+0x1fe1): more undefined references to `__outb' follow
lib.o: In function `serial_echo_init':
lib.c:(.text+0x2007): undefined reference to `__inb'
lib.c:(.text+0x2033): undefined reference to `__inb'
lib.c:(.text+0x2068): undefined reference to `__outb'
lib.o: In function `serial_echo_print':
lib.c:(.text+0x20f8): undefined reference to `__inb'
lib.c:(.text+0x2146): undefined reference to `__outb'
lib.c:(.text+0x2176): undefined reference to `__inb'
lib.c:(.text+0x21bd): undefined reference to `__outb'
pci.o: In function `pci_conf_read':
pci.c:(.text+0xb1): undefined reference to `__outl'
pci.c:(.text+0x102): undefined reference to `__outl'
pci.c:(.text+0x133): undefined reference to `__inb'
pci.c:(.text+0x160): undefined reference to `__inw'
pci.c:(.text+0x181): undefined reference to `__inl'
pci.c:(.text+0x1b3): undefined reference to `__outb'
pci.c:(.text+0x1cc): undefined reference to `__outb'
pci.c:(.text+0x204): undefined reference to `__inb'
pci.c:(.text+0x239): undefined reference to `__inw'
pci.c:(.text+0x26f): undefined reference to `__inl'
pci.c:(.text+0x292): undefined reference to `__outb'
pci.o: In function `pci_conf_write':
pci.c:(.text+0x351): undefined reference to `__outl'
pci.c:(.text+0x3a2): undefined reference to `__outl'
pci.c:(.text+0x3e0): undefined reference to `__outb'
pci.c:(.text+0x410): undefined reference to `__outw'
pci.c:(.text+0x42e): undefined reference to `__outl'
pci.c:(.text+0x45a): undefined reference to `__outb'
pci.c:(.text+0x473): undefined reference to `__outb'
pci.c:(.text+0x4b8): undefined reference to `__outb'
pci.c:(.text+0x4f0): undefined reference to `__outw'
pci.c:(.text+0x523): undefined reference to `__outl'
pci.c:(.text+0x540): undefined reference to `__outb'
pci.o: In function `pci_check_direct':
pci.c:(.text+0x60c): undefined reference to `__inb'
pci.c:(.text+0x624): undefined reference to `__outb'
pci.c:(.text+0x630): undefined reference to `__inl'
pci.c:(.text+0x648): undefined reference to `__outl'
pci.c:(.text+0x654): undefined reference to `__inl'
pci.c:(.text+0x678): undefined reference to `__outl'
pci.c:(.text+0x691): undefined reference to `__outb'
pci.c:(.text+0x6af): undefined reference to `__outl'
pci.c:(.text+0x6ca): undefined reference to `__outb'
pci.c:(.text+0x6de): undefined reference to `__outb'
pci.c:(.text+0x6f2): undefined reference to `__outb'
pci.c:(.text+0x6fe): undefined reference to `__inb'
pci.c:(.text+0x70e): undefined reference to `__inb'
pci.c:(.text+0x734): undefined reference to `__outb'
pci.c:(.text+0x754): undefined reference to `__outb'
spd.o: In function `sb800_get_smb':
spd.c:(.text+0x14b): undefined reference to `__outb'
spd.c:(.text+0x157): undefined reference to `__inb'
spd.c:(.text+0x174): undefined reference to `__outb'
spd.c:(.text+0x180): undefined reference to `__inb'
spd.o: In function `ich5_smb_read_byte':
spd.c:(.text+0x237): undefined reference to `__outb'
spd.c:(.text+0x258): undefined reference to `__outb'
spd.c:(.text+0x26f): undefined reference to `__inb'
spd.c:(.text+0x2a1): undefined reference to `__outb'
spd.c:(.text+0x2d1): undefined reference to `__outb'
spd.c:(.text+0x2f2): undefined reference to `__outb'
spd.c:(.text+0x375): undefined reference to `__inb'
spd.c:(.text+0x39e): undefined reference to `__inb'
spd.o: In function `us15w_smb_read_byte':
spd.c:(.text+0x4db): undefined reference to `__outb'
spd.c:(.text+0x501): undefined reference to `__outb'
spd.c:(.text+0x520): undefined reference to `__outb'
spd.c:(.text+0x550): undefined reference to `__outb'
spd.c:(.text+0x56e): undefined reference to `__outb'
spd.c:(.text+0x620): undefined reference to `__inb'
spd.c:(.text+0x647): undefined reference to `__inb'
spd.c:(.text+0x670): undefined reference to `__inb'
Makefile:29: recipe for target 'memtest_shared' failed
gmake: *** [memtest_shared] Error 1
*** Error code 2

Stop.
make[1]: stopped in /x/pkgsrc/sysutils/memtestplus
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/sysutils/memtestplus


>How-To-Repeat:
Using pkgsrc-2017Q4 on netbsd-7 i386/amd64, do:

  $ cd .../pkgsrc/sysutils/memtestplus
  $ make patch

Apply the following patch (relative to ${WRKSRC}):

--- Makefile.orig       2018-02-01 08:26:53.815596421 -0600
+++ Makefile    2018-02-01 08:29:42.651132939 -0600
@@ -12,7 +12,7 @@ FDISK=/dev/fd0a
 AS=as -32
 CC=gcc
 
-CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \
+CFLAGS= -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin \
        -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector 
        
 OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \


 $ make

The same procedure works fine on netbsd-8 and -current.
>Fix:



Home | Main Index | Thread Index | Old Index