Re: Feedback-directed optimization broken?
Re: Feedback-directed optimization broken?
- Subject: Re: Feedback-directed optimization broken?
- From: "Sean McBride" <email@hidden>
- Date: Tue, 15 Dec 2009 14:59:22 -0500
- Organization: Rogue Research Inc.
On 12/15/09 7:31 PM, Richard Bannister said:
>>>> I have a vague memory of such link errors if you're using an older SDK.
>>>> Which complier/SDK/deployment target are you using?
>>>
>>> 4.2/32-bit i386 GCC.
>>
>> Umm, you only answered 1/3 of my question. Anyway, switch to the 10.6
>> SDK and see if your errors go away, that worked in my situation.
>
>Oops, brain fart, sorry.
>
>GCC 4.2
>10.6 SDK
>i386 target (Active)
>
>With this combination I get a new link error:
>
> "_vproc_transaction_begin", referenced from:
> ___gcov_init in libgcov.a(_gcov.o)
> _vproc_transaction_begin$non_lazy_ptr in libgcov.a(_gcov.o)
>
> "_vproc_transaction_end", referenced from:
> _gcov_exit in libgcov.a(_gcov.o)
> _vproc_transaction_end$non_lazy_ptr in libgcov.a(_gcov.o)
>
>ld: symbol(s) not found
Sorry, out of ideas... Your post reminded me of a bug I had, but I guess
you have a different case. Mine is:
<rdar://6925384>
27-May-2009 10:08 AM Sean McBride:
Summary:
A simple test app fails to link if code coverage and the 10.5 SDK are
used. With the 10.6 SDK, it's ok. See also 6603083.
Steps to Reproduce:
- build the attached sample project (debug or release) in 10a354.
Expected Results:
- for it to link
Actual Results:
- link error:
Undefined symbols:
Undefined symbols:
"_vproc_transaction_end", referenced from:
_gcov_exit in libgcov.a(_gcov.o)
_gcov_exit in libgcov.a(_gcov.o)
"_vproc_transaction_begin", referenced from:
___gcov_init in libgcov.a(_gcov.o)
___gcov_init in libgcov.a(_gcov.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Notes:
See also 6603083.
The attached sample is simply a new "Cocoa Application" project with 4
build settings changed:
OTHER_LDFLAGS = -lgcov
GCC_GENERATE_TEST_COVERAGE_FILES = YES
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES
SDK changed to 10.5
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden