pkgsrc-Bugs archive

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

pkg/31322: lang/gcc3-c++ doesn't build on NetBSD-current macppc



>Number:         31322
>Category:       pkg
>Synopsis:       lang/gcc3-c++ doesn't build on NetBSD-current macppc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 15 16:26:00 +0000 2005
>Originator:     Magnus Henoch
>Release:        NetBSD 3.99.8
>Organization:
        
>Environment:
        
        
System: NetBSD zemdatav 3.99.8 NetBSD 3.99.8 (IBOOKFAN) #0: Wed Aug 24 22:43:28 
CEST 2005 magnus@zemdatav:/usr/obj/sys/arch/macppc/compile/IBOOKFAN macppc
Architecture: powerpc
Machine: macppc
>Description:
        Building lang/gcc3-c++ on NetBSD/macppc fails with the
        following error message:

===> Building for gcc3-c++-3.3.5
cd /usr/pkgsrc/lang/gcc3-c++/work/gcc-3.3.5/gcc && /usr/bin/env USETOOLS=no 
PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= 
PTHREADBASE=/usr ALL_GCC_CXX=\$\(ALL_GCC_C\)\ all-target-libstdc++-v3 CC=cc 
CFLAGS=-O2\ -I/usr/include\ -I/usr/pkg/include CPPFLAGS=-I/usr/include\ 
-I/usr/pkg/include CXX=c++ CXXFLAGS=-O2\ -I/usr/include\ -I/usr/pkg/include 
COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 FFLAGS=-O LANG=C LC_COLLATE=C 
LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C 
LDFLAGS=-L/usr/pkg/gcc3/lib/gcc-lib/powerpc--netbsdelf2.0/3.3.5\ 
-Wl,-R/usr/pkg/gcc3/lib/gcc-lib/powerpc--netbsdelf2.0/3.3.5\ 
-L/usr/pkg/gcc3/lib\ -Wl,-R/usr/pkg/gcc3/lib\ -L/usr/lib\ -Wl,-R/usr/lib\ 
-L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R 
PATH=/usr/pkgsrc/lang/gcc3-c++/work/.wrapper/bin:/usr/pkgsrc/lang/gcc3-c++/work/.buildlink/bin:/usr/pkgsrc/lang/gcc3-c++/work/.tools/bin:/usr/pkgsrc/lang/gcc3-c++/work/.gcc/bin:/usr/pkg/bin:/home/magnus/bin:/bin:/sbin:/usr/bin:/usr
 /sbin:/u

sr/X11R6/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/X11R6/bin
 PREFIX=/usr/pkg PKG_SYSCONFDIR=/usr/pkg/etc CPP=cpp LINK_ALL_LIBGCC_HACK= 
LOCALBASE=/usr/pkg NO_WHOLE_ARCHIVE_FLAG=-Wl,--no-whole-archive 
WHOLE_ARCHIVE_FLAG=-Wl,--whole-archive X11BASE=/usr/X11R6 X11PREFIX=/usr/pkg 
MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no 
BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 555      
        BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 555   
                BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 
555                      BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ 
wheel\ -m\ 444                     BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ 
root\ -g\ wheel\ -m\ 444                      BSD_INSTALL=/usr/bin/install      
                      BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ 
-g\ wheel\ -m\ 755      BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d
 \ -o\ ro

ot\ -g\ wheel\ -m\ 755               BSD_IN!
 STALL_LI
B_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755          
BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755         
        BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755  
        BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 555 
                        BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ 
-g\ wheel\ -m\ 444 
INSTALL_INFO=/usr/pkgsrc/lang/gcc3-c++/work/.tools/bin/install-info 
MAKEINFO=/usr/pkgsrc/lang/gcc3-c++/work/.tools/bin/makeinfo PKG_CONFIG= 
PKG_CONFIG_LIBDIR=/usr/pkgsrc/lang/gcc3-c++/work/.buildlink/lib/pkgconfig 
WRAPPER_DEBUG="yes" WRAPPER_UPDATE_CACHE="yes" VIEWBASE=/usr/pkg 
/usr/pkg/bin/gmake tconfig.h
TM_DEFINES="NETBSD_ENABLE_PTHREADS" \
HEADERS="ansidecl.h  rs6000/rs6000.h dbxelf.h elfos.h netbsd.h netbsd-elf.h 
freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h defaults.h" XM_DEFINES="POSIX" \
TARGET_CPU_DEFAULT="" \
/bin/sh ./mkconfig.sh tconfig.h
/bin/rm -f /usr/pkgsrc/lang/gcc3-c++/work/gcc-3.3.5/libiberty/libiberty.a 
/usr/pkgsrc/lang/gcc3-c++/work/gcc-3.3.5/gcc/xgcc
/bin/ln -s /usr/pkg/gcc3/lib/libiberty.a 
/usr/pkgsrc/lang/gcc3-c++/work/gcc-3.3.5/libiberty
/bin/ln -s /usr/pkg/gcc3/bin/gcc 
/usr/pkgsrc/lang/gcc3-c++/work/gcc-3.3.5/gcc/xgcc
cd /usr/pkgsrc/lang/gcc3-c++/work/gcc-3.3.5/gcc && /usr/bin/env USETOOLS=no 
PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= 
PTHREADBASE=/usr ALL_GCC_CXX=\$\(ALL_GCC_C\)\ all-target-libstdc++-v3 CC=cc 
CFLAGS=-O2\ -I/usr/include\ -I/usr/pkg/include CPPFLAGS=-I/usr/include\ 
-I/usr/pkg/include CXX=c++ CXXFLAGS=-O2\ -I/usr/include\ -I/usr/pkg/include 
COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 FFLAGS=-O LANG=C LC_COLLATE=C 
LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C 
LDFLAGS=-L/usr/pkg/gcc3/lib/gcc-lib/powerpc--netbsdelf2.0/3.3.5\ 
-Wl,-R/usr/pkg/gcc3/lib/gcc-lib/powerpc--netbsdelf2.0/3.3.5\ 
-L/usr/pkg/gcc3/lib\ -Wl,-R/usr/pkg/gcc3/lib\ -L/usr/lib\ -Wl,-R/usr/lib\ 
-L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R 
PATH=/usr/pkgsrc/lang/gcc3-c++/work/.wrapper/bin:/usr/pkgsrc/lang/gcc3-c++/work/.buildlink/bin:/usr/pkgsrc/lang/gcc3-c++/work/.tools/bin:/usr/pkgsrc/lang/gcc3-c++/work/.gcc/bin:/usr/pkg/bin:/home/magnus/bin:/bin:/sbin:/usr/bin:/usr
 /sbin:/u

