Message: Re: -lgcov doesn't work with clang on Mac OS X Lion Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: -lgcov doesn't work with clang on Mac OS X Lion 

Forum: Installation and Configuration
Re: Warning -lgcov doesn't work with clang on Mac OS X Lion (Mojca Miklavec)
Date: 08 Dec, 2011
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Mojca,

a couple of considerations: - OSX-Lion is not supported for the 9.4 series of Geant4, you should use 9.5. - Only g++ is supported on Mac and the setup provided (Darwin-g++) is consistent with the use of g++. If you wish to try clang directly (though, no guarantees!), it would be more appropriate if you set a specific setup for it (Darwin-clang.gmk) with its own G4SYSTEM. I think you can in any case safely remove '-lgcov' from those statements, rebuild the libraries and see if that works out for you with Gate.

Cheers, Gabriele

------------------ On Tue, 06 Dec 2011 18:51:54 GMT, Mojca Miklavec wrote:

> Hello,
> I've been scratching my head why Gate didn't want to compile. After
> fixing many other problems it stops with the following error:
> Creating shared library tmp/Gate/libGate.dylib ...
> ld: library not found for -lgcov
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make: *** [tmp/Gate/libGate.dylib] Error 1
> I greped from "gcov", but wasn't able to find it in Gate, until I
> realized that this switch was hidden somewhere deep in Geant4 and is
> still present in 9.5 (I'm using 9.4 since Gate has not been ported to
> 9.5 yet).
> I'm not sure what this switch does in other compilers, but clang doesn't
> seem to be happy about it and I wasn't able to change the compiler in
> Gate (might be a problem in Gate). In any case, I would be very grateful
> if something would be done against this switch. I'm aware that it might
> only be used for the old installation option, but if it doesn't work ...
> I'm not sure at which places it has to be fixed, but at least
> ./config/sys/Darwin-g++.gmk: $(CXX) -dynamiclib -single_module -lgcov
> -undefined dynamic_lookup \
> ./config/sys/Darwin-g++.gmk: $(CXX) -dynamiclib -single_module -lgcov
> -undefined dynamic_lookup \
> Thank you,
>     Medic

 Add Message Add Message
to: "Re: -lgcov doesn't work with clang on Mac OS X Lion"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]