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:    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)
>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.


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


State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 26 Jun 2016 04:39:57 +0000
State-Changed-Why:
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" <kuehro@gmx.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Aw: Re: pkg/44966 ((lang/gcc44) java compiler broken on NetBSD and
 Linux)
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:
 http://comments.gmane.org/gmane.os.netbsd.devel.pkgsrc.wip.review/1993

 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.

 Kai-Uwe

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


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