Re: compiler bug or source bug?

2001-06-04 Thread Garrett Wollman

< said:

> We could make off_t a long long on the alpha.  Otherwise the formats need:
>   printf("%lld", (long long) pos);  /* or %qd to shut up the ANSI warning */

They always need that, until printf learns about the `j' width
specifier (at which time they all change to `printf("%jd",
(intmax_t)pos);').  off_t is another one of those types which can be
defined as absolutely any arithmetic type the implementation wishes.

-GAWollman


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: compiler bug or source bug?

2001-06-03 Thread Matthew Jacob

> > this function)
> > /usr/src/usr.bin/fetch/fetch.c:758: (Each undeclared identifier is reported
> > only once
> > /usr/src/usr.bin/fetch/fetch.c:758: for each function it appears in.)
> > *** Error code 1
> > 
> > Can somebody decide what's right here and let me know? It's blocking
> > buildwords for alphas.
> 
> This is something broken in your build tree.  fetchAuthMethod is declared
> in .  src/Makefile.inc1 does a 'make beforeinstall' in libfetch
> to install fetch.h into the include tree.  fetch(1) should see it just the
> same as on the i386.
> 

Okay. Sorry- we've all been struggling to find at least *one* build all the
way through on alpha for a while.

-matt



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: compiler bug or source bug?

2001-06-03 Thread Peter Wemm

Matthew Jacob wrote:
> 
> This has been going on for at least a week for alpha:
> 
> cc -O -pipe -mcpu=ev4 -Wall -pedantic   -c /usr/src/usr.bin/fetch/fetch.c
> /usr/src/usr.bin/fetch/fetch.c: In function `stat_display':
> /usr/src/usr.bin/fetch/fetch.c:131: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:131: warning: long long int format, off_t arg
> (arg 3)
> /usr/src/usr.bin/fetch/fetch.c:134: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:134: warning: long long int format, off_t arg
> (arg 3)
> /usr/src/usr.bin/fetch/fetch.c: In function `stat_end':
> /usr/src/usr.bin/fetch/fetch.c:173: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:173: warning: long long int format, off_t arg
> (arg 3)
> /usr/src/usr.bin/fetch/fetch.c: In function `fetch':
> /usr/src/usr.bin/fetch/fetch.c:301: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:301: warning: long long int format, off_t arg
> (arg 2)
> /usr/src/usr.bin/fetch/fetch.c:339: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:339: warning: long long int format, off_t arg
> (arg 3)
> /usr/src/usr.bin/fetch/fetch.c:339: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:339: warning: long long int format, off_t arg
> (arg 4)
> /usr/src/usr.bin/fetch/fetch.c:358: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:358: warning: long long int format, off_t arg
> (arg 3)
> /usr/src/usr.bin/fetch/fetch.c:361: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:361: warning: long long int format, off_t arg
> (arg 3)
> /usr/src/usr.bin/fetch/fetch.c:394: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:394: warning: long long int format, off_t arg
> (arg 3)
> /usr/src/usr.bin/fetch/fetch.c:394: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:394: warning: long long int format, off_t arg
> (arg 4)
> /usr/src/usr.bin/fetch/fetch.c:509: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:509: warning: long long int format, off_t arg
> (arg 3)
> /usr/src/usr.bin/fetch/fetch.c:509: warning: ANSI C does not support the `ll'
> length modifier
> /usr/src/usr.bin/fetch/fetch.c:509: warning: long long int format, off_t arg
> (arg 4)

These are a false alarm.  FWIW, in the alpha:

peter@ashburton[10:39pm]~-126> ./s
sizeof(int) = 4
sizeof(long) = 8
sizeof(long long) = 8

We could make off_t a long long on the alpha.  Otherwise the formats need:
  printf("%lld", (long long) pos);  /* or %qd to shut up the ANSI warning */

> /usr/src/usr.bin/fetch/fetch.c: In function `main':
> /usr/src/usr.bin/fetch/fetch.c:758: `fetchAuthMethod' undeclared (first use i
n
> this function)
> /usr/src/usr.bin/fetch/fetch.c:758: (Each undeclared identifier is reported
> only once
> /usr/src/usr.bin/fetch/fetch.c:758: for each function it appears in.)
> *** Error code 1
> 
> Can somebody decide what's right here and let me know? It's blocking
> buildwords for alphas.

This is something broken in your build tree.  fetchAuthMethod is declared
in .  src/Makefile.inc1 does a 'make beforeinstall' in libfetch
to install fetch.h into the include tree.  fetch(1) should see it just the
same as on the i386.

Cheers,
-Peter
--
Peter Wemm - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



compiler bug or source bug?

2001-06-03 Thread Matthew Jacob


This has been going on for at least a week for alpha:

cc -O -pipe -mcpu=ev4 -Wall -pedantic   -c /usr/src/usr.bin/fetch/fetch.c
/usr/src/usr.bin/fetch/fetch.c: In function `stat_display':
/usr/src/usr.bin/fetch/fetch.c:131: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:131: warning: long long int format, off_t arg
(arg 3)
/usr/src/usr.bin/fetch/fetch.c:134: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:134: warning: long long int format, off_t arg
(arg 3)
/usr/src/usr.bin/fetch/fetch.c: In function `stat_end':
/usr/src/usr.bin/fetch/fetch.c:173: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:173: warning: long long int format, off_t arg
(arg 3)
/usr/src/usr.bin/fetch/fetch.c: In function `fetch':
/usr/src/usr.bin/fetch/fetch.c:301: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:301: warning: long long int format, off_t arg
(arg 2)
/usr/src/usr.bin/fetch/fetch.c:339: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:339: warning: long long int format, off_t arg
(arg 3)
/usr/src/usr.bin/fetch/fetch.c:339: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:339: warning: long long int format, off_t arg
(arg 4)
/usr/src/usr.bin/fetch/fetch.c:358: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:358: warning: long long int format, off_t arg
(arg 3)
/usr/src/usr.bin/fetch/fetch.c:361: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:361: warning: long long int format, off_t arg
(arg 3)
/usr/src/usr.bin/fetch/fetch.c:394: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:394: warning: long long int format, off_t arg
(arg 3)
/usr/src/usr.bin/fetch/fetch.c:394: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:394: warning: long long int format, off_t arg
(arg 4)
/usr/src/usr.bin/fetch/fetch.c:509: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:509: warning: long long int format, off_t arg
(arg 3)
/usr/src/usr.bin/fetch/fetch.c:509: warning: ANSI C does not support the `ll'
length modifier
/usr/src/usr.bin/fetch/fetch.c:509: warning: long long int format, off_t arg
(arg 4)
/usr/src/usr.bin/fetch/fetch.c: In function `main':
/usr/src/usr.bin/fetch/fetch.c:758: `fetchAuthMethod' undeclared (first use in
this function)
/usr/src/usr.bin/fetch/fetch.c:758: (Each undeclared identifier is reported
only once
/usr/src/usr.bin/fetch/fetch.c:758: for each function it appears in.)
*** Error code 1




Can somebody decide what's right here and let me know? It's blocking
buildwords for alphas.

-matt





To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message