<html>
<head>
<base href="https://bugzilla.icculus.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - vm_x86.c inline assembly error on hosts using -fPIC"
href="https://bugzilla.icculus.org/show_bug.cgi?id=6429#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - vm_x86.c inline assembly error on hosts using -fPIC"
href="https://bugzilla.icculus.org/show_bug.cgi?id=6429">bug 6429</a>
from <span class="vcard"><a class="email" href="mailto:arny@ats.s.bawue.de" title="Thilo Schulz <arny@ats.s.bawue.de>"> <span class="fn">Thilo Schulz</span></a>
</span></b>
<pre>No I cannot. It compiles just as well with -fPIC.
cc -DDEDICATED -fPIC -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
-pipe -DUSE_ICON -DARCH_STRING=\"x86\" -m32 -DNO_GZIP -Icode/zlib
-DUSE_INTERNAL_JPEG -Icode/jpeg-8c -DUSE_LOCAL_HEADERS
-DPRODUCT_VERSION=\"1.36_GIT_3d55e71-2016-06-15\" -Wformat=2
-Wno-format-zero-length -Wformat-security -Wno-format-nonliteral
-Wstrict-aliasing=2 -Wmissing-format-attribute -Wdisabled-optimization
-Werror-implicit-function-declaration -MMD -DUSE_VOIP -DNDEBUG -O3 -march=i586
-ffast-math -o build/release-linux-x86/ded/vm_x86.o -c code/qcommon/vm_x86.c
cc -DDEDICATED -fPIE -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
-pipe -DUSE_ICON -DARCH_STRING=\"x86\" -m32 -DNO_GZIP -Icode/zlib
-DUSE_INTERNAL_JPEG -Icode/jpeg-8c -DUSE_LOCAL_HEADERS
-DPRODUCT_VERSION=\"1.36_GIT_3d55e71-2016-06-15\" -Wformat=2
-Wno-format-zero-length -Wformat-security -Wno-format-nonliteral
-Wstrict-aliasing=2 -Wmissing-format-attribute -Wdisabled-optimization
-Werror-implicit-function-declaration -MMD -DUSE_VOIP -DNDEBUG -O3 -march=i586
-ffast-math -o build/release-linux-x86/ded/vm_x86.o -c code/qcommon/vm_x86.c
all works for me, so do -fpic and -fpie.
Curiously, in that last comment of yours you don't seem to have any -fPIC or
-fpic or -fPIE flag. Is this enabled per default in your hardened version of
GCC?
Also, does gcc >= 5.0 -fPIC compile standard ioquake3 (that ioquake3 without my
newest changes) without errors?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>