[GTALUG] Ubuntu 16.04 / gcc 5.4.0 - errors generated inside system include files

ted leslie ted.leslie at gmail.com
Sat Aug 6 11:24:28 EDT 2016


Look at bottom answer

http://stackoverflow.com/questions/10293202/c-error-expected-asm-or-attribute-before


On Sat, Aug 06, 2016 at 10:02 AM, Stewart C. Russell via talk < talk at gtalug.org [talk at gtalug.org] > wrote:
I'm hitting unexpected problems building some old-ish code (UCB Logo 6,
after hearing Seymour Papert went PENUP last week). gcc seems to be
choking on its own header file, mathcalls.h:

gcc -g -O -O0 -DUSE_OLD_TTY -c -o coms.o coms.c
In file included from coms.c:30:0:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
__MATHCALL_VEC (exp,, (_Mdouble_ __x));
^
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
__MATHCALL_VEC (exp,, (_Mdouble_ __x));
^
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
__MATHCALL_VEC (exp,, (_Mdouble_ __x));
^
<builtin>: recipe for target 'coms.o' failed
make: *** [coms.o] Error 1

(this on Ubuntu 16.04, gcc 5.4.0, x86_64)

I can build other code that includes math.h, the source of the
mathcalls.h inclusion. The package builds fine on a Raspberry Pi
(Raspbian, gcc 4.9.2, armv7l). The package even built on x86_64 under
Ubuntu 15.10.

Is this just Canonical mucking about with the compiler settings again?

cheers,
Stewart
---
Talk Mailing List
talk at gtalug.org
https://gtalug.org/mailman/listinfo/talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/talk/attachments/20160806/0ddd1d34/attachment.html>


More information about the talk mailing list