Re: [Vala] why valac says "error: Failed to execute child process (Exec format error)"



Hi,

Do you use (old, unmaintained) MinGW/MSYS or MSYS2 (https://msys2.github.io/)? It should not be a problem 
with MSYS2: just type

    pacman -S mingw-w64-vala

It should be the latest version, so you don't need to compile it yourself.

Regards,
Dmitry

21.06.2016, 08:49, "oyster" <lepto python gmail com>:
 $ file $(which valac)
/opt/windows_32/vala-my-build/bin/valac.exe: PE32 executable for MS
Windows (console) Intel 80386 32-bit

$ file $(which pkg-config)
/opt/windows_32/bin/pkg-config.exe: PE32 executable for MS Windows
(console) Intel 80386 32-bit
LOVLJIDY LOVLJIDY-PC ~

$ file $(which gcc)
/opt/windows_32/bin/gcc.exe: PE32 executable for MS Windows (console)
Intel 80386 32-bit

$ file /e/msys/opt/windows_32/bin/libglib-2.0-0.dll
/e/msys/opt/windows_32/bin/libglib-2.0-0.dll: PE32 executable for MS
Windows (DLL) (console) Intel 80386 32-bit

and this is a test on a 64bits application for comparation:
$ file /e/greensoft/3d/blender/blender-2.77.1-git.9d431f1-AMD64/blender.exe
/e/greensoft/3d/blender/blender-2.77.1-git.9d431f1-AMD64/blender.exe:
PE32+ executable for MS Windows (console) Mono/.Net assembly

2016-06-21 5:27 GMT+08:00 Al Thomas <astavale yahoo co uk>:
 ________________________________
 From: oyster <lepto python gmail com>
 Sent: Monday, 20 June 2016, 16:08
 Subject: Re: [Vala] why valac says "error: Failed to execute child process
 (Exec format error)"

 so what is the possible solution to find out which 32 and 64 bits DLLs
 are conflictive?

 According to this Stack Overflow answer, if you have Visual Studio install
 "Dumpbin will report DLLs as machine (x86) or machine (x64)". See
 http://stackoverflow.com/questions/197951/how-can-i-determine-for-which-platform-an-executable-is-compiled
 Otherwise
 
http://stackoverflow.com/questions/495244/how-can-i-test-a-windows-dll-to-determine-if-it-is-32bit-or-64bit
 may help.

 You should check the format of valac, gcc and pkg-config

 I am sure my GCC produces 32bits exe/dll files even on my 64 bits machine.

 please note, as I have mentioned in
 https://mail.gnome.org/archives/vala-list/2016-June/msg00027.html
 1) vala-0.18.0-mingw32-bin.tar.xz from http://linbox.free.fr/vala/ can
 compile hello.vala without problem
 2) Then I compile vala-0.32 from source with vala-0.18.0. Then I
 overwrite vala-0.18.0 with my new compiled vala-0.32( which is for
 i386 and above, i.e. 32bits)
 3) my new compiled vala-0.32 complains "error: Failed to execute child
 process (Exec format error)" when it is used to compile hello.vala(
 which can be compiled by vala-0.18.0)

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]