This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling libgcj Archives
- From: Andrew Haley <aph at redhat dot com>
- To: Bill Speirs <bill dot speirs at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Oct 2013 14:45:14 +0100
- Subject: Re: Compiling libgcj Archives
- Authentication-results: sourceware.org; auth=none
- References: <CAB_f4-V=LZkPVUc7ode=TqO3QGw0bwAGN5Bq67QfNpjHBt29Lw at mail dot gmail dot com> <5267CB8F dot 9030707 at redhat dot com> <CAB_f4-V2SyDVJcwNMmZjyp_OFWeNvBezCNimxN=xm=PcDsByEQ at mail dot gmail dot com>
On 10/23/2013 02:25 PM, Bill Speirs wrote:
> On Wed, Oct 23, 2013 at 9:13 AM, Andrew Haley <aph@redhat.com> wrote:
>> On 10/23/2013 01:54 PM, Bill Speirs wrote:
>>> Can I compile these libraries without compiling the c, c++, and gcj compilers?
>>
>> No. But why would you want to? Just install the C compiler package
>> for your OS.
>
> I have the C compiler package installed for my Ubuntu box; however, it
> does not include the libgcj archives. I'm just looking to statically
> compile a Java program on a 64-bit machine, so I need the 64-bit
> libgcj archives.
So, the right thing to do is rebuild GCC.
This error message:
configure: error: in `/tmp/gcc-output/x86_64-unknown-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
... says that the C compiler installed does not work.
You may need to use --disable-multilib.
But have a look at config.log to see the problem.
Andrew.