<p dir="ltr">Look at bottom answer</p>
<p dir="ltr">http://stackoverflow.com/questions/10293202/c-error-expected-asm-or-attribute-before<br>
</p>
<div class="cm_quote" style=" color: #787878">On Sat, Aug 06, 2016 at 10:02 AM, Stewart C. Russell via talk <<a href="mailto:talk@gtalug.org">talk@gtalug.org</a>> wrote:</div><br><div id="oldcontent" style="background: rgb(255, 255, 255);"><blockquote style=""><p dir="ltr">I'm hitting unexpected problems building some old-ish code (UCB Logo 6,<br>
after hearing Seymour Papert went PENUP last week). gcc seems to be<br>
choking on its own header file, mathcalls.h:</p>
<p dir="ltr">gcc -g -O   -O0 -DUSE_OLD_TTY   -c -o coms.o coms.c<br>
In file included from coms.c:30:0:<br>
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: error: expected<br>
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’<br>
 __MATHCALL_VEC (exp,, (_Mdouble_ __x));<br>
 ^<br>
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: error: expected<br>
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’<br>
 __MATHCALL_VEC (exp,, (_Mdouble_ __x));<br>
 ^<br>
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: error: expected<br>
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’<br>
 __MATHCALL_VEC (exp,, (_Mdouble_ __x));<br>
 ^<br>
<builtin>: recipe for target 'coms.o' failed<br>
make: *** [coms.o] Error 1</p>
<p dir="ltr">(this on Ubuntu 16.04, gcc 5.4.0, x86_64)</p>
<p dir="ltr">I can build other code that includes math.h, the source of the<br>
mathcalls.h inclusion. The package builds fine on a Raspberry Pi<br>
(Raspbian, gcc 4.9.2, armv7l). The package even built on x86_64 under<br>
Ubuntu 15.10.</p>
<p dir="ltr">Is this just Canonical mucking about with the compiler settings again?</p>
<p dir="ltr">cheers,<br>
 Stewart<br>
---<br>
Talk Mailing List<br>
talk@gtalug.org<br>
https://gtalug.org/mailman/listinfo/talk<br>
</p>
</blockquote></div>