All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] "make menuconfig" possibly broken in git master
@ 2010-09-25 11:21 Bjørn Forsman
  2010-09-25 12:14 ` Peter Korsgaard
  2010-09-25 13:49 ` Lionel Landwerlin
  0 siblings, 2 replies; 9+ messages in thread
From: Bjørn Forsman @ 2010-09-25 11:21 UTC (permalink / raw)
  To: buildroot

Hi all,

My buildroot git master tree fails to "make menuconfig" because of
"zconf.tab.c:181: error: conflicting types for ?symbol_hash?":

$ make distclean && make menuconfig
rm -rf     \
		 /home/bjornfor/raid/forks/buildroot/output/build
rm -rf output
rm -rf /media/raid/bjornfor/forks/buildroot/.config
/media/raid/bjornfor/forks/buildroot/.config.old
/media/raid/bjornfor/forks/buildroot/.config.cmd
/media/raid/bjornfor/forks/buildroot/.auto.deps
mkdir -p /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog
make CC="/usr/bin/gcc"
obj=/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config
-C package/config -f Makefile.br mconf
make[1]: Entering directory
`/media/raid/bjornfor/forks/buildroot/package/config'
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2 -MM *.c > /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/.depend
2>/dev/null || :
make[1]: Leaving directory `/media/raid/bjornfor/forks/buildroot/package/config'
make[1]: Entering directory
`/media/raid/bjornfor/forks/buildroot/package/config'
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2  -c conf.c -o
/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/conf.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2  -c kxgettext.c -o
/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/kxgettext.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2  -c lxdialog/checklist.c -o
/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/checklist.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2  -c lxdialog/inputbox.c -o
/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/inputbox.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2  -c lxdialog/menubox.c -o
/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/menubox.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2  -c lxdialog/textbox.c -o
/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/textbox.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2  -c lxdialog/util.c -o
/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/util.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2  -c lxdialog/yesno.c -o
/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/yesno.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2  -c mconf.c -o
/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/mconf.o
/usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
-I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
-O2 -I. -c zconf.tab.c -o
/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/zconf.tab.o
zconf.tab.c:181: error: conflicting types for ?symbol_hash?
lkc_proto.h:27: note: previous declaration of ?symbol_hash? was here
make[1]: *** [/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/zconf.tab.o]
Error 1
make[1]: Leaving directory `/media/raid/bjornfor/forks/buildroot/package/config'
make: *** [/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/mconf]
Error 2

Is anyone else seeing this?

I "git bisected'ed" until I found the bad commit:

commit 52a142a6314905422f14f05fccafdce35bea7f08
Author: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date:   Sat Aug 21 17:00:49 2010 +0200

    Bump package/config to 2.6.36-rc1

    The goal is to be able to use savedefconfig to generate minimal
    defconfig files.

    Four of our patches are removed since the modifications have been
    merged upstream. The new nconf configuration utility has appeared.

I briefly looked at the commit diff but I didn't understand what
caused the breakage.
Any suggestions?

Best regards,
Bj?rn Forsman

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

* [Buildroot] "make menuconfig" possibly broken in git master
  2010-09-25 11:21 [Buildroot] "make menuconfig" possibly broken in git master Bjørn Forsman
@ 2010-09-25 12:14 ` Peter Korsgaard
  2010-09-25 14:29   ` Bjørn Forsman
  2010-09-25 13:49 ` Lionel Landwerlin
  1 sibling, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2010-09-25 12:14 UTC (permalink / raw)
  To: buildroot

>>>>> "Bj?rn" == Bj?rn Forsman <bjorn.forsman@gmail.com> writes:

 Bj?rn> Hi all,
 Bj?rn> My buildroot git master tree fails to "make menuconfig" because of
 Bj?rn> "zconf.tab.c:181: error: conflicting types for ?symbol_hash?":

Strange - Could you try the the same with a recent linux kernel
(E.G. 2.6.36-rc5)?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] "make menuconfig" possibly broken in git master
  2010-09-25 11:21 [Buildroot] "make menuconfig" possibly broken in git master Bjørn Forsman
  2010-09-25 12:14 ` Peter Korsgaard
@ 2010-09-25 13:49 ` Lionel Landwerlin
  2010-09-25 15:02   ` Bjørn Forsman
  1 sibling, 1 reply; 9+ messages in thread
