On Tue, 21 Nov 2017, Sven Kretzschmar wrote:

Thanks - now the cross compilation goes much further resulting in the below
error
(trying to cross-compile x86_64-w64-mingw32-gcc with libiberty support &
ucrtbase option, other options as before, bootstrapping enabled).

Normally, the undeclared symbols (e.g. F_GETFD, F_SETFD, F_DUPFD, ...) are
declared in "fcntl.h" or in header files included from "fcntl.h".
However, in the mingw64 distribution, "fcntl.h" does not contain or include
these symbols. Therefore the below errors result...

Did I overlook something ? Is this a bug or a feature (intended) or was it
missed/postponed ?

No idea, I haven't touched any such headers wrt ucrtbase. So it sounds like some other feature detection goes differently than before, which means that it now tries to build this code. In the default build that succeeds (without ucrtbase), does it try to build these files at all?

Maybe I can get around this by trying to compile gcc without libiberty
support, but I am suspicious that the missing defines might
cause problems later in other places...

Nah, I'd recommend trying to dig into and see why you're running into this issue instead of trying to sidestep it.

Other subject:
Using clang with mingw64 instead of gcc to compile Julia (The Julia
language) sounds like an interesting alternative, however
getting Julia compiled with all its dependencies (including fortran sources)
with clang instead of gcc would be a huge effort, if at all possible.

Yes, the clang/llvm based toolchain is much less mature in all aspects, so I wouldn't recommend it unless you have interest in it for another reason (my reason is support for windows on non-x86 platforms).

// Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to