This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GNU binutils ar strips path names from objects
- From: "Aaron W. LaFramboise" <aaronavay62 at aaronwl dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: GCJ <java at gcc dot gnu dot org>
- Date: Wed, 22 Sep 2004 00:50:00 -0500
- Subject: Re: GNU binutils ar strips path names from objects
- References: <4150D3E2.2000108@aaronwl.com> <41510FFE.3050407@gmail.com>
Ranjit Mathew wrote:
> Aaron W. LaFramboise wrote:
>
>>I'm battling the libjava build process attempting to get all of this to
>>build on i686-pc-mingw32. Besides having trouble with command line
>>length, I'm having trouble with ar doing the wrong thing.
>>
>>In both binutils cvs and 2.15, ar ignores the path name and looks only
>>at the filename. I know that some binutils version in the path behaved
>>differently from this.
>>
>>In any case, theres quite a few files with the same names (but different
>>pathnames) in libgcj, and so this causes problems.
>>
>>I'm a little curious why other binutils-using platforms aren't having
>>this problem. How do I fix this?
>
> Do you get errors or warnings? On i686-pc-linux-gnu, I see
> "Object name conflict" warnings, but the build goes through
> fine and the testsuite results are as expected.
I get undefined references at link time for everything linked against
libgcj because, for example, exception.o gets replaced later on by
something else named something/Exception.o, and so the important
exception symbols are not present.
Its possible that the case-insensitivity of the filesystem is causing
problems.
On the other hand, other people seem to be building libjava on
i686-pc-mingw32 with few problems, so I'm not sure what I'm doing wrong
here.
Aaron W. LaFramboise