Project

General

Profile

Actions

Bug #9586

closed

Unable to build Ruby 2.1.1 on NetBSD

Added by djberg96 (Daniel Berger) over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
[ruby-core:61200]

Description

NetBSD 6.1.3
gcc 4.5.3
Ruby 2.1.1

I got through the configure phase fine, but during make I got this failure:

compiling thread.c
In file included from thread.c:230:0:
thread_pthread.c: In function 'thread_timer':
thread_pthread.c:1440:5: warning: passing argument 1 of 'pthread_setname_np' from incompatible pointer type
/usr/include/pthread.h:133:5: note: expected 'pthread_t' but argument is of type 'const char *'
thread_pthread.c:1440:5: error: too few arguments to function 'pthread_setname_np'
/usr/include/pthread.h:133:5: note: declared here
*** Error code 1

Stop.

Files

config.log (784 KB) config.log djberg96 (Daniel Berger), 04/23/2014 09:51 PM

Updated by normalperson (Eric Wong) over 8 years ago

wrote:

compiling thread.c
In file included from thread.c:230:0:
thread_pthread.c: In function 'thread_timer':
thread_pthread.c:1440:5: warning: passing argument 1 of 'pthread_setname_np' from incompatible pointer type
/usr/include/pthread.h:133:5: note: expected 'pthread_t' but argument is of type 'const char *'
thread_pthread.c:1440:5: error: too few arguments to function 'pthread_setname_np'
/usr/include/pthread.h:133:5: note: declared here

Can you try trunk? r45204, r45202, r45190, r44925 may all help.

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Description updated (diff)
  • Status changed from Open to Feedback

Updated by djberg96 (Daniel Berger) over 8 years ago

As of r45264 I'm still getting the same error.

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

Could you show config.log file?

Updated by djberg96 (Daniel Berger) about 8 years ago

Attached is the config.log for 2.1.1.

Updated by naruse (Yui NARUSE) about 8 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

Applied in changeset r45713.


  • configure.in: correct pthread_setname_np's prototype on NetBSD.
    [Bug #9586]

Updated by naruse (Yui NARUSE) about 8 years ago

  • Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: DONTNEED, 2.1: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) about 8 years ago

  • Backport changed from 1.9.3: DONTNEED, 2.0.0: DONTNEED, 2.1: REQUIRED to 1.9.3: DONTNEED, 2.0.0: DONTNEED, 2.1: DONE

r45190, r45202, r45204 and r45713 were backported into ruby_2_1 at r45867.

Actions

Also available in: Atom PDF