hangover icon indicating copy to clipboard operation
hangover copied to clipboard

libiconv no picking mingw-w64 crosscompiler, but clang

Open Chaosdave34 opened this issue 4 years ago • 16 comments

I have installed clang 5.0 from precompiled binaries (llvm.org). But when I run ./configure --enable-win64 I get the following error: "configure: error: You need clang >= 5.0 to build Wine for arm64."

Running on Raspberry Pi 4 Ubuntu 20.10 aarch64.

Chaosdave34 avatar Jan 02 '21 15:01 Chaosdave34

See #84

AndreRH avatar Jan 02 '21 16:01 AndreRH

I keep getting the following error:

make[2]: Entering directory '/home/david/Workspace/hangover/build/libiconv32/src'
/bin/bash ../libtool --mode=link clang  -g -O2 iconv_no_i18n.o ../srclib/libicrt.a ../lib/libiconv.la iconv.res -o iconv_no_i18n
libtool: link: clang -g -O2 iconv_no_i18n.o iconv.res -o iconv_no_i18n  ../srclib/libicrt.a ../lib/.libs/libiconv.a
libtool: link: clang -g -O2 iconv_no_i18n.o iconv.res -o iconv_no_i18n  ../srclib/libicrt.a ../lib/.libs/libiconv.a
iconv.resiconv.res: file not recognized: file format not recognized
: file not recognized: file format not recognized
clangclang: : error: linker command failed with exit code 1 (use -v to see invocation)error
: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:78: iconv_no_i18n] Error 1
make[2]: *** [Makefile:78: iconv_no_i18n] Error 1
make[2]: Leaving directory '/home/david/Workspace/hangover/build/libiconv32/src'
make[2]: Leaving directory '/home/david/Workspace/hangover/build/libiconv64/src'
make[1]: *** [Makefile:56: install] Error 2
make[1]: Leaving directory '/home/david/Workspace/hangover/build/libiconv64'
make[1]: *** [Makefile:56: install] Error 2
make[1]: Leaving directory '/home/david/Workspace/hangover/build/libiconv32'
make: *** [Makefile:80: build/x86_64-w64-mingw32/bin/libcharset-1.dll] Error 2
make: *** Waiting for unfinished jobs....
make: *** [Makefile:76: build/i686-w64-mingw32/bin/libcharset-1.dll] Error 2

Chaosdave34 avatar Jan 02 '21 21:01 Chaosdave34

when libtool is using clang here it should use i686-w64-mingw32-gcc, is that installed? Please read https://github.com/AndreRH/hangover/blob/master/README.md

AndreRH avatar Jan 03 '21 16:01 AndreRH

I think it is installed. (I also have a package installed which is named win-iocnv-mingw or something like that)

Chaosdave34 avatar Jan 03 '21 16:01 Chaosdave34

i686-w64-mingw32-gcc is installed and executable.

HoSnoopy avatar Jan 14 '21 10:01 HoSnoopy

you need x86_64-w64-mingw32 too

stefand avatar Jan 14 '21 12:01 stefand

x86_64-w64-mingw32-gcc is also installed and executable.

HoSnoopy avatar Jan 14 '21 16:01 HoSnoopy

What does config.log say, why are the mingw compilers not picked up?

AndreRH avatar Jan 14 '21 16:01 AndreRH

Ah, no. It doesnt pick up. Debian Buster/ARM64 . Do I need aarch64_64-mingw32 something? I cannot find in the repo.

HoSnoopy avatar Jan 14 '21 17:01 HoSnoopy

x86_64-w64-mingw32-gcc (exactly this name) i686-w64-mingw32-gcc (exactly this name)

they are used to produce x86(_64) PE files, so no, you don't need an aarch64 version

could you pastebin the config.log please?

AndreRH avatar Jan 14 '21 21:01 AndreRH

https://paste2.org/JUDZ42jF

HoSnoopy avatar Jan 14 '21 23:01 HoSnoopy

This is wine's config.log, not libiconv

stefand avatar Jan 15 '21 07:01 stefand

Hmm, did you maybe set CC=clang instead of HANGOVER_WINE_CC=clang?

stefand avatar Jan 15 '21 07:01 stefand

https://paste2.org/EKhNHOUO libiconv config.log

Chaosdave34 avatar Jan 15 '21 08:01 Chaosdave34

ew yeah, libiconv needs different configure arguments. Delete the build/libiconv folders and let the top level makefile do its job, or look in the top level makefile for the exact arguments (it sets the host to i686 mingw / x86_64 mingw and the install prefix to a private folder in build/ etc)

stefand avatar Jan 15 '21 08:01 stefand

Now libiconv workd but now qemu makes problems: make -C build/qemu make[1]: Verzeichnis „/home/pi/Workspace/hangover/build/qemu“ wird betreten make[1]: *** Keine Ziele. Schluss. make[1]: Verzeichnis „/home/pi/Workspace/hangover/build/qemu“ wird verlassen make: *** [Makefile:183: build/qemu/x86_64-windows-user/qemu-x86_64.exe.so] Fehler 2

Chaosdave34 avatar Feb 03 '21 08:02 Chaosdave34

irrelevant with new Hangover approach

AndreRH avatar Feb 15 '23 20:02 AndreRH