Re: Compiling pcc
It worked now! Thanks everyone! -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Otto Moerbeek Enviada: sabado, 17 de Novembro de 2007 12:41 Para: Pedro de Oliveira Cc: misc@openbsd.org Assunto: Re: Compiling pcc On Sat, Nov 17, 2007 at 12:21:46PM -, Pedro de Oliveira wrote: > Tried what you guys said... and now it fails on make with another > error, well, its not even an error, its a few warnings. > > cc -O2 -pipe -DPCC_DEBUG -DGCC_COMPAT -Wall -Wmissing-prototypes > -Wstrict-prototypes -Werror -DLIBEXECDIR=\"/usr/local/libexec\" -I. > -I/usr/src/usr.bin/pcc/ccom/i386/.. -I/usr/src/usr.bin/pcc/ccom/i386 > -I/usr/src/usr.bin/pcc/ccom/i386/../../mip > -I/usr/src/usr.bin/pcc/ccom/i386/../../i386 > -I/usr/src/usr.bin/pcc/ccom/i386/../.. -c > /usr/src/usr.bin/pcc/i386/local.c > /usr/src/usr.bin/pcc/i386/local.c: In function `picsymtab': > /usr/src/usr.bin/pcc/i386/local.c:69: warning: implicit declaration of > function `strlen' > /usr/src/usr.bin/pcc/i386/local.c:72: warning: implicit declaration of > function `strlcpy' > /usr/src/usr.bin/pcc/i386/local.c:73: warning: implicit declaration of > function `strlcat' > *** Error code 1 > > Stop in /usr/src/usr.bin/pcc/ccom/i386. > *** Error code 1 > > Stop in /usr/src/usr.bin/pcc/ccom. > *** Error code 1 > > Stop in /usr/src/usr.bin/pcc. Your source is not up to date. local.c includes pass1.h which includes manifest.h which includes string.h. -Otto
Re: Compiling pcc
On Sat, Nov 17, 2007 at 12:21:46PM -, Pedro de Oliveira wrote: > Tried what you guys said... and now it fails on make with another error, > well, its not even an error, its a few warnings. > > cc -O2 -pipe -DPCC_DEBUG -DGCC_COMPAT -Wall -Wmissing-prototypes > -Wstrict-prototypes -Werror -DLIBEXECDIR=\"/usr/local/libexec\" -I. > -I/usr/src/usr.bin/pcc/ccom/i386/.. -I/usr/src/usr.bin/pcc/ccom/i386 > -I/usr/src/usr.bin/pcc/ccom/i386/../../mip > -I/usr/src/usr.bin/pcc/ccom/i386/../../i386 > -I/usr/src/usr.bin/pcc/ccom/i386/../.. -c /usr/src/usr.bin/pcc/i386/local.c > /usr/src/usr.bin/pcc/i386/local.c: In function `picsymtab': > /usr/src/usr.bin/pcc/i386/local.c:69: warning: implicit declaration of > function `strlen' > /usr/src/usr.bin/pcc/i386/local.c:72: warning: implicit declaration of > function `strlcpy' > /usr/src/usr.bin/pcc/i386/local.c:73: warning: implicit declaration of > function `strlcat' > *** Error code 1 > > Stop in /usr/src/usr.bin/pcc/ccom/i386. > *** Error code 1 > > Stop in /usr/src/usr.bin/pcc/ccom. > *** Error code 1 > > Stop in /usr/src/usr.bin/pcc. Your source is not up to date. local.c includes pass1.h which includes manifest.h which includes string.h. -Otto
Re: Compiling pcc
Tried what you guys said... and now it fails on make with another error, well, its not even an error, its a few warnings. cc -O2 -pipe -DPCC_DEBUG -DGCC_COMPAT -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror -DLIBEXECDIR=\"/usr/local/libexec\" -I. -I/usr/src/usr.bin/pcc/ccom/i386/.. -I/usr/src/usr.bin/pcc/ccom/i386 -I/usr/src/usr.bin/pcc/ccom/i386/../../mip -I/usr/src/usr.bin/pcc/ccom/i386/../../i386 -I/usr/src/usr.bin/pcc/ccom/i386/../.. -c /usr/src/usr.bin/pcc/i386/local.c /usr/src/usr.bin/pcc/i386/local.c: In function `picsymtab': /usr/src/usr.bin/pcc/i386/local.c:69: warning: implicit declaration of function `strlen' /usr/src/usr.bin/pcc/i386/local.c:72: warning: implicit declaration of function `strlcpy' /usr/src/usr.bin/pcc/i386/local.c:73: warning: implicit declaration of function `strlcat' *** Error code 1 Stop in /usr/src/usr.bin/pcc/ccom/i386. *** Error code 1 Stop in /usr/src/usr.bin/pcc/ccom. *** Error code 1 Stop in /usr/src/usr.bin/pcc.
Re: Compiling pcc
On Sat, 17 Nov 2007, Pedro Oliveira wrote: > Hi, > > Has anyone had luck compiling the pcc that comes in the source tree? > I've been trying everyday after syncronizing, but im having the same > error over and over. > > It always fails on the directory "ccom/i386" > > cc -O2 -pipe -DPCC_DEBUG -DGCC_COMPAT -Wall -Wmissing-prototypes > -Wstrict-prototypes -Werror -DLIBEXECDIR=\"/usr/local/libexec\" -I. > -I/usr/src/usr.bin/pcc/ccom/i386/.. -I/usr/src/usr.bin/pcc/ccom/i386 > -I/usr/src/usr.bin/pcc/ccom/i386/../../mip > -I/usr/src/usr.bin/pcc/ccom/i386/../../i386 > -I/usr/src/usr.bin/pcc/ccom/i386/../.. -c > /usr/src/usr.bin/pcc/ccom/i386/../trees.c > In file included from /usr/src/usr.bin/pcc/ccom/trees.c:70: > /usr/src/usr.bin/pcc/mip/pass2.h:40:22: external.h: No such file or > directory > In file included from /usr/src/usr.bin/pcc/ccom/trees.c:70: > /usr/src/usr.bin/pcc/mip/pass2.h:375: error: syntax error before > "bittype" > *** Error code 1 > > Am I doing something wrong or it still doesnt build yet? I tested the source as of today and had no problems. In usr/src/usr.bin/pcc i did the following steps... make obj make depend make if i wanted to install it i should do a make install -moj > Thanks in advance, > Pedro de Oliveira.
Re: Compiling pcc
On Sat, Nov 17, 2007 at 10:43:22AM -, Pedro de Oliveira wrote: > Hi, > > Has anyone had luck compiling the pcc that comes in the source tree? > I've been trying everyday after syncronizing, but im having the same error > over and over. > It always fails on the directory "ccom/i386" with this error: > > cc -O2 -pipe -DPCC_DEBUG -DGCC_COMPAT -Wall -Wmissing-prototypes > -Wstrict-prototypes -Werror -DLIBEXECDIR=\"/usr/local/libexec\" -I. > -I/usr/src/usr.bin/pcc/ccom/i386/.. -I/usr/src/usr.bin/pcc/ccom/i386 > -I/usr/src/usr.bin/pcc/ccom/i386/../../mip > -I/usr/src/usr.bin/pcc/ccom/i386/../../i386 > -I/usr/src/usr.bin/pcc/ccom/i386/../.. -c > /usr/src/usr.bin/pcc/ccom/i386/../trees.c > In file included from /usr/src/usr.bin/pcc/ccom/trees.c:70: > /usr/src/usr.bin/pcc/mip/pass2.h:40:22: external.h: No such file or > directory In file included from /usr/src/usr.bin/pcc/ccom/trees.c:70: > /usr/src/usr.bin/pcc/mip/pass2.h:375: error: syntax error before "bittype" > *** Error code 1 > > Am I doing something wrong or it still doesnt build yet? > > Thanks in advance, > Pedro de Oliveira. > you probably forgot to make depend -- Gilles Chehade http://www.evilkittens.org/ http://www.evilkittens.org/blog/gilles/
Re: Compiling pcc
On Sat, Nov 17, 2007 at 10:43:22AM -, Pedro de Oliveira wrote: > Hi, > > Has anyone had luck compiling the pcc that comes in the source tree? > I've been trying everyday after syncronizing, but im having the same error > over and over. > It always fails on the directory "ccom/i386" with this error: > > cc -O2 -pipe -DPCC_DEBUG -DGCC_COMPAT -Wall -Wmissing-prototypes > -Wstrict-prototypes -Werror -DLIBEXECDIR=\"/usr/local/libexec\" -I. > -I/usr/src/usr.bin/pcc/ccom/i386/.. -I/usr/src/usr.bin/pcc/ccom/i386 > -I/usr/src/usr.bin/pcc/ccom/i386/../../mip > -I/usr/src/usr.bin/pcc/ccom/i386/../../i386 > -I/usr/src/usr.bin/pcc/ccom/i386/../.. -c > /usr/src/usr.bin/pcc/ccom/i386/../trees.c > In file included from /usr/src/usr.bin/pcc/ccom/trees.c:70: > /usr/src/usr.bin/pcc/mip/pass2.h:40:22: external.h: No such file or > directory In file included from /usr/src/usr.bin/pcc/ccom/trees.c:70: > /usr/src/usr.bin/pcc/mip/pass2.h:375: error: syntax error before "bittype" > *** Error code 1 > > Am I doing something wrong or it still doesnt build yet? > > Thanks in advance, > Pedro de Oliveira. > > Looks like you didn't run 'make depend'
Re: Compiling pcc
On Sat, 17 Nov 2007, Pedro de Oliveira wrote: Hi, Has anyone had luck compiling the pcc that comes in the source tree? I've been trying everyday after syncronizing, but im having the same error over and over. It always fails on the directory "ccom/i386" with this error: cc -O2 -pipe -DPCC_DEBUG -DGCC_COMPAT -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror -DLIBEXECDIR=\"/usr/local/libexec\" -I. -I/usr/src/usr.bin/pcc/ccom/i386/.. -I/usr/src/usr.bin/pcc/ccom/i386 -I/usr/src/usr.bin/pcc/ccom/i386/../../mip -I/usr/src/usr.bin/pcc/ccom/i386/../../i386 -I/usr/src/usr.bin/pcc/ccom/i386/../.. -c /usr/src/usr.bin/pcc/ccom/i386/../trees.c In file included from /usr/src/usr.bin/pcc/ccom/trees.c:70: /usr/src/usr.bin/pcc/mip/pass2.h:40:22: external.h: No such file or directory In file included from /usr/src/usr.bin/pcc/ccom/trees.c:70: /usr/src/usr.bin/pcc/mip/pass2.h:375: error: syntax error before "bittype" *** Error code 1 Am I doing something wrong or it still doesnt build yet? You need to do: make obj make depend make -- Antti Harri