pkgsrc-Bugs archive

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

pkg/48469: sysutils/memtestplus build failure on NetBSD/i386-5.2_STABLE



>Number:         48469
>Category:       pkg
>Synopsis:       sysutils/memtestplus build failure on NetBSD/i386-5.2_STABLE
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 22 20:10:01 +0000 2013
>Originator:     John D. Baker
>Release:        netbsd-5 i386, pkgsrc-HEAD (pre-pkgsrc-2013Q4)
>Organization:
>Environment:
NetBSD verthandi.technoskunk.fur 5.2_STABLE NetBSD 5.2_STABLE (VERTHANDI) #13: 
Wed Dec 18 05:44:53 CST 2013  
sysop%verthandi.technoskunk.fur@localhost:/d0/build/netbsd-5/obj/i386/sys/arch/i386/compile/VERTHANDI
 i386

>Description:
Building sysutils/memtestplus fails on netbsd-5 as follows:

[...]
gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding 
-fPIC  -fno-stack-protector    -c -o init.o init.c
In file included from init.c:13:
stdin.h:52:27: warning: no newline at end of file
init.c:640:39: error: invalid suffix "b10" on integer constant
init.c:644:42: error: invalid suffix "b10" on integer constant
gmake: *** [init.o] Error 1
*** Error code 2

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

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


Looking at the lines reported by the compiler:

   640          if(result != -1) { v->fail_safe |= 0b10; }

   644    if(CONSERVATIVE_SMP) { v->fail_safe |= 0b10; }

I would guess C syntax has evolved "0b" as a prefix to indicate a
base-2 constant?  If so, I would further guess the GCC in netbsd-5 is
too old to know about this.
>How-To-Repeat:
Attempt to build sysutils/memtestplus (5.01) on netbsd-5/i386 (and
probably netbsd-5/amd64).

>Fix:
Patching the code is likely unworkable.  Probably better to require a
later C compiler.  GCC 4.6 is already needed to build "www/firefox" on
netbsd-5.  Perhaps, if it supports the required syntax, it should be a
dependency of sysutils/memtestplus as well.



Home | Main Index | Thread Index | Old Index