misc/118097: graphics/libfpx: build failure on 6.2-stable i386 with gcc 4.2.x

bf bf2006a at yahoo.com
Fri Nov 16 18:10:04 PST 2007

>Number:         118097
>Category:       misc
>Synopsis:       graphics/libfpx: build failure on 6.2-stable i386 with gcc 4.2.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 17 02:10:03 UTC 2007
>Originator:     bf
>Release:        6.2-Stable i386
The port fails to build with my system compiler (3.4.6 with propolice stack protection enabled) and lang/gcc42.  Here's the error message with the latter compiler:

--->  Build of graphics/libfpx started at: Sun, 04 Nov 2007 16:19:29 -0500
--->  Building '/usr/ports/graphics/libfpx' with make flags: CC=/usr/local/bin/gcc42 CXX=/usr/local/bin/g++42
===>  Cleaning for libfpx-
===>  Extracting for libfpx-
=> MD5 Checksum OK for libfpx-
=> SHA256 Checksum OK for libfpx-
=> MD5 Checksum OK for fpx.mega-patch.2007-11-01.bz2.
=> SHA256 Checksum OK for fpx.mega-patch.2007-11-01.bz2.
===>  Patching for libfpx-
===>  Applying distribution patches for libfpx-
/bin/rm /usr/tmp/usr/ports/graphics/libfpx/work/libfpx- /usr/tmp/usr/ports/graphics/libfpx/work/libfpx-
===>  Configuring for libfpx-
===>  Building for libfpx-
Warning: Object directory not changed from original /usr/tmp/usr/ports/graphics/libfpx/work/libfpx-
/usr/local/bin/g++42 -O2 -fno-strict-aliasing -pipe -march=athlon-tbird -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H -DHAVE_SYS_PARAM_H -DHAVE_SYS_MOUNT_H -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -fno-rtti -fno-exceptions -DHAVE_WCHAR_H -DHAVE_DLFCN_H  -DHAVE_SYS_TIME_H  -DHAVE_SYS_PARAM_H -DHAVE_SYS_MOUNT_H -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx- -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx- -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx- -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx- -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx- -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx- -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx- -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx- -I/usr/local/include -D_UNIX -c /usr/tmp/usr/ports/graphics/libfpx/work/libfpx-
cc1plus: warnings being treated as errors
In file included from /usr/local/lib/gcc-4.2.3/include/c++/ios:50,
                 from /usr/local/lib/gcc-4.2.3/include/c++/ostream:45,
                 from /usr/local/lib/gcc-4.2.3/include/c++/iostream:45,
                 from /usr/tmp/usr/ports/graphics/libfpx/work/libfpx-
/usr/local/lib/gcc-4.2.3/include/c++/bits/basic_ios.h: In member function 'void std::basic_ios<_CharT, _Traits>::_M_setstate(std::_Ios_Iostate)':
/usr/local/lib/gcc-4.2.3/include/c++/bits/basic_ios.h:156: warning: empty body in an if-statement
*** Error code 1
1 error
*** Error code 2

Stop in /usr/ports/graphics/libfpx.

Probably there are more errors that cause similar problems at later stages of the build.  A crude fix is to change graphics/libfpx/files/Makefile.bsd so that -fno-exceptions is no longer added to CXXFLAGS.




More information about the freebsd-bugs mailing list