public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* crosstool-NG Cygwin Build Fails
@ 2012-05-07 21:06 Lusk, Timothy             CCS
  2012-05-08 10:28 ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Lusk, Timothy             CCS @ 2012-05-07 21:06 UTC (permalink / raw)
  To: crossgcc

The newest two versions of crosstool-NG (1.14.x and 1.15.x) no longer build correctly on Cygwin.  It fails to find libintl and nconf fails to find the folder with the ncurses sources.  It also doesn't like it if you're using the wide character version of ncurses (ncursesw), but the first two issues still occur when using the original ncurses library.  I used the following patches to get it building in Cygwin.  Just a heads up for anyone else who might run into this problem.

$ diff crosstool-ng-1.15.0_old/kconfig/Makefile crosstool-ng-1.15.0/kconfig/Makefile
10c10
< LDFLAGS =
---
> LDFLAGS =
37a38
> conf: LDFLAGS += -lintl
44c45
< mconf: LDFLAGS += $(NCURSES_LDFLAGS)
---
> mconf: LDFLAGS += -lintl $(NCURSES_LDFLAGS)
50,51c51,52
< $(nconf_OBJ) $(nconf_DEP): CFLAGS += $(INTL_CFLAGS)
< nconf: LDFLAGS += -lmenu -lpanel -lncurses
---
> $(nconf_OBJ) $(nconf_DEP): CFLAGS += -I/usr/include/ncursesw/ $(INTL_CFLAGS)
> nconf: LDFLAGS += -lintl -lmenuw -lpanelw -lncursesw

$ diff crosstool-ng-1.15.0_old/kconfig/nconf.c crosstool-ng-1.15.0/kconfig/nconf.c
1521c1521
<       ESCDELAY = 1;
---
>       set_escdelay(1);

Tim


--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: crosstool-NG Cygwin Build Fails
  2012-05-07 21:06 crosstool-NG Cygwin Build Fails Lusk, Timothy             CCS
@ 2012-05-08 10:28 ` Yann E. MORIN
  0 siblings, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2012-05-08 10:28 UTC (permalink / raw)
  To: crossgcc; +Cc: Lusk, Timothy CCS

Tim, All,

On Monday 07 May 2012 23:05:37 Lusk, Timothy CCS wrote:
> The newest two versions of crosstool-NG (1.14.x and 1.15.x) no longer
> build correctly on Cygwin.

I can't test Cygwin, as I have no windows machine (not even a VM),
so I rely on users' testing and reports. Thank you for the heads up! :-)

For users interested in running under Cygwin, it would be nice to test
the repository from time to time, to be sure to catch breakage asap, and
not wait for the release to be out. ;-)

> $ diff crosstool-ng-1.15.0_old/kconfig/Makefile crosstool-ng-1.15.0/kconfig/Makefile
> 10c10
> < LDFLAGS =
> ---
> > LDFLAGS =
> 37a38
> > conf: LDFLAGS += -lintl
> 44c45
> < mconf: LDFLAGS += $(NCURSES_LDFLAGS)
> ---
> > mconf: LDFLAGS += -lintl $(NCURSES_LDFLAGS)
> 50,51c51,52
> < $(nconf_OBJ) $(nconf_DEP): CFLAGS += $(INTL_CFLAGS)
> < nconf: LDFLAGS += -lmenu -lpanel -lncurses
> ---
> > $(nconf_OBJ) $(nconf_DEP): CFLAGS += -I/usr/include/ncursesw/ $(INTL_CFLAGS)
> > nconf: LDFLAGS += -lintl -lmenuw -lpanelw -lncursesw
> 
> $ diff crosstool-ng-1.15.0_old/kconfig/nconf.c crosstool-ng-1.15.0/kconfig/nconf.c
> 1521c1521
> <       ESCDELAY = 1;
> ---
> >       set_escdelay(1);

Would you care sending a unified diff, please? It is much easier to read:
  diff -du file-1 file-2

Ideally, you'd follow the tutorial on how to submit changes:
  docs/7 - Contributing to crosstool-NG.txt

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: crosstool-NG Cygwin Build Fails
@ 2012-05-08 15:18 Lusk, Timothy             CCS
  0 siblings, 0 replies; 3+ messages in thread
From: Lusk, Timothy             CCS @ 2012-05-08 15:18 UTC (permalink / raw)
  To: crossgcc; +Cc: yann.morin.1998

Yann,

Here is the patch as a unified diff. It's essentially just adding the libintl library, specifying the ncurses path, and changing the way ESCDELAY is set. 

--- crosstool-ng-1.15.0_old/kconfig/Makefile    2012-04-30 16:54:20.000000000 -0400
+++ crosstool-ng-1.15.0/kconfig/Makefile        2012-05-08 11:10:24.950066100 -0400
@@ -35,20 +35,21 @@
 conf_OBJ = $(patsubst %.c,%.o,$(conf_SRC))
 conf_DEP = $(patsubst %.o,%.dep,$(conf_OBJ))
 $(conf_OBJ) $(conf_DEP): CFLAGS += $(INTL_CFLAGS)
+conf: LDFLAGS += -lintl

 # What's needed to build 'mconf'
 mconf_SRC = mconf.c
 mconf_OBJ = $(patsubst %.c,%.o,$(mconf_SRC))
 mconf_DEP = $(patsubst %.c,%.dep,$(mconf_SRC))
 $(mconf_OBJ) $(mconf_DEP): CFLAGS += $(NCURSES_CFLAGS) $(INTL_CFLAGS)
-mconf: LDFLAGS += $(NCURSES_LDFLAGS)
+mconf: LDFLAGS += -lintl $(NCURSES_LDFLAGS)

 # What's needed to build 'nconf'
 nconf_SRC = nconf.c nconf.gui.c
 nconf_OBJ = $(patsubst %.c,%.o,$(nconf_SRC))
 nconf_DEP = $(patsubst %.c,%.dep,$(nconf_SRC))
-$(nconf_OBJ) $(nconf_DEP): CFLAGS += $(INTL_CFLAGS)
-nconf: LDFLAGS += -lmenu -lpanel -lncurses
+$(nconf_OBJ) $(nconf_DEP): CFLAGS += -I/usr/include/ncurses/ $(INTL_CFLAGS)
+nconf: LDFLAGS += -lintl -lmenu -lpanel -lncurses

 # Under Cygwin, we need to auto-import some libs (which ones, exactly?)
 # for mconf and nconf to lin properly.


--- crosstool-ng-1.15.0_old/kconfig/nconf.c     2012-04-30 16:54:20.000000000 -0400
+++ crosstool-ng-1.15.0/kconfig/nconf.c 2012-05-07 16:47:39.618358900 -0400
@@ -1518,7 +1518,7 @@
        }

        notimeout(stdscr, FALSE);
-       ESCDELAY = 1;
+       set_escdelay(1);

        /* set btns menu */
        curses_menu = new_menu(curses_menu_items);

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

end of thread, other threads:[~2012-05-08 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-07 21:06 crosstool-NG Cygwin Build Fails Lusk, Timothy             CCS
2012-05-08 10:28 ` Yann E. MORIN
2012-05-08 15:18 Lusk, Timothy             CCS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).