pkgsrc-Bugs archive

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

pkg/48538: emulators/dosbox build fails on NetBSD/i386-{current,5.2_STABLE}



>Number:         48538
>Category:       pkg
>Synopsis:       emulators/dosbox build fails on 
>NetBSD/i386-{current,5.2_STABLE}
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 20 23:55:00 +0000 2014
>Originator:     John D. Baker
>Release:        NetBSD/i386-{current,5.2_STABLE}, pkgsrc-2013Q4
>Organization:
>Environment:
NetBSD gx260a 6.99.28 NetBSD 6.99.28 (GENERIC) #2: Mon Jan 13 23:51:19 CST 2014 
 
sysop%verthandi.technoskunk.fur@localhost:/d0/build/current/obj/i386/sys/arch/i386/compile/GENERIC
 i386

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:
While updating packages with pkg_rolling-replace on
NetBSD/i386-5.2_STABLE (w/modular Xorg), the build of
"emulators/dosbox" failed as follows:

[...]
c++ -DHAVE_CONFIG_H -I. -I../..   -I../../include -fPIC -I/usr/pkg/include 
-I/usr/pkg/include/libdrm -I/usr/include -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 
-D_REENTRANT -D_THREAD_SAFE  -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm 
-I/usr/include -MT core_prefetch.o -MD -MP -MF .deps/core_prefetch.Tpo -c -o 
core_prefetch.o core_prefetch.cpp
mv -f .deps/core_prefetch.Tpo .deps/core_prefetch.Po
c++ -DHAVE_CONFIG_H -I. -I../..   -I../../include -fPIC -I/usr/pkg/include 
-I/usr/pkg/include/libdrm -I/usr/include -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 
-D_REENTRANT -D_THREAD_SAFE  -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm 
-I/usr/include -MT core_dyn_x86.o -MD -MP -MF .deps/core_dyn_x86.Tpo -c -o 
core_dyn_x86.o core_dyn_x86.cpp
core_dyn_x86/risc_x86.h: In function 'Bits CPU_Core_Dyn_X86_Run()':
core_dyn_x86/risc_x86.h:143: error: PIC register '%ebx' clobbered in 'asm'
*** Error code 1

Stop.
make: stopped in /d0/build/pkgsrc/emulators/dosbox/work/dosbox-0.74/src/cpu
*** Error code 1

Stop.
make: stopped in /d0/build/pkgsrc/emulators/dosbox/work/dosbox-0.74/src/cpu
[...]


To double-check, I also tried to build it on NetBSD/i386-current
(6.99.28 as noted in the 'uname -a' output above) and the failure is
the same, although with slightly different compiler arguments:

[...]
c++ -DHAVE_CONFIG_H -I. -I../..   -I../../include -fPIC -I/usr/pkg/include 
-I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm 
-I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE  -O2 
-I/usr/pkg/include -I/usr/X11R7/include -I/usr/include 
-I/usr/X11R7/include/libdrm -MT core_prefetch.o -MD -MP -MF 
.deps/core_prefetch.Tpo -c -o core_prefetch.o core_prefetch.cpp
mv -f .deps/core_prefetch.Tpo .deps/core_prefetch.Po
c++ -DHAVE_CONFIG_H -I. -I../..   -I../../include -fPIC -I/usr/pkg/include 
-I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/libdrm 
-I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE  -O2 
-I/usr/pkg/include -I/usr/X11R7/include -I/usr/include 
-I/usr/X11R7/include/libdrm -MT core_dyn_x86.o -MD -MP -MF 
.deps/core_dyn_x86.Tpo -c -o core_dyn_x86.o core_dyn_x86.cpp
In file included from core_dyn_x86.cpp:185:0:
core_dyn_x86/risc_x86.h: In function 'Bits CPU_Core_Dyn_X86_Run()':
core_dyn_x86/risc_x86.h:143:3: error: PIC register '%ebx' clobbered in 'asm'
*** Error code 1

Stop.
make[4]: stopped in /var/tmp/pkgsrc/emulators/dosbox/work/dosbox-0.74/src/cpu
[...]

As I suspect the bulk builds on NetBSD/i386-5.1 are strictly using
native Xorg, "emulators/dosbox" is probably never attempted due to
failed dependencies (i.e. MesaLib).

There was no problem building "emulators/dosbox" on 5.2_STABLE
(again, w/modular Xorg), 6.1_STABLE, or -HEAD throughout the
pkgsrc-2013Q3 branch.

The bulk builds on NetBSD/i386-6.0 show that "emulators/dosbox"
fails to build there as well, but apparently succeeds on
NetBSD/amd64-6.0

Since "dosbox" is host-cpu-independent, I will try building it on
NetBSD/macppc-current soon just to see if there's anything odd.
>How-To-Repeat:
On NetBSD/i386-5.2_STABLE w/modular Xorg or NetBSD/i386-current (native
Xorg), and NetBSD/i386-6.x (according to build build reports), attempt to
build "emulators/dosbox".
>Fix:



Home | Main Index | Thread Index | Old Index