Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unresolved external symbol on gobject-2.0-0.dll and gobject-2.0-0.pdb #417

Open
KFlab opened this issue Apr 14, 2021 · 0 comments
Open

unresolved external symbol on gobject-2.0-0.dll and gobject-2.0-0.pdb #417

KFlab opened this issue Apr 14, 2021 · 0 comments

Comments

@KFlab
Copy link

KFlab commented Apr 14, 2021

I start with
C:\msys64\mingw64\bin\python3 .\build.py build -p x64 --vs-ver 16 --python-ver 3.8 --python-dir C:\msys64\mingw64\bin\ gtk3

failed part:

[1/229] Linking target gobject/gobject-2.0-0.dll
FAILED: gobject/gobject-2.0-0.dll gobject/gobject-2.0-0.pdb
"link"  /MACHINE:x64 /OUT:gobject/gobject-2.0-0.dll gobject/gobject_gobject.rc_gobject.res gobject/gobject-2.0-0.dll.p/meson-generated_.._glib-enumtypes.c.obj gobject/gobject-2.0-0.dll.p/gatomicarray.c.obj gobject/gobject-2.0-0.dll.p/gbinding.c.obj gobject/gobject-2.0-0.dll.p/gboxed.c.obj gobject/gobject-2.0-0.dll.p/gclosure.c.obj gobject/gobject-2.0-0.dll.p/genums.c.obj gobject/gobject-2.0-0.dll.p/gmarshal.c.obj gobject/gobject-2.0-0.dll.p/gobject.c.obj gobject/gobject-2.0-0.dll.p/gparam.c.obj gobject/gobject-2.0-0.dll.p/gparamspecs.c.obj gobject/gobject-2.0-0.dll.p/gsignal.c.obj gobject/gobject-2.0-0.dll.p/gsourceclosure.c.obj gobject/gobject-2.0-0.dll.p/gtype.c.obj gobject/gobject-2.0-0.dll.p/gtypemodule.c.obj gobject/gobject-2.0-0.dll.p/gtypeplugin.c.obj gobject/gobject-2.0-0.dll.p/gvalue.c.obj gobject/gobject-2.0-0.dll.p/gvaluearray.c.obj gobject/gobject-2.0-0.dll.p/gvaluetransform.c.obj gobject/gobject-2.0-0.dll.p/gvaluetypes.c.obj "/nologo" "/release" "/nologo" "/DEBUG" "/PDB:gobject\gobject-2.0-0.pdb" "/DLL" "/IMPLIB:gobject\gobject-2.0.lib" "glib\glib-2.0.lib" "C:/msys64/mingw64/bin/../lib/../lib/libffi.a" "intl.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib"
  正在创建库 gobject\gobject-2.0.lib 和对象 gobject\gobject-2.0.exp
