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
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 17 02:10:03 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: bf
>Release: 6.2-Stable i386
>Organization:
>Environment:
>Description:
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-1.2.0.12_1
===> Extracting for libfpx-1.2.0.12_1
=> MD5 Checksum OK for libfpx-1.2.0.12.tar.bz2.
=> SHA256 Checksum OK for libfpx-1.2.0.12.tar.bz2.
=> 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-1.2.0.12_1
===> Applying distribution patches for libfpx-1.2.0.12_1
/bin/rm /usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12/ri_image/wchar.c /usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12/fpx/fpxlib.h
===> Configuring for libfpx-1.2.0.12_1
===> Building for libfpx-1.2.0.12_1
Warning: Object directory not changed from original /usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12
/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-1.2.0.12/oless/h -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12/jpeg -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12/ole -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12/basics -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12/ri_image -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12/oless -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12/fpx -I/usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12/. -I/usr/local/include -D_UNIX -c /usr/tmp/usr/ports/graphics/libfpx/work/libfpx-1.2.0.12/ole/olestorg.c
pp
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-1.2.0.12/ole/olestorg.cpp:20:
/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.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list