Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Nov 2011 09:34:50 GMT
From:      Stephen Hurd <shurd@sasktel.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   threads/162221: 9.0-RC1 new problem building spidermonkey
Message-ID:  <201111010934.pA19Yotj046507@red.freebsd.org>
Resent-Message-ID: <201111010940.pA19eAaT055855@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         162221
>Category:       threads
>Synopsis:       9.0-RC1 new problem building spidermonkey
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-threads
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 01 09:40:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Hurd
>Release:        9.0-RC1
>Organization:
>Environment:
FreeBSD cracked.hurd.local 9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:30:38 UTC 2011     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
After upgrading from 8.2-RELEASEp3 to 9.0-RC1 using freebsd-update, it is no longer possible to manually build the spidermonkey JS engine with the included gcc.

The error is:
jsnativestack.o: In function `js::GetNativeStackBaseImpl()':
jsnativestack.cpp:(.text+0x35): undefined reference to `pthread_attr_get_np'
/usr/bin/ld: libmozjs185.so: hidden symbol `pthread_attr_get_np' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output

>How-To-Repeat:
- Install devel/gmake and devel/nspr4 on a 9.0-RC1 system.
- Download http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
- Change to the js-1.8.5/js/src directory
- Run configure with no arguments
- Run gmake

>Fix:
Completely unknown.  I worked around it by setting # pragma GCC visibility push(default) before the pthread.h include and popping it after the pthread_np.h include.

It doesn't appear that this is a correct fix though and the www/firefox etc ports don't seem to have ran into it.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111010934.pA19Yotj046507>