[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] pyqtdeploy-build: Errors building for macx
From:       Patrick Stinson <patrickkidd () gmail ! com>
Date:       2018-01-11 0:02:11
Message-ID: 0E59564A-07B4-49FA-95A4-6ADA679BC8FB () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Still seeing the unresolved ffi symbols for macOS in changeset 1045. Do I need to \
rebuild the macos-64 sysroot after these changes?


> On Jan 10, 2018, at 8:39 AM, Phil Thompson <phil@riverbankcomputing.com> wrote:
> 
> These should both be fixed - tested on macOS and Linux but not Windows.
> 
> Phil
> 
> > On 10 Jan 2018, at 1:12 am, Patrick Stinson <patrickkidd@gmail.com> wrote:
> > 
> > Looks like darwin64.S is not included in the Xcode target. If I add it it \
> > resolves the symbols, but then leads to even more problems: 
> > ld: warning: could not create compact unwind for _ffi_call_unix64: does not use \
> > RBP or RSP based frame duplicate symbol _ffi_closure_free in:
> > /Users/patrick/dev/pkdiagram/build/osx/Family Diagram.build/Debug/Family \
> > Diagram.build/Objects-normal/x86_64/closures.o \
> > /Users/patrick/dev/pkdiagram/build/osx/Family Diagram.build/Debug/Family \
> > Diagram.build/Objects-normal/x86_64/malloc_closure.o duplicate symbol \
> > _ffi_closure_alloc in: /Users/patrick/dev/pkdiagram/build/osx/Family \
> > Diagram.build/Debug/Family Diagram.build/Objects-normal/x86_64/closures.o \
> > /Users/patrick/dev/pkdiagram/build/osx/Family Diagram.build/Debug/Family \
> >                 Diagram.build/Objects-normal/x86_64/malloc_closure.o
> > ld: 2 duplicate symbols for architecture x86_64
> > 
> > It looks like the setup for including python module sources (for ctypes I think?) \
> > are kind of a mess? 
> > -P
> > 
> > > On Jan 9, 2018, at 1:40 PM, Patrick Stinson <patrickkidd@gmail.com> wrote:
> > > 
> > > There are compile errors for a project which includes xml.parsers.expat. For \
> > > some reason xmlparse.c does not recognize that <stdlib.h> should include \
> > > HAVE_ARC4RANDOM_BUF for macOS, resulting in the following compile error: 
> > > 
> > > #if !defined(HAVE_GETRANDOM) && !defined(HAVE_SYSCALL_GETRANDOM) \
> > > && !defined(HAVE_ARC4RANDOM_BUF) && !defined(HAVE_ARC4RANDOM) \
> > > && !defined(XML_DEV_URANDOM) \
> > > && !defined(_WIN32) \
> > > && !defined(XML_POOR_ENTROPY)
> > > # error  \
> > > You do not have support for any sources of high quality entropy \
> > > enabled.  For end user security, that is probably not what you want. \
> > > \
> > > Your options include: \
> > > * Linux + glibc >=2.25 (getrandom): HAVE_GETRANDOM, \
> > > * Linux + glibc <2.25 (syscall SYS_getrandom): HAVE_SYSCALL_GETRANDOM, \
> > > * BSD / macOS >=10.7 (arc4random_buf): HAVE_ARC4RANDOM_BUF, \
> > > * BSD / macOS <10.7 (arc4random): HAVE_ARC4RANDOM, \
> > > * libbsd (arc4random_buf): HAVE_ARC4RANDOM_BUF + HAVE_LIBBSD, \
> > > * libbsd (arc4random): HAVE_ARC4RANDOM + HAVE_LIBBSD, \
> > > * Linux / BSD / macOS (/dev/urandom): XML_DEV_URANDOM \
> > > * Windows (RtlGenRandom): _WIN32. \
> > > \
> > > If insist on not using any of these, bypass this error by defining \
> > > XML_POOR_ENTROPY; you have been warned. \
> > > \
> > > If you have reasons to patch this detection code away or need changes \
> > > to the build system, please open a bug.  Thank you!
> > > #endif
> > > 
> > > I have attached a bare-bones skeleton which imports qt and xml.parsers.expat.
> > > 
> > > If I add #define HAVE_ARC4RANDOM_BUF (which should be available via stdlib.h on \
> > > macos) then the file compiles but I get the following (unrelated) linker \
> > > errors: 
> > > Undefined symbols for architecture x86_64:
> > > "_ffi_call_unix64", referenced from:
> > > _ffi_call in x86-ffi64.o
> > > "_ffi_closure_unix64", referenced from:
> > > _ffi_prep_closure in x86-ffi64.o
> > > (maybe you meant: _ffi_closure_unix64_inner)
> > > ld: symbol(s) not found for architecture x86_64
> > > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> > > 
> > > 
> > > I have had little success figuring out what the story is on those ffi symbols.
> > > 
> > > <pyqt-skel.zip>
> > 
> > _______________________________________________
> > PyQt mailing list    PyQt@riverbankcomputing.com
> > https://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 


["smime.p7s" (smime.p7s)]

0	*H
 010	+0	*H
 e0a0I 0
	*H
0M10UPatrick Stinson10	UUS1$0"	*H
	patrickkidd@gmail.com0
170413045030Z
180413045030Z0M10UPatrick Stinson10	UUS1$0"	*H
	patrickkidd@gmail.com0"0
	*H
0
Dzxdh=FC4i4${P0pRrveL*[t.Sg)<SS`n@`h5L={8rH4i3=/EZ|]l<V
 t:W,ʌrJ \
G1Β%^vݼ͓ëV)~}rՍ*p+bQ!b\?V;T68n2z:jP1\tA~BsL0J0U0U%0
 +0 U0patrickkidd@gmail.com0
	*H
~
W)sS͜Iqtb<&fMDb.^\<R:~w4ίe8&ؒlM91m9ιKn}Nd'e]_vC\xE4D,K>
 ~oH,sq6p4p"dYD(Ck_GB)| 86yDv t \
̵eR0rLw ^+JclMD \
s100R0M10UPatrick Stinson10	UUS1$0"	*H \
	patrickkidd@gmail.com0	+ ]0	*H 	1	*H
0	*H
	1
180111000211Z0#	*H
	17%l30AmeE`0
	*H
'g oם*+!8f^e> >lD	hWmWH
!\XZ~p,,D:cs鸧]	6t1r{)Xz1q倆[:R^q4uKr \
ڸzAJhG^^5kZu=at(̆rNuXmVPcgw@0̒$'Z%%W|<ρJFNqMB|2g#@JpC)



[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic