pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

various new build breakage (mostly due to gcc-4.5)



Hi!

I've upgraded my NetBSD-5.99.55/amd64 to one with gcc-4.5. I see the
following new breakage to my previous 5.99.55 snapshot. I'd appreciate
suggestions for fixes.

boost issues in textproc/FlightCrew, wip/Sigil, graphics/exiv2-organize:
In file included from 
/scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem.hpp:36:0,
                 from 
/scratch/textproc/FlightCrew/work/FlightCrew-0.7.1-Code/src/zipios/../FlightCrew/Misc/BoostFilesystemUse.h:28,
                 from 
/scratch/textproc/FlightCrew/work/FlightCrew-0.7.1-Code/src/zipios/src/dircoll.cpp:10:
/scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem/v3/operations.hpp:126:3:
 warning: scoped enums only available with -std=c++0x or -std=gnu++0x
/scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem/v3/operations.hpp:
 In function 'void boost::filesystem3::copy_file(const 
boost::filesystem3::path&, const boost::filesystem3::path&)':
/scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem/v3/operations.hpp:303:69:
 error: 'copy_option' is not a class or namespace
/scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem/v3/operations.hpp:
 In function 'void boost::filesystem3::copy_file(const 
boost::filesystem3::path&, const boost::filesystem3::path&, 
boost::system::error_code&)':
/scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem/v3/operations.hpp:310:69:
 error: 'copy_option' is not a class or namespace

[ 15%] Building CXX object 
src/BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/v3/src/codecvt_error_category.cpp.o
In file included from 
/scratch/wip/Sigil/work/Sigil-0.3.4-Code/src/BoostParts/libs/filesystem/v3/src/operations.cpp:48:0:
/scratch/wip/Sigil/work/.buildlink/include/boost/filesystem/v3/operations.hpp:126:3:
 warning: scoped enums only available with -std=c++0x or -std=gnu++0x
/scratch/wip/Sigil/work/.buildlink/include/boost/filesystem/v3/operations.hpp: 
In function 'void boost::filesystem3::copy_file(const 
boost::filesystem3::path&, const boost::filesystem3::path&)':
/scratch/wip/Sigil/work/.buildlink/include/boost/filesystem/v3/operations.hpp:303:69:
 error: 'copy_option' is not a class or namespace
/scratch/wip/Sigil/work/.buildlink/include/boost/filesystem/v3/operations.hpp: 
In function 'void boost::filesystem3::copy_file(const 
boost::filesystem3::path&, const boost::filesystem3::path&, 
boost::system::error_code&)':
/scratch/wip/Sigil/work/.buildlink/include/boost/filesystem/v3/operations.hpp:310:69:
 error: 'copy_option' is not a class or namespace

In file included from 
/scratch/graphics/exiv2-organize/work/.buildlink/include/boost/filesystem.hpp:36:0,
                 from helpers.hpp:33,
                 from organize.cpp:42:
/scratch/graphics/exiv2-organize/work/.buildlink/include/boost/filesystem/v3/operations.hpp:126:3:
 warning: scoped enums only available with -std=c++0x or -std=gnu++0x
/scratch/graphics/exiv2-organize/work/.buildlink/include/boost/filesystem/v3/operations.hpp:
 In function 'void boost::filesystem3::copy_file(const 
boost::filesystem3::path&, const boost::filesystem3::path&)':
/scratch/graphics/exiv2-organize/work/.buildlink/include/boost/filesystem/v3/operations.hpp:303:69:
 error: 'copy_option' is not a class or namespace
/scratch/graphics/exiv2-organize/work/.buildlink/include/boost/filesystem/v3/operations.hpp:
 In function 'void boost::filesystem3::copy_file(const 
boost::filesystem3::path&, const boost::filesystem3::path&, 
boost::system::error_code&)':
/scratch/graphics/exiv2-organize/work/.buildlink/include/boost/filesystem/v3/operations.hpp:310:69:
 error: 'copy_option' is not a class or namespace


Stricter array checks break devel/binutils:
--- all-gas ---
--- app.o ---
cc1: warnings being treated as errors
app.c: In function 'do_scrub_chars':
app.c:566:8: error: array subscript is below array bounds


