NetBSD Problem Report #44966

From  Sat May 14 11:10:00 2011
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 9831263C609
	for <>; Sat, 14 May 2011 11:10:00 +0000 (UTC)
Message-Id: <>
Date: Sat, 14 May 2011 11:09:59 +0000 (UTC)
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)
NetBSD 5.99.51 NetBSD 5.99.51 (GENERIC) #0: Sun May  8 14:11:13 UTC 2011 i386

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

build lang/gcc44 and try to use gcj.



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


NetBSD Home
NetBSD PR Database Search

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