Re: [Vala] error: Failed to execute child process (Exec format error)






 
      From: oyster <lepto python gmail com>
 Sent: Thursday, 16 June 2016, 14:02
 Subject: [Vala] error: Failed to execute child process (Exec format error)
   
My compiled valac says "error: Failed to execute child process (Exec
format error)"
any hints to trace what is the problem?

1. I have a pre-installed Mingw + msys on my win7 64 bits to compile
32bits applications.

From https://msdn.microsoft.com/en-us/library/windows/desktop/aa384249%28v=vs.85%29.aspx"However, 32-bit 
processes cannot load 64-bit DLLs for execution, and 64-bit processes cannot load 32-bit DLLs for 
execution."You have compiled Vala as 32bit, but valac will call gcc. Have you also compiled gcc as 32bit?Why 
not just stick with 64bit to start with. This makes life easier, then work on the 32bit once you know the 
toolchain works?You can test it is the call to gcc by just compiling to C code with `valac --ccode 
my_program.vala`

7. in case you want this failed test. Of cause, it can not succeed
since we have met the faliure in step 6> [make test]> $ make test> cd tests && make  check> make[1]: 
Entering directory `/r/vala-0.32.0/tests'> make  check-am> make[2]: Entering directory 
`/r/vala-0.32.0/tests'> make  check-TESTS> make[3]: Entering directory `/r/vala-0.32.0/tests'> TEST: 
Building...                                                      FAIL> Compilation failed: 6 error(s), 0 
warning(s)> error: Failed to execute child process (Exec format error)> error: Failed to execute child 
process (Exec format error)> error: Failed to execute child process (Exec format error)> error: Failed to 
execute child process (Exec format error)> error: Failed to execute child process (Exec format error)> 
error: Failed to execute child process (Exec format error)> Makefile:2214: recipe for target `check-TESTS' 
failed> make[3]: *** [check-TESTS] Error 1> make[3]: Leaving directory `/r/vala-0.32.0/tests'> 
Makefile:2088: recipe for target `check-am' failed> make[2]: *** [check-am] Error 2> make[2]: Leaving 
directory `/r/vala-0.32.0/tests'> Makefile:2090: recipe for target `check' failed> make[1]: *** [check] 
Error 2> make[1]: Leaving directory `/r/vala-0.32.0/tests'> Makefile:968: recipe for target `test' failed> 
make: *** [test] Error 2> [/make test]
Once you have made your executable formats consistent, be awarethe test suite will not run cleanly on Windows 
because of D-Bus.See https://bugzilla.gnome.org/show_bug.cgi?id=761307 for howsomeone resolved this on MSYS2.
Al

   


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