print/cups (see tech-toolchain):
Linking genstrings...
libtool: link: c++ -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R7/lib -pie -fPIE -Wall 
-Wno-format-y2k -fPIC -Os -g -o genstrings genstrings.o  
-L/scratch/print/cups/work/cups-1.4.6/cgi-bin 
-L/scratch/print/cups/work/cups-1.4.6/cups 
-L/scratch/print/cups/work/cups-1.4.6/filter 
-L/scratch/print/cups/work/cups-1.4.6/ppdc 
-L/scratch/print/cups/work/cups-1.4.6/scheduler 
-L/scratch/print/cups/work/.buildlink/lib 
-L/scratch/print/cups/work/.x11-buildlink/lib libcupsppdc.a ../cups/libcups.a 
-lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lasn1 -lwind -lroken -lpthread 
-lssl -lcrypto -ldns_sd -lm -lcrypt -lz
ld: /usr/lib/libgcc_eh.a(unwind-dw2.o): relocation R_X86_64_32S against `a 
local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libgcc_eh.a: could not read symbols: Bad value


misc/fbreader:
Compiling ZLTextStyleOptions.o ...In file included from 
ZLTextStyleOptions.cpp:25:0:
ZLTextStyle.h:307:36: error: invalid abstract return type for member function 
'const ZLTextPositionIndicatorInfo ZLTextPositionIndicatorInfo::operator=(const 
ZLTextPositionIndicatorInfo&)'
ZLTextStyle.h:282:35: note:   because the following virtual functions are pure 
within 'ZLTextPositionIndicatorInfo':
ZLTextStyle.h:296:15: note:     virtual ZLTextPositionIndicatorInfo::Type 
ZLTextPositionIndicatorInfo::type() const
ZLTextStyle.h:297:15: note:     virtual bool 
ZLTextPositionIndicatorInfo::isSensitive() const
ZLTextStyle.h:298:15: note:     virtual bool 
ZLTextPositionIndicatorInfo::isTextPositionShown() const
ZLTextStyle.h:299:15: note:     virtual bool 
ZLTextPositionIndicatorInfo::isTimeShown() const
ZLTextStyle.h:300:18: note:     virtual ZLColor 
ZLTextPositionIndicatorInfo::color() const
ZLTextStyle.h:301:14: note:     virtual int 
ZLTextPositionIndicatorInfo::height() const
ZLTextStyle.h:302:14: note:     virtual int 
ZLTextPositionIndicatorInfo::offset() const
ZLTextStyle.h:303:14: note:     virtual int 
ZLTextPositionIndicatorInfo::fontSize() const



audio/openal:
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../common/include 
-I../include -I../src/arch/i386 -Wall -ansi -pedantic -finline-functions 
-ffast-math -fomit-frame-pointer -fvisibility=hidden -pthread -O2 -pthread -MT 
libopenal_la-x86_cpu_caps_prk.lo -MD -MP -MF 
.deps/libopenal_la-x86_cpu_caps_prk.Tpo -c arch/i386/x86_cpu_caps_prk.c  -fPIC 
-DPIC -o .libs/libopenal_la-x86_cpu_caps_prk.o
arch/i386/x86_floatmul.c: In function '_alFloatMul':
arch/i386/x86_floatmul.c:86:46: warning: use of C99 long long integer constant
arch/i386/x86_floatmul.c:86:5: error: incompatible type for argument 2 of 
'__builtin_ia32_psllw'
arch/i386/x86_floatmul.c:86:5: note: expected '__vector(4) short int' but 
argument is of type 'long long int'
arch/i386/x86_floatmul.c:89:46: warning: use of C99 long long integer constant
arch/i386/x86_floatmul.c:89:5: error: incompatible type for argument 2 of 
'__builtin_ia32_psllw'
arch/i386/x86_floatmul.c:89:5: note: expected '__vector(4) short int' but 
argument is of type 'long long int'

The lines are both like:
                                *(v4hi*)bpt = __builtin_ia32_psllw(temp, 1LL);
but I'm not sure what to do with the "1LL" to fix this.


pkgtools/pkg_install:
#   compile  libfetch/ftp.o
gcc -O2 -I/usr/include -std=gnu99  -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wno-traditional  
-Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual 
-Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare  
-Werror    -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 
-DDEF_UMASK=0022 -I/scratch/pkgtools/pkg_install/work/libfetch 
-DHAVE_NBCOMPAT_H=1 -I/scratch/pkgtools/pkg_install/work/libnbcompat 
-I/usr/include -I. -D_LARGEFILE_SOURCE -D_LARGE_FILES -DINET6 
-DFTP_COMBINE_CWDS  -c    ftp.c -o ftp.o
cc1: warnings being treated as errors
ftp.c: In function 'ftp_transfer':
ftp.c:917:45: error: array subscript is above array bounds
ftp.c:917:33: error: array subscript is above array bounds
ftp.c:917:21: error: array subscript is above array bounds
ftp.c:917:9: error: array subscript is above array bounds
ftp.c:916:43: error: array subscript is above array bounds
ftp.c:916:31: error: array subscript is above array bounds
ftp.c:916:20: error: array subscript is above array bounds
ftp.c:916:9: error: array subscript is above array bounds
*** Error code 1

Import a newer libfetch?



lang/mono -- looks like a gtar issue, really:
===> Extracting for mono-2.10.2nb3
/usr/pkg/bin/gtar: mono-2.10.2: Cannot mkdir: Function not implemented
/usr/pkg/bin/gtar: mono-2.10.2/depcomp: Cannot open: Function not implemented
/usr/pkg/bin/gtar: mono-2.10.2/libgc: Cannot mkdir: Function not implemented
/usr/pkg/bin/gtar: mono-2.10.2/libgc/depcomp: Cannot open: Function not 
implemented
/usr/pkg/bin/gtar: mono-2.10.2/libgc/openbsd_stop_world.c: Cannot open: 
Function not implemented
/usr/pkg/bin/gtar: mono-2.10.2/libgc/sparc_sunos4_mach_dep.s: Cannot open: 
Function not implemented

rsync, samba, vlc due to UTIME_NOW/AT_FDCWD/openat(), not gcc-4.5 specific, I 
think.

Thank you,
 Thomas


Home | Main Index | Thread Index | Old Index