Oh and by the way what is happening is that you are building a public library from a bunch of private convenience libraries. Since the convenience libraries are not installed what libtool does is extract all the objects (the ar x commands) in the convenience libraries and puts them in the public lib so the symbols are available if the public lib is linked. Archives can hold multiple objects of the same name so libtool lists all the archive members with ar t, sorts them, then ensures they are unique. Of course that assumes the sort program does that with the -uc parameters :)
Sent from my iPod On Mar 24, 2010, at 21:14, "Sisyphus" <[email protected]> wrote: > > ----- Original Message ----- From: "Doug Semler" > <[email protected]> > >> Actually, the command that's failing is: >> >> x86_64-w64-mingw32-ar t >> "/c/_64/comp/gsl-1.14/block/.libs/libgslblock.a" | sort | sort -uc >> >> (The error message is misleading because it prepends the extract >> directory onto the archive name, and it is not the actual command >> that's failing....). >> >> if you run that command, what happens? >> > > I get: > > ############################## > r...@desktop2 /c/_64/comp/gsl-1.14 > $ x86_64-w64-mingw32-ar t "/c/_64/comp/gsl-1.14/block/.libs/ > libgslblock.a" | sort | sort -uc > -ucThe system cannot find the file specified. > > r...@desktop2 /c/_64/comp/gsl-1.14 > $ x86_64-w64-mingw32-ar t "/c/_64/comp/gsl-1.14/block/.libs/ > libgslblock.a" > init.o > file.o > block.o > > r...@desktop2 /c/_64/comp/gsl-1.14 > $ x86_64-w64-mingw32-ar t "/c/_64/comp/gsl-1.14/block/.libs/ > libgslblock.a" | sort > block.o > file.o > init.o > > r...@desktop2 /c/_64/comp/gsl-1.14 > $ x86_64-w64-mingw32-ar t "/c/_64/comp/gsl-1.14/block/.libs/ > libgslblock.a" | sort -uc > -ucThe system cannot find the file specified. > ############################## > > I don't know what the '-uc' is supposed to do, but it apparently > gets interpreted as a filename (which doesn't exist, of course). > > The 3 files (block.o, file.o and init.o) are to be found in the > gsl-1.14/.libs/libgsl.lax/libgslblock.a/ folder, as is supposed to > happen I believe. (They were there at the time the 'make' process > errored out.) > > I've just had a quick look at 'man sort' on my linux box. I can't > successfully apply any of the switches there to the sort command in > the msys shell. They all seem to produce "The system cannot find the > file specified" error, even if I use the longhand form (ie --unique > instead of -u). > > Cheers, > Rob > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
