public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* crosstoll-ng 1.15.2 build still failing on Cygwin
@ 2012-07-12 20:39 Ian Linsdell
  2012-07-22 14:55 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Linsdell @ 2012-07-12 20:39 UTC (permalink / raw)
  To: crosstoll-ng


Hi All,

The crosstool-ng web site claims that 1.15.2  plays nicely with Cygwin now but it fails to build.

I found someone else already submitted the below patch but it has not been incorporated into crosstool-ng 1.15.2  for some reason.

I am being bombarded with people asking why crosstool-ng is failing to build on Cygwin since there is a lot
demand to cross compile from Windows(Cygwin) to the 'Raspberry Pi' board.

Please incorporate this patch so that we don't have to fix it over again in the next release of crosstool-ng.

Thank you.

Ian.

--- 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] 2+ messages in thread

* Re: crosstoll-ng 1.15.2 build still failing on Cygwin
  2012-07-12 20:39 crosstoll-ng 1.15.2 build still failing on Cygwin Ian Linsdell
@ 2012-07-22 14:55 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2012-07-22 14:55 UTC (permalink / raw)
  To: crossgcc; +Cc: Ian Linsdell

Ian, All,

On Thursday 12 July 2012 14:26:52 Ian Linsdell wrote:
> The crosstool-ng web site claims that 1.15.2  plays nicely with Cygwin
> now but it fails to build.
> 
> I found someone else already submitted the below patch but it has not
> been incorporated into crosstool-ng 1.15.2  for some reason.

Because it breaks on non-Cygwin.

> I am being bombarded with people asking why crosstool-ng is failing to
> build on Cygwin since there is a lot demand to cross compile from
> Windows(Cygwin) to the 'Raspberry Pi' board.

Then tell them to switch to Linux! ;-)

Seriously, doing emnbedded Linux development from a non-Linux system is
asking for trouble.

First and foremost, doing embedded-Linux without prior knowledge of the
simpler native case is like trying to fly a 747 without having enough
flying hours on the much simpler Cesna.

Second, many tools used to do Linux development really work well only
on a Linux System. Cygwin might be a good substitute for some work, but
does not really plat nicely in such cases as embedded (and thus cross)
development.

> Please incorporate this patch so that we don't have to fix it over
> again in the next release of crosstool-ng.

No, it breaks the build on native Linux systems. As I do not do Cygwin
(I seldom have access to a Windows machine), I can not really test.
If you want it to work, then you have to help come up with a sane patch.

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] 2+ messages in thread

end of thread, other threads:[~2012-07-22 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-12 20:39 crosstoll-ng 1.15.2 build still failing on Cygwin Ian Linsdell
2012-07-22 14:55 ` Yann E. MORIN

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).