What compiler is used to build graphicslibfpx

Olivier Nicole Olivier.Nicole at cs.ait.ac.th
Tue Jul 2 04:50:16 UTC 2013


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


More information about the freebsd-ports mailing list