List Info

Thread: Re: Can't run opera on amd64




Re: Can't run opera on amd64
country flaguser name
France
2007-03-27 20:00:44
On Wed, 28 Mar 2007 00:32:04 +0200, Nicolas Joly
<njolypasteur.fr> wrote:

> On Tue, Mar 27, 2007 at 11:23:35PM +0200, Loic Hoguin
wrote:
>>   Hello,
>>
>>   I'm trying to run opera on my new laptop running
amd64 current.
>>
>>   I compiled a kernel with COMPAT_LINUX,
COMPAT_LINUX32 and EXEC_ELF32,
>>
>> [rootblackrose] % sysctl -a | grep linux
>> emul.linux.kern.ostype = Linux
>> emul.linux.kern.osrelease = 2.4.18
>> emul.linux.kern.osversion = #0 Wed Feb 20 20:00:02
CET 2002
>> emul.linux32.kern.ostype = Linux
>> emul.linux32.kern.osrelease = 2.4.18
>> emul.linux32.kern.osversion = #0 Wed Feb 20
20:00:02 CET 2002
>>
>>   installed the compatibility packages (well, they
installed  
>> automagically)
>>
>> [rootblackrose] % pkg_info | grep suse
>> suse_base-10.0nb3   Linux compatibility package
>> suse_x11-10.0nb2    Linux compatibility package for
X11 binaries
>>
>>   and then tried to run opera. I got the following
error:
>>
>> [rootblackrose] % opera
>> /usr/bin/opera: line 263:
/usr/lib/opera/9.10-20061214.1/opera: cannot
>> execute binary file
>> /usr/bin/opera: line 263:
/usr/lib/opera/9.10-20061214.1/opera: Success
>>
>>   I don't really know why it doesn't work. Does
anyone have an idea?
>
> opera from pkgsrc needs 32bit linux compat libraries...
but 64bit
> compat libraries were installed instead ??

Yeah I thought about that after.

Then I tried to replace 64bits binaries and libs with 32bit
ones from
another box but it didn't work (saying it can't run these
ELF binaries).

And another thing came up: I cannot use most of the binaries
that came
with linux (64 bit) emulation too. Most core dump (the kdump
for 64bit
Linux date is attached).

> It seems that ONLY_FOR_PLATFORM variable does not work
as
> expected. For now, it is restricted to NetBSD/i386,
but
> Makefile.common include extends the platform list.
>
> pkgsrc/www/opera/Makefile:
> ONLY_FOR_PLATFORM=      NetBSD-*-i386 SunOS-*-sparc
FreeBSD-*-i386 
> 			DragonFly-*-i386
>
> pkgsrc/emulators/suse100_linux/Makefile.common:
> ONLY_FOR_PLATFORM+=     NetBSD-[2-9]*-i386
NetBSD-3.99*-x86_64 
>                         NetBSD-[2-9]*-powerpc 
>                         NetBSD-[4-9]*-x86_64
FreeBSD-*-i386 
>                         DragonFly-*-i386
>
> Unfortunately, pkgsrc miss 32bit compat linux packages
for now :-(
> I'd love to have them already, but i lack time to do
more than small
> experiments.

I may find the time to try and do that (after submitting
some PR I have).
But as I lack experience in pkgsrc/netbsd development (just
did some small
projects at school), could you give me a few hints?

Thanks,

-- 
Loïc Hoguin
Dev:Extend
  
Re: Can't run opera on amd64
user name
2007-03-28 03:28:05
Are you placing the 32-bit binaries under /emul/linux32? 
The
directory /emul/linux is for an x86_64 environment.

You could modify the installation directory of the suse100
packages to
install to emul/linux32.

Regards,

--Blair

-- 
Support WFMU-FM: free-form radio for the masses!
<http://www.wfmu.org/>


"The frivolity and boredom which unsettle the
established order, the
vague foreboding of something unknown, these are the heralds
of
approaching change.  The gradual crumbling that left
unaltered the
face of the whole is cut short by a sunburst which, in one
flash,
illuminates the features of the new world."  --G.W.F.
Hegel,
_Phenomenology of Spirit_ 5:11

Re: Can't run opera on amd64
country flaguser name
France
2007-03-28 05:01:41
On Wed, Mar 28, 2007 at 03:00:44AM +0200, Loic Hoguin
wrote:
> On Wed, 28 Mar 2007 00:32:04 +0200, Nicolas Joly
<njolypasteur.fr> wrote:
> >On Tue, Mar 27, 2007 at 11:23:35PM +0200, Loic
Hoguin wrote:
[...]
> >opera from pkgsrc needs 32bit linux compat
libraries... but 64bit
> >compat libraries were installed instead ??
> 
> Yeah I thought about that after.
> 
> Then I tried to replace 64bits binaries and libs with
32bit ones from
> another box but it didn't work (saying it can't run
these ELF binaries).

As Blair said, 64bit binaries needs to be in `/emul/linux'
subtree,
and 32bit in `/emul/linux32'.

> And another thing came up: I cannot use most of the
binaries that came
> with linux (64 bit) emulation too. Most core dump (the
kdump for 64bit
> Linux date is attached).

I did not see anything obvious with your trace. Can you try
to modify
emul.linux.kern.osrelease to emulate a 2.6 Linux kernel ?

njolylanfeust [~]> sysctl emul
emul.linux.kern.ostype = Linux
emul.linux.kern.osrelease = 2.6.22
emul.linux.kern.osversion = #0 Wed Feb 20 20:00:02 CET 2002
emul.linux32.kern.ostype = Linux
emul.linux32.kern.osrelease = 2.4.18
emul.linux32.kern.osversion = #0 Wed Feb 20 20:00:02 CET
2002

[...]
> >Unfortunately, pkgsrc miss 32bit compat linux
packages for now :-(
> >I'd love to have them already, but i lack time to
do more than small
> >experiments.
> 
> I may find the time to try and do that (after
submitting some PR I have).
> But as I lack experience in pkgsrc/netbsd development
(just did some small
> projects at school), could you give me a few hints?

The main idea was to create suse100-32 compat packages by
using most
of the current suse100 infrastructure. I thought that simply
including
the suse100 Makefile would do most of the trick, but we need
to
redefine some variables such as SUSE_ARCH, MACHINE_ARCH,
EMULSUBDIR,
etc...

I'll try to set up a message about this to tech-pkg later
today.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.

Re: Opera 9.2, emul/linux32 and amd64 (was: Can't run opera on amd64)
country flaguser name
France
2007-04-16 18:43:32
On Mon, Apr 16, 2007 at 10:22:57PM +0200, Juan RP wrote:
> On Mon, 16 Apr 2007 14:52:07 +0200
> Nicolas Joly <njolypasteur.fr> wrote:
> 
> > On Mon, Apr 16, 2007 at 09:51:55AM +0200, Juan RP
wrote:
> 
> > > So, here's the patch:
> > > 
> > > ht
tp://www.netbsd.org/~xtraeme/linux32_AND_64.diff
> > 
> > I like it ! Except for the PKG_OPTIONS part  ...
> 
> I wanted to use a new option like I did in my previous
patch, but
> joerg suggested to use the options framework. IMHO it's
much better
> now 

Ok. If you do think this the correct way to handle this ...
let's go
for it.

Thanks for your great work.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )