[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 <<a \
href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> \
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> > Hello,<br>
> <br>
> I am attempting to build PyQt5-5.15.2.dev2010041344 on SPARC, Solaris <br>
> 11.4<br>
> with gcc 9.3.0 , but it fails linking:<br>
> <br>
> ....<br>
> ld: fatal: relocation error: R_SPARC_M44: file<br>
> moc_qpycore_event_handlers.o: symbol vtable for PyQtMonitor: invalid <br>
> shared<br>
> object relocation type: ABS44 code model unsupported<br>
> ld: fatal: relocation error: R_SPARC_L44: file<br>
> moc_qpycore_event_handlers.o: symbol vtable for PyQtMonitor: invalid <br>
> shared<br>
> object relocation type: ABS44 code model unsupported<br>
> ld: fatal: relocation error: R_SPARC_H44: file<br>
> moc_qpycore_event_handlers.o: symbol QHash<QObject*,<br>
> QHashDummyValue>::deleteNode2(QHashData::Node*): invalid shared object<br>
> relocation type: ABS44 code model unsupported<br>
> ld: fatal: relocation error: R_SPARC_M44: file<br>
> moc_qpycore_event_handlers.o: symbol QHash<QObject*,<br>
> QHashDummyValue>::deleteNode2(QHashData::Node*): invalid shared object<br>
> relocation type: ABS44 code model unsupported<br>
> ld: fatal: relocation error: R_SPARC_L44: file<br>
> moc_qpycore_event_handlers.o: symbol QHash<QObject*,<br>
> QHashDummyValue>::deleteNode2(QHashData::Node*): invalid shared object<br>
> relocation type: ABS44 code model unsupported<br>
> <br>
> <br>
> Googling indicated I should add the -fPIC option to the g++ flags but I<br>
> can't figure out how that works. I've tried:<br>
> "python configure.py CXXFLAGS+=-fPIC" among other things but nothing \
<br> > seems<br>
> to work. Any suggestions?<br>
> <br>
> I have manually added the flag to some Makefiles and that resolved the<br>
> issue.<br>
> <br>
> Thanks,<br>
> 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