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

Re: Compiling cmocka in cygwin with clang

On Friday, 7 October 2016 22:08:26 CEST Stephen Groat wrote:
> Currently trying to compile cmocka in cygwin with CC=clang on appveyor (CI
> system), but not having any luck. Wondering if this has been tried/seen
> before if if cmocka has any CI systems I could look at the configuration
> for.
> First error:
> CMakeFiles/cmocka_shared.dir/cmocka.c.o:(.text+0xfb): undefined reference
> to `__emutls_v.cm_error_message'
> Full output at http://pastebin.com/WqA2aVte

cm_error_message is obviously not exported that's why it fails.

 src/cmocka.def | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cmocka.def b/src/cmocka.def
index 43228c4..50f4d2c 100644
--- a/src/cmocka.def
+++ b/src/cmocka.def
@@ -39,6 +39,7 @@ EXPORTS
+    cm_error_message

Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn@xxxxxxxxxxxxxx

Re: Compiling cmocka in cygwin with clangStephen Groat <stephen@xxxxxxxxxx>
Compiling cmocka in cygwin with clangStephen Groat <stephen@xxxxxxxxxx>