Skip to content

Trying to make DEBUG=T a debug version of R

1 message · Andre Mikulec

#
I am still having trouble, ( on Windows )
I tried that. Changing the CFLAGS setting works early in the compile process.
But later in the compile process when trying to compile
the packages 'base' and 'stats' the optimization revert back to '-O3'

(You may also be able to do it with a CFLAGS
I tried setting th environment variable

set CFLAGS=-O0

This did not work.
I tried both on the commandline followed by typing
?
? make all

and the "System Properties" dialog.
Followed by opening a new command line and typing

? make all

I tried several things

In the Windows compiling and linking with the gnu tools,

the following hacks seem to work ( early in the compiling process ) but not later.

Of the C99FLAGS lines, ?at their ?ends, I just added " -ggdb"

src\gnuwin32\MkRules.rules

? C99FLAG=-std=gnu99 -ggdb

src\gnuwin32\MkRules.local

? C99FLAG=-std=gnu99 -ggdb

In one place I just changed the optimization level.

src\gnuwin32\Makefile

? CFLAGS=-O0 -Wall -pedantic $(EOPTS)
? FFLAGS=-O0 $(EOPTS)

But again, these only work in the early stages of compiling.
Eventually, when I start compiling "base"

-ggdb disappers and -O0 optimization goes back to -O3

Does anyone have any ideas?

Thank you,
Andre Mikulec
Andre_Mikulec at Hotmail.com