From: Lionel Landwerlin @ 2010-09-25 13:49 UTC (permalink / raw)
  To: buildroot

I had this too. You have to clean your repository well.

Regards,

--
Lionel Landwerlin

Le samedi 25 septembre 2010 ? 13:21 +0200, Bj?rn Forsman a ?crit :
> Hi all,
> 
> My buildroot git master tree fails to "make menuconfig" because of
> "zconf.tab.c:181: error: conflicting types for ?symbol_hash?":
> 
> $ make distclean && make menuconfig
> rm -rf     \
> 		 /home/bjornfor/raid/forks/buildroot/output/build
> rm -rf output
> rm -rf /media/raid/bjornfor/forks/buildroot/.config
> /media/raid/bjornfor/forks/buildroot/.config.old
> /media/raid/bjornfor/forks/buildroot/.config.cmd
> /media/raid/bjornfor/forks/buildroot/.auto.deps
> mkdir -p /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog
> make CC="/usr/bin/gcc"
> obj=/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config
> -C package/config -f Makefile.br mconf
> make[1]: Entering directory
> `/media/raid/bjornfor/forks/buildroot/package/config'
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2 -MM *.c > /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/.depend
> 2>/dev/null || :
> make[1]: Leaving directory `/media/raid/bjornfor/forks/buildroot/package/config'
> make[1]: Entering directory
> `/media/raid/bjornfor/forks/buildroot/package/config'
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2  -c conf.c -o
> /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/conf.o
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2  -c kxgettext.c -o
> /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/kxgettext.o
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2  -c lxdialog/checklist.c -o
> /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/checklist.o
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2  -c lxdialog/inputbox.c -o
> /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/inputbox.o
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2  -c lxdialog/menubox.c -o
> /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/menubox.o
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2  -c lxdialog/textbox.c -o
> /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/textbox.o
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2  -c lxdialog/util.c -o
> /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/util.o
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2  -c lxdialog/yesno.c -o
> /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/lxdialog/yesno.o
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2  -c mconf.c -o
> /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/mconf.o
> /usr/bin/gcc -DCURSES_LOC="<ncurses.h>" -DLOCALE
> -I/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config -g
> -O2 -I. -c zconf.tab.c -o
> /home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/zconf.tab.o
> zconf.tab.c:181: error: conflicting types for ?symbol_hash?
> lkc_proto.h:27: note: previous declaration of ?symbol_hash? was here
> make[1]: *** [/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/zconf.tab.o]
> Error 1
> make[1]: Leaving directory `/media/raid/bjornfor/forks/buildroot/package/config'
> make: *** [/home/bjornfor/raid/forks/buildroot/output/build/buildroot-config/mconf]
> Error 2
> 
> Is anyone else seeing this?
> 
> I "git bisected'ed" until I found the bad commit:
> 
> commit 52a142a6314905422f14f05fccafdce35bea7f08
> Author: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Date:   Sat Aug 21 17:00:49 2010 +0200
> 
>     Bump package/config to 2.6.36-rc1
> 
>     The goal is to be able to use savedefconfig to generate minimal
>     defconfig files.
> 
>     Four of our patches are removed since the modifications have been
>     merged upstream. The new nconf configuration utility has appeared.
> 
> I briefly looked at the commit diff but I didn't understand what
> caused the breakage.
> Any suggestions?
> 
> Best regards,
> Bj?rn Forsman
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] "make menuconfig" possibly broken in git master
  2010-09-25 12:14 ` Peter Korsgaard
@ 2010-09-25 14:29   ` Bjørn Forsman
  2010-09-25 14:59     ` Peter Korsgaard
  0 siblings, 1 reply; 9+ messages in thread
From: Bjørn Forsman @ 2010-09-25 14:29 UTC (permalink / raw)
  To: buildroot

2010/9/25 Peter Korsgaard <jacmet@uclibc.org>:
>>>>>> "Bj?rn" == Bj?rn Forsman <bjorn.forsman@gmail.com> writes:
>
> ?Bj?rn> Hi all,
> ?Bj?rn> My buildroot git master tree fails to "make menuconfig" because of
> ?Bj?rn> "zconf.tab.c:181: error: conflicting types for ?symbol_hash?":
>
> Strange - Could you try the the same with a recent linux kernel
> (E.G. 2.6.36-rc5)?

As the commands "make distclean && make defconfig/menuconfig" fail
I don't know how to specify another kernel version. So I assume you mean
the kernel on build host. I'm on Ubuntu 10.04 and the last time I tried my
own kernel on a Ubuntu system it barely booted. So no, I dare not try a
recent kernel just yet :-)

Best regards,
Bj?rn Forsman

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

* [Buildroot] "make menuconfig" possibly broken in git master
  2010-09-25 14:29   ` Bjørn Forsman
