From owner-freebsd-ports@FreeBSD.ORG Tue Jul 2 04:50:16 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6FDE0B6D for ; Tue, 2 Jul 2013 04:50:16 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id C6B1615D8 for ; Tue, 2 Jul 2013 04:50:15 +0000 (UTC) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 9358FFEBD1 for ; Tue, 2 Jul 2013 11:50:14 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= references:subject:subject:in-reply-to:from:from:message-id:date :date:received:received:received; s=selector1; t=1372740614; x= 1374555015; bh=0H1ZC/3GuCKWcdKWm/a5ugzv/GS17Kc4RjbT4zrGIQg=; b=C GMLPtnAauBYqy16SAk5LAh4HmbHxtwqp0t2fkZt6QQFZFk4BC3fzflr8HMBxPbYg LP9NW6FfirIOTtBjB/1DOwTnh91WIkLAJ/9Cphy+mwVTXB+8bcunb5OzxH3sKiUW qKT6P6kRQ4Te2BM75mtyymyBI2z9HeYau0KvYqo1d4= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NXp26PuEb1_W for ; Tue, 2 Jul 2013 11:50:14 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 4733BFEBBC for ; Tue, 2 Jul 2013 11:50:14 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.6/8.14.6/Submit) id r624oENi003894; Tue, 2 Jul 2013 11:50:14 +0700 (ICT) (envelope-from on) Date: Tue, 2 Jul 2013 11:50:14 +0700 (ICT) Message-Id: <201307020450.r624oENi003894@banyan.cs.ait.ac.th> From: Olivier Nicole To: ports@freebsd.org In-reply-to: <51D24A0D.5020405@freebsd.org> (ports@freebsd.org) Subject: Re: What compiler is used to build graphicslibfpx References: <201307020324.r623OLsB003282@banyan.cs.ait.ac.th> <51D24A0D.5020405@freebsd.org> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2013 04:50:16 -0000 > > and on the other machine it insists on using gcc >4.4 (which is > > actually a mistake, libfpx will *not* compile with gcc 4.4 or gcc > > 4.6): > It will use the same compiler as the src. The port uses bsd.lib.mk > > Now, it should compile with any gcc version. If you encounter a problem > with any compiler, please, let me know. Thanks! How one determines the compiler used for the src (I understand /usr/src)? When making libfxp with gcc 4.6. I get the following errors: g++46 -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_MOUNT_H -fstack-protector -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -fno-rtti -fno-exceptions -fno-strict-aliasing -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_MOUNT_H -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/jpeg -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ri_image -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpx -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/. -I/usr/local/include -D_UNIX -c /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/a_file.cpp -o a_file.o /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/a_file.cpp: In member function 'void Fichier::Ouverture(const FicNom&, mode_Ouverture, OSType)': /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/a_file.cpp:261:17: error: array subscript is below array bounds [-Werror=array-bounds] g++46 -fpic -DPIC -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_MOUNT_H -fstack-protector -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -fno-rtti -fno-exceptions -fno-strict-aliasing -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_MOUNT_H -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/jpeg -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ri_image -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpx -I/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/. -I/usr/local/include -D_UNIX -c /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/a_file.cpp -o a_file.So cc1plus: all warnings being treated as errors *** [a_file.o] Error code 1 /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/a_file.cpp: In member function 'void Fichier::Ouverture(const FicNom&, mode_Ouverture, OSType)': /usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/a_file.cpp:261:17: error: array subscript is below array bounds [-Werror=array-bounds] cc1plus: all warnings being treated as errors *** [a_file.So] Error code 1 2 errors *** [do-build] Error code 1 Stop in /usr/ports/graphics/libfpx. $ uname -a FreeBSD banyan2.cs.ait.ac.th 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #9: Tue Jun 18 15:02:35 ICT 2013 root@banyan2.cs.ait.ac.th:/usr/obj/usr/src/sys/CSIM amd64 $ gcc46 --version gcc46 (FreeBSD Ports Collection) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Thank you, Olivier