From: Thomas Demmer Newsgroups: comp.os.msdos.djgpp Subject: Re: Profiling problem with GCC 2.8 Date: Mon, 27 Apr 1998 09:50:26 +0200 Organization: Lehrstuhl fuer Stroemungsmechanik Lines: 33 Message-ID: <354438C2.62B58590@LSTM.Ruhr-UNI-Bochum.De> References: <19980427032245 DOT AAJ5484 AT ppp100 DOT cartsys DOT com> NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Nate Eldredge wrote: > > Okay. This means GCC is trying to link against a profiling library. Most > likely, this is due to it not using your specs file, but rather its builtin > one. Compile with `-v' and see if you see the line "Using builtin specs", > and if so, make sure that %DJDIR%/lib is along the LIBRARY_PATH specified > for GCC in DJGPP.ENV. (The README erroneously instructs you to remove it.) > > As a quick-and-dirty fix, you can copy %DJDIR%/lib/libc.a to > %DJDIR%/lib/libc_p.a, or get a profiling library from Tom Demmer's patch > site and install it as libc_p.a. (This would have the addition of letting > you get profiling info on library functions.) That version is for 2.7.2, so it may or may not work with 2.8.0, so I'd rather recommend getting the libc sources for 2.8 and rebuild it with -pg. -- Ciao Tom ************************************************************* * Thomas Demmer * * Lehrstuhl fuer Stroemungsmechanik * * Ruhr-Uni-Bochum * * Universitaetsstr. 150 * * D-44780 Bochum * * Tel: +49 234 700 6434 * * Fax: +49 234 709 4162 * * http://www.lstm.ruhr-uni-bochum.de/~demmer * *************************************************************