* [RFC] remove -W from build process
@ 2008-12-17 10:19 Sebastian Andrzej Siewior
2008-12-17 10:29 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2008-12-17 10:19 UTC (permalink / raw)
To: linux-mtd
I didn't really figured what exactly goes wrong but if I compile with
CFLAGS unset then the compile process goes like this:
| gcc -O2 -Werror -Wall -Iinclude -Isrc -I../../include src/ubiupdatevol.c -c -o ubiupdatevol.o
Once I set the enviroment CFLAGS to "-g -O2" I also get
"-Wall -Wall -Wwrite-strings -W":
| gcc -g -O2 -Wall -Wall -Wwrite-strings -W -Werror -Wall -Iinclude -Isrc -I../../include src/ubiupdatevol.c -c -o ubiupdatevol.o
|cc1: warnings being treated as errors
|src/ubiupdatevol.c: In function 'truncate_volume':
|src/ubiupdatevol.c:179: error: comparison between signed and unsigned
|src/ubiupdatevol.c:183: error: comparison between signed and unsigned
....
and it aborts. I tried to cleanup the signed and unsigned thing but it is
a long a way. So I guess it may be the best to just disable -Wextra for
now.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
Would it be possible to use autotools for a clean build environment?
ubi-utils/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile
index 63058e1..67e9f6a 100644
--- a/ubi-utils/Makefile
+++ b/ubi-utils/Makefile
@@ -10,7 +10,7 @@ INCLUDEDIR=/usr/include
CC := $(CROSS)gcc
CFLAGS ?= -O2 -g -Werror
-CFLAGS += -Wall -Wwrite-strings -W
+CFLAGS += -Wall -Wwrite-strings
CPPFLAGS += -I./inc -I./src -I$(KERNELHDR) \
-std=gnu99 -DPACKAGE_VERSION=\"1.0\"
--
1.5.6.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [RFC] remove -W from build process
2008-12-17 10:19 [RFC] remove -W from build process Sebastian Andrzej Siewior
@ 2008-12-17 10:29 ` Mike Frysinger
2008-12-17 11:16 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2008-12-17 10:29 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: linux-mtd
On Wed, Dec 17, 2008 at 05:19, Sebastian Andrzej Siewior wrote:
> Would it be possible to use autotools for a clean build environment?
it would make no difference here
-mike
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] remove -W from build process
2008-12-17 10:29 ` Mike Frysinger
@ 2008-12-17 11:16 ` Sebastian Andrzej Siewior
2008-12-17 11:17 ` Mike Frysinger
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2008-12-17 11:16 UTC (permalink / raw)
To: Mike Frysinger; +Cc: linux-mtd
Mike Frysinger wrote:
> On Wed, Dec 17, 2008 at 05:19, Sebastian Andrzej Siewior wrote:
>> Would it be possible to use autotools for a clean build environment?
>
> it would make no difference here
It won't fix compile error, right. I thing it could be easier the handle
CFLAGS, cross builds, install, build dir, rebuilds, ...
Alternatively one could clean up the current make scripts but I thing it
would be easier to handle this with auto tools.
> -mike
Sebastian
--
Firmensitz: 88690 Uhldingen, Auf dem Berg 3
Registergericht: Amtsgericht Freiburg i. Br., HRB 700 806;
StNr. 87007/07777; Ust-Id Nr.: DE252739476
Geschäftsführer: Heinz Egger, Thomas Gleixner
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] remove -W from build process
2008-12-17 11:16 ` Sebastian Andrzej Siewior
@ 2008-12-17 11:17 ` Mike Frysinger
2008-12-17 12:05 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2008-12-17 11:17 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: linux-mtd
On Wed, Dec 17, 2008 at 06:16, Sebastian Andrzej Siewior wrote:
> Mike Frysinger wrote:
>> On Wed, Dec 17, 2008 at 05:19, Sebastian Andrzej Siewior wrote:
>>> Would it be possible to use autotools for a clean build environment?
>>
>> it would make no difference here
>
> It won't fix compile error, right. I thing it could be easier the handle
> CFLAGS, cross builds, install, build dir, rebuilds, ...
> Alternatively one could clean up the current make scripts but I thing it
> would be easier to handle this with auto tools.
ive already posted a patch to cleanup the build system and it should
address every issue you highlighted here ...
-mike
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC] remove -W from build process
2008-12-17 11:17 ` Mike Frysinger
@ 2008-12-17 12:05 ` Sebastian Andrzej Siewior
0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2008-12-17 12:05 UTC (permalink / raw)
To: Mike Frysinger; +Cc: linux-mtd
Mike Frysinger wrote:
> On Wed, Dec 17, 2008 at 06:16, Sebastian Andrzej Siewior wrote:
>> Mike Frysinger wrote:
>>> On Wed, Dec 17, 2008 at 05:19, Sebastian Andrzej Siewior wrote:
>>>> Would it be possible to use autotools for a clean build environment?
>>> it would make no difference here
>> It won't fix compile error, right. I thing it could be easier the handle
>> CFLAGS, cross builds, install, build dir, rebuilds, ...
>> Alternatively one could clean up the current make scripts but I thing it
>> would be easier to handle this with auto tools.
>
> ive already posted a patch to cleanup the build system and it should
> address every issue you highlighted here ...
Cool. I thing you refer to "unify all common build system parts". It looks
promising and smaller than my attempt.
> -mike
Sebastian
--
Firmensitz: 88690 Uhldingen, Auf dem Berg 3
Registergericht: Amtsgericht Freiburg i. Br., HRB 700 806;
StNr. 87007/07777; Ust-Id Nr.: DE252739476
Geschäftsführer: Heinz Egger, Thomas Gleixner
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-17 12:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-17 10:19 [RFC] remove -W from build process Sebastian Andrzej Siewior
2008-12-17 10:29 ` Mike Frysinger
2008-12-17 11:16 ` Sebastian Andrzej Siewior
2008-12-17 11:17 ` Mike Frysinger
2008-12-17 12:05 ` Sebastian Andrzej Siewior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox