Re: [fpc-devel] FPC 3.0.2 for SPARC

2017-05-08 Thread Mark Morgan Lloyd

On 06/05/17 06:30, Ozz Nixon wrote:

(Personally): AWESOME!


:-) The compiler etc. should be OK, the thing to really watch out for- 
particularly on Solaris- is which variant of binutils is being used 
(ditto for tar etc., particularly during installation).


There's a Solaris page on the Wiki which is probably still relevant:

http://wiki.lazarus.freepascal.org/Lazarus_on_Solaris

As Pierre had to remind me, the -Xn issue is still significant.

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

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


Re: [fpc-devel] FPC 3.0.2 for SPARC

2017-05-08 Thread Mark Morgan Lloyd

On 08/05/17 14:00, Pierre Muller wrote:

Le 05/05/2017 à 13:00, Mark Morgan Lloyd a écrit :> This is something that was discussed on the 
FPC-Pascal ML but it died.> > I am able to build installation bundles for SPARC running Linux 
(Debian) > and Solaris (OpenSXCE). The fp IDE works but doesn't have libgdb > support, and I've 
got limited time to struggle up the learning curve. > Would these be of use for the downloads area, 
which at present only has > 2.6.2 and 2.4.2 respectively?>
  I have uploaded the files that Mark sent to meto both main ftp server and 
SourceForge,and adapted html pages.
  You should now be able to download 3.0.2 sparc-solaris and 
sparc-linuxinstallation tar files by following the links starting at:

https://www.freepascal.org/download.var
  If you encounter any problems, to download the files or toinstall the new 
3.0.2 sparc compiler, please let us know!

Thanks Mark!


All credit to the core developers who've generally made this project a 
success, and my apologies for bothering them over the years with what's 
admittedly a fairly obscure platform by now.


I think it's worth keeping alive if possible though, because its 
insistence on fairly strict alignment etc. is useful for showing up 
potential problems.


Lazarus should compile on both Linux and Solaris, subject to one known 
bug when invoking help https://mantis.freepascal.org/view.php?id=22696


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

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


Re: [fpc-devel] FPC 3.0.2 for SPARC

2017-05-08 Thread Pierre Muller


Le 05/05/2017 à 13:00, Mark Morgan Lloyd a écrit :
> This is something that was discussed on the FPC-Pascal ML but it died.
> 
> I am able to build installation bundles for SPARC running Linux (Debian) 
> and Solaris (OpenSXCE). The fp IDE works but doesn't have libgdb 
> support, and I've got limited time to struggle up the learning curve. 
> Would these be of use for the downloads area, which at present only has 
> 2.6.2 and 2.4.2 respectively?
> 

  I have uploaded the files that Mark sent to me
to both main ftp server and SourceForge,
and adapted html pages.

  You should now be able to download 3.0.2 sparc-solaris and sparc-linux
installation tar files by following the links starting at:


https://www.freepascal.org/download.var

  If you encounter any problems, to download the files or to
install the new 3.0.2 sparc compiler, please let us know!


Thanks Mark!


Pierre
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC 3.0.2 for SPARC

2017-05-08 Thread Pierre Muller


Le 07/05/2017 à 16:35, Mark Morgan Lloyd a écrit :
> On 05/05/17 16:00, Pierre Muller wrote:
> 
>>   You probably need to add the -Xn option into the makepack script!
> 
> Thanks for the pointer as to where it goes: those last words stopped me 
> spending days looking for the appropriate makefile :-)
> 
> If I do this it builds successfully:
> 
>   *sunos*) MAKE=gmake
>  EXTRAOPT='-Xn'
>   # Use GNU tar if present
>   if [ "`which gtar`" != "" ]; then
> TAR=`which gtar`
>   fi
>   ;;
> 
> Should I raise a bug on Mantis for this? can anybody comment on what 
> impact this would have on the Intel target for Solaris?
> 
> I'll add a note to the existing stuff on the Wiki.

  I committed the patch below,
which basically restricts your change to native compilation.


Pierre



muller@gcc45:~/pas/trunk$ svn diff -c 1302
Index: install/makepack
===
--- install/makepack(revision 1301)
+++ install/makepack(revision 1302)
@@ -45,6 +45,10 @@
   ;;

  *sunos*) MAKE=gmake
+ # Use system linker if on solaris machine
+ if [ "$SOURCEOS" == "solaris" ]; then
+   EXTRAOPT="-Xn"
+ fi
  # Use GNU tar if present
  if [ "`which gtar`" != "" ]; then
TAR=`which gtar`
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC 3.0.2 for SPARC

2017-05-07 Thread John Lee
I've lost track of what are the issues in this thread, but if the tar of
the source files is less than 2G  and you want to transfer it tar I have a
2G or so ftp site that you could use to transfer the tar. Let me know and
I'll send the details via private email to each of you that needs it.
john


On 5 May 2017 at 12:00, Mark Morgan Lloyd  wrote:

> This is something that was discussed on the FPC-Pascal ML but it died.
>
> I am able to build installation bundles for SPARC running Linux (Debian)
> and Solaris (OpenSXCE). The fp IDE works but doesn't have libgdb support,
> and I've got limited time to struggle up the learning curve. Would these be
> of use for the downloads area, which at present only has 2.6.2 and 2.4.2
> respectively?
>
> --
> Mark Morgan Lloyd
> markMLl .AT. telemetry.co .DOT. uk
>
> [Opinions above are the author's, not those of his employers or colleagues]
> ___
> fpc-devel maillist  -  fpc-devel@lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC 3.0.2 for SPARC

2017-05-07 Thread Mark Morgan Lloyd

On 05/05/17 16:00, Pierre Muller wrote:


  You probably need to add the -Xn option into the makepack script!


Thanks for the pointer as to where it goes: those last words stopped me 
spending days looking for the appropriate makefile :-)


