HTCondor Project List Archives



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-devel] Anyone developing on Mountain Lion?



On Sep 10, 2012, at 2:19 AM, Brian Bockelman <bbockelm@xxxxxxxxxxx> wrote:

> Since I'm in an airplane, I decided to sit down and try to get Condor to compile on my laptop.  I've not quite solved all the kinks, but we're up to the "hundreds of warnings" again on OS X.
> 
> Some of them look quite like bugs.  For example:
> 
> /Users/bbockelm/projects/condor/src/condor_starter.V6.1/../condor_schedd.V6/qmgr_job_updater.h:163:15: warning: 'NullQmgrJobUpdater::updateAttr' hides overloaded virtual functions [-Woverloaded-virtual]
>       virtual bool updateAttr( const char * /*name*/, int  /*value*/, bool  /*updateMaster*/ ) { return true;}
>                    ^
> /Users/bbockelm/projects/condor/src/condor_starter.V6.1/../condor_schedd.V6/qmgr_job_updater.h:78:15: note: hidden overloaded virtual function 'QmgrJobUpdater::updateAttr' declared here
>       virtual bool updateAttr( const char *name, const char *expr, bool updateMaster, bool log=false );
>                    ^
> /Users/bbockelm/projects/condor/src/condor_starter.V6.1/../condor_schedd.V6/qmgr_job_updater.h:81:15: note: hidden overloaded virtual function 'QmgrJobUpdater::updateAttr' declared here
>       virtual bool updateAttr( const char *name, int value, bool updateMaster, bool log=false );
>                    ^
> 
> Others happen for every build target:
> 
> Building CXX object src/defrag/CMakeFiles/condor_defrag.dir/defrag.cpp.o
> clang: warning: argument unused during compilation: '-rdynamic'
> 
> Finally, it appears that internally, there are different options needed for C versus C++.  It detects -sysroot as 
> 
> /Applications/Xcode.app/Contents/Developer
> 
> This works correctly for C++, but I have to manually remove the sysroot option for any C targets (chirp, safefile, data_plugins, curl_plugins).
> 
> Any hints?


export CC=gcc
export CXX=g++

There's a bug in cmake where it picks gcc and c++ as the default compilers. On recent Mac releases, these point to different toolchains (Gnu vs Clang). This will be fixed in the next cmake release (cc and c++ will be the defaults).

So far, I've only built Condor using gnu. I should start building with Clang, as that's obviously the future on Mac. That'll induce me to start tackling all of those warnings.

+--------------------------------+-----------------------------------+
|           Jaime Frey           | I used to be a heavy gambler.     |
|       jfrey@xxxxxxxxxxx        | But now I just make mental bets.  |
|                                | That's how I lost my mind.        |
+--------------------------------+-----------------------------------+