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



$ gcc hello.vala.c
hello.vala.c:5:18: fatal error: glib.h: No such file or directory
compilation terminated.

#the following line means gobject-2.0 is installed on my msys2, and
can be found by pkg-config
$ gcc hello.vala.c $(pkg-config --cflags --libs gobject-2.0)

$ ./a.exe
hello

2016-06-21 23:55 GMT+08:00 oyster <lepto python gmail com>:
for my old msys/mingw
"echo $CC" is empty

$ valac --cc=gcc hello.vala
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)
Compilation failed: 3 error(s), 0 warning(s)

$ gcc
gcc.exe: fatal error: no input files
compilation terminated.

2016-06-21 23:21 GMT+08:00 ben <iofelben gmail com>:
What does
$ echo $CC
show?

Does
$ valac --cc=gcc ./hello.vala
work?

On Tue, 2016-06-21 at 22:56 +0800, oyster wrote:
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:
/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:
/mingw64/bin

to delete all possible things in old Msys, I run
$ export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/mingw64/bin

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/mingw64/bin

$ vala ./hello.vala
Compilation failed: 3 error(s), 0 warning(s)
error: Failed to execute child process (No such file or directory)
error: Failed to execute child process (No such file or directory)
error: Failed to execute child process (No such file or directory)

2016-06-21 22:44 GMT+08:00 Al Thomas <astavale yahoo co uk>:


________________________________
From: oyster <lepto python gmail com>
Sent: Tuesday, 21 June 2016, 15:38
Subject: Re: [Vala] why valac says "error: Failed to execute child
process
(Exec format error)"

Msys2 (msys2-x86_64-20160205.exe) has been installed, and I have
used
$  pacman -Sy pacman
$  pacman -Syu
$  pacman -Su
which all say " there is nothing to do" now


I use this line to install Vala in msys2.exe
$  pacman -S mingw-w64-x86_64-vala

then
$ export LANG=en
$ export PATH=$PATH:/mingw64/bin

What does
echo $PATH
show? Does it still include your old MSYS path so those
binaries/libraries
are being picked up first?


$ vala ./hello.vala
Compilation failed: 3 error(s), 0 warning(s)
error: Failed to execute child process (No such file or directory)
error: Failed to execute child process (No such file or directory)
error: Failed to execute child process (No such file or directory)


_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
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]