Skip to contentSkip to conversation

: SVN buildroot does not build configuration package

Buildroot bugs at busybox.net 1 participant 1 message Jul 9, 2007

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=1415
======================================================================

Reported By:                bjdooks
Assigned To:                buildroot
====================================================================== 
Project:                    buildroot
Issue ID:                   1415
Category:                   Other
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             07-02-2007 04:56 PDT
Last Modified:              07-09-2007 10:29 PDT

======================================================================
Summary: SVN buildroot does not build configuration package
Description:
The new import of the package/config no longer builds even for the default by using 'make'

The following fails building mconf.c.

/usr/bin/gcc -g -O2 -c -o mconf.o mconf.c
In file included from mconf.c:27:
lxdialog/dialog.h:32:10: error: #include expects "FILENAME" or <FILENAME> In file included from mconf.c:27:
lxdialog/dialog.h:97: error: expected specifier-qualifier-list before 'chtype'

This seems to require the $(HOST_EXTRACFLAGS) to build.

I tried adding:

%.o: %.c

        $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) -c $<

-o $@

but this just then fails to link the project.

I do not have enough make expertise to try and fix this, as it is a complicated piece of make.
======================================================================

----------------------------------------------------------------------
bjdooks - 07-02-07 04:58
----------------------------------------------------------------------
URL: svn://uclibc.org/trunk/buildroot
Repository Root: svn://uclibc.org
Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277
Revision: 18991
Node Kind: directory
Schedule: normal
Last Changed Author: aldot
Last Changed Rev: 18991
Last Changed Date: 2007-07-02 10:54:18 +0100 (Mon, 02 Jul 2007)

----------------------------------------------------------------------
bjdooks - 07-02-07 18:05
----------------------------------------------------------------------
Partially corrected by the fix to write .config.cmd, but menuconfig still returns an error even if it correctly writes a config. Updated package/config patch to follow

----------------------------------------------------------------------
bjdooks - 07-02-07 18:07
----------------------------------------------------------------------
http://bugs.uclibc.org/file_download.php?file_id=1069&type=bug fixes menuconfig error return by ensuring we do not try things like writing the split configuration headers and moving the autogenerated configuration files .tmpconfig and .tmpconfig.h to a directory which isn't used.

----------------------------------------------------------------------
chickenandporn - 07-03-07 12:11
----------------------------------------------------------------------
The attached patch is a list of instructions, not a patch... it's not usable without knowing perhaps a kernel version it comes from and such.

looks like the change in 18991 helped. (looking at: svn diff -r 18991 package/config/confdata.c)

I have a patch that will resolve; will try to attach tonight after I clean it a bit -- basically copies the mkdir stuff from confdata.c at 614 to a separate function and re-uses before the rename() calls.

----------------------------------------------------------------------
chickenandporn - 07-05-07 07:03
----------------------------------------------------------------------
http://bugs.uclibc.org/file_download.php?file_id=1071&type=bug tested on clean r19002 checkout from SVN. Tested on Linux (CentOS-4.4) and (intel) MacOSX-10.4.10. bjdooks, can you check the patch, and see if you can alter it to cover what you did as well, in case I missed something from your fix?

----------------------------------------------------------------------
bernhardf - 07-07-07 17:29
----------------------------------------------------------------------
r19026 is supposed to work, please report back. TIA,

----------------------------------------------------------------------
chickenandporn - 07-09-07 09:20
----------------------------------------------------------------------
per email, the changes to buildroot/Makefile override HOSTCFLAGS on the sub-make for conf and mconf; this breaks -DKBUILD_NO_NLS setting derived in $(CONFIG)/Makefile.kconfig

Moving that Makefile.kconfig change to HOST_EXTRACFLAGS is a one-line workaround, tested OK on MacOSX, but not sure if it's the right path.

My fix to r19026 is
http://busybox.net/bugs/file_download.php?file_id=1075&type=bug,
buildroot-confdata-fixes-r19026.patch

----------------------------------------------------------------------
bernhardf - 07-09-07 09:55
----------------------------------------------------------------------
Can you do make -C package/config distclean
and mail me the output of a subsequent 'make menuconfig', please? TIA,

----------------------------------------------------------------------
chickenandporn - 07-09-07 10:28
----------------------------------------------------------------------
Yeah, will do.

I'm currently carrying 6 patches, it'll take a bit of time.

I want to reiterate:
1) my first fix solved it for me; not sure you looked at that
2) my second fix solved it for me; not sure you looked@that

Note: second fix is a one-liner, and DOES RESOLVE. Not sure you looked at that.

----------------------------------------------------------------------
chickenandporn - 07-09-07 10:29
----------------------------------------------------------------------
See also package/config/Makefile.kconfig:

# Needed for systems without gettext

KBUILD_HAVE_NLS := $(shell \
     if echo "\#include <libintl.h>" | $(HOSTCC) $(HOSTCFLAGS) -E - >

/dev/null 2>&1 ; \
then echo yes ; \
else echo no ; fi)
ifeq ($(KBUILD_HAVE_NLS),no)
HOSTCFLAGS += -DKBUILD_NO_NLS
endif

Issue History
Date Modified Username Field Change
======================================================================

07-02-07 04:56  bjdooks        New Issue                                    
07-02-07 04:56  bjdooks        Status                   new => assigned     
07-02-07 04:56  bjdooks        Assigned To               => buildroot       
07-02-07 04:58  bjdooks        Note Added: 0002542                          
07-02-07 18:05  bjdooks        Note Added: 0002545                          
07-02-07 18:05  bjdooks        File Added: buildroot-fix-menuconfig.patch       
07-02-07 18:07  bjdooks        Note Added: 0002546                          
07-03-07 12:11  chickenandporn Note Added: 0002553                          
07-05-07 06:57  chickenandporn File Added: buildroot-confdata-mkdirhier.patch   
07-05-07 07:02  chickenandporn Note Added: 0002556                          
07-05-07 07:03  chickenandporn Note Edited: 0002556                         
07-05-07 07:41  chickenandporn Issue Monitored: chickenandporn                  
07-07-07 17:29  bernhardf      Note Added: 0002563                          
07-09-07 09:17  chickenandporn Note Added: 0002582                          
07-09-07 09:19  chickenandporn File Added: buildroot-confdata-fixes-r19026.patch
07-09-07 09:20  chickenandporn Note Edited: 0002582                         
07-09-07 09:55  bernhardf      Note Added: 0002583                          
07-09-07 10:28  chickenandporn Note Added: 0002584                          
07-09-07 10:29  chickenandporn Note Added: 0002585                          

======================================================================