public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
To: David Daney <ddaney@caviumnetworks.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Compiling java without boehm-gc
Date: Sat, 17 Jul 2010 00:27:00 -0000	[thread overview]
Message-ID: <AANLkTimPDKjbz5ieG8sNiaIGE2UP5OIpzCTXOwuv5i2a@mail.gmail.com> (raw)
In-Reply-To: <4C40C4AA.90205@caviumnetworks.com>

On 16 July 2010 21:44, David Daney <ddaney@caviumnetworks.com> wrote:
> On 07/16/2010 12:58 PM, Dmitrijs Ledkovs wrote:
>>
>> Is it supported to build java without gc?
>
> I don't think so.  Even if it were, it wouldn't be very useful.
>
> Probably a better use of time would be to fix whatever problem is keeping
> the GC from working for you.
>

Thanks for the heads up.

This boils down to boehm-gc being not upto-date with boehm CVS.

The last try from nightstrike to try to get someone to merge a newer
one stalled in 2006.

> David Daney
>
>> Tried with 4.4 ubuntu
>> patched sources and gcc trunk svn 162241.
>>
>> I have only found references with gcc 3.2 with similar attempts.
>>
>> I want this to build a java cross-compiler to x86_64-w64-mingw32 and
>> current boehm-gc from gcc sources fails to compile for that.
>>
>> The example below is the minimal native build which also fails exactly the
>> same.
>>
>> Building like so:
>>
>>   $ ../gcc/configure --enable-languages=java --enable-java-gc=no
>>
>> Fails like so:
>>
>> libtool: compile:  /home/tdlk/src/bzr-mirrors/build-162241/./gcc/xgcc
>> -shared-libgcc -B/home/tdlk/src/bzr-mirrors/build-162241/./gcc
>> -nostdinc++
>> -L/home/tdlk/src/bzr-mirrors/build-162241/i686-pc-linux-gnu/libstdc++-v3/src
>>
>> -L/home/tdlk/src/bzr-mirrors/build-162241/i686-pc-linux-gnu/libstdc++-v3/src/.libs
>> -B/usr/local/i686-pc-linux-gnu/bin/
>> -B/usr/local/i686-pc-linux-gnu/lib/ -isystem
>> /usr/local/i686-pc-linux-gnu/include -isystem
>> /usr/local/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I.
>> -I../../../gcc/libjava -I./include -I./gcj -I../../../gcc/libjava
>> -Iinclude -I../../../gcc/libjava/include
>> -I../../../gcc/libjava/classpath/include -Iclasspath/include
>> -I../../../gcc/libjava/classpath/native/fdlibm
>> -I../../../gcc/libjava/libltdl -I../../../gcc/libjava/libltdl
>> -I../../../gcc/libjava/.././libjava/../gcc
>> -I../../../gcc/libjava/../zlib
>> -I../../../gcc/libjava/../libffi/include -I../libffi/include -fno-rtti
>> -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum
>> -D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -Usun
>> -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/usr/local\"
>> -DTOOLEXECLIBDIR=\"/usr/local/lib\" -DJAVA_HOME=\"/usr/local\"
>> -DBOOT_CLASS_PATH=\"/usr/local/share/java/libgcj-4.6.0.jar\"
>> -DJAVA_EXT_DIRS=\"/usr/local/share/java/ext\"
>> -DGCJ_ENDORSED_DIRS=\"/usr/local/share/java/gcj-endorsed\"
>> -DGCJ_VERSIONED_LIBDIR=\"/usr/local/lib/gcj-4.6.0-12\"
>> -DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"\"
>> -DLIBGCJ_DEFAULT_DATABASE=\"/usr/local/lib/gcj-4.6.0-12/classmap.db\"
>> -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.6.0-12/classmap.db\" -g
>> -O2 -D_GNU_SOURCE -MT link.lo -MD -MP -MF .deps/link.Tpo -c
>> ../../../gcc/libjava/link.cc  -fPIC -DPIC -o .libs/link.o
>> ../../../gcc/libjava/link.cc:29:16: fatal error: gc.h: No such file or
>> directory
>> compilation terminated.
>> make[3]: *** [link.lo] Error 1
>> make[3]: Leaving directory
>> `/home/tdlk/src/bzr-mirrors/build-162241/i686-pc-linux-gnu/libjava'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory
>> `/home/tdlk/src/bzr-mirrors/build-162241/i686-pc-linux-gnu/libjava'
>> make[1]: *** [all-target-libjava] Error 2
>> make[1]: Leaving directory `/home/tdlk/src/bzr-mirrors/build-162241'
>> make: *** [all] Error 2
>>
>
>

  reply	other threads:[~2010-07-16 20:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-16 20:44 Dmitrijs Ledkovs
2010-07-16 20:55 ` David Daney
2010-07-17  0:27   ` Dmitrijs Ledkovs [this message]
2010-07-17 17:53     ` Andrew Haley
2010-07-18  5:13       ` Dmitrijs Ledkovs
2010-09-03  1:38         ` NightStrike
2010-09-03 10:11           ` Andrew Haley
2010-09-03 19:14             ` NightStrike

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=AANLkTimPDKjbz5ieG8sNiaIGE2UP5OIpzCTXOwuv5i2a@mail.gmail.com \
    --to=dmitrij.ledkov@ubuntu.com \
    --cc=ddaney@caviumnetworks.com \
    --cc=gcc-help@gcc.gnu.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).