ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Alexander Popov" <alplists@mail.ru>
To: "ALT Linux Sisyphus discussion list" <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Проблема при сборке HelloWorld.java
Date: Thu, 15 Feb 2007 18:07:52 +0300
Message-ID: <op.tnspm7lsbcpo97@wsapopov.msidev.dev> (raw)
In-Reply-To: <20070215143931.GA8810@basalt.office.altlinux.org>

On Thu, 15 Feb 2007 17:39:31 +0300, Dmitry V. Levin <ldv@altlinux.org>  
wrote:

> On Thu, Feb 15, 2007 at 04:15:50PM +0300, Alexander Popov wrote:
>> Не могу понять - кривые руки или проблема компилятора.
>> Система - осизифленный мастер, dist-upgrade сегодняшний.
>> Проблема следующая:
>> --------------------------------------------------------
>> [alp@apopov j]$ cat HelloWorld.java
>> public class HelloWorld
>> {
>>       public static void main( String[] args )
>>       {
>> 	System.out.println( "Hello, world!" );
>>       }
>> }
>>
>> [alp@apopov j]$ gcc HelloWorld.java
>> HelloWorld.java:2: внутренняя ошибка компилятора: в uses_jv_markobj_p, в
>> java/boehm.c:245
>> Отправьте подробное сообщение об ошибке
>> с препроцессированным исходным кодом.
>> Смотрите инструкции в <URL:http://bugzilla.altlinux.ru/>.
>
> $ gcj -c hello.java

Без компоновки собралось.

--------------------------------------------------------
[alp@apopov j]$ gcj -c HelloWorld.java
[alp@apopov j]$ ls
HelloWorld.java  HelloWorld.o

[alp@apopov j]$ gcj HelloWorld.java
/usr/lib/gcc/i586-alt-linux/4.1.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: выполнение ld завершилось с кодом возврата 1

[alp@apopov j]$ gcc HelloWorld.java
HelloWorld.java:2: внутренняя ошибка компилятора: в uses_jv_markobj_p, в  
java/boehm.c:245
Отправьте подробное сообщение об ошибке
с препроцессированным исходным кодом.
Смотрите инструкции в <URL:http://bugzilla.altlinux.ru/>.
--------------------------------------------------------

Нашел j2se-1.5-sun-devel. Там был всеми любимый javac. Он успешно собрал.  
Однако, хотелось бы разобраться почему такая ерунда с gcj происходит.


  reply	other threads:[~2007-02-15 15:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-15 13:15 Alexander Popov
2007-02-15 14:39 ` Dmitry V. Levin
2007-02-15 15:07   ` Alexander Popov [this message]
2007-02-15 15:22     ` Dmitry V. Levin
2007-02-15 15:22     ` Sergey Vlasov
2007-02-15 15:51   ` Andrey Rahmatullin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.tnspm7lsbcpo97@wsapopov.msidev.dev \
    --to=alplists@mail.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git