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






 
      From: oyster <lepto python gmail com>
 Sent: Wednesday, 22 June 2016, 2:05
 Subject: Re: [Vala] why valac says "error: Failed to execute child process (Exec format error)"
   
I have to do these "export operation" every time when I run msys2
since I don't know how to let msys2 do this automaticaly yet
[code]
export LANG=en
export PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/mingw64/bin
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/mingw64/lib/pkgconfig
[/code]


https://github.com/ghcjs/ghcjs/wiki/Preparing-the-Windows-build-environment suggests editing .bashrc in your 
MSYS2 home directory to set the variables.


mingw-w64-x86_64-pkg-config seems to be same with what I have
installed with "pacman -S pkg-config"
[code]
$ pacman -S mingw-w64-x86_64-pkg-config
error: duplicated database entry 'curl'
error: duplicated database entry 'filesystem'
error: duplicated database entry 'libcurl'
warning: mingw-w64-x86_64-pkg-config-0.29.1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) mingw-w64-x86_64-pkg-config-0.29.1-1

Total Installed Size:  1.32 MiB
Net Upgrade Size:      0.00 MiB
[/code]


You should probably uninstall first:pacman -R pkg-configAlso 
https://sourceforge.net/p/msys2/wiki/MSYS2%20installation/advises "Sometimes a package upgrade fails with 
failed to commit transaction (conflicting files) and some-pkg: /path/to/some/file exists in filesystem. If 
you're sure you didn't put the offending files there manually, move or delete the files and start the upgrade 
again."



$ echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig:/usr/share/pkgconfig:/lib/pkgconfig:/mingw64/lib/pkgconfig

$ ls  /mingw64/lib/pkgconfig/go*.pc
/mingw64/lib/pkgconfig/gobject-2.0.pc
/mingw64/lib/pkgconfig/gobject-introspection-1.0.pc
/mingw64/lib/pkgconfig/gobject-introspection-no-export-1.0.pc

[/code]


The problem identified from the link below was one version of pkg-config wasn'tfinding the right path. You 
could also try setting PKG_CONFIG_PATH to just /mingw64/lib/pkgconfig


2016-06-22 0:32 GMT+08:00 Al Thomas <astavale yahoo co uk>:
This comment (
https://github.com/commercialhaskell/stack/issues/377#issuecomment-118182127
)
says "I should be using the package mingw-w64-x86_64-pkg-config instead of
pkg-config"

   


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