homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Can't compile when using alt. thread lib when pthread avail.
Type: Stage:
Components: Build Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, loewis, nnorwitz, pierre42
Priority: normal Keywords:

Created on 2002年04月11日 12:48 by pierre42, last changed 2022年04月10日 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
compile.log pierre42, 2002年04月13日 02:26
Messages (10)
msg10257 - (view) Author: Pierre (pierre42) Date: 2002年04月11日 12:48
Hi,
I try to compile Python-2.2.1 on my linux slackware 8
with gcc-3.0.4
there was no problem with the configure, but for the
make i got this :
# gmake
gcc -c -DNDEBUG -g -O3 -march=i686 -Wall
-Wstrict-prototypes -I. -I./Include -DHAVE_CONFIG_H -o
Python/thread.o Python/thread.c
In file included from Python/thread.c:109:
Python/thread_pth.h: In function
`PyThread_start_new_thread':
Python/thread_pth.h:59: warning: return makes integer
from pointer without a cast
In file included from Python/thread.c:113:
Python/thread_pthread.h:113:1: warning: "CHECK_STATUS"
redefined
Python/thread_pth.h:31:1: warning: this is the location
of the previous definition
In file included from Python/thread.c:113:
Python/thread_pthread.h: At top level:
Python/thread_pthread.h:139: redefinition of
`PyThread__init_thread'
Python/thread_pth.h:38: `PyThread__init_thread'
previously defined here
Python/thread_pthread.h:154: redefinition of
`PyThread_start_new_thread'
Python/thread_pth.h:48: `PyThread_start_new_thread'
previously defined here
Python/thread_pthread.h:235: redefinition of
`PyThread_get_thread_ident'
Python/thread_pth.h:63: `PyThread_get_thread_ident'
previously defined here
Python/thread_pthread.h:250: redefinition of
`do_PyThread_exit_thread'
Python/thread_pth.h:73: `do_PyThread_exit_thread'
previously defined here
Python/thread_pthread.h:262: redefinition of
`PyThread_exit_thread'
Python/thread_pth.h:84: `PyThread_exit_thread'
previously defined here
Python/thread_pthread.h:268: redefinition of
`PyThread__exit_thread'
Python/thread_pth.h:89: `PyThread__exit_thread'
previously defined here
Python/thread_pthread.h:302: redefinition of
`PyThread_allocate_lock'
Python/thread_pth.h:119: `PyThread_allocate_lock'
previously defined here
Python/thread_pthread.h:335: redefinition of
`PyThread_free_lock'
Python/thread_pth.h:145: `PyThread_free_lock'
previously defined here
Python/thread_pthread.h:352: redefinition of
`PyThread_acquire_lock'
Python/thread_pth.h:154: `PyThread_acquire_lock'
previously defined here
Python/thread_pthread.h:390: redefinition of
`PyThread_release_lock'
Python/thread_pth.h:191: `PyThread_release_lock'
previously defined here
Python/thread_pthread.h:413: redefinition of `struct
semaphore'
Python/thread_pthread.h:421: redefinition of
`PyThread_allocate_sema'
Python/thread_pth.h:221: `PyThread_allocate_sema'
previously defined here
Python/thread_pthread.h:449: redefinition of
`PyThread_free_sema'
Python/thread_pth.h:246: `PyThread_free_sema'
previously defined here
Python/thread_pthread.h:463: redefinition of
`PyThread_down_sema'
Python/thread_pth.h:254: `PyThread_down_sema'
previously defined here
Python/thread_pthread.h:493: redefinition of
`PyThread_up_sema'
Python/thread_pth.h:283: `PyThread_up_sema' previously
defined here
gmake: *** [Python/thread.o] Error 1
It would be great if you could help me with this !
Best regards,
Pierre.
msg10258 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002年04月11日 21:59
Logged In: YES 
user_id=21627
Can you please add the options "-dD --save-temps
--trace-includes" to the gcc invocation, and attach both the
compiler (error) output and thread.i to this report?
msg10259 - (view) Author: Pierre (pierre42) Date: 2002年04月13日 02:26
Logged In: YES 
user_id=512388
Ok i have done :
root@pierre:/tmp/Python-2.2.1# gcc -c -DNDEBUG -g -O3
-march=i686 -Wall -Wstrict-prototypes -dD --save-temps
--trace-includes -I. -I./Include -DHAVE_CONFIG_H -o
Python/thread.o Python/thread.c >& compile.log
I attach you the file compile.log and the file thread.i
msg10260 - (view) Author: Pierre (pierre42) Date: 2002年04月13日 02:29
Logged In: YES 
user_id=512388
In fact i can't attach the file thread.i, it is too big :(
msg10261 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002年04月13日 08:31
Logged In: YES 
user_id=21627
I think I can see the problem now. For some reason, Python
tries to use both GNU pth and pthreads for threading; this
cannot work.
How did you invoke configure?
msg10262 - (view) Author: Pierre (pierre42) Date: 2002年04月13日 13:18
Logged In: YES 
user_id=512388
I did ./configure --with-threads --with-pth
I thought it means "enable thread support, and for this use
gnu pth". 
msg10263 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002年04月13日 23:04
Logged In: YES 
user_id=21627
You are right; this is the intention. It turns out that a 
configuration of an alternate thread library is not 
supported if pthreads are also available on the system. 
 
I'll try to come up with a work-around, but this is not 
high-priority, and may take a while. 
msg10264 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002年11月02日 02:45
Logged In: YES 
user_id=33168
Is this still a problem w/2.2.2?
msg10265 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2003年05月17日 01:46
Logged In: YES 
user_id=357491
Anyone care to answer Neal's question? =) Might be nice to see if this can 
be solved before 2.2.3 goes out the door.
msg10266 - (view) Author: Pierre (pierre42) Date: 2003年06月03日 07:09
Logged In: YES 
user_id=512388
There is no more problem w/2.3b1
History
Date User Action Args
2022年04月10日 16:05:12adminsetgithub: 36412
2002年04月11日 12:48:24pierre42create

AltStyle によって変換されたページ (->オリジナル) /