NetBSD Problem Report #49808

From www@NetBSD.org  Wed Apr  1 11:01:19 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 2D40FA582D
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  1 Apr 2015 11:01:19 +0000 (UTC)
Message-Id: <20150401110117.ED621A65B8@mollari.NetBSD.org>
Date: Wed,  1 Apr 2015 11:01:17 +0000 (UTC)
From: ajacoutot@bsdfrog.org
Reply-To: ajacoutot@bsdfrog.org
To: gnats-bugs@NetBSD.org
Subject: emulators/qemu does not package on Linux
X-Send-Pr-Version: www-1.0

>Number:         49808
>Category:       pkg
>Synopsis:       emulators/qemu does not package on Linux
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    linux-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 01 11:05:00 +0000 2015
>Closed-Date:    Thu May 25 05:07:59 +0000 2017
>Last-Modified:  Thu May 25 05:07:59 +0000 2017
>Originator:     Antoine Jacoutot
>Release:        2014Q4
>Organization:
>Environment:
Linux build.bsdfrog.org 3.19.1 #1 SMP Thu Mar 26 09:36:17 CET 2015 x86_64 GNU/Linux

>Description:
Qemu fails to package on Linux with this error:

# bmake package 
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/pkg/var/db/pkg fetch-pkg-vulnerabilities'.
=> Creating binary package /home/ajacoutot/pkgsrc-work/emulators/qemu/work/.packages/qemu-2.2.0.tgz
pkg_create: can't stat `/home/ajacoutot/pkgsrc-work/emulators/qemu/work/.destdir/usr/pkg/bin/qemu-tricore'
pkg_create: lstat failed for file bin/qemu-tricore: No such file or directory
*** Error code 2

Stop.
bmake: stopped in /home/ajacoutot/pkgsrc/emulators/qemu
*** Error code 1

Stop.
bmake: stopped in /home/ajacoutot/pkgsrc/emulators/qemu


# find /home/ajacoutot/pkgsrc-work/emulators/qemu/work/.destdir/ -name '*tricore*'
/home/ajacoutot/pkgsrc-work/emulators/qemu/work/.destdir/usr/pkg/bin/qemu-system-tricore

>How-To-Repeat:
Run 'bmake package' under emulator/qemu.
>Fix:
Fix the PLIST but I am not sure how this missing file first ended up in the current PLIST in the first place...

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 01 Apr 2015 11:09:18 +0000
Responsible-Changed-Why:
Linux pkgsrc problem.


From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49808: emulators/qemu does not package on Linux
Date: Sun, 7 Jun 2015 19:38:41 +0000

 On Wed, Apr 01, 2015 at 11:05:00AM +0000, ajacoutot@bsdfrog.org wrote:
  > => Creating binary package /home/ajacoutot/pkgsrc-work/emulators/qemu/work/.packages/qemu-2.2.0.tgz
  > pkg_create: can't stat `/home/ajacoutot/pkgsrc-work/emulators/qemu/work/.destdir/usr/pkg/bin/qemu-tricore'
  > pkg_create: lstat failed for file bin/qemu-tricore: No such file or directory
  > *** Error code 2

 So it seems that the package believes userland emulators (qemu-*,
 vs. qemu-system-*) will be built on Linux for all the architectures
 where that can be supported:

 UE_ARCHS+=              alpha arm armeb cris i386 m68k microblaze mips mipsel
 UE_ARCHS+=              or32 ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus
 UE_ARCHS+=              sparc64 x86_64 microblazeel s390x tricore unicore32
    :
 .elif !empty(OPSYS:MLinux)
 USER_EMUL=              ${UE_ARCHS}
    :

 So the question is whether the tricore one is actually
   - not actually supported at all
   - not supported on any linux
   - not supported on your linux for some reason
   - supposed to be supported but failed to build, and the error didn't
     abort the rest of the qemu build for some reason

 Can you check the configure and build logs for evidence?

 (or if you know for sure that it's one of the first two cases, just
 say the word)

 -- 
 David A. Holland
 dholland@netbsd.org