gclosure.c.obj : error LNK2019: unresolved external symbol __imp_ffi_prep_cif,函数 g_cclosure_marshal_generic 中引用了该符号
gclosure.c.obj : error LNK2019: 无法解析的外部符号 __imp_ffi_call,函数 g_cclosure_marshal_generic 中引用了该符号
gclosure.c.obj : error LNK2019: 无法解析的外部符号 __imp_ffi_type_void,函数 g_cclosure_marshal_generic 中引用了该符号
gclosure.c.obj : error LNK2019: 无法解析的外部符号 __imp_ffi_type_uint32,函数 g_cclosure_marshal_generic_va 中引用了该符号
gclosure.c.obj : error LNK2019: 无法解析的外部符号 __imp_ffi_type_sint32,函数 g_cclosure_marshal_generic_va 中引用了该符号
gclosure.c.obj : error LNK2019: 无法解析的外部符号 __imp_ffi_type_uint64,函数 g_cclosure_marshal_generic_va 中引用了该符号
gclosure.c.obj : error LNK2019: 无法解析的外部符号 __imp_ffi_type_sint64,函数 g_cclosure_marshal_generic_va 中引用了该符号
gclosure.c.obj : error LNK2019: 无法解析的外部符号 __imp_ffi_type_float,函数 g_cclosure_marshal_generic_va 中引用了该符号
gclosure.c.obj : error LNK2019: 无法解析的外部符号 __imp_ffi_type_double,函数 g_cclosure_marshal_generic_va 中引用了该符号
gclosure.c.obj : error LNK2019: 无法解析的外部符号 __imp_ffi_type_pointer,函数 g_cclosure_marshal_generic 中引用了该符号
gobject\gobject-2.0-0.dll : fatal error LNK1120: 10 个无法解析的外部命令
[8/229] Linking target glib/tests/error.exe
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "C:\Users\kingf\Downloads\gvsbuild-master\gvsbuild\utils\builder.py", line 492, in build
if self.__build_one(p):
File "C:\Users\kingf\Downloads\gvsbuild-master\gvsbuild\utils\builder.py", line 618, in __build_one
skip_deps = proj.build()
File "C:\Users\kingf\Downloads\gvsbuild-master\gvsbuild\projects.py", line 490, in build
Meson.build(self, meson_params='-Dinternal_pcre=true')
File "C:\Users\kingf\Downloads\gvsbuild-master\gvsbuild\utils\base_builders.py", line 76, in build
self.builder.exec_ninja(params='install', working_dir=ninja_build)
File "C:\Users\kingf\Downloads\gvsbuild-master\gvsbuild\utils\builder.py", line 902, in exec_ninja
self.__execute(self.__sub_vars(cmd), working_dir=working_dir, add_path=add_path, env=self.vs_env)
File "C:\Users\kingf\Downloads\gvsbuild-master\gvsbuild\utils\builder.py", line 942, in __execute
subprocess.check_call(args, cwd=working_dir, env=env, shell=True)
File "C:\msys64\mingw64\lib\python3.8\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'ninja install' returned non-zero exit status 1.
Error: glib build failed

libffi already finish:

Building project libffi (git/meson-1.14)
[0/1] Installing files.
Installing src\ffi-7.dll to C:\gtk-build\gtk\x64\release\bin
Installing src\ffi.lib to C:\gtk-build\gtk\x64\release\lib
Installing src\ffi-7.pdb to C:\gtk-build\gtk\x64\release\bin
Installing C:\gtk-build\build\x64\release\libffi\man/ffi.3 to C:\gtk-build\gtk\x64\release\share/man\man3
Installing C:\gtk-build\build\x64\release\libffi\man/ffi_call.3 to C:\gtk-build\gtk\x64\release\share/man\man3
Installing C:\gtk-build\build\x64\release\libffi\man/ffi_prep_cif.3 to C:\gtk-build\gtk\x64\release\share/man\man3
Installing C:\gtk-build\build\x64\release\libffi\man/ffi_prep_cif_var.3 to C:\gtk-build\gtk\x64\release\share/man\man3
Installing C:\gtk-build\build\x64\release\libffi\_gvsbuild-meson\libffi.pc to C:\gtk-build\gtk\x64\release\lib/pkgconfig
Installing C:\gtk-build\build\x64\release\libffi\_gvsbuild-meson\include\ffi-x86_64.h to C:\gtk-build\gtk\x64\release\include
Installing C:\gtk-build\build\x64\release\libffi\_gvsbuild-meson\include\ffitarget-x86_64.h to C:\gtk-build\gtk\x64\release\include
Installing C:\gtk-build\build\x64\release\libffi\_gvsbuild-meson\include\ffitarget.h to C:\gtk-build\gtk\x64\release\include
Installing C:\gtk-build\build\x64\release\libffi\_gvsbuild-meson\include\ffi.h to C:\gtk-build\gtk\x64\release\include

and my msys2 libffi

-> pacman -Ss libffi
mingw32/mingw-w64-i686-libffi 3.3-4 [已安装: 3.3-3]
    A portable, high level programming interface to various calling conventions (mingw-w64)
mingw64/mingw-w64-x86_64-libffi 3.3-4 [已安装: 3.3-1]
    A portable, high level programming interface to various calling conventions (mingw-w64)
msys/libffi 3.3-1 (libraries) [已安装]
    Portable, high level programming interface to various calling conventions
msys/libffi-devel 3.3-1 (development)
    Libffi headers and libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant