Bug 3541

Summary: Quotes in the top Makefile:217 break buildroot/kernel config build under cygwin
Product: buildroot Reporter: Oleg Semyonov <os-bugs-qztrsta-uclibc>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: trivial CC: buildroot, os-bugs-qztrsta-uclibc
Priority: P5    
Version: 2011.02   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Host: Target:
Build:

Description Oleg Semyonov 2011-04-03 23:19:57 UTC
Quotes in the top Makefile:217 break buildroot/kernel config build under cygwin:

HOST_LOADLIBES="-lcurses -lintl"

This results, for instance, in the following command line:

/usr/bin/gcc -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -DLOCALE -DKBUILD_NO_NLS
 -I/cygdrive/c/Work/buildroot/buildroot-2011.02/output/build/buildroot-config
 /cygdrive/c/Work/buildroot/buildroot-2011.02/output/build/buildroot-config/conf.o
 /cygdrive/c/Work/buildroot/buildroot-2011.02/output/build/buildroot-config/zconf.tab.o
 "-lcurses -lintl"
 -o /cygdrive/c/Work/buildroot/buildroot-2011.02/output/build/buildroot-config/conf

And "-lcurses -lintl not found" error.

Fix: remove quotes:

HOST_LOADLIBES=-lcurses -lintl
Comment 1 Peter Korsgaard 2011-04-04 13:47:14 UTC
Committed, thanks.

Out of interest, is Buildroot really working for you on Cygwin? I don't recall ever hearing for any other Cygwin users.
Comment 2 Oleg Semyonov 2011-04-04 14:06:29 UTC
(In reply to comment #1)
> Out of interest, is Buildroot really working for you on Cygwin? I don't recall
> ever hearing for any other Cygwin users.

I am using it on Linux, but parts of software we're deleloping on Windows using MS Visual Studio for emulation win32 project and then cross-compiling the source for the arm target.

So I used buildroot under cygwin to build arm uClibc and C++ cross-toolchain (it works for me few years already). Trying to do this yesterday, it stopped building on busybox. But I just didn't have enough time to see the problem. It doesn't find some headers which are definitely exist (shadow.h).

Will be interesting if I could build whole file system and kernel under cygwin in the end :-)  Don't say it is very important for us, but it is at least interesting to try.