[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: adding -fPIC compiler option for building on SPARC, Solaris 11.4
From:       Nate Alderson <alderson () gmail ! com>
Date:       2020-11-12 13:36:18
Message-ID: CA+bMN4cZ3qA50E2XGt=SjihuNDjaZf2fb1EfrVCayj9LUS0ZeA () mail ! gmail ! com
[Download RAW message or body]

On Thu, Nov 12, 2020 at 12:54 AM Phil Thompson <phil@riverbankcomputing.com>
wrote:

> On 12/11/2020 00:31, Nate Alderson wrote:
> > Hello,
> >
> > I am attempting to build PyQt5-5.15.2.dev2010041344 on SPARC, Solaris
> > 11.4
> > with gcc 9.3.0 , but it fails linking:
> >
> > ....
> > ld: fatal: relocation error: R_SPARC_M44: file
> > moc_qpycore_event_handlers.o: symbol vtable for PyQtMonitor: invalid
> > shared
> > object relocation type: ABS44 code model unsupported
> > ld: fatal: relocation error: R_SPARC_L44: file
> > moc_qpycore_event_handlers.o: symbol vtable for PyQtMonitor: invalid
> > shared
> > object relocation type: ABS44 code model unsupported
> > ld: fatal: relocation error: R_SPARC_H44: file
> > moc_qpycore_event_handlers.o: symbol QHash<QObject*,
> > QHashDummyValue>::deleteNode2(QHashData::Node*): invalid shared object
> > relocation type: ABS44 code model unsupported
> > ld: fatal: relocation error: R_SPARC_M44: file
> > moc_qpycore_event_handlers.o: symbol QHash<QObject*,
> > QHashDummyValue>::deleteNode2(QHashData::Node*): invalid shared object
> > relocation type: ABS44 code model unsupported
> > ld: fatal: relocation error: R_SPARC_L44: file
> > moc_qpycore_event_handlers.o: symbol QHash<QObject*,
> > QHashDummyValue>::deleteNode2(QHashData::Node*): invalid shared object
> > relocation type: ABS44 code model unsupported
> >
> >
> > Googling indicated I should add the -fPIC option to the g++ flags but I
> > can't figure out how that works.  I've tried:
> > "python configure.py CXXFLAGS+=-fPIC" among other  things but nothing
> > seems
> > to work. Any suggestions?
> >
> > I have manually added the flag to some Makefiles and that resolved the
> > issue.
> >
> > Thanks,
> > Nate
>
> Try QMAKE_CXXFLAGS
>
> Phil
>

That worked. Thank you.

[Attachment #3 (text/html)]

<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Thu, Nov 12, 2020 at 12:54 AM Phil Thompson &lt;<a \
href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 12/11/2020 00:31, \
Nate Alderson wrote:<br> &gt; Hello,<br>
&gt; <br>
&gt; I am attempting to build PyQt5-5.15.2.dev2010041344 on SPARC, Solaris <br>
&gt; 11.4<br>
&gt; with gcc 9.3.0 , but it fails linking:<br>
&gt; <br>
&gt; ....<br>
&gt; ld: fatal: relocation error: R_SPARC_M44: file<br>
&gt; moc_qpycore_event_handlers.o: symbol vtable for PyQtMonitor: invalid <br>
&gt; shared<br>
&gt; object relocation type: ABS44 code model unsupported<br>
&gt; ld: fatal: relocation error: R_SPARC_L44: file<br>
&gt; moc_qpycore_event_handlers.o: symbol vtable for PyQtMonitor: invalid <br>
&gt; shared<br>
&gt; object relocation type: ABS44 code model unsupported<br>
&gt; ld: fatal: relocation error: R_SPARC_H44: file<br>
&gt; moc_qpycore_event_handlers.o: symbol QHash&lt;QObject*,<br>
&gt; QHashDummyValue&gt;::deleteNode2(QHashData::Node*): invalid shared object<br>
&gt; relocation type: ABS44 code model unsupported<br>
&gt; ld: fatal: relocation error: R_SPARC_M44: file<br>
&gt; moc_qpycore_event_handlers.o: symbol QHash&lt;QObject*,<br>
&gt; QHashDummyValue&gt;::deleteNode2(QHashData::Node*): invalid shared object<br>
&gt; relocation type: ABS44 code model unsupported<br>
&gt; ld: fatal: relocation error: R_SPARC_L44: file<br>
&gt; moc_qpycore_event_handlers.o: symbol QHash&lt;QObject*,<br>
&gt; QHashDummyValue&gt;::deleteNode2(QHashData::Node*): invalid shared object<br>
&gt; relocation type: ABS44 code model unsupported<br>
&gt; <br>
&gt; <br>
&gt; Googling indicated I should add the -fPIC option to the g++ flags but I<br>
&gt; can&#39;t figure out how that works.   I&#39;ve tried:<br>
&gt; &quot;python configure.py CXXFLAGS+=-fPIC&quot; among other   things but nothing \
<br> &gt; seems<br>
&gt; to work. Any suggestions?<br>
&gt; <br>
&gt; I have manually added the flag to some Makefiles and that resolved the<br>
&gt; issue.<br>
&gt; <br>
&gt; Thanks,<br>
&gt; Nate<br>
<br>
Try QMAKE_CXXFLAGS<br>
<br>
Phil<br></blockquote><div><br></div><div>That worked. Thank you. \
<br></div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic