gcc - What package am I missing if inline asm() is not supported? -


i trying compile php xhprof extension. on 1 server, make successful, on 1 fails "inline asm() not supported". relevant code is

asm volatile("rdtsc" : "=a" (__a), "=d" (__d));   

both servers run debian similar configuration.

question: package missing or packages version should compare between servers enable inline asm?

for reference make output

/bin/sh /usr/local/src/xhprof/extension/libtool --mode=compile cc  -i. -i/usr/local/src/xhprof/extension -dphp_atom_inc -i/usr/local/src/xhprof/extension/include -i/usr/local/src/xhprof/extension/main -i/usr/local/src/xhprof/extension -i/usr/include/php5 -i/usr/include/php5/main -i/usr/include/php5/tsrm -i/usr/include/php5/zend -i/usr/include/php5/ext -i/usr/include/php5/ext/date/lib  -dhave_config_h  -g   -c /usr/local/src/xhprof/extension/xhprof.c -o xhprof.lo libtool: compile:  cc -i. -i/usr/local/src/xhprof/extension -dphp_atom_inc -i/usr/local/src/xhprof/extension/include -i/usr/local/src/xhprof/extension/main -i/usr/local/src/xhprof/extension -i/usr/include/php5 -i/usr/include/php5/main -i/usr/include/php5/tsrm -i/usr/include/php5/zend -i/usr/include/php5/ext -i/usr/include/php5/ext/date/lib -dhave_config_h -g -c /usr/local/src/xhprof/extension/xhprof.c  -dpic -o .libs/xhprof.o /usr/local/src/xhprof/extension/xhprof.c:1224: inline asm() not supported /usr/local/src/xhprof/extension/libtool: line 1111: 23098 segmentation fault      cc -i. -i/usr/local/src/xhprof/extension -dphp_atom_inc -i/usr/local/src/xhprof/extension/include -i/usr/local/src/xhprof/extension/main -i/usr/local/src/xhprof/extension -i/usr/include/php5 -i/usr/include/php5/main -i/usr/include/php5/tsrm -i/usr/include/php5/zend -i/usr/include/php5/ext -i/usr/include/php5/ext/date/lib -dhave_config_h -g -c    /usr/local/src/xhprof/extension/xhprof.c -dpic -o .libs/xhprof.o make: *** [xhprof.lo] error 1 

apparently cc on machine not link gcc other compiler (tcc) doesn't understand gcc's extended asm syntax.


Comments