Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Busybox & Gcc
@ 2006-07-27 11:50 don
  2006-07-27 21:52 ` Kim Kulak
  0 siblings, 1 reply; 4+ messages in thread
From: don @ 2006-07-27 11:50 UTC (permalink / raw)
  To: buildroot

I am trying to compile busybox.  It is full of code which the newer
gcc's don't like.  For example:

/home/don/Robots/Bot1/EPIA/buildroot/build_i486/busybox/modutils/lsmod.c: In function `lsmod_main':/home/don/Robots/Bot1/EPIA/buildroot/build_i486/busybox/modutils/lsmod.c:96:
warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/don/Robots/Bot1/EPIA/buildroot/build_i486/busybox/modutils/lsmod.c:114:
warning: dereferencing type-punned pointer will break strict-aliasing rules
make[2]: *** [/home/don/Robots/Bot1/EPIA/buildroot/build_i486/busybox/modutils/lsmod.o] Error 1
make[1]: *** [_all] Error 2
make: *** [/home/don/Robots/Bot1/EPIA/buildroot/build_i486/busybox/busybox] Error 2

From what I read, all versions of GCC after 3.3.1 have this "feature".
The earliest gcc that buildroot supports is 3.3.5.
Is anyone compiling busybox?

I tried setting BR2_EXTRA_GCC_CONFIG_OPTIONS tp "-fpermissive" but that
failed when some make file tried to pass that into ld.

Don Reid

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [Buildroot] Busybox & Gcc
@ 2006-07-27 12:46 Drew Cohan
  0 siblings, 0 replies; 4+ messages in thread
From: Drew Cohan @ 2006-07-27 12:46 UTC (permalink / raw)
  To: buildroot

Don,

> warning: dereferencing type-punned pointer will break strict-aliasing rules

I followed Rob Landley's suggestion and removed -Werror from
Rules.mak.  This allowed me to  build a root filesystem using gcc
version 3.4.5 20051201 (Red Hat 3.4.5-2).

Best,

Drew

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-01  0:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-27 11:50 [Buildroot] Busybox & Gcc don
2006-07-27 21:52 ` Kim Kulak
2006-08-01  0:35   ` Rob Landley
  -- strict thread matches above, loose matches on Subject: below --
2006-07-27 12:46 Drew Cohan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox