Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2003-02

How to get rid of fpc rpm hints

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

When I build the latest fpc 1.0.7 rpm under redhat 7.3, install it and compile something, the compiler gives me always the hints:

syslinux.pp(5,1) Hint: Conditional I386 was set at startup in last
compilation of syslinux.pp
linux.pp(6,13) Hint: Conditional I386 was set at startup in last compilation
of linux.pp
math.pp(6,13) Hint: Conditional I386 was set at startup in last compilation
of math.pp

How can I get rid of them?

thx in advance,
Mattias

Mattias Gaertner
to Mattias Gaertner

On Thu, 20 Feb 2003 19:03:20 +0100
Mattias Gaertner wrote:

I can get rid of the hints if I add -di386 to the command line or to my /etc/fpc.cfg.
Is this missing in samplecfg or is there another way to get rid of them?

Show quoted text 11 lines
When I build the latest fpc 1.0.7 rpm under redhat 7.3, install it and compile something, the compiler gives me always the hints: syslinux.pp(5,1) Hint: Conditional I386 was set at startup in last compilation of syslinux.pp linux.pp(6,13) Hint: Conditional I386 was set at startup in last compilation of linux.pp math.pp(6,13) Hint: Conditional I386 was set at startup in last compilation of math.pp How can I get rid of them?

thx in advance,
Mattias

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote
I can get rid of the hints if I add -di386 to the command line or to my /etc/fpc.cfg. Is this missing in samplecfg or is there another way to get rid of them?

No, there is no other way. The origin of this hint comes from the fact that if you compile a unit with a certain define at one time, and then compiler another unit or program that uses this unit without using this specific define, you may have accidentally forgotten to specify it. In this case, the define is used to compile the system unit and since the system unit is used by all other units and programs you compile, you get the hint.

This is obviously not a good situation, but I think we discussed this a while ago (internally) and came to the conclusion that this hint should not be shown for units compiled in "release" mode (-Ur), such as the system unit. This is definitely not implemented in 1.0.6, but I don't know whether it's already done for 1.0.7 or 1.1

Jonas

Peter Vreman
to Mattias Gaertner: On Thu, 20 Feb 2003 19:03:20 +0100 I can get rid of the hints if I add -di386 to the…
you wrote 6 lines
On Thu, 20 Feb 2003 19:03:20 +0100 Mattias Gaertner wrote: I can get rid of the hints if I add -di386 to the command line or to my /etc/fpc.cfg. Is this missing in samplecfg or is there another way to get rid of them?

Adding -di386 in fpc.cfg is not possible since i386 is not the only architecture anymore.

Pierre Muller added the code that does this checking of conditional directive, but he is on holiday for a week.

Show quoted text 19 lines
> When I build the latest fpc 1.0.7 rpm under redhat 7.3, install it and > compile something, the compiler gives me always the hints: > > syslinux.pp(5,1) Hint: Conditional I386 was set at startup in last > compilation of syslinux.pp > linux.pp(6,13) Hint: Conditional I386 was set at startup in last > compilation of linux.pp > math.pp(6,13) Hint: Conditional I386 was set at startup in last > compilation of math.pp > > How can I get rid of them? thx in advance, Mattias _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Peter