[OpenIndiana-discuss] shouldn't uname report 64 bit arch?

Pierfrancesco Caci ik5pvx at gmail.com
Sat Jan 16 21:09:03 UTC 2021


Thanks, with your previous help I did
export CFLAGS=-m64
export LDFLAGS=-m64
and rerun ./autogen.sh after doing a make distclean. I got the 64 bit
driver now, got X to load it, but I hit a segfault.
Enough for today, let's see if I can figure out what to do with that
tomorrow

Pf

On Sat, Jan 16, 2021 at 9:53 PM Aurélien Larcher <aurelien.larcher at gmail.com>
wrote:

> On Sat, Jan 16, 2021 at 9:49 PM Pierfrancesco Caci <ik5pvx at gmail.com>
> wrote:
>
> > I'm not yet arrived at the point where I'm confident that I can modify
> the
> > components tree. I'm trying to compile from the git source of this
> module.
> > Let me see if I can pass those CFLAGS and LDFLAGS to ./configure somehow.
> >
>
> To help you, that were the flags are defined:
>
>
> https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/make-rules/shared-macros.mk#L1193
>
> and where they are passed to configure:
>
>
> https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/make-rules/configure.mk#L87
>
>
>
> > brb
> >
> > On Sat, Jan 16, 2021 at 9:45 PM Aurélien Larcher <
> > aurelien.larcher at gmail.com>
> > wrote:
> >
> > > On Sat, Jan 16, 2021 at 9:12 PM Pierfrancesco Caci <ik5pvx at gmail.com>
> > > wrote:
> > >
> > > > Hello,
> > > > I'm trying to compile xf86-video-qxl. It comes out as 32 bits,
> instead
> > of
> > > > 64.
> > > >
> > > > $ file /usr/local/lib/xorg/modules/drivers/qxl_drv.so
> > > > /usr/local/lib/xorg/modules/drivers/qxl_drv.so: ELF 32-bit LSB
> dynamic
> > > lib
> > > > 80386 Version 1, dynamically linked, not stripped
> > > >
> > >
> > > Also all GCC <= 8 default to generating 32-bit binaries for historical
> > > reasons (32-bit was the lowest common denominator to the i86pc arch).
> > >
> > > GCC 9 and 10 default to 64-bit as i386 is not relevant anymore.
> > >
> > > Build recipes for X11 components are at:
> > >
> > >
> >
> https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/x11/
> > >
> > > The build system sets required flags to generate 64-bit (e.g.
> > CFLAGS=-m64,
> > > LDFLAGS=-m64).
> > >
> > > For simplicity you can add a new component in this tree based on
> existing
> > > recipes.
> > >
> > >
> > >
> > >
> > > > for comparison:
> > > > $ file /usr/lib/xorg/modules/drivers/amd64/vesa_drv.so
> > > > /usr/lib/xorg/modules/drivers/amd64/vesa_drv.so:        ELF 64-bit
> LSB
> > > > dynamic lib AMD64 Version 1, dynamically linked, not stripped, no
> > > debugging
> > > > information available
> > > >
> > > > I checked configure.log and it clearly gets the 32 bit info here:
> > > >
> > > >   $ ./configure --disable-selective-werror
> > > >
> > > > ## --------- ##
> > > > ## Platform. ##
> > > > ## --------- ##
> > > >
> > > > hostname = openindiana
> > > > uname -m = i86pc
> > > > uname -r = 5.11
> > > > uname -s = SunOS
> > > > uname -v = illumos-dea3b85466
> > > >
> > > > /usr/bin/uname -p = i386
> > > > /bin/uname -X     = System = SunOS
> > > > Node = openindiana
> > > > Release = 5.11
> > > > KernelID = illumos-dea3b85466
> > > > Machine = i86pc
> > > > BusType = <unknown>
> > > > Serial = <unknown>
> > > > Users = <unknown>
> > > > OEM# = 0
> > > > Origin# = 1
> > > > NumCPU = 6
> > > >
> > > > /bin/arch              = i86pc
> > > > /usr/bin/arch -k       = i86pc
> > > > /usr/convex/getsysinfo = unknown
> > > > /usr/bin/hostinfo      = unknown
> > > > /bin/machine           = unknown
> > > > /usr/bin/oslevel       = unknown
> > > > /bin/universe          = unknown
> > > > [....etc]
> > > >
> > > > I checked also the OmniOS VM and that also reports i86pc.
> > > > So, am I misunderstanding something, or did I just find a bug in
> uname?
> > > >
> > > > Pf
> > > > --
> > > >  Pierfrancesco Caci, ik5pvx
> > > > _______________________________________________
> > > > openindiana-discuss mailing list
> > > > openindiana-discuss at openindiana.org
> > > > https://openindiana.org/mailman/listinfo/openindiana-discuss
> > > >
> > >
> > >
> > > --
> > > ---
> > > Praise the Caffeine embeddings
> > > _______________________________________________
> > > openindiana-discuss mailing list
> > > openindiana-discuss at openindiana.org
> > > https://openindiana.org/mailman/listinfo/openindiana-discuss
> > >
> >
> >
> > --
> >  Pierfrancesco Caci, ik5pvx
> > _______________________________________________
> > openindiana-discuss mailing list
> > openindiana-discuss at openindiana.org
> > https://openindiana.org/mailman/listinfo/openindiana-discuss
> >
>
>
> --
> ---
> Praise the Caffeine embeddings
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>


-- 
 Pierfrancesco Caci, ik5pvx


More information about the openindiana-discuss mailing list