This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GNU binutils ar strips path names from objects


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]