• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 10.6 gcov link failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.6 gcov link failure


  • Subject: Re: 10.6 gcov link failure
  • From: Jeff Schilling <email@hidden>
  • Date: Tue, 1 Sep 2009 22:33:33 -0400

I filed rdar://problem/7189529 on this after recreating the issue with a new iPhone Navigation based project.

Set the following to enable gcov:

OTHER_LDFLAGS = -lgcov GCC_GENERATE_TEST_COVERAGE_FILES = YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES Build fails with Ld /Users/jschilli/dev/xcode_build_output/Debug-iphonesimulator/testi.app/testi normal i386 cd /Users/jschilli/dev/testi setenv MACOSX_DEPLOYMENT_TARGET 10.5 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk -L/Users/jschilli/dev/xcode_build_output/Debug-iphonesimulator -F/Users/jschilli/dev/xcode_build_output/Debug-iphonesimulator -filelist /Users/jschilli/dev/xcode_build_output/testi.build/Debug-iphonesimulator/testi.build/Objects-normal/i386/testi.LinkFileList -mmacosx-version-min=10.5 -lgcov -framework Foundation -framework UIKit -framework CoreGraphics -o /Users/jschilli/dev/xcode_build_output/Debug-iphonesimulator/testi.app/testi Undefined symbols: "_vproc_transaction_end", referenced from: _gcov_exit in libgcov.a(_gcov.o) _vproc_transaction_end$non_lazy_ptr in libgcov.a(_gcov.o) "_vproc_transaction_begin", referenced from: ___gcov_init in libgcov.a(_gcov.o) _vproc_transaction_begin$non_lazy_ptr in libgcov.a(_gcov.o) ld: symbol(s) not found collect2: ld returned 1 exit status


I was curious about the 'setenv MACOSX_DEPLOYMENT_TARGET 10.5'  I changed it to 10.6 and the original linker errors were resolved.   I changed it to 'compiler default' and 10.6 and in both cases got 
ld: library not found for -lcrt1.10.6.o

If anyone has gcov working for an iPhone project with gcov enabled under 10.6 - I'd love to see your config.

-jeff

On Sep 1, 2009, at 3:11 PM, Jeff Schilling wrote:

Should have specified that :-(

I have an iPhone 3.0 project.

Compiling with GCC 4.2, targeting iPhone SDK 3.0


I did create a standalone Cocoa app using GCC 4.2 and 10.6 SDK and it links fine..

thanks


On Sep 1, 2009, at 3:04 PM, Sean McBride wrote:

On 9/1/09 1:33 PM, Jeff Schilling said:

I moved a project over to my newly installed Snow Leopard box
(upgraded from 10.5.7).

My default debug targets use gcov.  (-lgcov

I get a link error on Xcode 3.2

_vproc_transaction_end  referenced from _gcov_exit in libgov.a
and

_vproc_transaction_begin referenced from _gcov_init in libgcov.a

Symbols not found

Which compiler, which SDK?  Try with gcc 4.2 and 10.6 SDK (ie: the
system defaults).

--
____________________________________________________________
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

  • Follow-Ups:
    • Re: 10.6 gcov link failure
      • From: "Sean McBride" <email@hidden>
    • Re: 10.6 gcov link failure
      • From: Douglas Norton <email@hidden>
References: 
 >10.6 gcov link failure (From: Jeff Schilling <email@hidden>)
 >Re: 10.6 gcov link failure (From: "Sean McBride" <email@hidden>)
 >Re: 10.6 gcov link failure (From: Jeff Schilling <email@hidden>)

  • Prev by Date: Re: ProfileSystem ADC Example FindDictionaryForDataType EXC_BAD_ACCESS
  • Next by Date: Re: 10.6 gcov link failure
  • Previous by thread: Re: 10.6 gcov link failure
  • Next by thread: Re: 10.6 gcov link failure
  • Index(es):
    • Date
    • Thread