NetBSD Problem Report #50284

From tsutsui@ceres.dti.ne.jp  Sun Sep 27 13:52:38 2015
Return-Path: <tsutsui@ceres.dti.ne.jp>
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" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7D4C3A6554
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 27 Sep 2015 13:52:38 +0000 (UTC)
Message-Id: <201509271352.t8RDqW1D006051@mirage.localdomain>
Date: Sun, 27 Sep 2015 22:52:32 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: www/webkit-gtk build fails on NetBSD/i386 7.0
X-Send-Pr-Version: 3.95

>Number:         50284
>Category:       pkg
>Synopsis:       www/webkit-gtk build fails on NetBSD/i386 7.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    leot
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 27 13:55:00 +0000 2015
>Closed-Date:    Thu Oct 08 00:23:01 +0000 2015
>Last-Modified:  Thu Oct 08 00:23:01 +0000 2015
>Originator:     Izumi Tsutsui
>Release:        NetBSD 7.0 + pkgsrc-2015Q3
>Organization:
>Environment:
System: NetBSD mirage 7.0 NetBSD 7.0 (GENERIC.201509250726Z) i386
Architecture: i386
Machine: i386
>Description:
www/webkit-gtk build fails on NetBSD/i386 7.0 as following:
---
 :

[ 99%] Building CXX object Source/WebKit2/CMakeFiles/WebKit2.dir/__/__/DerivedSources/WebKit2/WebPageGroupProxyMessageReceiver.cpp.o
[ 99%] Linking CXX shared library ../../lib/libwebkit2gtk-4.0.so
ld: cannot find -latomic
Source/WebKit2/CMakeFiles/WebKit2.dir/build.make:18464: recipe for target 'lib/libwebkit2gtk-4.0.so.37.6.8' failed
gmake[2]: *** [lib/libwebkit2gtk-4.0.so.37.6.8] Error 1
CMakeFiles/Makefile2:958: recipe for target 'Source/WebKit2/CMakeFiles/WebKit2.dir/all' failed
gmake[1]: *** [Source/WebKit2/CMakeFiles/WebKit2.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make[2]: stopped in /usr/pkgsrc/www/webkit-gtk
*** Error code 1

---

Note build on NetBSD/amd64 7.0 from the same pkgsrc tree works fine.

>How-To-Repeat:
(cd pkgsrc/www/webkit-gtk && make package)
on NetBSD/i386 7.0

>Fix:
Buildlink devel/libatomic_ops for architectures without 64 bit atomic ops?

>Release-Note:

>Audit-Trail:
From: Leonardo Taccari <iamleot@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50284: www/webkit-gtk build fails on NetBSD/i386 7.0
Date: Mon, 28 Sep 2015 17:36:27 +0200

 Hello Izumi,

 Izumi Tsutsui writes:
 > >Number:         50284
 > >Category:       pkg
 > >Synopsis:       www/webkit-gtk build fails on NetBSD/i386 7.0
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Sun Sep 27 13:55:00 +0000 2015
 > >Originator:     Izumi Tsutsui
 > >Release:        NetBSD 7.0 + pkgsrc-2015Q3
 > >Organization:
 > >Environment:
 > System: NetBSD mirage 7.0 NetBSD 7.0 (GENERIC.201509250726Z) i386
 > Architecture: i386
 > Machine: i386
 > >Description:
 > www/webkit-gtk build fails on NetBSD/i386 7.0 as following:
 > [...] =

 > [ 99%] Building CXX object Source/WebKit2/CMakeFiles/WebKit2.dir/__/__/D=
 erivedSources/WebKit2/WebPageGroupProxyMessageReceiver.cpp.o
 > [ 99%] Linking CXX shared library ../../lib/libwebkit2gtk-4.0.so
 > ld: cannot find -latomic
 > [...]
 > Note build on NetBSD/amd64 7.0 from the same pkgsrc tree works fine.
 > =

 > >How-To-Repeat:
 > (cd pkgsrc/www/webkit-gtk && make package)
 > on NetBSD/i386 7.0
 > =

 > >Fix:
 > Buildlink devel/libatomic_ops for architectures without 64 bit atomic op=
 s?
 Can you try to rebuild it with "CFLAGS+=3D -march=3Di586" please? I guess
 that www/webkit-gtk will probably need it like www/firefox (thanks to
 J=C3=B6rg for the explanation)...

 Please let us know if it will fix the issue and I will take care of
 prepare a proper patch to update www/webkit-gtk and request a pull-up
 for pkgsrc-2015Q3.


 Ciao,
 L.

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: iamleot@gmail.com, tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/50284: www/webkit-gtk build fails on NetBSD/i386 7.0
Date: Tue, 29 Sep 2015 00:46:06 +0900

 CFLAGS+=-march=i586 works but I'm afraid it means
 it won't work on other !__HAVE_ATOMIC64_OPS architectures,
 like earmv5 etc.

 ---
 Izumi Tsutsui

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Mon, 05 Oct 2015 16:15:43 +0000
Responsible-Changed-Why:
Assign it to myself, PR analyzed thanks to Izumi feedback.


State-Changed-From-To: open->analyzed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Mon, 05 Oct 2015 16:15:43 +0000
State-Changed-Why:
PR analyzed thanks to Izumi feedback.


From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50284 CVS commit: pkgsrc/www/webkit-gtk
Date: Mon, 5 Oct 2015 16:25:30 +0000

 Module Name:	pkgsrc
 Committed By:	leot
 Date:		Mon Oct  5 16:25:30 UTC 2015

 Modified Files:
 	pkgsrc/www/webkit-gtk: Makefile
 Added Files:
 	pkgsrc/www/webkit-gtk: hacks.mk

 Log Message:
 Add a workaround and fixes PR pkg/50284 forcing building webkit-gtk with
 -march=i586 in order to avoid on i386 the "-latomic" flag when linking
 libwebkit2gtk-4.0.so.

 Bump PKGREVISION.

 Thanks joerg@, jperkin@ and tnn@ for various suggestions.


 To generate a diff of this commit:
 cvs rdiff -u -r1.98 -r1.99 pkgsrc/www/webkit-gtk/Makefile
 cvs rdiff -u -r0 -r1.1 pkgsrc/www/webkit-gtk/hacks.mk

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

State-Changed-From-To: analyzed->pending-pullups
State-Changed-By: leot@NetBSD.org
State-Changed-When: Mon, 05 Oct 2015 17:10:50 +0000
State-Changed-Why:
pullup for pkgsrc-2015Q3: pullup-pkgsrc #4835


From: "S.P.Zeidler" <spz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50284 CVS commit: [pkgsrc-2015Q3] pkgsrc/www/webkit-gtk
Date: Thu, 8 Oct 2015 00:12:56 +0000

 Module Name:	pkgsrc
 Committed By:	spz
 Date:		Thu Oct  8 00:12:56 UTC 2015

 Modified Files:
 	pkgsrc/www/webkit-gtk [pkgsrc-2015Q3]: Makefile
 Added Files:
 	pkgsrc/www/webkit-gtk [pkgsrc-2015Q3]: hacks.mk

 Log Message:
 Pullup ticket #4835 - requested by leot
 www/webkit-gtk: build fix

 Revisions pulled up:
 - www/webkit-gtk/Makefile                                       1.99
 - www/webkit-gtk/hacks.mk                                       1.1

 -------------------------------------------------------------------
    Module Name:	pkgsrc
    Committed By:	leot
    Date:		Mon Oct  5 16:25:30 UTC 2015

    Modified Files:
    	pkgsrc/www/webkit-gtk: Makefile
    Added Files:
    	pkgsrc/www/webkit-gtk: hacks.mk

    Log Message:
    Add a workaround and fixes PR pkg/50284 forcing building webkit-gtk with
    - -march=i586 in order to avoid on i386 the "-latomic" flag when linking
    libwebkit2gtk-4.0.so.

    Bump PKGREVISION.

    Thanks joerg@, jperkin@ and tnn@ for various suggestions.

    To generate a diff of this commit:
    cvs rdiff -u -r1.98 -r1.99 pkgsrc/www/webkit-gtk/Makefile
    cvs rdiff -u -r0 -r1.1 pkgsrc/www/webkit-gtk/hacks.mk


 To generate a diff of this commit:
 cvs rdiff -u -r1.97 -r1.97.2.1 pkgsrc/www/webkit-gtk/Makefile
 cvs rdiff -u -r0 -r1.1.2.2 pkgsrc/www/webkit-gtk/hacks.mk

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

State-Changed-From-To: pending-pullups->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Thu, 08 Oct 2015 00:23:01 +0000
State-Changed-Why:
Fixed and pulled-up to pkgsrc-2015Q3, thank you Izumi for the PR!


>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.