@ 2010-09-25 14:59     ` Peter Korsgaard
  2010-09-25 15:31       ` Bjørn Forsman
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2010-09-25 14:59 UTC (permalink / raw)
  To: buildroot

>>>>> "Bj?rn" == Bj?rn Forsman <bjorn.forsman@gmail.com> writes:

 Bj?rn> 2010/9/25 Peter Korsgaard <jacmet@uclibc.org>:
 >>>>>>> "Bj?rn" == Bj?rn Forsman <bjorn.forsman@gmail.com> writes:
 >> 
 >> ?Bj?rn> Hi all,
 >> ?Bj?rn> My buildroot git master tree fails to "make menuconfig" because of
 >> ?Bj?rn> "zconf.tab.c:181: error: conflicting types for ?symbol_hash?":
 >> 
 >> Strange - Could you try the the same with a recent linux kernel
 >> (E.G. 2.6.36-rc5)?

 Bj?rn> As the commands "make distclean && make defconfig/menuconfig" fail
 Bj?rn> I don't know how to specify another kernel version. So I assume you mean
 Bj?rn> the kernel on build host. I'm on Ubuntu 10.04 and the last time I tried my
 Bj?rn> own kernel on a Ubuntu system it barely booted. So no, I dare not try a
 Bj?rn> recent kernel just yet :-)

No, I actually meant go and download a Linux kernel tarball (E.G. from
kernel.org), extract it and run make menuconfig. The menuconfig stuff in
buildroot comes from the Linux kernel.

But looking at Lionel's mail it seems to be an issue about certain files
not getting rebuilt. Could you do a fresh git clone and try in that dir
or alternatively run make O=output2 menuconfig?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] "make menuconfig" possibly broken in git master
  2010-09-25 13:49 ` Lionel Landwerlin
@ 2010-09-25 15:02   ` Bjørn Forsman
  0 siblings, 0 replies; 9+ messages in thread
From: Bjørn Forsman @ 2010-09-25 15:02 UTC (permalink / raw)
  To: buildroot

2010/9/25 Lionel Landwerlin <llandwerlin@gmail.com>:
> I had this too. You have to clean your repository well.

You are correct. "make distclean" apparently doesn't clean the
repository enough,
because it wasn't until I did a fresh git clone that the issue went away.

Best regards,
Bj?rn Forsman

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

