-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined references to utf8proc_*
when building julia from source on mingw32
#57462
Comments
utf8proc_
utf8proc_*
when building julia from source on mingw32
Build with |
this might have happened because the julia directory was not clean. I will try to build from a clean directory again. |
Mingw32
$ file /d/jl/julia/usr/lib/libutf8proc.a
/d/jl/julia/usr/lib/libutf8proc.a: current ar archive
$ nm -g /d/jl/julia/usr/lib/libutf8proc.a
D:\env\msys64\mingw32\bin\nm.exe: utf8proc.o: file format not recognized
$ ar t /d/jl/julia/usr/lib/libutf8proc.a
utf8proc.o
$ objdump -f /d/jl/julia/usr/lib/libutf8proc.a
In archive D:/jl/julia/usr/lib/libutf8proc.a:
D:\env\msys64\mingw32\bin\objdump.exe: utf8proc.o: file format not recognized
$ ar x /d/jl/julia/usr/lib/libutf8proc.a
$ ls utf8proc.o
utf8proc.o
$ file utf8proc.o
utf8proc.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
$ objdump -f utf8proc.o
D:\env\msys64\mingw32\bin\objdump.exe: utf8proc.o: file format not recognized
$ file src/flisp/flisp.o
src/flisp/flisp.o: Intel i386 COFF object file, no line number info, not stripped, 14 sections, symbol offset=0x9f2be, 294 symbols, 1st section name ".text", 2nd section name ".data" There is something wrong with |
It looks like it is using the wrong compiler (host gcc). Only cross-compiler (XC_HOST-gcc) is supported on Windows. |
@vtjnash do you mean only cross compilation using cygwin is supported? |
msys2 is also mostly supported, though it presents itself as an odd sort of native cross-compiler, which can get you into some trouble when trying to build things if you don't force it to operate as a normal cross-compiler |
Given that using msys2/mignw is brittle, maybe the msys2/mingw section should be removed from the build doc? |
For what its worth, in a clean directory the build worked, using this PR #57451 |
Building julia from source fails on
mingw32
possibly becauseutf8proc
library is missing. Note that this error does not occur for mingw64, but happens only on 32bitSee errors below:
can someone help with this?
The text was updated successfully, but these errors were encountered: