NetBSD Problem Report #44966

From www@NetBSD.org  Sat May 14 11:10:00 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 9831263C609
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 14 May 2011 11:10:00 +0000 (UTC)
Message-Id: <20110514110959.AEC5263C471@www.NetBSD.org>
Date: Sat, 14 May 2011 11:09:59 +0000 (UTC)
From: kuehro@gmx.de
Reply-To: kuehro@gmx.de
To: gnats-bugs@NetBSD.org
Subject: (lang/gcc44) java compiler broken on NetBSD and Linux
X-Send-Pr-Version: www-1.0

>Number:         44966
>Category:       pkg
>Synopsis:       (lang/gcc44) java compiler broken on NetBSD and Linux
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sbd
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 14 11:10:00 +0000 2011
>Last-Modified:  Thu Mar 15 06:48:35 +0000 2012
>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:/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:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->sbd
Responsible-Changed-By: sbd@NetBSD.org
Responsible-Changed-When: Thu, 15 Mar 2012 06:48:35 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.