AW: crosstool 0.37 + gdb build fix for cygwin/windows
bertrand marquis
bertrand.marquis@sysgo.com
Tue Jul 12 11:59:00 GMT 2005
Hi,
you need to patch the kernel to be able to use it in cygwin. The
"-lgettex" must be added. I enclose my patch to this mail.
This patch works for kernel 2.6.12, i think it should work for 2.6.13.
Bertrand
Le mar 12/07/2005 à 13:13, Steven Scholz a écrit :
> Steven Scholz wrote:
>
> > Michelsen, Robert wrote:
> >
> >> Hi
> >>
> >>> Unfortunatly you'll get the same when you're tyring to make a "make
> >>
> >>
> >> defconfig" with linux-2.6.13-rc2.
> >>
> >>> So does someone know which packages I have to install on cygwin to get
> >>
> >>
> >> this header ( and maybe other missings too)?
> >>
> >>
> >> NLS support for cygwin?
> >> "GNU gettext" package i think.
> >
> >
> > Yeah. I just found out and try to test.
>
> Hmm. I installed gettext for cygwin. But now a "make defconfig" brings
>
> HOSTCC scripts/basic/fixdep
> HOSTCC scripts/basic/split-include
> HOSTCC scripts/basic/docproc
> HOSTLD scripts/kconfig/conf
> scripts/kconfig/conf.o(.text+0xc1):conf.c: undefined reference to
> `_libintl_gettext'
> scripts/kconfig/conf.o(.text+0xd5):conf.c: undefined reference to
> `_libintl_gettext'
> scripts/kconfig/conf.o(.text+0xe9):conf.c: undefined reference to
> `_libintl_gettext'
> scripts/kconfig/conf.o(.text+0xcd8):conf.c: undefined reference to
> `_libintl_gettext'
> scripts/kconfig/conf.o(.text+0xde2):conf.c: undefined reference to
> `_libintl_gettext'
> scripts/kconfig/conf.o(.text+0xe7d):conf.c: more undefined references to
> `_libintl_gettext' follow
> collect2: ld returned 1 exit status
> make[1]: *** [scripts/kconfig/conf] Error 1
> make: *** [multiIO_IDIF_defconfig] Error 2
>
> Any ideas?
>
> --
> Steven
>
>
> ------
> Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
--
Bertrand Marquis
SYSGO AG
Am Pfaffenstein 14
55270 Klein-Winternheim
Phone = 49 6136 9948-0
Fax = 49 6136 9948-10
bmarquis@sysgo.com
www.sysgo.com
www.elinos.com
_______________________________________________________________________
Meet us at our next events:
VDI Wissensforum
Elektronik im Kraftfahrzeug
October 6-7, 2005
Baden-Baden
http://www.vdi-wissensforum.de/index.php?id=102&user_vdiev_pi1[cmd]=single&user_vdiev_pi1[uid]=428507&cHash=af4e74cd0c
SPS/IPC/DRIVES
November 22-24, 2005
Nürnberg
http://www.mesago.de/00105/d/index.php3?sid=dd919503bce6453c42762c5a6b34c8cc&stamp=1115191812
We are looking forward to your visit!
_______________________________________________________________________
-------------- next part --------------
--- __redodiff__/Makefile.orig 2005-06-21 14:45:57.362005525 +0200
+++ __redodiff__/Makefile 2005-06-21 14:45:57.390998367 +0200
@@ -1247,9 +1247,15 @@ kernelrelease:
# FIXME Should go into a make.lib or something
# ===========================================================================
+IS_CYGWIN=$(shell uname | grep -i cygwin > /dev/null 2>&1 && echo yes || echo no)
+
quiet_cmd_rmdirs = $(if $(wildcard $(rm-dirs)),CLEAN $(wildcard $(rm-dirs)))
+ifeq ($(IS_CYGWIN),yes)
+ cmd_rmdirs = for i in $(rm-dirs); do rm -rf $$i || echo "error removing $$i" ; done
+else
cmd_rmdirs = rm -rf $(rm-dirs)
+endif
quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files)))
cmd_rmfiles = rm -f $(rm-files)
--- __redodiff__/scripts/Makefile.host.orig 2005-06-21 14:45:57.383000341 +0200
+++ __redodiff__/scripts/Makefile.host 2005-06-21 14:45:57.395997133 +0200
@@ -78,9 +78,17 @@ obj-dirs := $(addprefix $(obj)/,$
#####
# Handle options to gcc. Support building with separate output directory
-_hostc_flags = $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS_$(*F).o)
+IS_CYGWIN=$(shell uname | grep -i cygwin > /dev/null 2>&1 && echo yes || echo no)
+
+ifeq ($(IS_CYGWIN),yes)
+ _hostc_flags = $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -I$(ELINOS_PREFIX)/include $(HOSTCFLAGS_$(*F).o)
+else
+ _hostc_flags = $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS_$(*F).o)
+endif
+
_hostcxx_flags = $(HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) $(HOSTCXXFLAGS_$(*F).o)
+
ifeq ($(KBUILD_SRC),)
__hostc_flags = $(_hostc_flags)
__hostcxx_flags = $(_hostcxx_flags)
--- __redodiff__/scripts/kconfig/Makefile.org 2005-06-17 21:48:29.000000000 +0200
+++ __redodiff__/scripts/kconfig/Makefile 2005-07-05 10:29:05.000000000 +0200
@@ -84,6 +84,13 @@
mconf-objs := mconf.o zconf.tab.o
kxgettext-objs := kxgettext.o zconf.tab.o
+IS_CYGWIN=$(shell uname | grep -i cygwin > /dev/null 2>&1 && echo yes || echo no)
+
+ifeq ($(IS_CYGWIN),yes)
+ HOSTLOADLIBES_conf := -L/lib -lintl
+ HOSTLOADLIBES_mconf := -L/lib -lintl
+endif
+
ifeq ($(MAKECMDGOALS),xconfig)
qconf-target := 1
endif
-------------- next part --------------
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list