On 02/23/2018 10:08 AM, John W. Eaton wrote:
On 02/23/2018 09:57 AM, JohnD wrote:
Not sure what part of the gcc install that is, but the mxe version
of gcc.mk compiles posix threads as part of gcc.mk, before building
the 'rest of gcc'
And then all their pthreads.mk does is install a package config file
for it
Ah, OK, thanks. I'll take a look at that and see if I can adapt it
to the build-gcc.mk file in mxe-octave.
I looked at the current MXE it allows building a cross compiler for
Windows with posix threads and the build seems to work. So I tried to
adapt their rules to mxe-octave. I pushed changeset to provide a
macro for unpacking and patching an archive, then I tried the attached
diffs for src/build-gcc.mk and building that is failing with a series
for messages like this when linking libgcc_s.a:
DIR/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible
DIR/usr/x86_64-w64-mingw32/lib/libpthread.dll.a when searching for
-lpthread
DIR/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible
DIR/usr/mingw/lib/libpthread.dll.a when searching for -lpthread
DIR/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible
DIR/usr/x86_64-w64-mingw32/lib/libpthread.dll.a when searching for
-lpthread
DIR/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible
DIR/usr/mingw/lib/libpthread.dll.a when searching for -lpthread
DIR/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible
DIR/usr/x86_64-w64-mingw32/lib/libpthread.dll.a when searching for
-lpthread
DIR/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible
DIR/usr/mingw/lib/libpthread.dll.a when searching for -lpthread
DIR/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible
DIR/usr/x86_64-w64-mingw32/lib/libpthread.dll.a when searching for
-lpthread
DIR/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible
DIR/usr/mingw/lib/libpthread.dll.a when searching for -lpthread
DIR/usr/bin/x86_64-w64-mingw32-ld: cannot find -lpthread
I'm not sure whether this is due to multilib or that we are creating
links like
usr/mingw -> DIR/usr/x86_64-w64-mingw32
when building. It seems we have built up a lot of special cases of
creating directories (lib, lib3, lib64) and links that may no longer
be valid?
jwe