Re: [Vala] why valac says "error: Failed to execute child process (Exec format error)"
- From: Al Thomas <astavale yahoo co uk>
- To: oyster <lepto python gmail com>
- Cc: "vala-list gnome org" <vala-list gnome org>
- Subject: Re: [Vala] why valac says "error: Failed to execute child process (Exec format error)"
- Date: Tue, 21 Jun 2016 11:37:08 +0000 (UTC)
From: oyster <lepto python gmail com>
Sent: Tuesday, 21 June 2016, 6:49
Subject: Re: [Vala] why valac says "error: Failed to execute child process (Exec format error)"
$ 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
Well that seems OK.
Now try 'valac hello.vala --ccode' and see if you get the error.The --ccode will by pass this block of
code:https://git.gnome.org/browse/vala/tree/compiler/valacompiler.vala#n468
If you don't get the error then it means the error is in that block somwhere.There are a number of GLib
functions that call out to the operating system.
These could be causing your error:Environment.get_variable ()and from
https://git.gnome.org/browse/vala/tree/codegen/valaccodecompiler.vala#n51Process.spawn_command_line_sync ()
You could try small test Vala programs to see which of those are causing the problem.As to the solution if
Process.spawn_command_line_sync () is not working on MSYSI don't know. Make the leap to MSYS2 so you are
following an active packaging system?
Al
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]