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 <astav...@yahoo.co.uk>: > > > > > > ________________________________ > > From: oyster <lepto.pyt...@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