Date: Tue, 2 Jul 2013 11:50:14 +0700 (ICT) From: Olivier Nicole <Olivier.Nicole@cs.ait.ac.th> To: ports@freebsd.org Subject: Re: What compiler is used to build graphicslibfpx Message-ID: <201307020450.r624oENi003894@banyan.cs.ait.ac.th> In-Reply-To: <51D24A0D.5020405@freebsd.org> (ports@freebsd.org) References: <201307020324.r623OLsB003282@banyan.cs.ait.ac.th> <51D24A0D.5020405@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307020450.r624oENi003894>