Re: Solaris 10 picolisp 64 build

2015-03-04 Thread Rick Hanson
Thank you, Alex and Jakob!


Solaris 10 picolisp 64 build

2015-03-03 Thread Rick Hanson
Sorry in advance if you’ve already covered this issue in the past.

I’m on Solaris 10; I can build the 32-bit picolisp (3.1.9) with no problem.
Then, I go do a (cd src64; make) (which is GNU make btw); this builds the
x86-64.sunOS.base.s file via mkAsm, but it fails in the next step on gas
--64 (which reads the .s file) with a bunch of errors of the form

Error: Unknown opcode: `$OP'

where $OP is any one of several opcodes, e.g. adc, addq, clc, ja, jbe, jz,
movb, mul, etc.

FIrst, I thought that a very old version of gas might be causing the issue
(i.e. maybe it was not able to understand some of the new (?) opcodes; yes,
I was very optimistic :); so I downloaded, built and installed binutils
(2.24.51) which gave me a new gas. The new gas was of no avail — the same
types of errors occurred.

So, I then downloaded the .s files for Solaris from here:
http://software-lab.de/x86-64.sunOs.tgz and unarced them in the picoLisp
directory. As you can imagine, this didn’t work either — the same Unknown
opcode messages were appearing.

I suspect that I’m making a very fundamental mistake here, but I can’t
quite put my finger on it. Am I using gas wrongly, or do I have the wrong
assembler?

Thanks for any help.

—Rick

rick42 on #picolisp
​


Re: Solaris 10 picolisp 64 build

2015-03-03 Thread Rick Hanson
Duh!  That's it!  And it even says x86 in the name!!! (e.g.
`x86-64.sunOs.tgz`) I hereby turn in any computing creds I've garnered over
the years to be thrown into burning inferno where they belong, and I'll go
live in a box down my the river. :)  Thanks!

On Tue, Mar 3, 2015 at 4:50 PM, Jakob Eriksson ja...@aurorasystems.eu
wrote:


 You are not by any chance on a Sparc platform?




 On 03/03/15 20:57, Rick Hanson wrote:
  Sorry in advance if you’ve already covered this issue in the past.
 
  I’m on Solaris 10; I can build the 32-bit picolisp (3.1.9) with no
 problem.
  Then, I go do a (cd src64; make) (which is GNU make btw); this builds the
  x86-64.sunOS.base.s file via mkAsm, but it fails in the next step on gas
  --64 (which reads the .s file) with a bunch of errors of the form
 
  Error: Unknown opcode: `$OP'
 
  where $OP is any one of several opcodes, e.g. adc, addq, clc, ja, jbe,
 jz,
  movb, mul, etc.
 
  FIrst, I thought that a very old version of gas might be causing the
 issue
  (i.e. maybe it was not able to understand some of the new (?) opcodes;
 yes,
  I was very optimistic :); so I downloaded, built and installed binutils
  (2.24.51) which gave me a new gas. The new gas was of no avail — the same
  types of errors occurred.
 
  So, I then downloaded the .s files for Solaris from here:
  http://software-lab.de/x86-64.sunOs.tgz and unarced them in the picoLisp
  directory. As you can imagine, this didn’t work either — the same Unknown
  opcode messages were appearing.
 
  I suspect that I’m making a very fundamental mistake here, but I can’t
  quite put my finger on it. Am I using gas wrongly, or do I have the wrong
  assembler?
 
  Thanks for any help.
 
  —Rick
 
  rick42 on #picolisp
  ​
 

 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: Solaris 10 picolisp 64 build

