NetBSD Problem Report #48641

From www@NetBSD.org  Wed Mar  5 10:23:47 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 46D5DA5839
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  5 Mar 2014 10:23:47 +0000 (UTC)
Message-Id: <20140305031719.0A295A658B@mollari.NetBSD.org>
Date: Wed,  5 Mar 2014 03:17:19 +0000 (UTC)
From: james@mr7.idv.tw
Reply-To: james@mr7.idv.tw
To: gnats-bugs@NetBSD.org
Subject: macppc qt5-qtbase build error
X-Send-Pr-Version: www-1.0

>Number:         48641
>Category:       pkg
>Synopsis:       macppc qt5-qtbase build error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ryoon
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 05 10:25:00 +0000 2014
>Last-Modified:  Thu Mar 06 11:10:00 +0000 2014
>Originator:     James Chang
>Release:        pkgsrc current 2014-02-15
>Organization:
>Environment:
NetBSD MacBSD 6.1.3 NetBSD 6.1.3 (GENERIC) macppc
>Description:
fail to build qt5 5.2.0nb2 package with error message:
tools/qregularexpression.cpp:1241:73: error: passing 'const QAtomicPointer<pcre16_extra>' as 'this' argument of 'T* QBasicAtomicPointer<T>::loadAcquire() [with T = pcre16_extra]' discards qualifiers

It seems to affect all powerpc platforms.
>How-To-Repeat:
cd /usr/pkgsrc/x11/qt5; make

>Fix:
found solution on https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=1005482

I re-made the patch for qt 5.2.0:

--- qtbase/src/corelib/thread/qoldbasicatomic.h.orig	2013-12-09 01:09:52.000000000 +0800
+++ qtbase/src/corelib/thread/qoldbasicatomic.h	2014-03-05 10:17:56.000000000 +0800
@@ -63,7 +63,7 @@
     // Atomic API, implemented in qatomic_XXX.h

     int load() const { return _q_value; }
-    int loadAcquire() { return _q_value; }
+    int loadAcquire() const { return _q_value; }
     void store(int newValue) { _q_value = newValue; }
     void storeRelease(int newValue) { _q_value = newValue; }

@@ -107,7 +107,7 @@
     // Atomic API, implemented in qatomic_XXX.h

     T *load() const { return _q_value; }
-    T *loadAcquire() { return _q_value; }
+    T *loadAcquire() const { return _q_value; }
     void store(T *newValue) { _q_value = newValue; }
     void storeRelease(T *newValue) { _q_value = newValue; }


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-macppc-maintainer->ryoon
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 05 Mar 2014 11:28:48 +0000
Responsible-Changed-Why:
pkgsrc problem over to maintainer


From: James Chang <james@mr7.idv.tw>
To: gnats-bugs@netbsd.org
Cc: ryoon@netbsd.org
Subject: Re: pkg/48641 (macppc qt5-qtbase build error)
Date: Thu, 6 Mar 2014 16:02:46 +0800

 The previous patch alone did not make me a working qt5. I got another
 error while building the "qtbase/tests".

 gmake[5]: Entering directory
 '/usr/pkgsrc/x11/qt5-qtbase/work/qt-everywhere-opensource-src-5.2.0/qtbase/tests/auto/gui/painting/qpainter'
 /usr/pkgsrc/x11/qt5-qtbase/work/qt-everywhere-opensource-src-5.2.0/qtbase/bin/moc
 -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XKB
 -DQT_DISABLE_DEPRECATED_BEFORE=0 -D_LARGEFILE64_SOURCE
 -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_TESTLIB_LIB
 -DQT_GUI_LIB -DQT_CORE_LIB
 -DQT_TESTCASE_BUILDDIR=\"/usr/pkgsrc/x11/qt5-qtbase/work/qt-everywhere-opensource-src-5.2.0/qtbase/tests/auto/gui/painting/qpainter\"
 -I../../../../../mkspecs/netbsd-g++ -I.
 -I../../../../../include/QtWidgets/5.2.0
 -I../../../../../include/QtWidgets/5.2.0/QtWidgets
 -I../../../../../include -I../../../../../include/QtWidgets
 -I../../../../../include/QtTest -I../../../../../include/QtGui
 -I../../../../../include/QtCore -I.moc -I/usr/X11R7/include
 -I/usr/pkg/include -I/usr/pkgsrc/x11/qt5-qtbase/workbuildlink/include
 -I/usr/pkgsrc/x11/qt5-qtbase/workx11-buildlink/include/freetype2
 -I/usr/pkgsrc/x11/qt5-qtbase/workx11-buildlink/include/libdrm
 -I/usr/include/g++ -I/usr/include/g++/backward -I/usr/include/gcc-4.5
 -I/usr/include tst_qpainter.cpp -o .moc/tst_qpainter.moc
 libtool --silent --mode=compile c++ -c -O2 -D_NETBSD_SOURCE
 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include/freetype2
 -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -O2 -D_NETBSD_SOURCE
 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include/freetype2
 -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/pkg/include
 -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include
 -I/usr/X11R7/include/libdrm -O2 -Wall -W -D_REENTRANT -fPIE
 -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XKB
 -DQT_DISABLE_DEPRECATED_BEFORE=0 -D_LARGEFILE64_SOURCE
 -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_TESTLIB_LIB
 -DQT_GUI_LIB -DQT_CORE_LIB
 -DQT_TESTCASE_BUILDDIR=\"/usr/pkgsrc/x11/qt5-qtbase/work/qt-everywhere-opensource-src-5.2.0/qtbase/tests/auto/gui/painting/qpainter\"
 -I../../../../../mkspecs/netbsd-g++ -I.
 -I../../../../../include/QtWidgets/5.2.0
 -I../../../../../include/QtWidgets/5.2.0/QtWidgets
 -I../../../../../include -I../../../../../include/QtWidgets
 -I../../../../../include/QtTest -I../../../../../include/QtGui
 -I../../../../../include/QtCore -I.moc -I/usr/X11R7/include
 -I/usr/pkg/include -o .obj/tst_qpainter.lo tst_qpainter.cpp
 In file included from /usr/include/g++/fenv.h:36:0,
                  from tst_qpainter.cpp:2738:
 /usr/include/fenv.h:29:2: error: #error "fenv.h is currently not
 supported for this architecture"
 /usr/include/fenv.h:35:26: fatal error: machine/fenv.h: No such file
 or directory
 compilation terminated.

 ------------------------------
 I found something might related to this issue here <
 http://www.sourceware.org/ml/libc-alpha/2013-11/msg00620.html >, but
 to fix the GCC problem is way out of what I intended to do.

 --James


 2014-03-05 19:28 GMT+08:00  <wiz@netbsd.org>:
 > Synopsis: macppc qt5-qtbase build error
 >
 > Responsible-Changed-From-To: port-macppc-maintainer->ryoon
 > Responsible-Changed-By: wiz@NetBSD.org
 > Responsible-Changed-When: Wed, 05 Mar 2014 11:28:48 +0000
 > Responsible-Changed-Why:
 > pkgsrc problem over to maintainer
 >
 >
 >

>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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.