public inbox for rhug-rhats@sourceware.org
 help / color / mirror / Atom feed
* jython build
@ 2001-10-23 17:13 Tom Tromey
  2001-10-23 17:19 ` Anthony Green
  2001-10-23 21:26 ` Alexandre Petit-Bianco
  0 siblings, 2 replies; 8+ messages in thread
From: Tom Tromey @ 2001-10-23 17:13 UTC (permalink / raw)
  To: rhug-rhats

I just checked in a big change to the jython Makefile.am.  I fixed
srcdir!=buildir issues.  I also fixed some other build bugs.  Finally,
I fixed the jython crash problem -- the problem was that jython.java
was getting compiled into the executable twice.

Tom

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jython build
  2001-10-23 17:13 jython build Tom Tromey
@ 2001-10-23 17:19 ` Anthony Green
  2001-10-23 17:21   ` Tom Tromey
  2001-10-23 21:26 ` Alexandre Petit-Bianco
  1 sibling, 1 reply; 8+ messages in thread
From: Anthony Green @ 2001-10-23 17:19 UTC (permalink / raw)
  To: tromey, rhug-rhats

Tom wrote:
> I just checked in a big change to the jython Makefile.am.  I fixed
> srcdir!=buildir issues.  I also fixed some other build bugs.  Finally,
> I fixed the jython crash problem -- the problem was that jython.java
> was getting compiled into the executable twice.

Cool.  Why doesn't this show up as a link problem?

AG


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jython build
  2001-10-23 17:19 ` Anthony Green
@ 2001-10-23 17:21   ` Tom Tromey
  2001-10-23 22:19     ` Alexandre Petit-Bianco
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Tromey @ 2001-10-23 17:21 UTC (permalink / raw)
  To: Anthony Green; +Cc: rhug-rhats

Anthony> Cool.  Why doesn't this show up as a link problem?

One copy was in the executable and another copy was in the shared
library.  At link time this is allowed.  That's inconvenient for us...

jython still doesn't work, at least the test Alex told me fails:

    creche.  CLASSPATH=/x1/rhug/build/jython/jython.jar:/x1/egcs/install/share/libgcj.jar:. ./test_jython /x1/rhug/rhug/jython/tests/test-all/testall.py  
    *sys-package-mgr*: processing modified jar, '/x1/rhug/build/jython/jython.jar'
    *sys-package-mgr*: skipping bad jar, '/x1/rhug/build/jython/jython.jar'
    Testing JPython Version 2.1a3
    Traceback (innermost last):
      File "/x1/rhug/rhug/jython/tests/test-all/testall.py", line 4, in ?
      File "/home/apbianco/src/rhug/jython/upstream/src/Lib/test/test_support.py", line 43, in ?
    ImportError: no module named javaos

I haven't started looking at this yet.

Tom

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jython build
  2001-10-23 17:13 jython build Tom Tromey
  2001-10-23 17:19 ` Anthony Green
@ 2001-10-23 21:26 ` Alexandre Petit-Bianco
  2001-10-23 21:43   ` Tom Tromey
  1 sibling, 1 reply; 8+ messages in thread
From: Alexandre Petit-Bianco @ 2001-10-23 21:26 UTC (permalink / raw)
  To: tromey; +Cc: rhug-rhats

Tom Tromey writes:

> I fixed srcdir!=buildir issues.

Thanks. I should have thought of the -d option.

> Finally, I fixed the jython crash problem -- the problem was that
> jython.java was getting compiled into the executable twice.

Ha. That's what I didn't catch. One C-_ too many and my binary would
fail, right after a libgcj upgrade. I thought libgcj was broken.

./A

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jython build
  2001-10-23 21:26 ` Alexandre Petit-Bianco
@ 2001-10-23 21:43   ` Tom Tromey
  0 siblings, 0 replies; 8+ messages in thread
From: Tom Tromey @ 2001-10-23 21:43 UTC (permalink / raw)
  To: apbianco; +Cc: rhug-rhats

>>>>> "Alex" == Alexandre Petit-Bianco <apbianco@cygnus.com> writes:

Alex> Ha. That's what I didn't catch. One C-_ too many and my binary
Alex> would fail, right after a libgcj upgrade. I thought libgcj was
Alex> broken.

Me too.  It took me a surprisingly long time to suspect this.
A link-time error would be nice.

Tom

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jython build
  2001-10-23 17:21   ` Tom Tromey
