[cfe-dev] Another Linker error with clang++
Devchandra L Meetei
dlmeetei at gmail.com
Thu Sep 15 13:08:28 PDT 2011
Eric
Extract from the clang++ compile without debug info. See the warnings which
follows also.
Is there a better way to improve on this.
/home/deleisha/CodeSpace/build/Release/bin/clang++ -c -o
/home/deleisha/CodeSpace/pegasus/pkg/obj/Pegasus/DynListener/Service/cimlistener.o
-W -Wall -Wno-unused -Wno-unused-parameter -D_GNU_SOURCE -DTHREAD_SAFE
-D_REENTRANT -s -O2 -m64 -fvisibility=hidden -fPIE -fno-enforce-eh-specs
-DPEGASUS_INTERNALONLY -DPEGASUS_CONSUMER_INTERNAL
-DPEGASUS_PLATFORM_LINUX_GENERIC_GNU -DPEGASUS_PLATFORM_LINUX_X86_64_GNU
-DPEGASUS_USE_SYSLOGS -DPEGASUS_ARCH_LIB=\"lib64\"
-DPEGASUS_USE_SQLITE_REPOSITORY -DPEGASUS_ENABLE_CQL
-DPEGASUS_DEFAULT_ENABLE_OOP -DPEGASUS_DISABLE_PROV_USERCTXT
-DPEGASUS_DISABLE_EXECQUERY -DPEGASUS_ENABLE_AUDIT_LOGGER
-DPEGASUS_ENABLE_IPV6 -DPEGASUS_ENABLE_INDICATION_COUNT
-DPEGASUS_ENABLE_INTEROP_PROVIDER -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
-DPEGASUS_USE_DEPRECATED_INTERFACES -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
-DPEGASUS_DEST_LIB_DIR=\"lib\" -DPEGASUS_ENABLE_PROTOCOL_WSMAN
-DPEGASUS_EXTRA_PROVIDER_LIB_DIR=\"\"
-DPLATFORM_COMPONENT_NAME=\"cimlistener\"
-I/home/deleisha/CodeSpace/pegasus/src cimlistener.cpp
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-fno-enforce-eh-specs'
g++ without -g
-----------------
real 6m45.524s
user 5m38.231s
sys 0m48.052s
8.4M pkg/bin/
12M pkg/lib/
clang without -g
real 6m26.595s
user 5m17.367s
sys 0m40.888s
memory foot print
9.5M ./pkg/bin/
13M ./pkg/lib/
On Fri, Sep 16, 2011 at 1:04 AM, Devchandra L Meetei <dlmeetei at gmail.com>wrote:
>
>
> On Fri, Sep 16, 2011 at 12:23 AM, Eric Christopher <echristo at apple.com>wrote:
>
>>
>> On Sep 15, 2011, at 11:10 AM, Devchandra L Meetei wrote:
>>
>> > Aha, forgot to mention, debug is enebled in both the clang++ and g++.
>> > All the flags are same in both the clang++ and g++
>>
>> "All flags the same" means nothing to us. That debug info is on means a
>> bit, is there a significant difference with it turned on? Let me be precise:
>> "How are you compiling this program? What exact flags are you using? What
>> are you using to make the comparisons?"
>>
>> -eric
>>
> These are the flags being used and -Wno-unused and -Wno-unused-parameter
> are repeated.
> The comparision is very naive, for compilation time time command is being
> used and for du -h dir for the size.
>
> Let me give the comparison without the -g options shortly
>
> g++ -c -o
> /home/deleisha/CodeSpace/pegasus/pkg/obj/utils/cnv2rootbundle/cnv2rootbundle.o
> -W -Wall -Wno-unused -Wno-unused-parameter -D_GNU_SOURCE -DTHREAD_SAFE
> -D_REENTRANT -g -m64 -fvisibility=hidden -fPIE
> -DPEGASUS_PLATFORM_LINUX_GENERIC_GNU -DPEGASUS_PLATFORM_LINUX_X86_64_GNU
> -DPEGASUS_USE_SYSLOGS -DPEGASUS_ARCH_LIB=\"lib64\"
> -DPEGASUS_USE_SQLITE_REPOSITORY -DPEGASUS_ENABLE_CQL
> -DPEGASUS_DEFAULT_ENABLE_OOP -DPEGASUS_DISABLE_PROV_USERCTXT
> -DPEGASUS_DISABLE_EXECQUERY -DPEGASUS_ENABLE_AUDIT_LOGGER
> -DPEGASUS_ENABLE_IPV6 -DPEGASUS_ENABLE_INDICATION_COUNT
> -DPEGASUS_ENABLE_INTEROP_PROVIDER -DPEGASUS_DEBUG
> -DPEGASUS_USE_EXPERIMENTAL_INTERFACES -DPEGASUS_USE_DEPRECATED_INTERFACES
> -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER -DPEGASUS_DEST_LIB_DIR=\"lib\"
> -DPEGASUS_ENABLE_PROTOCOL_WSMAN -DPEGASUS_EXTRA_PROVIDER_LIB_DIR=\"\"
> -DPLATFORM_COMPONENT_NAME=\"cnv2rootbundle\"
> -I/home/deleisha/CodeSpace/pegasus/src cnv2rootbundle.cpp
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110916/1e48f732/attachment.html>
More information about the cfe-dev
mailing list