<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#c9">Comment # 9</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:mark@noffle.net" title="Mark <mark@noffle.net>"> <span class="fn">Mark</span></a>
</span></b>
        <pre>I think I see where the problem lies when comparing your compiler string to the
one being generated by my gcc version.

It seems as though it compiles cleanly when optimizations are disabled however
when the release build occurs, -O3 is passed which immediately causes the
error.

My compilation:
cc  -DDEDICATED -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  -DNDEBUG -O3 -march=i586
-ffast-math -o build/release-linux-x86/ded/vm_x86.o -c code/qcommon/vm_x86.c

code/qcommon/vm_x86.c: In function 'VM_CallCompiled':
code/qcommon/vm_x86.c:1791:2: error: 'asm' operand has impossible constraints
  __asm__ volatile(
  ^

with no optimizations:
$ cc  -DDEDICATED -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  -DNDEBUG -O0 -march=i586
-ffast-math -o build/release-linux-x86/ded/vm_x86.o -c code/qcommon/vm_x86.c
$

Can you try compiling as a Release build and see if you can reproduce?</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>