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:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 14 11:10:00 +0000 2011
>Closed-Date:    Mon Jul 04 09:33:51 +0000 2016
>Last-Modified:  Mon Jul 04 09:33:51 +0000 2016
>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.

Responsible-Changed-From-To: sbd->pkg-manager
Responsible-Changed-When: Sun, 26 Jun 2016 04:39:18 +0000
sbd resigned and shouldn't own PRs

State-Changed-From-To: open->feedback
State-Changed-When: Sun, 26 Jun 2016 04:39:57 +0000
Does this work with later gcc packages? I seem to recall that gcj was
fatally broken in earlyish gcc 4.x...

From: "Kai-Uwe Eckhardt" <>
Subject: Aw: Re: pkg/44966 ((lang/gcc44) java compiler broken on NetBSD and
Date: Mon, 4 Jul 2016 09:35:27 +0200

 As the originator of the PR, I would suggest to close the PR.
 Nobody should use this ancient, buggy gcc version.

 > Does this work with later gcc packages? I seem to recall that gcj was
 > fatally broken in earlyish gcc 4.x...

 If I recall correctly from my work on wip/gcc45 to wip/gcc6snaphot gcj
 never could compile any java code on NetBSD. See for instance:

 I no longer use NetBSD, so I am unable to test the current state of
 gcj in lang/gcc5 or wip/gcc6snapshot. NetBSD is unmaintained in gcc
 upstream for years now, so I have strong doubts that it will work.


State-Changed-From-To: feedback->closed
State-Changed-When: Mon, 04 Jul 2016 09:33:51 +0000
Originator requests closing the PR.


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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.