Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

2012-11-21 Thread Mark Morgan Lloyd

Pierre Free Pascal wrote:

-Message d'origine-
De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel-
boun...@lists.freepascal.org] De la part de Mark Morgan Lloyd
Envoyé : mardi 20 novembre 2012 18:38
À : fpc-devel@lists.freepascal.org
Objet : Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

Pierre Muller wrote:

Due to numerous question about mips/mipsel linux,
I decided to try to generate snapshot for those systems.
It finally worked (with OPT=-O- option added)

You can test them at:
ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/mipsel-linux/
or
ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/mips-linux/


Please give feedback,

I'm just about moving again here, but with a decided limp: the system
that blew was 2.8GHz and all my guest OSes are now plugged into a 1GHz
box. I still find being able to use a significant number of different
guests in sleds/caddies useful... Unfortunately I've still not got any
real MIPS hardware running here, so I'm still stuck on Qemu.

The good news is that I can still run/build trunk for mipsel on Debian
Squeeze on Qemu without unanticipated issues (i.e. nobody reading this
should assume that Lazarus will work yet).

The not-so-good news is that I built from trunk earlier but after having
bus errors in Qemu's implementation of big-endian MIPS I'm now looking
at the file above. Unfortunately I still get bus errors and I think the
binaries have been stripped.


  This is very strange:
I just installed the snapshot onto the big-endian mips machine
that I use to generate the snapshot.
This machine is the one that does generate daily testsuite results for
mips-linux.

  I just tested a compiler cycle (with DEBUG=1) starting from this
snapshot binary, and it seems to be able to generate a vanilla trunk
ppcmips:
ppcmips -iDW
2012/11/21 2.7.1-r1:23032

Is this a Qemu problem?


But I see no other problems, except those that could be caused by 
slowness of the emulated environment (flush process timing out, which 
appears to be a known issue). I suggest you compile a null program and 
Hello, World! and upload them.


This is one of the reasons that I'm trying to get at least one genuine 
SGI system running, I don't entirely trust Qemu as a reference platform. 
However booting Linux on the Origin 200 looks challenging, one Octane 
has a blown PSU and the other trips the RCD (suspect filter).


--
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/mailman/listinfo/fpc-devel


Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

2012-11-21 Thread Mark Morgan Lloyd

Fuxin Zhang wrote:

Dear Mark,

? 2012/11/21 1:38, Mark Morgan Lloyd ??:


I'm just about moving again here, but with a decided limp: the system 
that blew was 2.8GHz and all my guest OSes are now plugged into a 1GHz 
box. I still find being able to use a significant number of different 
guests in sleds/caddies useful... Unfortunately I've still not got any 
real MIPS hardware running here, so I'm still stuck on Qemu.
If you want we can donate some MIPS machines to you. We have some 
netbooks with 800MHz Loongson2F (little endian mips, almost mips64 
compatible, running debian linux/mips) in the stock.


I'm always reluctant to accept offers like that since I'm a very long 
way down the pecking order and don't want to promise a level of 
assistance that I might not be able to deliver. On the other hand since 
I've got Debian running on multiple platforms here that in itself might 
be of some value to you... let's take this off-list.


--
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/mailman/listinfo/fpc-devel


Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

2012-11-21 Thread Mark Morgan Lloyd

Mark Morgan Lloyd wrote:

Fuxin Zhang wrote:

Dear Mark,

? 2012/11/21 1:38, Mark Morgan Lloyd ??:


I'm just about moving again here, but with a decided limp: the system 
that blew was 2.8GHz and all my guest OSes are now plugged into a 
1GHz box. I still find being able to use a significant number of 
different guests in sleds/caddies useful... Unfortunately I've still 
not got any real MIPS hardware running here, so I'm still stuck on Qemu.
If you want we can donate some MIPS machines to you. We have some 
netbooks with 800MHz Loongson2F (little endian mips, almost mips64 
compatible, running debian linux/mips) in the stock.


I'm always reluctant to accept offers like that since I'm a very long 
way down the pecking order and don't want to promise a level of 
assistance that I might not be able to deliver. On the other hand since 
I've got Debian running on multiple platforms here that in itself might 
be of some value to you... let's take this off-list.


Got bounced as spam, resent via a conferencing service we use (cix.co.uk).

--
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/mailman/listinfo/fpc-devel


Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

2012-11-21 Thread Mark Morgan Lloyd

Mark Morgan Lloyd wrote:

Mark Morgan Lloyd wrote:

Fuxin Zhang wrote:

Dear Mark,

? 2012/11/21 1:38, Mark Morgan Lloyd ??:


I'm just about moving again here, but with a decided limp: the 
system that blew was 2.8GHz and all my guest OSes are now plugged 
into a 1GHz box. I still find being able to use a significant number 
of different guests in sleds/caddies useful... Unfortunately I've 
still not got any real MIPS hardware running here, so I'm still 
stuck on Qemu.
If you want we can donate some MIPS machines to you. We have some 
netbooks with 800MHz Loongson2F (little endian mips, almost mips64 
compatible, running debian linux/mips) in the stock.


I'm always reluctant to accept offers like that since I'm a very long 
way down the pecking order and don't want to promise a level of 
assistance that I might not be able to deliver. On the other hand 
since I've got Debian running on multiple platforms here that in 
itself might be of some value to you... let's take this off-list.


Got bounced as spam, resent via a conferencing service we use (cix.co.uk).