sr/X11R6/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/X11R6/bin
 PREFIX=/usr/pkg PKG_SYSCONFDIR=/usr/pkg/etc CPP=cpp LINK_ALL_LIBGCC_HACK= 
LOCALBASE=/usr/pkg NO_WHOLE_ARCHIVE_FLAG=-Wl,--no-whole-archive 
WHOLE_ARCHIVE_FLAG=-Wl,--whole-archive X11BASE=/usr/X11R6 X11PREFIX=/usr/pkg 
MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no 
BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 555      
        BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 555   
                BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 
555                      BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ 
wheel\ -m\ 444                     BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ 
root\ -g\ wheel\ -m\ 444                      BSD_INSTALL=/usr/bin/install      
                      BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ 
-g\ wheel\ -m\ 755      BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d
 \ -o\ ro

ot\ -g\ wheel\ -m\ 755               BSD_IN!
 STALL_LI
B_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755          
BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755         
        BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755  
        BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 555 
                        BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ 
-g\ wheel\ -m\ 444 
INSTALL_INFO=/usr/pkgsrc/lang/gcc3-c++/work/.tools/bin/install-info 
MAKEINFO=/usr/pkgsrc/lang/gcc3-c++/work/.tools/bin/makeinfo PKG_CONFIG= 
PKG_CONFIG_LIBDIR=/usr/pkgsrc/lang/gcc3-c++/work/.buildlink/lib/pkgconfig 
WRAPPER_DEBUG="yes" WRAPPER_UPDATE_CACHE="yes" VIEWBASE=/usr/pkg 
/usr/pkg/bin/gmake c++
ltf="./cp/cp-tree.def ./java/java-tree.def ./objc/objc-tree.def 
./ada/ada-tree.def"; for f in $ltf; do \
    echo "#include \"$f\""; \
done | sed 's|./||' > tmp-gencheck.h
/bin/sh ./move-if-change tmp-gencheck.h gencheck.h
echo timestamp > s-gencheck
TM_DEFINES="NETBSD_ENABLE_PTHREADS" \
HEADERS="auto-host.h ansidecl.h  rs6000/rs6000.h dbxelf.h elfos.h netbsd.h 
netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h defaults.h" 
XM_DEFINES="POSIX" \
TARGET_CPU_DEFAULT="" \
/bin/sh ./mkconfig.sh hconfig.h
cc -c   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H 
-DGENERATOR_FILE -I/usr/include -I/usr/pkg/include   -I. -I. -I. -I./. 
-I./config -I./../include \
  ./gencheck.c -o gencheck.o
cc   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H 
-DGENERATOR_FILE -L/usr/pkg/gcc3/lib/gcc-lib/powerpc--netbsdelf2.0/3.3.5 
-Wl,-R/usr/pkg/gcc3/lib/gcc-lib/powerpc--netbsdelf2.0/3.3.5 -L/usr/pkg/gcc3/lib 
-Wl,-R/usr/pkg/gcc3/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib 
-Wl,-R/usr/pkg/lib -o gencheck \
 gencheck.o ../libiberty/libiberty.a
./gencheck > tmp-check.h
/usr/pkg/gcc3/lib/libgcc_s.so.1: Unsupported relocation type 10 in non-PLT 
relocations

gmake: *** [s-check] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/lang/gcc3-c++
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/lang/gcc3-c++/work/.work.log
===>
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/gcc3-c++

>How-To-Repeat:
        cd /usr/pkgsrc/lang/gcc3-c++
        make
>Fix:
        Some superficial googling seems to indicate that the meaning
        of the error message is that /usr/pkg/gcc3/lib/libgcc_s.so.1
        (part of lang/gcc3-c) has been built with incorrect PIC flags.
        Not sure how to fix that, though.

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index