On November 27, 2015 10:50:20 AM CST, Vasudev Kamath <vasudev@copyninja.info> wrote:
Hi Ryan,
Ryan Gonzalez <rymg19@gmail.com> writes:
See
https://bitbucket.org/plan9-from-bell-labs/9-cc/issues/1/problems-building-under-x64-linux
for some tips on fixing various errors you may encounter, including
this one. (I opened that issue like 8 months ago...)
I followed your reported issue. I could fix first 2 points but I get
different error after that.
(cd src/libmath; mk all)
/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/lib/libmath.a doesn't exist: assuming it will be an archive
cc -c -m32 -g -O -I/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/include
-I/home/vasudev/Documents/C_programming/compilers/9-cc/include -DLINUX_386 blas.c
In file included from /home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/include/lib9.h:9:0,
from blas.c:1:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
In file included from /home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/include/lib9.h:19:0,
from blas.c:1:
/home/vasudev/Documents/C_programming/compilers/9-cc/include/mathi.h:59:12: error: expected identifier or ‘(’ before ‘sizeof’
extern int isnan(double);
^
mk: cc -c -m32 ... : exit status=exit(1)
mk: for j in ... : exit status=exit(1)
I tried to find sizeof in mathi.h but I can't really find
anything. (Yeah there is no sizeof in
either mathi.h or related
files).
I'm unsure what the error is indicating. Any idea on how to proceed further?.