Also bounced.

--
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/mailman/listinfo/fpc-devel


Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

2012-11-21 Thread Mark Morgan Lloyd

Mark Morgan Lloyd wrote:

Pierre Free Pascal wrote:



The good news is that I can still run/build trunk for mipsel on Debian
Squeeze on Qemu without unanticipated issues (i.e. nobody reading this
should assume that Lazarus will work yet).

The not-so-good news is that I built from trunk earlier but after having
bus errors in Qemu's implementation of big-endian MIPS I'm now looking
at the file above. Unfortunately I still get bus errors and I think the
binaries have been stripped.


  This is very strange:
I just installed the snapshot onto the big-endian mips machine
that I use to generate the snapshot.
This machine is the one that does generate daily testsuite results for
mips-linux.

  I just tested a compiler cycle (with DEBUG=1) starting from this
snapshot binary, and it seems to be able to generate a vanilla trunk
ppcmips:
ppcmips -iDW
2012/11/21 2.7.1-r1:23032

Is this a Qemu problem?


But I see no other problems, except those that could be caused by 
slowness of the emulated environment (flush process timing out, which 
appears to be a known issue). I suggest you compile a null program and 
Hello, World! and upload them.


Recompiling trunk mipsel natively eventually failed:

/usr/bin/diff ppc3 ppcmipsel
Binary files ppc3 and ppcmipsel differ
make[2]: *** [cycle] Error 2

I think what I need to do is revert to the last version I've seen a full 
build working on, I've got the sources but not the svn metadata so I 
can't for the moment say what revision this is.


Is there a rough way of querying svn to determine what revisions were 
committed on a particular date?


For the record, Qemu describes its mipsel emulation as

system type : MIPS Malta
processor   : 0
cpu model   : MIPS 24Kc V0.0  FPU V0.0
BogoMIPS: 98.04
wait instruction: yes
microsecond timers  : yes
tlb_entries : 16
extra interrupt vector  : yes
hardware watchpoint : yes, count: 1, address/irw mask: [0x0ff8]
ASEs implemented:
shadow register sets: 1
core: 0
VCED exceptions : not available
VCEI exceptions : not available

--
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/mailman/listinfo/fpc-devel


Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

2012-11-21 Thread Tomas Hajny
On Wed, November 21, 2012 12:47, Mark Morgan Lloyd wrote:
 .
 .
 Recompiling trunk mipsel natively eventually failed:
 .
 .
 Is there a rough way of querying svn to determine what revisions were
 committed on a particular date?
 .
 .

SVN logs (e.g. http://svn.freepascal.org/svn/logs/fpc-trunk.log if talking
about trunk)? As far as I understand SVN help correctly, querying the
revision for a specific date should be possible using 'svn -r {date} log',
but I haven't used it myself since I find working with the log files kept
in our SVN tree much more convenient.

Tomas


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


Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

2012-11-21 Thread Mark Morgan Lloyd

Tomas Hajny wrote:


Is there a rough way of querying svn to determine what revisions were
committed on a particular date?


SVN logs (e.g. http://svn.freepascal.org/svn/logs/fpc-trunk.log if talking
about trunk)? As far as I understand SVN help correctly, querying the
revision for a specific date should be possible using 'svn -r {date} log',
but I haven't used it myself since I find working with the log files kept
in our SVN tree much more convenient.


# fpc -iDW
2012/10/17 2.7.1
# svn -r '{2012-10-17}' log http://svn.freepascal.org/svn/fpc/trunk

r22678 | pierre | 2012-10-16 22:45:41 + (Tue, 16 Oct 2012) | 1 line
..

I'll get back onto this later, I've got some Debian bugs to report :-/

But at the same time I note Pierre's

 ppcmips -iDW
 2012/11/21 2.7.1-r1:23032

Is there some reliable way of getting the SVN revision into the FPC 
version number or build date, or even into a macro or symbol so that a 
program can log what revision it was compiled by?


--
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/mailman/listinfo/fpc-devel


Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

2012-11-21 Thread Jonas Maebe


On 21 Nov 2012, at 15:01, Mark Morgan Lloyd wrote:

Is there some reliable way of getting the SVN revision into the FPC  
version number or build date, or even into a macro or symbol so that  
a program can log what revision it was compiled by?


Execute once: touch compiler/revision.inc

Afterwards, every time you build the compiler it will include the svn  
revision number in the extended version info.



Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] mips-linux and mipsel-linux snapshots available

2012-11-21 Thread Mark Morgan Lloyd

Fuxin Zhang wrote:

? 2012/11/21 19:34, Mark Morgan Lloyd ??:
I'm always reluctant to accept offers like that since I'm a very 
long way down the pecking order and don't want to promise a level of 
assistance that I might not be able to deliver. On the other hand 
since I've got Debian running on multiple platforms here that in 
itself might be of some value to you... let's take this off-list.


Got bounced as spam, resent via a conferencing service we use 
(cix.co.uk).



Also bounced.

Have got both. Then forget about the donation. I don't need any promise 
in fact, just to want to help a bit:)


I'm happy to try helping :-) My colleagues and I have a policy of trying 
to do our bit to keep non-x86 systems viable because of their relative 
resistance to malware etc., so quite a lot of my (nominally) work time 
is spread out over various open-source projects. But neither I nor the 
company has much ready cash, which I why I often end up running on older 
kit which can be very frustrating at times.


--
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/mailman/listinfo/fpc-devel