@ 2001-10-23 22:19     ` Alexandre Petit-Bianco
  2001-10-24  9:31       ` Tom Tromey
  0 siblings, 1 reply; 8+ messages in thread
From: Alexandre Petit-Bianco @ 2001-10-23 22:19 UTC (permalink / raw)
  To: tromey; +Cc: Anthony Green, rhug-rhats

Tom Tromey writes:

>     creche.  CLASSPATH=/x1/rhug/build/jython/jython.jar:/x1/egcs/install/share/libgcj.jar:. ./test_jython /x1/rhug/rhug/jython/tests/test-all/testall.py  
>     *sys-package-mgr*: processing modified jar, '/x1/rhug/build/jython/jython.jar'
>     *sys-package-mgr*: skipping bad jar, '/x1/rhug/build/jython/jython.jar'
>     Testing JPython Version 2.1a3
>     Traceback (innermost last):
>       File "/x1/rhug/rhug/jython/tests/test-all/testall.py", line 4, in ?
>       File "/home/apbianco/src/rhug/jython/upstream/src/Lib/test/test_support.py", line 43, in ?
>     ImportError: no module named javaos
> 
> I haven't started looking at this yet.

I found out that you have to put a copy of <rhug-src>/jython/upstream/src/Lib
where your jython.jar file resides -- I got confirmation of this by
installing the jar file and Lib/ into a new location and things ran
OK. Which means that we will have to take that into account for the
install target. We could probably put it in share/, but maybe renaming
it jython-lib (I think there's a way to change it in
org/python/core/PySystemState.java.)

I was trying to work on the install target, by `make install' tells me
the following:

  /bin/sh ../libtool --mode=install /usr/unsupported/bin/install -c  lib-org-jython.la /home/apbianco/install/rhug/install-x86//lib/lib-org-jython.la
  libtool: install: warning: relinking `lib-org-jython.la'
  cd /home/apbianco/build/rhug/i686-pc-linux-gnu/jython; /bin/sh ../libtool --mode=relink gcj --encoding=8859_1 -fassume-compiled -fCLASSPATH=/home/apbianco/src/rhug/jython/upstream/src:/home/apbianco/src/rhug/jython/../gnu.readline/...
  ...
  org/python/util/ReadlineConsole.lo upstream/src/org/python/util/jython.lo ../jakarta-servletapi/lib-javax-servlet.la ../jakarta-oro/lib-org-apache-oro.la ../gnu.readline/lib-org-gnu-readline.la
  mv: cannot stat `lib-org-jython.so.0.0.0': No such file or directory

Do you know why I get this error?

./A

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jython build
  2001-10-23 22:19     ` Alexandre Petit-Bianco
@ 2001-10-24  9:31       ` Tom Tromey
  2001-10-24  9:38         ` Alexandre Petit-Bianco
  0 siblings, 1 reply; 8+ messages in thread
From: Tom Tromey @ 2001-10-24  9:31 UTC (permalink / raw)
  To: apbianco; +Cc: Anthony Green, rhug-rhats

>>>>> "Alex" == Alexandre Petit-Bianco <apbianco@cygnus.com> writes:

Alex>   mv: cannot stat `lib-org-jython.so.0.0.0': No such file or directory

Alex> Do you know why I get this error?

Afraid not.

Somehow my --prefix ended up empty so now I'm rebuilding from scratch
to see if I can reproduce the problem.  This should take a while.

Tom

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jython build
  2001-10-24  9:31       ` Tom Tromey
@ 2001-10-24  9:38         ` Alexandre Petit-Bianco
  0 siblings, 0 replies; 8+ messages in thread
From: Alexandre Petit-Bianco @ 2001-10-24  9:38 UTC (permalink / raw)
  To: tromey; +Cc: Anthony Green, rhug-rhats

Tom Tromey writes:

> >>>>> "Alex" == Alexandre Petit-Bianco <apbianco@cygnus.com> writes:
> Afraid not.

It looks like it was a glitch. I removed lib-org-jython.la and the
error went away.

./A

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-10-24  9:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-23 17:13 jython build Tom Tromey
2001-10-23 17:19 ` Anthony Green
2001-10-23 17:21   ` Tom Tromey
2001-10-23 22:19     ` Alexandre Petit-Bianco
2001-10-24  9:31       ` Tom Tromey
2001-10-24  9:38         ` Alexandre Petit-Bianco
2001-10-23 21:26 ` Alexandre Petit-Bianco
2001-10-23 21:43   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).