Bug 47790 - lang/gcc32 - "libgcj.spec missing" while trying to complie w/ gcc-3.2.1_20021119
Summary: lang/gcc32 - "libgcj.spec missing" while trying to complie w/ gcc-3.2.1_20021119
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-01 18:00 UTC by parv
Modified: 2003-03-26 17:44 UTC (History)
0 users

See Also:


Attachments
port-gcc32-libgcj.diff (577 bytes, patch)
2003-02-03 18:30 UTC, parv
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description parv 2003-02-01 18:00:25 UTC
there was/is a pr 31254...

  http://www.freebsd.org/cgi/query-pr.cgi?pr=31254

...which describes my problem.  only difference is i am using gcc
3.2.1 20021119.  when trying to compile w/ gcj32, error message is
produced...

  gcj32: libgcj.spec: No such file or directory


i asked on (jan 23 2003) -java list as suggested in the old pr; there
was no reply.

How-To-Repeat: 
just try to use gcj32 from lang/gcc32 port to compile a java
program/class.
Comment 1 parv 2003-02-03 04:20:48 UTC
in message <20030201175710.BB3F1C64F@moo.holy.cow>,
wrote parv thusly...
>
> there was/is a pr 31254...
> 
>   http://www.freebsd.org/cgi/query-pr.cgi?pr=31254
> 
> ...which describes my problem.  only difference is i am using gcc
> 3.2.1 20021119.  when trying to compile w/ gcj32, error message is
> produced...
> 
>   gcj32: libgcj.spec: No such file or directory

after hearing from two people on -java list today, i rebuilt the port
w/ the following change in gcc32/Makefile...

--- Makefile.old	Sun Feb  2 23:14:34 2003
+++ Makefile	Sun Feb  2 23:14:14 2003
@@ -57,7 +57,7 @@
 		--with-gxx-include-dir=${TARGLIB}/include/g++-v3
 #CONFIGURE_ARGS+=	--program-suffix=32
 CONFIGURE_ARGS+=	--with-system-zlib --includedir=${TARGLIB}/include/Java
-CONFIGURE_ARGS+=	--disable-libgcj	# does not bootstrap now
+#CONFIGURE_ARGS+=	--disable-libgcj	# does not bootstrap now
 CONFIGURE_ENV=	MAKEINFO="makeinfo --no-split"
 .if defined(WANT_SHAREDLIBS)
 CONFIGURE_ARGS+= --enable-shared


...and what do you know? gcj32 worked!

w/ the change, gcj32 seems to work on...

  5.0-RELEASE/i386           (herve.quiroz at esil.univ-mrs.fr)
  4.7Stable 2003Jan27        (davidb at boothscientific.com)
  4.7-release-p3 2003.01.06  (parv_fm at emailgroups.net)


  - parv

--
Comment 2 parv 2003-02-03 18:30:36 UTC
in message <20030201175710.BB3F1C64F@moo.holy.cow>,
wrote parv thusly...
>
>   http://www.freebsd.org/cgi/query-pr.cgi?pr=31254
> 
> ...which describes my problem.  only difference is i am using gcc
> 3.2.1 20021119.  when trying to compile w/ gcj32, error message is
> produced...
> 
>   gcj32: libgcj.spec: No such file or directory

attched is the patch by herve.quiroz@esil.univ-mrs.fr to
conditionally compile w/ libgcj32.



  - parv

-- 
Comment 3 Gerald Pfeifer freebsd_committer freebsd_triage 2003-02-08 19:08:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gerald

I am looking at this now.
Comment 4 Gerrit Kühn 2003-03-07 08:11:12 UTC
The patch is working fine for me (FBSD 4.7, gcc3.2.2), too. Perhaps 
someone should commit it and close the bug report?


cu
   Gerrit
Comment 5 Gerald Pfeifer freebsd_committer freebsd_triage 2003-03-26 17:43:21 UTC
State Changed
From-To: open->closed

With the update by Loren James Rittle and myself which I just committed 
this should be solved (and libgcj enabled unconditionally).