From: Antoine Jacoutot <ajacoutot@bsdfrog.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49808: emulators/qemu does not package on Linux
Date: Mon, 8 Jun 2015 13:38:25 +0200

 >  So the question is whether the tricore one is actually
 >    - not actually supported at all
 >    - not supported on any linux
 >    - not supported on your linux for some reason
 >    - supposed to be supported but failed to build, and the error didn't
 >      abort the rest of the qemu build for some reason
 >  
 >  Can you check the configure and build logs for evidence?

 Configure log is pretty much empty of any tricore mention.

 Greping for tricore on the build log :

 target list        aarch64-softmmu alpha-softmmu arm-softmmu cris-softmmu i386-softmmu lm32-softmmu m68k-softmmu microblaze-softmmu microblazeel-softmmu mips-softmmu mips64-softmmu mips64el-softmmu mipsel-softmmu moxie-softmmu or32-softmmu ppc-softmmu ppc64-softmmu ppcemb-softmmu s390x-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu tricore-softmmu unicore32-softmmu x86_64-softmmu xtensa-softmmu xtensaeb-softmmu aarch64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user i386-linux-user m68k-linux-user microblaze-linux-user microblazeel-linux-user mips-linux-user mips64-linux-user mips64el-linux-user mipsel-linux-user mipsn32-linux-user mipsn32el-linux-user or32-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user ppc64le-linux-user s390x-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc32plus-linux-user sparc64-linux-user unicore32-linux-user x86_64-linux-user
   GEN   tricore-softmmu/config-devices.mak
   GEN   tricore-softmmu/hmp-commands.h
   GEN   tricore-softmmu/qmp-commands-old.h
   GEN   tricore-softmmu/config-target.h
   CC    tricore-softmmu/exec.o
   CC    tricore-softmmu/translate-all.o
   CC    tricore-softmmu/cpu-exec.o
   CC    tricore-softmmu/tcg/tcg.o
   CC    tricore-softmmu/tcg/optimize.o
   CC    tricore-softmmu/fpu/softfloat.o
   CC    tricore-softmmu/disas.o
   CC    tricore-softmmu/kvm-stub.o
   CC    tricore-softmmu/arch_init.o
   CC    tricore-softmmu/cpus.o
   CC    tricore-softmmu/monitor.o
   CC    tricore-softmmu/gdbstub.o
   CC    tricore-softmmu/balloon.o
   CC    tricore-softmmu/ioport.o
   CC    tricore-softmmu/numa.o
   CC    tricore-softmmu/qtest.o
   CC    tricore-softmmu/bootdevice.o
   CC    tricore-softmmu/device_tree.o
   CC    tricore-softmmu/memory.o
   CC    tricore-softmmu/savevm.o
   CC    tricore-softmmu/cputlb.o
   CC    tricore-softmmu/memory_mapping.o
   CC    tricore-softmmu/dump.o
   CC    tricore-softmmu/xen-common-stub.o
   CC    tricore-softmmu/xen-hvm-stub.o
   CC    tricore-softmmu/hw/net/vhost_net.o
   CC    tricore-softmmu/hw/tricore/tricore_testboard.o
   CC    tricore-softmmu/target-tricore/translate.o
   CC    tricore-softmmu/target-tricore/helper.o
   CC    tricore-softmmu/target-tricore/cpu.o
   CC    tricore-softmmu/target-tricore/op_helper.o
   CC    tricore-softmmu/trace/generated-helpers.o
   LINK  tricore-softmmu/qemu-system-tricore

 Install log :
 libtool --quiet --mode=install /bin/install -c -o root -g root -c -m 0755 qemu-system-tricore  "/usr/pkgsrc/emulators/qemu/work/.destdir/usr/pkg/bin"
 strip "/usr/pkgsrc/emulators/qemu/work/.destdir/usr/pkg/bin/qemu-system-tricore"

 So it seems the PLIST should register qemu-system-tricore instead of qemu-tricore ?

 -- 
 Antoine

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, ajacoutot@bsdfrog.org
Cc: 
Subject: Re: pkg/49808: emulators/qemu does not package on Linux
Date: Tue, 09 Jun 2015 12:47:12 +0900 (JST)

 From: Antoine Jacoutot <ajacoutot@bsdfrog.org>, Date: Mon,  8 Jun 2015 12:45:00 +0000 (UTC)

 > The following reply was made to PR pkg/49808; it has been noted by GNATS.
 > 
 > From: Antoine Jacoutot <ajacoutot@bsdfrog.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/49808: emulators/qemu does not package on Linux
 > Date: Mon, 8 Jun 2015 13:38:25 +0200
 > 
 >  >  So the question is whether the tricore one is actually
 >  >    - not actually supported at all
 >  >    - not supported on any linux
 >  >    - not supported on your linux for some reason
 >  >    - supposed to be supported but failed to build, and the error didn't
 >  >      abort the rest of the qemu build for some reason
 >  >  
 >  >  Can you check the configure and build logs for evidence?
 >  
 >  Configure log is pretty much empty of any tricore mention.
 >  
 >  Greping for tricore on the build log :
 >  
 >  target list        aarch64-softmmu alpha-softmmu arm-softmmu cris-softmmu i386-softmmu lm32-softmmu m68k-softmmu microblaze-softmmu microblazeel-softmmu mips-softmmu mips64-softmmu mips64el-softmmu mipsel-softmmu moxie-softmmu or32-softmmu ppc-softmmu ppc64-softmmu ppcemb-softmmu s390x-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu tricore-softmmu unicore32-softmmu x86_64-softmmu xtensa-softmmu xtensaeb-softmmu aarch64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user i386-linux-user m68k-linux-user microblaze-linux-user microblazeel-linux-user mips-linux-user mips64-linux-user mips64el-linux-user mipsel-linux-user mipsn32-linux-user mipsn32el-linux-user or32-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user ppc64le-linux-user s390x-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc32plus-linux-user sparc64-linux-user unicore32-linux-user x86_64-linux-user
 >    GEN   tricore-softmmu/config-devices.mak
 >    GEN   tricore-softmmu/hmp-commands.h
 >    GEN   tricore-softmmu/qmp-commands-old.h
 >    GEN   tricore-softmmu/config-target.h
 >    CC    tricore-softmmu/exec.o
 >    CC    tricore-softmmu/translate-all.o
 >    CC    tricore-softmmu/cpu-exec.o
 >    CC    tricore-softmmu/tcg/tcg.o
 >    CC    tricore-softmmu/tcg/optimize.o
 >    CC    tricore-softmmu/fpu/softfloat.o
 >    CC    tricore-softmmu/disas.o
 >    CC    tricore-softmmu/kvm-stub.o
 >    CC    tricore-softmmu/arch_init.o
 >    CC    tricore-softmmu/cpus.o
 >    CC    tricore-softmmu/monitor.o
 >    CC    tricore-softmmu/gdbstub.o
 >    CC    tricore-softmmu/balloon.o
 >    CC    tricore-softmmu/ioport.o
 >    CC    tricore-softmmu/numa.o
 >    CC    tricore-softmmu/qtest.o
 >    CC    tricore-softmmu/bootdevice.o
 >    CC    tricore-softmmu/device_tree.o
 >    CC    tricore-softmmu/memory.o
 >    CC    tricore-softmmu/savevm.o
 >    CC    tricore-softmmu/cputlb.o
 >    CC    tricore-softmmu/memory_mapping.o
 >    CC    tricore-softmmu/dump.o
 >    CC    tricore-softmmu/xen-common-stub.o
 >    CC    tricore-softmmu/xen-hvm-stub.o
 >    CC    tricore-softmmu/hw/net/vhost_net.o
 >    CC    tricore-softmmu/hw/tricore/tricore_testboard.o
 >    CC    tricore-softmmu/target-tricore/translate.o
 >    CC    tricore-softmmu/target-tricore/helper.o
 >    CC    tricore-softmmu/target-tricore/cpu.o
 >    CC    tricore-softmmu/target-tricore/op_helper.o
 >    CC    tricore-softmmu/trace/generated-helpers.o
 >    LINK  tricore-softmmu/qemu-system-tricore
 >  
 >  Install log :
 >  libtool --quiet --mode=install /bin/install -c -o root -g root -c -m 0755 qemu-system-tricore  "/usr/pkgsrc/emulators/qemu/work/.destdir/usr/pkg/bin"
 >  strip "/usr/pkgsrc/emulators/qemu/work/.destdir/usr/pkg/bin/qemu-system-tricore"
 >  
 >  So it seems the PLIST should register qemu-system-tricore instead of qemu-tricore ?

 Hi,

 How about this patch?
 It may be my mistake...

 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/emulators/qemu/Makefile,v
 retrieving revision 1.138
 diff -u -r1.138 Makefile
 --- Makefile	16 May 2015 03:19:54 -0000	1.138
 +++ Makefile	9 Jun 2015 03:45:35 -0000
 @@ -55,7 +55,7 @@

  UE_ARCHS+=		alpha arm armeb cris i386 m68k microblaze mips mipsel
  UE_ARCHS+=		or32 ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus
 -UE_ARCHS+=		sparc64 x86_64 microblazeel s390x tricore unicore32
 +UE_ARCHS+=		sparc64 x86_64 microblazeel s390x unicore32

  .if ${OPSYS} == "NetBSD"
  .  if (!empty(OS_VERSION:M5.99.*) || !empty(OS_VERSION:M[6-9].*))

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49808 CVS commit: pkgsrc/emulators/qemu
Date: Wed, 10 Jun 2015 20:40:11 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Wed Jun 10 20:40:11 UTC 2015

 Modified Files:
 	pkgsrc/emulators/qemu: Makefile PLIST

 Log Message:
 Remove tricore usermode.
 According to linux-user directory, tricore usermode is not provided.
 May fix PR pkg/49808.


 To generate a diff of this commit:
 cvs rdiff -u -r1.138 -r1.139 pkgsrc/emulators/qemu/Makefile
 cvs rdiff -u -r1.41 -r1.42 pkgsrc/emulators/qemu/PLIST

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Tue, 31 May 2016 10:05:13 +0000
State-Changed-Why:
Does the commit from Ryo fix the build for you?


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 25 May 2017 05:07:59 +0000
State-Changed-Why:
feedback timeout.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.