|Message: Re: -lgcov doesn't work with clang on Mac OS X Lion||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
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.
------------------ 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