* [Buildroot] "make menuconfig" possibly broken in git master
  2010-09-25 14:59     ` Peter Korsgaard
@ 2010-09-25 15:31       ` Bjørn Forsman
  2010-09-25 20:56         ` Peter Korsgaard
  0 siblings, 1 reply; 9+ messages in thread
From: Bjørn Forsman @ 2010-09-25 15:31 UTC (permalink / raw)
  To: buildroot

2010/9/25 Peter Korsgaard <jacmet@uclibc.org>:
>>>>>> "Bj?rn" == Bj?rn Forsman <bjorn.forsman@gmail.com> writes:
>
> ?Bj?rn> 2010/9/25 Peter Korsgaard <jacmet@uclibc.org>:
> ?>>>>>>> "Bj?rn" == Bj?rn Forsman <bjorn.forsman@gmail.com> writes:
> ?>>
> ?>> ?Bj?rn> Hi all,
> ?>> ?Bj?rn> My buildroot git master tree fails to "make menuconfig" because of
> ?>> ?Bj?rn> "zconf.tab.c:181: error: conflicting types for ?symbol_hash?":
> ?>>
> ?>> Strange - Could you try the the same with a recent linux kernel
> ?>> (E.G. 2.6.36-rc5)?
>
> ?Bj?rn> As the commands "make distclean && make defconfig/menuconfig" fail
> ?Bj?rn> I don't know how to specify another kernel version. So I assume you mean
> ?Bj?rn> the kernel on build host. I'm on Ubuntu 10.04 and the last time I tried my
> ?Bj?rn> own kernel on a Ubuntu system it barely booted. So no, I dare not try a
> ?Bj?rn> recent kernel just yet :-)
>
> No, I actually meant go and download a Linux kernel tarball (E.G. from
> kernel.org), extract it and run make menuconfig. The menuconfig stuff in
> buildroot comes from the Linux kernel.

Oh, I see :-)

> But looking at Lionel's mail it seems to be an issue about certain files
> not getting rebuilt. Could you do a fresh git clone and try in that dir
> or alternatively run make O=output2 menuconfig?

I tried a fresh git clone and it worked fine.

I think I've found the exact issue: package/config/zconf.tab.c wasn't
being rebuilt.
I removed that file, it got rebuilt and the issue was gone.
I think 'make distclean' should clean package/config/zconf.tab.c (and
all *.o files in
package/config/) or this issue may appear next time package/config/ is
synced with upstream.

Best regards,
Bj?rn Forsman

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

* [Buildroot] "make menuconfig" possibly broken in git master
  2010-09-25 15:31       ` Bjørn Forsman
@ 2010-09-25 20:56         ` Peter Korsgaard
  2010-09-27  7:12           ` Bjørn Forsman
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2010-09-25 20:56 UTC (permalink / raw)
  To: buildroot

>>>>> "Bj?rn" == Bj?rn Forsman <bjorn.forsman@gmail.com> writes:

Hi,

 Bj?rn> I think I've found the exact issue: package/config/zconf.tab.c wasn't
 Bj?rn> being rebuilt.
 Bj?rn> I removed that file, it got rebuilt and the issue was gone.
 Bj?rn> I think 'make distclean' should clean package/config/zconf.tab.c (and
 Bj?rn> all *.o files in
 Bj?rn> package/config/) or this issue may appear next time package/config/ is
 Bj?rn> synced with upstream.

The distclean does clean everything currently used, but the problem is
that these files used to exist in package/config, but are now in
output/build/buildroot-config, and the original makefile gets a bit
confused when there's old files in package/config.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] "make menuconfig" possibly broken in git master
  2010-09-25 20:56         ` Peter Korsgaard
@ 2010-09-27  7:12           ` Bjørn Forsman
  0 siblings, 0 replies; 9+ messages in thread
From: Bjørn Forsman @ 2010-09-27  7:12 UTC (permalink / raw)
  To: buildroot

2010/9/25 Peter Korsgaard <jacmet@uclibc.org>:
>>>>>> "Bj?rn" == Bj?rn Forsman <bjorn.forsman@gmail.com> writes:
>
> Hi,
>
> ?Bj?rn> I think I've found the exact issue: package/config/zconf.tab.c wasn't
> ?Bj?rn> being rebuilt.
> ?Bj?rn> I removed that file, it got rebuilt and the issue was gone.
> ?Bj?rn> I think 'make distclean' should clean package/config/zconf.tab.c (and
> ?Bj?rn> all *.o files in
> ?Bj?rn> package/config/) or this issue may appear next time package/config/ is
> ?Bj?rn> synced with upstream.
>
> The distclean does clean everything currently used, but the problem is
> that these files used to exist in package/config, but are now in
> output/build/buildroot-config, and the original makefile gets a bit
> confused when there's old files in package/config.

Ok, so it's already fixed. Good :-)

Best regards,
Bj?rn Forsman

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

end of thread, other threads:[~2010-09-27  7:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-25 11:21 [Buildroot] "make menuconfig" possibly broken in git master Bjørn Forsman
2010-09-25 12:14 ` Peter Korsgaard
2010-09-25 14:29   ` Bjørn Forsman
2010-09-25 14:59     ` Peter Korsgaard
2010-09-25 15:31       ` Bjørn Forsman
2010-09-25 20:56         ` Peter Korsgaard
2010-09-27  7:12           ` Bjørn Forsman
2010-09-25 13:49 ` Lionel Landwerlin
2010-09-25 15:02   ` Bjørn Forsman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.