pkgsrc-Bugs archive

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

pkg/44966: (lang/gcc44) java compiler broken on NetBSD and Linux



>Number:         44966
>Category:       pkg
>Synopsis:       (lang/gcc44) java compiler broken on NetBSD and Linux
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 14 11:10:00 +0000 2011
>Originator:     Kai-Uwe Eckhardt
>Release:        5.99.51 (amd64)
>Organization:
>Environment:
NetBSD amdx4.backusf2x.de 5.99.51 NetBSD 5.99.51 (GENERIC) #0: Sun May  8 
14:11:13 UTC 2011  
builds%b6.netbsd.org@localhost:/home/builds/ab/HEAD/i386/201105080800Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC
 i386

>Description:
Trying to compile something using gcj fails because the executable
ecj1 is missing:

gcj: error trying to exec 'ecj1': execvp: No such file or directory


Output of gcj -v :
Using built-in specs.
Reading specs from 
/usr/pkg/gcc44/lib/gcc/i386-unknown-netbsdelf5.99.51/4.4.5/../../../libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
Target: i386-unknown-netbsdelf5.99.51
Configured with: /usr/pkgsrc/lang/gcc44/work/gcc-4.4.5/configure --enable-nls 
--prefix=/usr/pkg/gcc44 --enable-languages='c c++ fortran java objc' 
--with-system-zlib --enable-shared --enable-__cxa_atexit --enable-long-long 
--with-local-prefix=/usr/pkg/gcc44 --disable-libssp --enable-threads=posix 
--with-gmp=/usr/pkg --with-mpfr=/usr/pkg
Thread model: posix
gcc version 4.4.5 (GCC) 

On linux gcj fails early because no spec file is installed. 
Content of /usr/pkg/gcc44/lib/libgcj.spec on NetBSD:

#
# This spec file is read by gcj when linking.
# It is used to specify the standard libraries we need in order
# to link with libgcj.
#
%rename startfile startfileorig
*startfile:  %(startfileorig)

%rename lib liborig
*lib: %{static-libgcj:-non_shared} %{s-bc-abi:} -lgcj 
%{static-libgcj:-call_shared} -lm   -lpthread -lrt -lz   %(libgcc)  %(liborig)

*jc1: -fhash-synchronization -fuse-divide-subroutine -fcheck-references 
-fuse-boehm-gc    -fkeep-inline-functions

>How-To-Repeat:
build lang/gcc44 and try to use gcj.
>Fix:



Home | Main Index | Thread Index | Old Index