[Port-solaris] Won't Compile on Solaris11 x86

Daria Brashear shadow@gmail.com
Thu, 9 Jul 2015 09:44:05 -0400


--001a113ff13ced0670051a7172ed
Content-Type: text/plain; charset=UTF-8

Yup. SOLARISCC is for the Sunpro compiler. gcc isn't it. So, it uses sunpro
flags. -KPIC, -mt, -xarch.

That could probably be changed now, but at the time, gcc miscompiled kernel
modules.

On Fri, Jul 3, 2015 at 10:55 AM, Ian Prideaux <worzel@gmx.co.uk> wrote:

> Hi All,
>
> I'm trying to get it to compile on a fresh build of Solaris11u2, with all
> the updates from https://pkg.oracle.com/solaris/support/, on a guest
> inside VirtualBox.
>
> I had to remove the flags -KPIC -mt -xarch=amd64 from configure and
> configure-libafs, because gcc 4.8.2 complained that these were unknown
> flags.
>
> However, it's now failing:
>
> ld: fatal: relocations remain against allocatable but non-writable sections
> Current working directory /exportr/home/ian/openafs-1.6.12/src/shlibafsrpc
>
> A google search seemed to think that adding the flag -fpic or -fPIC would
> fix it, but it doesn't.
>
> I'm running
> SOLARISCC=/usr/bin/gcc ./configure --with-afs-sysname=sunx86_511
>
> Any ideas?
> Thanks for your help.
>
>


-- 
D

--001a113ff13ced0670051a7172ed
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Yup. SOLARISCC is for the Sunpro compiler. gcc isn&#3=
9;t it. So, it uses sunpro flags. -KPIC, -mt, -xarch.<br><br></div>That cou=
ld probably be changed now, but at the time, gcc miscompiled kernel modules=
.<br></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Fri=
, Jul 3, 2015 at 10:55 AM, Ian Prideaux <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:worzel@gmx.co.uk" target=3D"_blank">worzel@gmx.co.uk</a>&gt;</span> wr=
ote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I&#39;m trying to get it to compile on a fresh build of Solaris11u2, with a=
ll the updates from <a href=3D"https://pkg.oracle.com/solaris/support/" rel=
=3D"noreferrer" target=3D"_blank">https://pkg.oracle.com/solaris/support/</=
a>, on a guest inside VirtualBox.<br>
<br>
I had to remove the flags -KPIC -mt -xarch=3Damd64 from configure and confi=
gure-libafs, because gcc 4.8.2 complained that these were unknown flags.<br=
>
<br>
However, it&#39;s now failing:<br>
<br>
ld: fatal: relocations remain against allocatable but non-writable sections=
<br>
Current working directory /exportr/home/ian/openafs-1.6.12/src/shlibafsrpc<=
br>
<br>
A google search seemed to think that adding the flag -fpic or -fPIC would f=
ix it, but it doesn&#39;t.<br>
<br>
I&#39;m running<br>
SOLARISCC=3D/usr/bin/gcc ./configure --with-afs-sysname=3Dsunx86_511<br>
<br>
Any ideas?<br>
Thanks for your help.<br>
<br>
</blockquote></div><br><br clear=3D"all"><br>-- <br><div class=3D"gmail_sig=
nature"><div dir=3D"ltr">D</div></div>
</div>

--001a113ff13ced0670051a7172ed--