From mboxrd@z Thu Jan 1 00:00:00 1970 User-Agent: K-9 Mail for Android In-Reply-To: <877fl3bd4j.fsf@rudra.copyninja.info> References: <877fl6ronj.fsf@rudra.copyninja.info> <877fl3bd4j.fsf@rudra.copyninja.info> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----0IEQFZABDORERSKCKG13IOAOJTBZHP" From: Ryan Gonzalez Date: Fri, 27 Nov 2015 10:59:41 -0600 To: Vasudev Kamath Message-ID: Content-Transfer-Encoding: 7bit Cc: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Compiling ken-cc on Linux Topicbox-Message-UUID: 78f10bc6-ead9-11e9-9d60-3106f5b1d025 ------0IEQFZABDORERSKCKG13IOAOJTBZHP Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Try going to the top of mathi.h and putting: #undef isnan #undef isinf Stupid macros that don't look like macros. On November 27, 2015 10:50:20 AM CST, Vasudev Kamath wrote: > >Hi Ryan, > >Ryan Gonzalez writes: >> See >> >https://bitbucket.org/plan9-from-bell-labs/9-cc/issues/1/problems-buildi= ng-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/libma= th.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/l= ib9.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/l= ib9.h:19:0, > from blas.c:1: >/home/vasudev/Documents/C_programming/compilers/9-cc/include/mathi.h:59:= 12: >error: expected identifier or =E2=80=98(=E2=80=99 before =E2=80=98sizeof= =E2=80=99 > 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?. --=20 Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity. ------0IEQFZABDORERSKCKG13IOAOJTBZHP Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Try going to the top of mathi.h and putting:

#undef isnan
#undef isinf

Stupid macros that don't look like macros.

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-f= rom-bell-labs/9-cc/issues/1/problems-building-under-x64-linux
f= or 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<= br />different error after that.

(cd src/libmath; mk all)
/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/lib/libm= ath.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_38= 6 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_SOU= RCE and _SVID_SOURCE 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_program= ming/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 =E2=80=98(=E2=80=99 = before =E2=80=98sizeof=E2=80=99
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 mat= hi.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 er= ror is indicating. Any idea on how to proceed further?.

--
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity. ------0IEQFZABDORERSKCKG13IOAOJTBZHP--