adding -pthread on the gcc command line seems to fix it
On Jan 4, 2008 12:56 PM, David Wetzel <[EMAIL PROTECTED]> wrote: > I get this on NetBSD 4.0 i386 > > it seems like GNUstep/objc threads are broken on NetBSD 4.0 > > (gdb) r > Starting program: > /Users/dave/projects/gnustep-testfarm/core/base/Testing/obj/diningPhilosophers > /Users/dave/projects/gnustep-testfarm/core/base/Testing/obj/diningPhilosophers: > Uncaught > exception NSInternalInconsistencyException, reason: Unable to detach thread > (perhaps No such file or > directory) > > Program received signal SIGABRT, Aborted. > 0xbb63022f in kill () from /usr/lib/libc.so.12 > (gdb) bt > #0 0xbb63022f in kill () from /usr/lib/libc.so.12 > #1 0xbb6cc338 in abort () from /usr/lib/libc.so.12 > #2 0xbb96802c in _terminate () at NSException.m:692 > #3 0xbb968267 in _NSFoundationUncaughtExceptionHandler (exception=0x80d24e8) > at > NSException.m:719 > #4 0xbb9689ce in -[NSException raise] (self=0x80d24e8, _cmd=0xbbb91160) at > NSException.m:859 > #5 0xbb968404 in +[NSException raise:format:arguments:] (self=0xbbb90f40, > _cmd=0xbbb91148, > name=0xbbb90cd8, format=0xbbbbb380, > argList=0xbfbfe0a0 "H$\r\bp???") at NSException.m:762 > #6 0xbb96834f in +[NSException raise:format:] (self=0xbbb90f40, > _cmd=0xbbbbb820, > name=0xbbb90cd8, format=0xbbbbb380) at NSException.m:748 > #7 0xbba0f046 in -[NSThread start] (self=0x805ec88, _cmd=0xbbbbb938) at > NSThread.m:919 > #8 0xbba0e154 in +[NSThread detachNewThreadSelector:toTarget:withObject:] > (self=0xbbbbb7e0, > _cmd=0x804d9b8, aSelector=0x804d9a8, aTarget=0x80796a8, > anArgument=0x8079d08) at NSThread.m:559 > #9 0x080492b9 in gnustep_base_user_main () at diningPhilosophers.m:141 > #10 0xbb9ce089 in main (argc=1, argv=0xbfbfe1f0, env=0xbfbfe1f8) at > NSProcessInfo.m:913 > #11 0x08048bd4 in ___start () > #12 0x08048b37 in _start () > (gdb) > > > [EMAIL PROTECTED]>pkg_info > digest-20070803 Message digest wrapper utility > tcsh-6.15.00 Extended C-shell with many useful features > libtool-base-1.5.24nb5 Generic shared library support script (the script > itself) > gmake-3.81 GNU version of 'make' utility > expat-2.0.1 XML parser library written in C > apr-1.2.12 Apache Portable Runtime > pkg-config-0.22 System for managing library compile/link flags > neon-0.26.3nb1 HTTP and WebDAV client library > apr-util-1.2.10 Apache Portable Runtime utilities > subversion-base-1.4.6nb1 Version control system, base programs and libraries > xmlcatmgr-2.2nb1 XML and SGML catalog manager > libxml2-2.6.30 XML parser library from the GNOME project > perl-5.8.8nb6 Practical Extraction and Report Language > ddclient-3.6.6nb1 Client to update dynamic DNS entries > jpeg-6bnb4 IJG's jpeg compression utilities > tiff-3.8.2nb3 Library and tools for reading and writing TIFF data files > png-1.2.23 Library for manipulating PNG images > libffi-2.0betanb2 Foreign function interface > > [EMAIL PROTECTED]>gcc -v > Using built-in specs. > Target: i386--netbsdelf > Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure > --enable-long-long --disable- > multilib --enable-threads --disable-symvers > --build=i386-unknown-netbsdelf4.99.3 --host=i386- > -netbsdelf --target=i386--netbsdelf > Thread model: posix > gcc version 4.1.2 20061021 prerelease (NetBSD nb3 20061125) > > > ---------------------------------------------------------- > > On NetBSD 3.1 it works. > > [EMAIL PROTECTED]>gcc -v > Using built-in specs. > Configured with: > /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure --enable- > long-long --disable-multilib --enable-threads --disable-symvers > --build=i386-unknown- > netbsdelf2.0. --host=i386--netbsdelf --target=i386--netbsdelf > Thread model: posix > gcc version 3.3.3 (NetBSD nb3 20040520) > > Any ideas? > > Dave > > > > > _______________________________________________ > Gnustep-dev mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/gnustep-dev > _______________________________________________ Gnustep-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnustep-dev
