From mboxrd@z Thu Jan 1 00:00:00 1970 User-Agent: K-9 Mail for Android In-Reply-To: <87k2p1w3ae.fsf@rudra.copyninja.info> References: <877fl6ronj.fsf@rudra.copyninja.info> <877fl3bd4j.fsf@rudra.copyninja.info> <8737vrbbxp.fsf@rudra.copyninja.info> <9F888B46-B9A9-4DEA-AD47-631DC3D6B9C5@gmail.com> <87k2p1w3ae.fsf@rudra.copyninja.info> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 From: Ryan Gonzalez Date: Sun, 29 Nov 2015 08:38:44 -0600 To: Vasudev Kamath Message-ID: <40956B2C-0BF4-4787-AA5C-69D76694D608@gmail.com> 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: 7981249a-ead9-11e9-9d60-3106f5b1d025 On November 29, 2015 3:41:45 AM CST, Vasudev Kamath wrote: >Ryan Gonzalez writes: > >>>That took compilation further but now it breaks at point 4 in your >>>issue. I hope I won't encounter more new issues :-). >>> >> >> Ah, yes, I completely forgot about that part. :/ Good luck with the >> rest of the compilation! You'll need it! > >Yes indeed. Now I'm having following error, after applying patch you >mentioned in the comment. > >cc -m32 -o o.out y.tab.o lex.o >/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/lib/libcc= .a >/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/lib/libbi= o.a >/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/lib/lib9.= a > >(cd 6c; mk all) >mk: no recipe to make 'div.o' > >So there is no div.c under src/cmd/6c. I see that old mkfile mkfile_o >has div.c but I don't know where original source file went. Removing >div.$O\ from mkfile gives the following error. > >cc -m32 -o o.out cgen.o enam.o list.o mul.o peep.o reg.o sgen.o swt.o >txt.o pswt.o pgen.o >/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/lib/libcc= .a >/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/lib/libbi= o.a >/home/vasudev/Documents/C_programming/compilers/9-cc/Linux/386/lib/lib9.= a > >cgen.o: In function `cgen': >/home/vasudev/Documents/C_programming/compilers/9-cc/src/cmd/6c/cgen.c:3= 20: >undefined reference to `sdiv2' >/home/vasudev/Documents/C_programming/compilers/9-cc/src/cmd/6c/cgen.c:3= 23: >undefined reference to `smod2' >/home/vasudev/Documents/C_programming/compilers/9-cc/src/cmd/6c/cgen.c:4= 25: >undefined reference to `sdivgen' >/home/vasudev/Documents/C_programming/compilers/9-cc/src/cmd/6c/cgen.c:4= 27: >undefined reference to `udivgen' >/home/vasudev/Documents/C_programming/compilers/9-cc/src/cmd/6c/cgen.c:6= 32: >undefined reference to `sdiv2' >/home/vasudev/Documents/C_programming/compilers/9-cc/src/cmd/6c/cgen.c:6= 35: >undefined reference to `smod2' >/home/vasudev/Documents/C_programming/compilers/9-cc/src/cmd/6c/cgen.c:7= 59: >undefined reference to `sdivgen' >/home/vasudev/Documents/C_programming/compilers/9-cc/src/cmd/6c/cgen.c:7= 62: >undefined reference to `udivgen' >collect2: error: ld returned 1 exit status >mk: cc -m32 ... : exit status=3Dexit(1) >mk: for j in ... : exit status=3Dexit(1) >mk: for j in ... : exit status=3Dexit(1) > >In both case I'm hitting dead end. Any hints for going forward?. Well, the 6* compilers don't work ATM anyway, so I think you can just com= ment out the relevant lines in src/cmd/mkfile. --=20 Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.