2015-03-03 Thread Rick Hanson
down *by* the river.  (I can't even get *that* right.)  Cheers!

On Tue, Mar 3, 2015 at 5:00 PM, Rick Hanson cryptor...@gmail.com wrote:

 Duh!  That's it!  And it even says x86 in the name!!! (e.g.
 `x86-64.sunOs.tgz`) I hereby turn in any computing creds I've garnered over
 the years to be thrown into burning inferno where they belong, and I'll go
 live in a box down my the river. :)  Thanks!

 On Tue, Mar 3, 2015 at 4:50 PM, Jakob Eriksson ja...@aurorasystems.eu
 wrote:


 You are not by any chance on a Sparc platform?




 On 03/03/15 20:57, Rick Hanson wrote:
  Sorry in advance if you’ve already covered this issue in the past.
 
  I’m on Solaris 10; I can build the 32-bit picolisp (3.1.9) with no
 problem.
  Then, I go do a (cd src64; make) (which is GNU make btw); this builds
 the
  x86-64.sunOS.base.s file via mkAsm, but it fails in the next step on gas
  --64 (which reads the .s file) with a bunch of errors of the form
 
  Error: Unknown opcode: `$OP'
 
  where $OP is any one of several opcodes, e.g. adc, addq, clc, ja, jbe,
 jz,
  movb, mul, etc.
 
  FIrst, I thought that a very old version of gas might be causing the
 issue
  (i.e. maybe it was not able to understand some of the new (?) opcodes;
 yes,
  I was very optimistic :); so I downloaded, built and installed binutils
  (2.24.51) which gave me a new gas. The new gas was of no avail — the
 same
  types of errors occurred.
 
  So, I then downloaded the .s files for Solaris from here:
  http://software-lab.de/x86-64.sunOs.tgz and unarced them in the
 picoLisp
  directory. As you can imagine, this didn’t work either — the same
 Unknown
  opcode messages were appearing.
 
  I suspect that I’m making a very fundamental mistake here, but I can’t
  quite put my finger on it. Am I using gas wrongly, or do I have the
 wrong
  assembler?
 
  Thanks for any help.
 
  —Rick
 
  rick42 on #picolisp
  ​
 

 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe





Re: Solaris 10 picolisp 64 build

2015-03-03 Thread Jakob Eriksson

You are not by any chance on a Sparc platform?




On 03/03/15 20:57, Rick Hanson wrote:
 Sorry in advance if you’ve already covered this issue in the past.

 I’m on Solaris 10; I can build the 32-bit picolisp (3.1.9) with no problem.
 Then, I go do a (cd src64; make) (which is GNU make btw); this builds the
 x86-64.sunOS.base.s file via mkAsm, but it fails in the next step on gas
 --64 (which reads the .s file) with a bunch of errors of the form

 Error: Unknown opcode: `$OP'

 where $OP is any one of several opcodes, e.g. adc, addq, clc, ja, jbe, jz,
 movb, mul, etc.

 FIrst, I thought that a very old version of gas might be causing the issue
 (i.e. maybe it was not able to understand some of the new (?) opcodes; yes,
 I was very optimistic :); so I downloaded, built and installed binutils
 (2.24.51) which gave me a new gas. The new gas was of no avail — the same
 types of errors occurred.

 So, I then downloaded the .s files for Solaris from here:
 http://software-lab.de/x86-64.sunOs.tgz and unarced them in the picoLisp
 directory. As you can imagine, this didn’t work either — the same Unknown
 opcode messages were appearing.

 I suspect that I’m making a very fundamental mistake here, but I can’t
 quite put my finger on it. Am I using gas wrongly, or do I have the wrong
 assembler?

 Thanks for any help.

 —Rick

 rick42 on #picolisp
 ​


-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Solaris 10 picolisp 64 build

2015-03-03 Thread Alexander Burger
Hi Rick,

 All, does this mean that picoLisp64 cannot be built on a Solaris 10 sparc64
 box?

Unfortunately yes. I should write the sparc9 support into src64/arch/,
which I have in my to-do list since several years. But it is a lot of
work for probably too few use cases.

