<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
the pthread symbol problem has solved for me. I was using development
version of cm3. Now having checked out release_cm3_5_4_0 the symbols
weren't needed, not even it was necessary to add PTHREAD to any array
in cm3.cfg.<br>
<br>
But I now getting another issue:<br>
<br>
Though the build process successfully went though the <br>
<br>
./do-cm3-core.sh buildship<br>
./install-cm3-compiler.sh upgrade<br>
./do-cm3-std.sh buildship<br>
<br>
commands, I can't see m3build binary having been built or installed. <br>
<br>
The documentation couldn't give me any answer on here as well.<br>
<br>
Have you got ideas again ?<br>
<br>
Thank you.<br>
<br>
Ronny<br>
<br>
<br>
<br>
<br>
<br>
<br>
Daniel Alejandro Benavides D. wrote:
<blockquote
cite="mid20070530234204.77087.qmail@web27115.mail.ukl.yahoo.com"
type="cite">
<pre wrap="">Hi,
Looks that you haven't used the SYSTEM_LIBORDER array,
must be "PTHREAD" there in order to really link it.
Maybe this little guide can help. Can have several
omissions, but It works well in (K)ubuntu 6.06 and
6.10
<a class="moz-txt-link-freetext" href="http://es.geocities.com/dabenavidesd/InstallationGuidecm3-Modula-3.html#SECTION00033000000000000000">http://es.geocities.com/dabenavidesd/InstallationGuidecm3-Modula-3.html#SECTION00033000000000000000</a>
--- Ronny Forberger <a class="moz-txt-link-rfc2396E" href="mailto:ronny.forberger@elegosoft.com"><ronny.forberger@elegosoft.com></a>
wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Dear m3-Developers,
I could not successfully build the cm3 compiler when
invoking
</pre>
<blockquote type="cite">
<pre wrap="">./do-cm3-std.sh buildship
</pre>
</blockquote>
<pre wrap="">
from the script directory as described in the
documentation.
The build process stops by the following:
</pre>
<blockquote type="cite">
<pre wrap="">=== package /root/cm3/m3-sys/m3cgcat ===
+++ cm3 -build -DROOT='/root/cm3' && cm3 -ship
</pre>
</blockquote>
<pre wrap="">-DROOT='/root/cm3' +++
</pre>
<blockquote type="cite">
<pre wrap="">--- building in LINUXLIBC6 ---
ignoring ../src/m3overrides
-> linking m3cgcat
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/usr/local/cm3/pkg/m3core/LINUXLIBC6/libm3core.a(ThreadPThread.mo):
</pre>
<blockquote type="cite">
<pre wrap="">In
</pre>
<blockquote type="cite">
<pre wrap="">function `ThreadPThread__InnerLockMutex':
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/root/cm3/m3-libs/m3core/LINUXLIBC6/ThreadPThread.m3:142:
</pre>
<blockquote type="cite">
<pre wrap="">undefined
</pre>
<blockquote type="cite">
<pre wrap="">reference to `pthread_cond_wait'
</pre>
</blockquote>
<pre wrap="">[ some similar lines removed ]
</pre>
<blockquote type="cite">
<pre wrap="">
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/usr/local/cm3/pkg/m3core/LINUXLIBC6/libm3core.a(ThreadPThread.mo):
</pre>
<blockquote type="cite">
<pre wrap="">In
</pre>
<blockquote type="cite">
<pre wrap="">function `RTHooks__PushEFrame':
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/root/cm3/m3-libs/m3core/LINUXLIBC6/ThreadPThread.m3:1429:
</pre>
<blockquote type="cite">
<pre wrap="">undefined
</pre>
<blockquote type="cite">
<pre wrap="">reference to `pthread_getspecific'
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/root/cm3/m3-libs/m3core/LINUXLIBC6/ThreadPThread.m3:1430:
</pre>
<blockquote type="cite">
<pre wrap="">undefined
</pre>
<blockquote type="cite">
<pre wrap="">reference to `pthread_setspecific'
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/usr/local/cm3/pkg/m3core/LINUXLIBC6/libm3core.a(ThreadPThread.mo):
</pre>
<blockquote type="cite">
<pre wrap="">In
</pre>
<blockquote type="cite">
<pre wrap="">function `RTHooks__PopEFrame':
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/root/cm3/m3-libs/m3core/LINUXLIBC6/ThreadPThread.m3:1437:
</pre>
<blockquote type="cite">
<pre wrap="">undefined
</pre>
<blockquote type="cite">
<pre wrap="">reference to `pthread_setspecific'
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/usr/local/cm3/pkg/m3core/LINUXLIBC6/libm3core.a(ThreadPThread.mo):
</pre>
<blockquote type="cite">
<pre wrap="">In
</pre>
<blockquote type="cite">
<pre wrap="">function `ThreadPThread__InitHandlers':
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/root/cm3/m3-libs/m3core/LINUXLIBC6/ThreadPThread.m3:1442:
</pre>
<blockquote type="cite">
<pre wrap="">undefined
</pre>
<blockquote type="cite">
<pre wrap="">reference to `pthread_key_create'
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/root/cm3/m3-libs/m3core/LINUXLIBC6/ThreadPThread.m3:1443:
</pre>
<blockquote type="cite">
<pre wrap="">undefined
</pre>
<blockquote type="cite">
<pre wrap="">reference to `pthread_setspecific'
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libc.a(vfork.o):
</pre>
<blockquote type="cite">
<pre wrap="">In
</pre>
<blockquote type="cite">
<pre wrap="">function `vfork':
(.text+0x1): undefined reference to
</pre>
</blockquote>
<pre wrap="">`pthread_create'
</pre>
<blockquote type="cite">
<pre wrap="">collect2: ld returned 1 exit status
Fatal Error: package build failed
*** execution of failed ***
</pre>
</blockquote>
<pre wrap="">
Looks like gcc cannot link against the pthread-lib.
I have already added
</pre>
<blockquote type="cite">
<pre wrap="">"PTHREAD" : [ "-L/usr/lib", "-lpthread" ]
</pre>
</blockquote>
<pre wrap="">to the SYSTEM_LIBS array in cm3.cfg.
This is a Debian 4.0 'etch' system (x86) where
libpthread.a resides in
/usr/lib.
I can build trivial C programs like gcc foo.c -L
/usr/lib -lpthread
arccordingly which become linked against
libpthread.a properly.
Do you have any glues?
Best regards,
Ronny
--
Ronny Forberger
Systemadministrator
elego Software Solutions GmbH
ronny.forberger(at)elegosoft.com
Ohmstraße 9, 10179 Berlin HRB 77719
Tel.: +49 30 23 45 86 96 Amtsgericht
Charlottenburg
Fax: +49 30 23 45 86 95 Sitz der
Gesellschaft: Berlin
<a class="moz-txt-link-freetext" href="http://www.elegosoft.com">http://www.elegosoft.com</a>
Geschäftsführer: Olaf Wagner
Bitte senden Sie Ihre technischen Support-Anfragen
an admins(at)elego.de .
</pre>
</blockquote>
<pre wrap=""><!---->
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
<a class="moz-txt-link-freetext" href="http://es.voice.yahoo.com">http://es.voice.yahoo.com</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Ronny Forberger
Systemadministrator
elego Software Solutions GmbH ronny.forberger(at)elegosoft.com
Ohmstra�e 9, 10179 Berlin HRB 77719
Tel.: +49 30 23 45 86 96 Amtsgericht Charlottenburg
Fax: +49 30 23 45 86 95 Sitz der Gesellschaft: Berlin
<a class="moz-txt-link-freetext" href="http://www.elegosoft.com">http://www.elegosoft.com</a> GeschÀftsfÌhrer: Olaf Wagner
Bitte senden Sie Ihre technischen Support-Anfragen an admins(at)elego.de .
</pre>
</body>
</html>