caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* compiling error...
@ 2005-01-27 10:16 Micha
  2005-01-27 10:31 ` [Caml-list] " Damien Doligez
  0 siblings, 1 reply; 3+ messages in thread
From: Micha @ 2005-01-27 10:16 UTC (permalink / raw)
  To: caml-list

when compiling (make opt) the ocaml-sources I get this error:

gcc: -pg and -fomit-frame-pointer are incompatible
make[1]: *** [startup.p.o] Fehler 1
make[1]: Leaving directory `/home/micha/src/ocaml-3.08.2/asmrun'
make: *** [runtimeopt] Fehler 2
Command exited with non-zero status 2

is the -pg flag neccessary or can I remove it? Why should there be profiling 
code in asmrun?

my cflags (gcc 3.4.1)  are:
-march=athlon-xp -O3 -fomit-frame-pointer -mfpmath=sse 
-maccumulate-outgoing-args -pipe

 Michael


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] compiling error...
  2005-01-27 10:16 compiling error Micha
@ 2005-01-27 10:31 ` Damien Doligez
  2005-01-27 11:25   ` Micha
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Doligez @ 2005-01-27 10:31 UTC (permalink / raw)
  To: caml users

On Jan 27, 2005, at 11:16, Micha wrote:

> when compiling (make opt) the ocaml-sources I get this error:
>
> gcc: -pg and -fomit-frame-pointer are incompatible
> make[1]: *** [startup.p.o] Fehler 1
> make[1]: Leaving directory `/home/micha/src/ocaml-3.08.2/asmrun'
> make: *** [runtimeopt] Fehler 2
> Command exited with non-zero status 2
>
> is the -pg flag neccessary or can I remove it? Why should there be 
> profiling
> code in asmrun?

The -pg flag is rather useful for the profiling version of the library.
I guess technically you could omit it, but don't complain if you can't
profile your programs afterward.

-- Damien


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] compiling error...
  2005-01-27 10:31 ` [Caml-list] " Damien Doligez
@ 2005-01-27 11:25   ` Micha
  0 siblings, 0 replies; 3+ messages in thread
From: Micha @ 2005-01-27 11:25 UTC (permalink / raw)
  To: caml-list

Am Donnerstag, 27. Januar 2005 11:31 schrieb Damien Doligez:
> The -pg flag is rather useful for the profiling version of the library.
> I guess technically you could omit it, but don't complain if you can't
> profile your programs afterward.

I didn't realize, that there is an extra profiling version of asmrun. Now  I 
just  added "-fno-omit-frame-pointer" as the last CC option to that target. 
Now only libasmrunp.a has the frame-pointer included.

 Michael


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-27 11:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-27 10:16 compiling error Micha
2005-01-27 10:31 ` [Caml-list] " Damien Doligez
2005-01-27 11:25   ` Micha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).