And I still did not manage to get Debian running in qemu for sparc64.
This is a kind of prerequisite for me to make a new port (ppc64 does run
meanwhile in qemu).


 box?  (That's what I have.)  If not, no worries; I can, and will be happy
 to, still use picoLisp32 there.  Thanks!

As pil32 is more limited, you might also consider to build the emulator
with (cd src64; make emu). It is a lot slower, but may be sufficient for
some applications.

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Solaris 10 picolisp 64 build

2015-03-03 Thread Jakob Eriksson
At this time, that's true. That said, it's not a herculean effort
apparently, to port it, given that
(correct me Alex or other if I'm wrong)
Solaris uses ELF.
Uses gas (not sure if it matters)
You or the person doing the porting knows Sparc assembler.


But of course not simple to do either...



On 03/03/15 23:27, Rick Hanson wrote:
 All, does this mean that picoLisp64 cannot be built on a Solaris 10 sparc64
 box?  (That's what I have.)  If not, no worries; I can, and will be happy
 to, still use picoLisp32 there.  Thanks!

 On Tue, Mar 3, 2015 at 5:01 PM, Rick Hanson cryptor...@gmail.com wrote:

 down *by* the river.  (I can't even get *that* right.)  Cheers!

 On Tue, Mar 3, 2015 at 5:00 PM, Rick Hanson cryptor...@gmail.com wrote:

 Duh!  That's it!  And it even says x86 in the name!!! (e.g.
 `x86-64.sunOs.tgz`) I hereby turn in any computing creds I've garnered over
 the years to be thrown into burning inferno where they belong, and I'll go
 live in a box down my the river. :)  Thanks!

 On Tue, Mar 3, 2015 at 4:50 PM, Jakob Eriksson ja...@aurorasystems.eu
 wrote:

 You are not by any chance on a Sparc platform?




 On 03/03/15 20:57, Rick Hanson wrote:
 Sorry in advance if you’ve already covered this issue in the past.

 I’m on Solaris 10; I can build the 32-bit picolisp (3.1.9) with no
 problem.
 Then, I go do a (cd src64; make) (which is GNU make btw); this builds
 the
 x86-64.sunOS.base.s file via mkAsm, but it fails in the next step on
 gas
 --64 (which reads the .s file) with a bunch of errors of the form

 Error: Unknown opcode: `$OP'

 where $OP is any one of several opcodes, e.g. adc, addq, clc, ja, jbe,
 jz,
 movb, mul, etc.

 FIrst, I thought that a very old version of gas might be causing the
 issue
 (i.e. maybe it was not able to understand some of the new (?) opcodes;
 yes,
 I was very optimistic :); so I downloaded, built and installed binutils
 (2.24.51) which gave me a new gas. The new gas was of no avail — the
 same
 types of errors occurred.

 So, I then downloaded the .s files for Solaris from here:
 http://software-lab.de/x86-64.sunOs.tgz and unarced them in the
 picoLisp
 directory. As you can imagine, this didn’t work either — the same
 Unknown
 opcode messages were appearing.

 I suspect that I’m making a very fundamental mistake here, but I can’t
 quite put my finger on it. Am I using gas wrongly, or do I have the
 wrong
 assembler?

 Thanks for any help.

 —Rick

 rick42 on #picolisp
 ​

 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Solaris 10 picolisp 64 build

2015-03-03 Thread Alexander Burger
Hi Jakob,

 At this time, that's true. That said, it's not a herculean effort
 apparently, to port it, given that
 (correct me Alex or other if I'm wrong)
 Solaris uses ELF.
 Uses gas (not sure if it matters)

That's true, and this is good.


 You or the person doing the porting knows Sparc assembler.

That's also not a big problem. It is not so easy either. As I said, I
investigated it a few years ago, and read the SPARC-V9 Application
Binary Interface etc.

Sparc is a RISC architecture, so some things are more tedious to
implement. In that regard it is similar to Ppc64 (stack and CPU flag
issues, not 128-bit mul/div).

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Solaris 10 picolisp 64 build

2015-03-03 Thread Rick Hanson
All, does this mean that picoLisp64 cannot be built on a Solaris 10 sparc64
box?  (That's what I have.)  If not, no worries; I can, and will be happy
to, still use picoLisp32 there.  Thanks!

On Tue, Mar 3, 2015 at 5:01 PM, Rick Hanson cryptor...@gmail.com wrote:

 down *by* the river.  (I can't even get *that* right.)  Cheers!

 On Tue, Mar 3, 2015 at 5:00 PM, Rick Hanson cryptor...@gmail.com wrote:

 Duh!  That's it!  And it even says x86 in the name!!! (e.g.
 `x86-64.sunOs.tgz`) I hereby turn in any computing creds I've garnered over
 the years to be thrown into burning inferno where they belong, and I'll go
 live in a box down my the river. :)  Thanks!

 On Tue, Mar 3, 2015 at 4:50 PM, Jakob Eriksson ja...@aurorasystems.eu
 wrote:


 You are not by any chance on a Sparc platform?




 On 03/03/15 20:57, Rick Hanson wrote:
  Sorry in advance if you’ve already covered this issue in the past.
 
  I’m on Solaris 10; I can build the 32-bit picolisp (3.1.9) with no
 problem.
  Then, I go do a (cd src64; make) (which is GNU make btw); this builds
 the
  x86-64.sunOS.base.s file via mkAsm, but it fails in the next step on
 gas
  --64 (which reads the .s file) with a bunch of errors of the form
 
  Error: Unknown opcode: `$OP'
 
  where $OP is any one of several opcodes, e.g. adc, addq, clc, ja, jbe,
 jz,
  movb, mul, etc.
 
  FIrst, I thought that a very old version of gas might be causing the
 issue
  (i.e. maybe it was not able to understand some of the new (?) opcodes;
 yes,
  I was very optimistic :); so I downloaded, built and installed binutils
  (2.24.51) which gave me a new gas. The new gas was of no avail — the
 same
  types of errors occurred.
 
  So, I then downloaded the .s files for Solaris from here:
  http://software-lab.de/x86-64.sunOs.tgz and unarced them in the
 picoLisp
  directory. As you can imagine, this didn’t work either — the same
 Unknown
  opcode messages were appearing.
 
  I suspect that I’m making a very fundamental mistake here, but I can’t
  quite put my finger on it. Am I using gas wrongly, or do I have the
 wrong
  assembler?
 
  Thanks for any help.
 
  —Rick
 
  rick42 on #picolisp
  ​
 

 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe