AMD64 VM on FreeBSD?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

AMD64 VM on FreeBSD?

LawsonEnglish
 
Hi, I have an AMD64 box running FreeBSD 8.2.  I read the discussion
between David Lewis and Randal Schwartz on the vm-dev list about getting
the Squeak VM runnong on AMD64 but I don't know FreeBSD well enough to
compile  it myself. Does anyone have a working VM (any old version will
do)? We have just brought up a a FreeBSD server and find that we can't
run any squeak VM on it, period.

I DO know how to use the ports collection, but the only versions
available are ix86 and we need AMD64.


Thanks.


Lawson
Reply | Threaded
Open this post in threaded view
|

Re: AMD64 VM on FreeBSD?

Levente Uzonyi-2
 
On Sun, 5 Jun 2011, Lawson English wrote:

>
> Hi, I have an AMD64 box running FreeBSD 8.2.  I read the discussion between
> David Lewis and Randal Schwartz on the vm-dev list about getting the Squeak
> VM runnong on AMD64 but I don't know FreeBSD well enough to compile  it
> myself. Does anyone have a working VM (any old version will do)? We have just
> brought up a a FreeBSD server and find that we can't run any squeak VM on it,
> period.

Every x64 CPU can run x86 programs, so you _can_ use the existing VMs. I
guess you're running a 64-bit OS, so you'll have to install 32-bit
libraries to use 32-bit VMs.


Levente

>
> I DO know how to use the ports collection, but the only versions available
> are ix86 and we need AMD64.
>
>
> Thanks.
>
>
> Lawson
>
Reply | Threaded
Open this post in threaded view
|

Re: AMD64 VM on FreeBSD?

LawsonEnglish
 
I am running freeBSD 8.2  amd64. It will NOT run the ix86 VM. The error is:

ELF interpreter /usr/libexec/ld-elf.so.1 not found
Abort

Freebsd experts say that this error is because the VM is a i386 32 bit
version, and that will not run on a amd64 freebsd
1:19 AM
So I am still looking for any VM compiled for FreeBSD 8.2 for amd64


Thanks.


Lawson




On 6/6/11 12:57 AM, Levente Uzonyi wrote:

>
> On Sun, 5 Jun 2011, Lawson English wrote:
>
>>
>> Hi, I have an AMD64 box running FreeBSD 8.2.  I read the discussion
>> between David Lewis and Randal Schwartz on the vm-dev list about
>> getting the Squeak VM runnong on AMD64 but I don't know FreeBSD well
>> enough to compile  it myself. Does anyone have a working VM (any old
>> version will do)? We have just brought up a a FreeBSD server and find
>> that we can't run any squeak VM on it, period.
>
> Every x64 CPU can run x86 programs, so you _can_ use the existing VMs.
> I guess you're running a 64-bit OS, so you'll have to install 32-bit
> libraries to use 32-bit VMs.
>
>
> Levente
>
>>
>> I DO know how to use the ports collection, but the only versions
>> available are ix86 and we need AMD64.
>>
>>
>> Thanks.
>>
>>
>> Lawson
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: AMD64 VM on FreeBSD?

Levente Uzonyi-2
 
On Mon, 6 Jun 2011, Lawson English wrote:

>
> I am running freeBSD 8.2  amd64. It will NOT run the ix86 VM. The error is:
>
> ELF interpreter /usr/libexec/ld-elf.so.1 not found
> Abort

Seems like you didn't install 32-bit libraries.


Levente

>
> Freebsd experts say that this error is because the VM is a i386 32 bit
> version, and that will not run on a amd64 freebsd
> 1:19 AM
> So I am still looking for any VM compiled for FreeBSD 8.2 for amd64
>
>
> Thanks.
>
>
> Lawson
>
>
>
>
> On 6/6/11 12:57 AM, Levente Uzonyi wrote:
>>
>> On Sun, 5 Jun 2011, Lawson English wrote:
>>
>>>
>>> Hi, I have an AMD64 box running FreeBSD 8.2.  I read the discussion
>>> between David Lewis and Randal Schwartz on the vm-dev list about getting
>>> the Squeak VM runnong on AMD64 but I don't know FreeBSD well enough to
>>> compile  it myself. Does anyone have a working VM (any old version will
>>> do)? We have just brought up a a FreeBSD server and find that we can't run
>>> any squeak VM on it, period.
>>
>> Every x64 CPU can run x86 programs, so you _can_ use the existing VMs. I
>> guess you're running a 64-bit OS, so you'll have to install 32-bit
>> libraries to use 32-bit VMs.
>>
>>
>> Levente
>>
>>>
>>> I DO know how to use the ports collection, but the only versions available
>>> are ix86 and we need AMD64.
>>>
>>>
>>> Thanks.
>>>
>>>
>>> Lawson
>>>
>>
>
>
dsg
Reply | Threaded
Open this post in threaded view
|

Re: AMD64 VM on FreeBSD?

dsg
In reply to this post by LawsonEnglish
 
Hi Lawson,

Since you mentioned you're running a server... I have a prebuilt CogVM
binary on my website, which will work on FreeBSD 8.2 amd64 with one
major caveat, no X11 support.  I'm developing a web service, so this
hasn't been an issue for me.  The binary seems to work fine on a 64bit
host when you pass the -nodisplay flag (I put RFBServer into my image so
I can pull up the GUI when needed).  Since X11 works just fine on 32bit
FreeBSD systems, using X over ssh in a 32bit jail would be another route.

I did a few quick experiments, but haven't had time to figure out how to
get Cog fully working on 64bit FreeBSD.  Building on a 32bit system
creates plugin library path issues for the 64bit host.  I also tried to
build the 32bit binary on a 64bit host, but ran into issues with the
default gcc 4.2.

Binaries are at www.unthinkable.or/dl/ I'll post the latest rev in a
couple days.  As Levente pointed out, you will need to install the 32bit
compatibility libraries from base.



On 06/06/11 00:18, Lawson English wrote:

>
> Hi, I have an AMD64 box running FreeBSD 8.2. I read the discussion
> between David Lewis and Randal Schwartz on the vm-dev list about getting
> the Squeak VM runnong on AMD64 but I don't know FreeBSD well enough to
> compile it myself. Does anyone have a working VM (any old version will
> do)? We have just brought up a a FreeBSD server and find that we can't
> run any squeak VM on it, period.
>
> I DO know how to use the ports collection, but the only versions
> available are ix86 and we need AMD64.
>
>
> Thanks.
>
>
> Lawson
>

Reply | Threaded
Open this post in threaded view
|

Re: AMD64 VM on FreeBSD?

LawsonEnglish
 

On Jun 6, 2011, at 7:45 PM, David Graham wrote:

Hi Lawson,

Since you mentioned you're running a server... I have a prebuilt CogVM binary on my website, which will work on FreeBSD 8.2 amd64 with one major caveat, no X11 support.  I'm developing a web service, so this hasn't been an issue for me.  The binary seems to work fine on a 64bit host when you pass the -nodisplay flag (I put RFBServer into my image so I can pull up the GUI when needed).  Since X11 works just fine on 32bit FreeBSD systems, using X over ssh in a 32bit jail would be another route.

I did a few quick experiments, but haven't had time to figure out how to get Cog fully working on 64bit FreeBSD.  Building on a 32bit system creates plugin library path issues for the 64bit host.  I also tried to build the 32bit binary on a 64bit host, but ran into issues with the default gcc 4.2.

Binaries are at www.unthinkable.or/dl/ I'll post the latest rev in a couple days.  As Levente pointed out, you will need to install the 32bit compatibility libraries from base.

Thank you David. Yes, we use it for hosting websites too.

I did use sysinstall, did post-install configuration of FreeBSD, installed additional distribution sets, then i did  32-bit runtime compatibility libraries. It did install a lot of stuf, including in /usr/lib32
Finally I did: ldconfig -32 /usr/lib32. I also checked the /etc/rc.conf and the /defaults/etc/rc.conf settings to see if the 32 libraries were in the paths.

Is that what you meant with "install the 32bit compatibility libraries from base" ?

I had tested you older version cogvm-2373-freebsd-i386 befor, and tried the new one tooe\, but like all vm's it is not working.
I have a new error now,  truncated ELF file. And then again the ELF interprete error i had before:

elf_load_section: truncated ELF file
ELF interpreter /libexec/ld-elf.so.1 not found
Abort

Thanks for the help.

Lawson




On 06/06/11 00:18, Lawson English wrote:

Hi, I have an AMD64 box running FreeBSD 8.2. I read the discussion
between David Lewis and Randal Schwartz on the vm-dev list about getting
the Squeak VM runnong on AMD64 but I don't know FreeBSD well enough to
compile it myself. Does anyone have a working VM (any old version will
do)? We have just brought up a a FreeBSD server and find that we can't
run any squeak VM on it, period.

I DO know how to use the ports collection, but the only versions
available are ix86 and we need AMD64.


Thanks.


Lawson






dsg
Reply | Threaded
Open this post in threaded view
|

Re: AMD64 VM on FreeBSD?

dsg
 

> Thank you David. Yes, we use it for hosting websites too.
>
> I did use sysinstall, did post-install configuration of FreeBSD,
> installed additional distribution sets, then i did 32-bit runtime
> compatibility libraries. It did install a lot of stuf, including in
> /usr/lib32
> Finally I did: ldconfig -32 /usr/lib32. I also checked the /etc/rc.conf
> and the /defaults/etc/rc.conf settings to see if the 32 libraries were
> in the paths.
>
> Is that what you meant with "install the 32bit compatibility libraries
> from base" ?

Yes, that's correct.  It was a few months ago, but IIRC, I didn't need
to run ldconfig or update paths on my server to make it work.

>
> I had tested you older version cogvm-2373-freebsd-i386 befor, and tried
> the new one tooe\, but like all vm's it is not working.
> I have a new error now, truncated ELF file. And then again the ELF
> interprete error i had before:
>
> elf_load_section: truncated ELF file
> ELF interpreter /libexec/ld-elf.so.1 not found
> Abort
>
> Thanks for the help.
>
> Lawson
>

Are you running a custom kernel by chance?  Is there anything unique
about your install?