This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Here is the error from compiler: /usr/bin/make -f nbproject/Makefile-Default.mk SUBPROJECTS= .build-conf /usr/bin/make -f nbproject/Makefile-Default.mk dist/Default/GNU-MacOSX/profilingdemo_1 mkdir -p build/Default/GNU-MacOSX rm -f build/Default/GNU-MacOSX/mutex.o.d gcc -c -g -MMD -MP -MF build/Default/GNU-MacOSX/mutex.o.d -o build/Default/GNU-MacOSX/mutex.o mutex.c mutex.c:83: error: syntax error before ‘start’ mutex.c:83: warning: data definition has no type or storage class make[2]: *** [build/Default/GNU-MacOSX/mutex.o] Error 1 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 162ms) It seems that Mac OS implementation of pthreads does not support barriers and spinlocks (see http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/pthread.3.html ). The code using these primitives should be made conditional.
Same trouble on Windows with Cygwin.
Should have working ProfilingDemo for porting prof_agent to Mac and Windows.
Fixed in http://hg.netbeans.org/cnd-main/rev/5a5c1fb18173
Integrated into 'main-golden', will be available in build *200910100201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5a5c1fb18173 User: Alexey Vladykin <alexey_vladykin@netbeans.org> Log: #165036 Profiling Demo does not build on Mac OS