public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* gij 4.8 on armv7l
@ 2016-07-10 11:57 Matwey V. Kornilov
  2016-09-25 12:08 ` Matwey V. Kornilov
  0 siblings, 1 reply; 2+ messages in thread
From: Matwey V. Kornilov @ 2016-07-10 11:57 UTC (permalink / raw)
  To: java

Hello,

I am running gcc 4.8.5 and experiencing the following issue with java
on armv7l architecture.
I think that issue can be related to gnu java code runtime interpreter.

Apache ant fails with the following trace when run using gij:

[   76s] /home/abuild/rpmbuild/BUILD/xml-commons-1.3.04/xml-commons-1_0_b2/build.xml:49:
The following error occurred while executing this line:
[   76s] /home/abuild/rpmbuild/BUILD/xml-commons-1.3.04/xml-commons-1_0_b2/java/external/build.xml:120:
java.lang.IllegalArgumentException: 16877=40755 will not fit in octal
number buffer of length -1292065064
[   76s]    at org.apache.tools.tar.TarUtils.formatUnsignedOctalString(TarUtils.java:387)
[   76s]    at org.apache.tools.tar.TarUtils.formatLongOctalBytes(TarUtils.java:440)
[   76s]    at org.apache.tools.tar.TarUtils.formatLongOctalOrBinaryBytes(TarUtils.java:470)
[   76s]    at org.apache.tools.tar.TarEntry.writeEntryHeaderField(TarEntry.java:866)
[   76s]    at org.apache.tools.tar.TarEntry.writeEntryHeader(TarEntry.java:819)
[   76s]    at org.apache.tools.tar.TarOutputStream.putNextEntry(TarOutputStream.java:305)
[   76s]    at org.apache.tools.ant.taskdefs.Tar.tarResource(Tar.java:480)
[   76s]    at org.apache.tools.ant.taskdefs.Tar.tarFile(Tar.java:354)
[   76s]    at org.apache.tools.ant.taskdefs.Tar.tar(Tar.java:669)
[   76s]    at org.apache.tools.ant.taskdefs.Tar.execute(Tar.java:314)

Where -1292065064 randomly changes with every restart. An issue here
that the length is a constant in essence. I checked that the same
ant.jar run fine with oracle java 1.8.0.
It would be great if you could point me how to try to debug and solve
this issue.

See also:
https://bz.apache.org/bugzilla/show_bug.cgi?id=59771
https://bugzilla.novell.com/show_bug.cgi?id=988274

-- 
With best regards,
Matwey V. Kornilov
http://blog.matwey.name
xmpp://0x2207@jabber.ru

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

* Re: gij 4.8 on armv7l
  2016-07-10 11:57 gij 4.8 on armv7l Matwey V. Kornilov
@ 2016-09-25 12:08 ` Matwey V. Kornilov
  0 siblings, 0 replies; 2+ messages in thread
From: Matwey V. Kornilov @ 2016-09-25 12:08 UTC (permalink / raw)
  To: java

FYI, back-porting the following commit

https://github.com/matwey/libffi/commit/5912607e0a4fd9638c14ebd523f5d2188da583e8

fixes the issue.


2016-07-10 14:57 GMT+03:00 Matwey V. Kornilov <matwey.kornilov@gmail.com>:
> Hello,
>
> I am running gcc 4.8.5 and experiencing the following issue with java
> on armv7l architecture.
> I think that issue can be related to gnu java code runtime interpreter.
>
> Apache ant fails with the following trace when run using gij:
>
> [   76s] /home/abuild/rpmbuild/BUILD/xml-commons-1.3.04/xml-commons-1_0_b2/build.xml:49:
> The following error occurred while executing this line:
> [   76s] /home/abuild/rpmbuild/BUILD/xml-commons-1.3.04/xml-commons-1_0_b2/java/external/build.xml:120:
> java.lang.IllegalArgumentException: 16877=40755 will not fit in octal
> number buffer of length -1292065064
> [   76s]    at org.apache.tools.tar.TarUtils.formatUnsignedOctalString(TarUtils.java:387)
> [   76s]    at org.apache.tools.tar.TarUtils.formatLongOctalBytes(TarUtils.java:440)
> [   76s]    at org.apache.tools.tar.TarUtils.formatLongOctalOrBinaryBytes(TarUtils.java:470)
> [   76s]    at org.apache.tools.tar.TarEntry.writeEntryHeaderField(TarEntry.java:866)
> [   76s]    at org.apache.tools.tar.TarEntry.writeEntryHeader(TarEntry.java:819)
> [   76s]    at org.apache.tools.tar.TarOutputStream.putNextEntry(TarOutputStream.java:305)
> [   76s]    at org.apache.tools.ant.taskdefs.Tar.tarResource(Tar.java:480)
> [   76s]    at org.apache.tools.ant.taskdefs.Tar.tarFile(Tar.java:354)
> [   76s]    at org.apache.tools.ant.taskdefs.Tar.tar(Tar.java:669)
> [   76s]    at org.apache.tools.ant.taskdefs.Tar.execute(Tar.java:314)
>
> Where -1292065064 randomly changes with every restart. An issue here
> that the length is a constant in essence. I checked that the same
> ant.jar run fine with oracle java 1.8.0.
> It would be great if you could point me how to try to debug and solve
> this issue.
>
> See also:
> https://bz.apache.org/bugzilla/show_bug.cgi?id=59771
> https://bugzilla.novell.com/show_bug.cgi?id=988274
>
> --
> With best regards,
> Matwey V. Kornilov
> http://blog.matwey.name
> xmpp://0x2207@jabber.ru



-- 
With best regards,
Matwey V. Kornilov
http://blog.matwey.name
xmpp://0x2207@jabber.ru

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

end of thread, other threads:[~2016-09-25 12:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-10 11:57 gij 4.8 on armv7l Matwey V. Kornilov
2016-09-25 12:08 ` Matwey V. Kornilov

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