[Insight-users] LBFGSOptimizer bug (?)

Tim Allman dr.tim.allman at gmail.com
Fri Mar 8 11:56:15 EST 2013


Ok, so it is a link. the 'file' command works a bit differently than I 
am used to. On my Ubuntu system it tells you it's a link.

Tim

celia:tim-[ITK-4.3]: ls -l `which g++`
lrwxr-xr-x  1 root  wheel  12 21 Nov 15:41 /usr/bin/g++ -> llvm-g++-4.2
celia:tim-[ITK-4.3]:


On 13-03-08 11:48 AM, Bradley Lowekamp wrote:
> Tim,
>
> You need to run "version" with two dashes such as here:
>
> $ gcc --version
> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> Also notice how "llvm" is included in your output, this actually indicated that is it's not a genuine GNU gcc.
>
> Brad
>
> On Mar 8, 2013, at 11:45 AM, Tim Allman <dr.tim.allman at gmail.com> wrote:
>
>> Interesting. I have a lot more experience on other Unix-like systems than Apple's. However, the information below suggests that the g++ I'm using is the real thing, not a link. To be honset, I don't know if it came as part of Xcode or was there at installation as with most Unices.
>>
>> Tim
>>
>> celia:tim-[ITK-4.3]: which g++
>> /usr/bin/g++
>> celia:tim-[ITK-4.3]: gcc -version
>> i686-apple-darwin11-llvm-gcc-4.2: no input files
>> celia:tim-[ITK-4.3]: file `which gcc`
>> /usr/bin/gcc: Mach-O universal binary with 2 architectures
>> /usr/bin/gcc (for architecture i386):    Mach-O executable i386
>> /usr/bin/gcc (for architecture x86_64):    Mach-O 64-bit executable x86_64
>> celia:tim-[ITK-4.3]:
>>
>>
>> On 13-03-08 10:52 AM, Sean McBride wrote:
>>> On Fri, 8 Mar 2013 10:44:20 -0500, Tim Allman said:
>>>
>>>> I have been using cmake to generate unix makefiles with g++ as the
>>>> compiler. When I switch to clang it fails.
>>> That's odd, my dashboard RogueResearch7 uses 'unix makefiles' and clang and it's been building ok for months.
>>>
>>> Where did you get g++ and clang from?  Did you build/install them yourself, or are you talking about the ones that come with Xcode?  Note that Xcode doesn't actually include gcc anymore, but provides 'g++' (and others) as a symlink because so much software expects it to exist.
>>>
>>> Cheers,
>>>
>> -- 
>> Tim Allman, Ph.D.
>> 35 Margaret Street,
>> Guelph Ontario N1E 5R6
>> Canada
>>
>> <dr_tim_allman.vcf>

-- 
Tim Allman, Ph.D.
35 Margaret Street,
Guelph Ontario N1E 5R6
Canada

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dr_tim_allman.vcf
Type: text/x-vcard
Size: 159 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130308/5b34a103/attachment.vcf>


More information about the Insight-users mailing list