If I do this it builds successfully:

 *sunos*) MAKE=gmake
EXTRAOPT='-Xn'
 # Use GNU tar if present
 if [ "`which gtar`" != "" ]; then
   TAR=`which gtar`
 fi
 ;;

Should I raise a bug on Mantis for this? can anybody comment on what 
impact this would have on the Intel target for Solaris?


I'll add a note to the existing stuff on the Wiki.

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

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


Re: [fpc-devel] FPC 3.0.2 for SPARC

2017-05-05 Thread Ozz Nixon
(Personally): AWESOME!

This is something that was discussed on the FPC-Pascal ML but it died.

I am able to build installation bundles for SPARC running Linux (Debian) and 
Solaris (OpenSXCE). The fp IDE works but doesn't have libgdb support, and I've 
got limited time to struggle up the learning curve. 
Would these be of use for the downloads area, which at present only has
2.6.2 and 2.4.2 respectively?



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC 3.0.2 for SPARC

2017-05-05 Thread Pierre Muller
> gmake NOGDB=1 OPT='-V3.0.0 -O- -gl -Xn -vt' all
> 
> but the full build is giving me a linking error.
> 
> Following Pierre's instructions I'm using
> 
> CHECKLIBGDB=no install/makepack
> 
> which is eventually failing with
> 
> /usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/compiler$ 
> /usr/local/bin/ppcsparc -Ur -Xs -O2 -n -Fusparc -Fusystems 
> -Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/rtl/units/sparc-solaris 
> -Fisparc -FE. -FUsparc/units/sparc-solaris -dRELEASE-dsparc -dGDB 
> -dBROWSERLOG  -Sew pp.pas
> 
> /usr/bin/gld:built in linker script:21: syntax error
> pp.pas(238,36) Error: Error while linking
> pp.pas(238,36) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> 
> I'm pretty sure I've come across this one before and that the cause is 
> something like the wrong linker being invoked by the makefile, leave it 
> with me so I can go through my notes.
> 
> I'll be back ;-)

  You probably need to add the -Xn option into the makepack script!

Pierre
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] FPC 3.0.2 for SPARC

2017-05-05 Thread Mark Morgan Lloyd

On 05/05/17 12:00, Pierre Muller wrote:

Hi Mark,
Le 05/05/2017 à 13:00, Mark Morgan Lloyd a écrit :> This is something that was discussed on the 
FPC-Pascal ML but it died.> > I am able to build installation bundles for SPARC running Linux 
(Debian) > and Solaris (OpenSXCE). The fp IDE works but doesn't have libgdb > support, and 
I've got limited time to struggle up the learning curve. > Would these be of use for the 
downloads area, which at present only has > 2.6.2 and 2.4.2 respectively?
  Yes it would be very nice,libgdb missing for IDE is really not a big deal...
Please let me know how you can send me the files.


For reasons I'd prefer not to discuss, I can't easily get access to e.g. 
Dropbox so am limited to email, FTP, or something similarly "old 
school". If you want to continue this off-list I suggest using the email 
address in my sig below, since it's less likely to have messages deleted 
as spam.


On Linux we're talking about something like:

53780480 2017-04-07 09:20 fpc-3.0.2.sparc-linux.tar

I need to revisit the Solaris build. Checking, I see that I can make 
fpcsrc without too much trouble using something like


gmake NOGDB=1 OPT='-V3.0.0 -O- -gl -Xn -vt' all

but the full build is giving me a linking error.

Following Pierre's instructions I'm using

CHECKLIBGDB=no install/makepack

which is eventually failing with

/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/compiler$ 
/usr/local/bin/ppcsparc -Ur -Xs -O2 -n -Fusparc -Fusystems 
-Fu/usr/local/src/fpc/fpcbuild-3.0.2/fpcsrc/rtl/units/sparc-solaris 
-Fisparc -FE. -FUsparc/units/sparc-solaris -dRELEASE-dsparc -dGDB 
-dBROWSERLOG  -Sew pp.pas


/usr/bin/gld:built in linker script:21: syntax error
pp.pas(238,36) Error: Error while linking
pp.pas(238,36) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

I'm pretty sure I've come across this one before and that the cause is 
something like the wrong linker being invoked by the makefile, leave it 
with me so I can go through my notes.


I'll be back ;-)

-

I don't know what the future of SPARC is going to be like, and whether 
the attempts that are being made to get 64-bit SPARC Linux working will 
make it any rosier.


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

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


Re: [fpc-devel] FPC 3.0.2 for SPARC

2017-05-05 Thread Pierre Muller
Hi Mark,

Le 05/05/2017 à 13:00, Mark Morgan Lloyd a écrit :
> This is something that was discussed on the FPC-Pascal ML but it died.
> 
> I am able to build installation bundles for SPARC running Linux (Debian) 
> and Solaris (OpenSXCE). The fp IDE works but doesn't have libgdb 
> support, and I've got limited time to struggle up the learning curve. 
> Would these be of use for the downloads area, which at present only has 
> 2.6.2 and 2.4.2 respectively?

  Yes it would be very nice,
libgdb missing for IDE is really not a big deal...

Please let me know how you can send me the files.

Thanks again,

Pierre
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel