delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/10/31/04:52:39

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
From: <ams AT ludd DOT ltu DOT se>
Message-Id: <200410310952.i9V9qSpY001125@speedy.ludd.ltu.se>
Subject: Re: tests/libc/ansi/time/makefile problems
In-Reply-To: <upa9o0p48jg8p8ib66cthh0i9e39pkonkv@4ax.com> "from Brian Inglis
at Oct 31, 2004 02:12:15 am"
To: djgpp-workers AT delorie DOT com
Date: Sun, 31 Oct 2004 10:52:28 +0100 (CET)
X-Mailer: ELM [version 2.4ME+ PL78 (25)]
MIME-Version: 1.0
X-ltu-MailScanner-Information: Please contact the ISP for more information
X-ltu-MailScanner: Found to be clean
X-MailScanner-From: ams AT ludd DOT ltu DOT se
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

According to Brian Inglis:
> ROn Sun, 24 Oct 2004 23:05:23 +0200 (CEST), ams AT ludd DOT ltu DOT se wrote:
> 
> >Can anyone run make successfully in tests/libc/ansi/time/?
> 
> Yes -- okay. There are some warnings with recent gcc versions. 
> 
> >When I try I get:
> >../../../makefile.inc:11: *** Recursive variable `CFLAGS' references itself (eventuall). Stop.
> >
> >I'm using make version 3.79.1.
> 
> No problems with make 3.77. 
> 
> >I suspect it the line that reads
> >
> >xstrftm.exe:	CFLAGS += -Wno-error
> >
> >that is the problem.
> 
> The following patches should take care of the warnings. 
> Then the CFLAGS line can be removed from the makefile, 
> if that is causing the problem. 

Thanks. But it doesn't help.

With that line in the makefile I get the error above ("Recursive
variable `CFLAGS'...").

Without that line make says:
gcc @../../../gcc.opt -I. -I- -I../../../../include  -c xstrftm.c
cc1.exe: warnings being treated as errors
xstrftm.c: In function `main':
xstrftm.c:17: warning: `%x' yields only last 2 digits of year in some locales
xstrftm.c:22: warning: `%x' yields only last 2 digits of year in some locales
xstrftm.c:29: warning: `%x' yields only last 2 digits of year in some locales
xstrftm.c:34: warning: `%x' yields only last 2 digits of year in some locales
make.exe: *** [xstrftm.o] Error 1

I'm using gcc 2.953.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019