public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Failed executable build for pandoc-2.0.1.1 (i386 arch)
@ 2017-11-10 16:11 Vicente Vera
       [not found] ` <0a2671fe-d45b-4fce-8d1f-898f509ebe34-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Vicente Vera @ 2017-11-10 16:11 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 3412 bytes --]

I tried building pandoc and pandoc-citeproc with a fresh stack
installation (no remnants of previous builds and installs, no added
options or flags) but an error came up near the end.

Last successful installation on the same system was done with snapshot
nightly-2017-07-25 (pandoc-1.19.2.1 and pandoc-citeproc-0.10.5.1).

Some important information:

OS:
Devuan Jessie (debian-based)
Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19) 
i686 GNU/Linux
gcc version 4.9.2 (Debian 4.9.2-10)

stack version:
Version 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e (4861 
commits) i386 hpack-0.17.1

Stackage snapshot:
nightly-2017-11-09 (ghc-8.2.1)

pandoc and pandoc-citeproc versions to install:
pandoc-2.0.1.1 pandoc-citeproc-0.12.1

Shell command:
stack --resolver 'nightly-2017-11-09' install pandoc pandoc-citeproc

Logged error (~/.stack/global-project/.stack-work/logs/pandoc-2.0.1.1.log):
----------------------------------------------------------------------
Preprocessing executable 'pandoc' for pandoc-2.0.1.1..
Building executable 'pandoc' for pandoc-2.0.1.1..
[1 of 2] Compiling Main             ( pandoc.hs, 
.stack-work/dist/i386-linux/Cabal-2.0.0.2/build/pandoc/pandoc-tmp/Main.o )
[2 of 2] Compiling Paths_pandoc     ( 
.stack-work/dist/i386-linux/Cabal-2.0.0.2/build/pandoc/autogen/Paths_pandoc.hs, 
.stack-work/dist/i386-linux/Cabal-2.0.0.2/build/pandoc/pandoc-tmp/Paths_pandoc.o 
)
Linking .stack-work/dist/i386-linux/Cabal-2.0.0.2/build/pandoc/pandoc ...

rts/posix/OSThreads.c:137:0: error:
     error: undefined reference to 'pthread_create'

rts/posix/OSThreads.c:139:0: error:
     error: undefined reference to 'pthread_detach'

rts/posix/OSThreads.c:141:0: error:
     error: undefined reference to 'pthread_setname_np'

rts/posix/OSThreads.c:184:0: error:
     error: undefined reference to 'pthread_key_create'

rts/posix/OSThreads.c:192:0: error:
     error: undefined reference to 'pthread_getspecific'

rts/posix/OSThreads.c:203:0: error:
     error: undefined reference to 'pthread_setspecific'

rts/posix/OSThreads.c:212:0: error:
     error: undefined reference to 'pthread_key_delete'

rts/posix/OSThreads.c:371:0: error:
     error: undefined reference to 'pthread_kill'

includes/rts/OSThreads.h:59:0: error:
     error: undefined reference to 'pthread_mutex_trylock'
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
----------------------------------------------------------------------

This is pure speculation: it seems there's a missing argument for
ghc/gcc? After a brief search the "-pthread" argument came up, and
thought about rebooting the build process with this added to
~/.stack/config.yaml:

ghc-options:
    "*": '-optl-pthread'

Since the build takes a considerable amount of time I haven't tried
anything yet.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0a2671fe-d45b-4fce-8d1f-898f509ebe34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 4240 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Failed executable build for pandoc-2.0.1.1 (i386 arch)
       [not found] ` <0a2671fe-d45b-4fce-8d1f-898f509ebe34-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-11-12  4:48   ` Vicente Vera
       [not found]     ` <4031ccec-f072-4f96-950a-253341c662d6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Vicente Vera @ 2017-11-12  4:48 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 724 bytes --]

The build process finished without errors!

Indeed, adding this line to ~/.stack/config.yaml solved the problem:

ghc-options:
    "*": '-optl-pthread'

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4031ccec-f072-4f96-950a-253341c662d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1180 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Failed executable build for pandoc-2.0.1.1 (i386 arch)
       [not found]     ` <4031ccec-f072-4f96-950a-253341c662d6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2017-11-12 18:28       ` John MacFarlane
  0 siblings, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2017-11-12 18:28 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

I'm curious why this doesn't seem necessary on any of my
linux builds.  (They're all debian-based arm86 -- but why
would that matter?  Any ideas?)

+++ Vicente Vera [Nov 11 17 20:48 ]:
>   The build process finished without errors!
>   Indeed, adding this line to ~/.stack/config.yaml solved the problem:
>   ghc-options:
>       "*": '-optl-pthread'
>
>   --
>   You received this message because you are subscribed to the Google
>   Groups "pandoc-discuss" group.
>   To unsubscribe from this group and stop receiving emails from it, send
>   an email to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/4031ccec-f072-4f96-
>   950a-253341c662d6%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   3. https://groups.google.com/d/msgid/pandoc-discuss/4031ccec-f072-4f96-950a-253341c662d6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   4. https://groups.google.com/d/optout


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-12 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-10 16:11 Failed executable build for pandoc-2.0.1.1 (i386 arch) Vicente Vera
     [not found] ` <0a2671fe-d45b-4fce-8d1f-898f509ebe34-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-12  4:48   ` Vicente Vera
     [not found]     ` <4031ccec-f072-4f96-950a-253341c662d6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-12 18:28       ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).