Re: [fpc-pascal] changes to include file do not trigger recompilation of unit

2016-09-11 Thread Brian
Yes. Version 2.6.4 which I have been using has this problem.

Two work arounds :

1) Attempt to compile the include file which will fail , but the compiler
appears to then recognize the file has changed when the main program / unit
is later compiled.

2) save the file after the change , the recompile whatever you are working
on.

Brian



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/changes-to-include-file-do-not-trigger-recompilation-of-unit-tp5726310p5726323.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] log file of the linker ?

2016-09-11 Thread fredvs
Hello, I am still here !

No idea how to get the log file of ld (if it exists) ?

Or if there is no way to know what error makes the process of linking-ld
fail, is it possible to use a other linker for the compiled objects of fpc ?

Thanks.

Fre;D



-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/log-file-of-the-linker-tp5726311p5726324.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] changes to include file do not trigger recompilation of unit

2016-09-11 Thread fredvs
Brian wrote
> Yes. Version 2.6.4 which I have been using has this problem.

Huh, version 3.0.0 and 3.1.1 too. ;-(

It is sad because I love to use {$I define.inc} in the units. (define.inc
--> with all the custom defines --> one unique file for all the units).

But if I forget to re-build all, the changes are not updated.

Fre;D



-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/changes-to-include-file-do-not-trigger-recompilation-of-unit-tp5726310p5726325.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] log file of the linker ?

2016-09-11 Thread Mark Morgan Lloyd

On 11/09/16 16:00, fredvs wrote:

Hello, I am still here !

No idea how to get the log file of ld (if it exists) ?

Or if there is no way to know what error makes the process of linking-ld
fail, is it possible to use a other linker for the compiled objects of fpc ?


Knowing that you were in the position of being able to add arbitrary 
options to the ld command line, I did not want to insult your 
intelligence by telling you to investigate --verbose (or as appropriate 
to the variant of linker you're using).


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] log file of the linker ?

2016-09-11 Thread fredvs
> I did not want to insult your intelligence by telling you to investigate
*--verbose*



OK, you win, sure that *--verbose* will do the trick.

Write you later with (positive) result.

Many, many thanks Mark.

Fre;D




-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/log-file-of-the-linker-tp5726311p5726327.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] log file of the linker ?

2016-09-11 Thread fredvs
Mark Morgan Lloyd-5 wrote
>  (or as appropriate  to the variant of linker you're using).

Ooops, wait a bit, do you mean that a other linker than *ld* coud be used in
unix system for linking fpc objects ?
If yes, what other linker for example ?

Many thanks.

Fre;D




-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/log-file-of-the-linker-tp5726311p5726328.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] log file of the linker ?

2016-09-11 Thread Mark Morgan Lloyd

On 11/09/16 21:00, fredvs wrote:

Mark Morgan Lloyd-5 wrote

 (or as appropriate  to the variant of linker you're using).


Ooops, wait a bit, do you mean that a other linker than *ld* coud be used in
unix system for linking fpc objects ?
If yes, what other linker for example ?


No, I meant that there were different implementations of ld which are 
almost but not quite entirely unlike tea.


Apart from oddities like Solaris ld there's GNU ld which for a long time 
has been the default in Linux, and there's "Gold" which might or might 
not replace it in some distreaux. The behaviour of non-basic options 
such as --verbose might vary.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] log file of the linker ?

2016-09-11 Thread fredvs
Yeeep, Mark and Andrew you did it !

Mark's magic "ld --verbose" + fantastic Andrew's "fpc -s" show tons of
missing dependencies for the linker.

OK, tonight will be a long night to add all that missing things but sure
the result will be wooow.

Write you (much) later.

Fre;D



-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/log-file-of-the-linker-tp5726311p5726330.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-11 Thread fredvs
Graeme Geldenhuys-6 wrote
> That's weird. On my 64-bit FreeBSD, I can't run 64-bit Linux
> applications, but can run 32-bit Linux applications. So I'm experiencing
> a bit of the opposite to you then. :-/

Hello Graeme.

Did you add, in your /boot/loader.conf:

linux64_load="YES"

PS: You need this kernel: /boot/kernel/linux64.ko

PS2: I wonder that you are able to run 32 bit Linux apps... (hum, how did
you do ? )

Fre;D





-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Linking-to-Linux-on-a-FreeBSD-system-with-Linux-emulated-tp5726205p5726331.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Linking to Linux on a FreeBSD system with Linux emulated ?

2016-09-11 Thread fredvs
Gaaal. 

$ uname -a
> FreeBSD 10.3-RELEASE #0 amd64

$ /usr/local/lib/fpc/3.0.0/ppcx64_linux test.pas
--->
Free Pascal Compiler version 3.0.0 [2015/11/20] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling /usr/local/share/ideu/prj_test/test.pas
...
(9015) Linking ./test
/usr/bin/ld: warning: ./link.res contains output sections; did you forget
-T?
(1008) 53964 lines compiled, 9.8 sec
(1021) 51 warning(s) issued
(1022) 319 hint(s) issued
(1023) 32 note(s) issued

---> Tested that X graphic application on a Linux 64 bit and it works. ;-)

Now, last thing, is to make that Linux graphic application run by the
FreeBSD system (because it fails to run.)
But that is a other story and is no more the problem of fpc.

To resume:

On a FreeBSD 64 bit system, you may, thanks to fpc, without virtual machine:
- Compile and run 64 bit FreeBSD applications.
- Compile and run 32 bit FreeBSD applications.
- Compile and run 32 bit Windows applications.
- Compile (and run) 64 bit Linux applications.

Sure that with some more white nights you could:
- Compile and run 64 bit Windows applications.
- Compile and run 32 bit Linux applications.

Well done, one more time, fpc.

Many, many thanks for your perfect help.

PS: On new polYdev release, all that will work out of the box.
 

Fre;D



-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Linking-to-Linux-on-a-FreeBSD-system-with-Linux-emulated-tp5726205p5726332.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal