From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vasudev Kamath To: Ryan Gonzalez References: <877fl6ronj.fsf@rudra.copyninja.info> Date: Fri, 27 Nov 2015 22:20:20 +0530 In-Reply-To: (Ryan Gonzalez's message of "Wed, 25 Nov 2015 11:15:02 -0600") Message-ID: <877fl3bd4j.fsf@rudra.copyninja.info> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Cc: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Compiling ken-cc on Linux Topicbox-Message-UUID: 78ecd448-ead9-11e9-9d60-3106f5b1d025 Hi Ryan, Ryan Gonzalez writes: > See > https://bitbucket.org/plan9-from-bell-labs/9-cc/issues/1/problems-buildin= g-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/Lin= ux/386/include -I/home/vasudev/Documents/C_programming/compilers/9-cc/inclu= de -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_SOU= RCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURC= E" ^ 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 =A1=AE(=A1=AF before =A1=AEsizeof=A1=AF extern int isnan(double); ^ mk: cc -c -m32 ... : exit status=3Dexit(1) mk: for j in ... : exit status=3Dexit(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).=20 I'm unsure what the error is indicating. Any idea on how to proceed further= ?.