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.

Bug 165036 - Profiling Demo does not build on Mac OS
Summary: Profiling Demo does not build on Mac OS
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All Mac OS X
: P3 blocker (vote)
Assignee: Alexey Vladykin
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2009-05-13 11:10 UTC by Alexey Vladykin
Modified: 2009-10-12 11:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Vladykin 2009-05-13 11:10:16 UTC
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.
Comment 1 Alexey Vladykin 2009-10-08 14:16:42 UTC
Same trouble on Windows with Cygwin.
Comment 2 Alexey Vladykin 2009-10-09 11:49:49 UTC
Should have working ProfilingDemo for porting prof_agent to Mac and Windows.
Comment 3 Alexey Vladykin 2009-10-09 13:31:25 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/5a5c1fb18173
Comment 4 Quality Engineering 2009-10-12 11:44:48 UTC
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