On Wednesday, June 5, 2013 5:43:40 PM UTC-5, Andrei Olsen wrote:
> On Thursday, June 6, 2013 12:32:41 AM UTC+2, Ben Fritz wrote:
> > On Wednesday, June 5, 2013 5:27:27 PM UTC-5, Andrei Olsen wrote:
> > > On Wednesday, June 5, 2013 11:47:43 PM UTC+2, Ben Fritz wrote:
> > > > gcc: unrecognized option `-pthread'
> > > >
> > > > It looks like configure checks that -pthread is supported, gets pretty
> > > > convincing evidence that it is NOT supported (unrecognized option!) and
> > > > then tries to use it anyway!
> > >
> > >
> > > Which GCC version are you using?
> >
> > Hard to say, really. "gcc --version" just says "2.95.2". Is that enough? I
> > can compile Vim fine WITHOUT python support, and python itself seemed to
> > compile fine.
>
> Right... you need to use -pthreads (note the s) and not -pthread
Thanks for that, it allowed me to get that check working for my system
specifically.
But the actual fix would check both -pthread AND -pthreads and would NOT decide
to use it anyway if it failed.
And, it still gets a compile error when checking for "sane" libraries unless I
remove that check.
I attached the diff I used to get it working, but this isn't a good fix because
it removes some checks that are probably needed.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
*** ../orig/vim-7-3-944/src/auto/configure Mon May 13 11:26:52 2013
--- src/auto/configure Thu Jun 6 12:35:17 2013
***************
*** 5417,5427 ****
PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
! $as_echo_n "checking if -pthread should be used... " >&6; }
threadsafe_flag=
thread_lib=
if test "`(uname) 2>/dev/null`" != Darwin; then
! test "$GCC" = yes && threadsafe_flag="-pthread"
if test "`(uname) 2>/dev/null`" = FreeBSD; then
threadsafe_flag="-D_THREAD_SAFE"
thread_lib="-pthread"
--- 5417,5427 ----
PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
! $as_echo_n "checking if -pthreads should be used... " >&6; }
threadsafe_flag=
thread_lib=
if test "`(uname) 2>/dev/null`" != Darwin; then
! test "$GCC" = yes && threadsafe_flag="-pthreads"
if test "`(uname) 2>/dev/null`" = FreeBSD; then
threadsafe_flag="-D_THREAD_SAFE"
thread_lib="-pthread"
***************
*** 5476,5482 ****
return 0;
}
_ACEOF
! if ac_fn_c_try_link "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }; python_ok=yes
else
--- 5476,5483 ----
return 0;
}
_ACEOF
! #ac_fn_c_try_link "$LINENO"; then :
! if [ 1 ]; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }; python_ok=yes
else
***************
*** 5717,5727 ****
PYTHON3_OBJ="objects/if_python3.o"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
! $as_echo_n "checking if -pthread should be used... " >&6; }
threadsafe_flag=
thread_lib=
if test "`(uname) 2>/dev/null`" != Darwin; then
! test "$GCC" = yes && threadsafe_flag="-pthread"
if test "`(uname) 2>/dev/null`" = FreeBSD; then
threadsafe_flag="-D_THREAD_SAFE"
thread_lib="-pthread"
--- 5718,5728 ----
PYTHON3_OBJ="objects/if_python3.o"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
! $as_echo_n "checking if -pthreads should be used... " >&6; }
threadsafe_flag=
thread_lib=
if test "`(uname) 2>/dev/null`" != Darwin; then
! test "$GCC" = yes && threadsafe_flag="-pthreads"
if test "`(uname) 2>/dev/null`" = FreeBSD; then
threadsafe_flag="-D_THREAD_SAFE"
thread_lib="-pthread"