pkgsrc-Bugs archive

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

pkg/42899: emulators/qemu build failure (undefined sysmol linking libqemu.a) (NetBSD 4.0 / i386)



>Number:         42899
>Category:       pkg
>Synopsis:       emulators/qemu build failure (undefined sysmol linking 
>libqemu.a) (NetBSD 4.0 / i386)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 28 15:05:00 +0000 2010
>Originator:     Robert Elz
>Release:        NetBSD 4.0 / i386  (pkgsrc current 2010-02-28)
>Organization:
        Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE 
(JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 
kre%jade.coe.psu.ac.th@localhost:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
        emulators/qemu (qemu-0.12.3) produces an (linker) undefined
        symbol error when linking libqemu.a (isunordered is undefined).

>How-To-Repeat:
        I use pkg_comp with libkver and NetBSD 4.0 release sets installed
        (except the x* sets, I use X11_TYPE=modular).

        In that environment, with the current version of qemu,
        expect to see ...

  CC    i386-softmmu/disas.o
In file included from 
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat.h:522,
                 from 
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/target-i386/cpu.h:48,
                 from 
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/disas.c:7:
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h: In 
function 'float32_le_quiet':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:238: 
warning: implicit declaration of function 'islessequal'
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h: In 
function 'float32_lt_quiet':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:242: 
warning: implicit declaration of function 'isless'
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h: In 
function 'float32_unordered':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:246: 
warning: implicit declaration of function 'isunordered'
  CC    i386-softmmu/i386-dis.o
In file included from 
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat.h:522,
                 from 
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/target-i386/cpu.h:48,
                 from 
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/qemu-common.h:88,
                 from 
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/i386-dis.c:154:
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h: In 
function 'float32_le_quiet':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:238: 
warning: implicit declaration of function 'islessequal'
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h: In 
function 'float32_lt_quiet':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:242: 
warning: implicit declaration of function 'isless'
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h: In 
function 'float32_unordered':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:246: 
warning: implicit declaration of function 'isunordered'
  AR    i386-softmmu/libqemu.a
  LINK  i386-softmmu/qemu
libqemu.a(softfloat-native.o): In function `float64_compare_quiet':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.c:412: 
undefined reference to `isless'
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.c:416: 
undefined reference to `isgreater'
libqemu.a(softfloat-native.o): In function `float32_compare_quiet':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.c:240: 
undefined reference to `isless'
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.c:244: 
undefined reference to `isgreater'
libqemu.a(op_helper.o): In function `float64_unordered':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:355: 
undefined reference to `isunordered'
libqemu.a(op_helper.o): In function `float32_unordered':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:246: 
undefined reference to `isunordered'
libqemu.a(op_helper.o): In function `float64_unordered':
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:355: 
undefined reference to `isunordered'
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:355: 
undefined reference to `isunordered'
/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:355: 
undefined reference to `isunordered'
libqemu.a(op_helper.o):/pkg_comp/obj/pkgsrc/emulators/qemu/4x/qemu-0.12.3/fpu/softfloat-native.h:355:
 more undefined references to `isunordered' follow
gmake[1]: *** [qemu] Error 1
gmake: *** [subdir-i386-softmmu] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/emulators/qemu
*** Error code 1

Stop.

        There were a lot more similar compile warnings earlier
        in the build log that I don't believe it is necessary
        to include here (looked to be just the same thing over and over).

>Fix:
        I assume isunordered() is some new lib function that doesn't
        exist on NetBSD 4.0 - to fix this, I guess that either qemu
        needs to be made to stop calling it, or a compat function needs
        to be provided.

        Alternatively, if this package isn't really intended for
        NetBSD 4.0, perhaps a NOT_FOR_PLATFORM would be an easier
        fix...

        If that is done, it would also close PR 42176 - the build
        that detected the error reported here was my attempt to see
        if the newer qemu happened to have a fix for that problem
        (unfortunately the problem above appears earlier in the
        build, so I never got to find out...)



Home | Main Index | Thread Index | Old Index