* [Buildroot] mpfr error on cygwin for arm] [not found] ` <20070601094409.GA23984@aon.at> @ 2007-06-01 20:31 ` Tom 2007-06-01 20:32 ` [Buildroot] mpfr error on cygwin for arm Tom 1 sibling, 0 replies; 11+ messages in thread From: Tom @ 2007-06-01 20:31 UTC (permalink / raw) To: buildroot Hi Bernhard, Per your request, now attached the patch cygwin-3a.svndiff as an svn diff to the current trunk. Thanks Tom -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cygwin-3a.svndiff Url: http://busybox.net/lists/buildroot/attachments/20070601/7beb481c/attachment.diff ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] mpfr error on cygwin for arm [not found] ` <20070601094409.GA23984@aon.at> 2007-06-01 20:31 ` [Buildroot] mpfr error on cygwin for arm] Tom @ 2007-06-01 20:32 ` Tom 2007-06-01 22:11 ` Bernhard Fischer 1 sibling, 1 reply; 11+ messages in thread From: Tom @ 2007-06-01 20:32 UTC (permalink / raw) To: buildroot Hi Bernhard, Per your request, now attached the patch cygwin-3a.svndiff as an svn diff to the current trunk. Thanks Tom -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cygwin-3a.svndiff Url: http://busybox.net/lists/buildroot/attachments/20070601/becb10a7/attachment.diff ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] mpfr error on cygwin for arm 2007-06-01 20:32 ` [Buildroot] mpfr error on cygwin for arm Tom @ 2007-06-01 22:11 ` Bernhard Fischer 2007-06-02 1:27 ` Tom 0 siblings, 1 reply; 11+ messages in thread From: Bernhard Fischer @ 2007-06-01 22:11 UTC (permalink / raw) To: buildroot On Fri, Jun 01, 2007 at 01:32:06PM -0700, Tom wrote: >Hi Bernhard, > >Per your request, now attached the patch cygwin-3a.svndiff as an svn >diff to the current trunk. Well, that one applies cleanly, thanks, but you do not use the corrected extensions at all? How does that help with building a useable rootfs? Just curious.. ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] mpfr error on cygwin for arm 2007-06-01 22:11 ` Bernhard Fischer @ 2007-06-02 1:27 ` Tom 2007-06-02 8:41 ` Bernhard Fischer 0 siblings, 1 reply; 11+ messages in thread From: Tom @ 2007-06-02 1:27 UTC (permalink / raw) To: buildroot Bernhard Fischer wrote: > On Fri, Jun 01, 2007 at 01:32:06PM -0700, Tom wrote: >> Hi Bernhard, >> >> Per your request, now attached the patch cygwin-3a.svndiff as an svn >> diff to the current trunk. > > Well, that one applies cleanly, thanks, but you do not use the > corrected extensions at all? > > How does that help with building a useable rootfs? Just curious.. This patch is only the first step. It got me past gmp and mpfr. This has been good enough to build a cygwin toolchain with a host gdb, which in turn has been used to compile, debug and run a kernel :). Maybe this is also good enough for a first check-in, is it? I see that more work is ahead of me before I can build the rootfs, and it would be good if I can verify my understanding of what needs to be done, using mpfr as an example: -I need to change package/mpfr/mpfr.mk (hardcoded extensions, maybe strip cmd). -This package/mpfr folder is the only place where I can make changes; anything else about the mpfr module just downloaded / configured code, right? ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] mpfr error on cygwin for arm 2007-06-02 1:27 ` Tom @ 2007-06-02 8:41 ` Bernhard Fischer 0 siblings, 0 replies; 11+ messages in thread From: Bernhard Fischer @ 2007-06-02 8:41 UTC (permalink / raw) To: buildroot On Fri, Jun 01, 2007 at 06:27:50PM -0700, Tom wrote: > > >Bernhard Fischer wrote: >>On Fri, Jun 01, 2007 at 01:32:06PM -0700, Tom wrote: >>>Hi Bernhard, >>> >>>Per your request, now attached the patch cygwin-3a.svndiff as an svn >>>diff to the current trunk. >> >>Well, that one applies cleanly, thanks, but you do not use the >>corrected extensions at all? >> >>How does that help with building a useable rootfs? Just curious.. > >This patch is only the first step. It got me past gmp and mpfr. This has >been good enough to build a cygwin toolchain with a host gdb, which in >turn has been used to compile, debug and run a kernel :). Ah, ok. >Maybe this is also good enough for a first check-in, is it? yes, it went in as r18723. Thanks. >I see that more work is ahead of me before I can build the rootfs, and >it would be good if I can verify my understanding of what needs to be >done, using mpfr as an example: >-I need to change package/mpfr/mpfr.mk (hardcoded extensions, maybe >strip cmd). right > >-This package/mpfr folder is the only place where I can make changes; >anything else about the mpfr module just downloaded / configured code, >right? exactly. ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] ALSA for build root @ 2007-05-25 14:49 Rod Boyce 2007-05-25 19:23 ` [Buildroot] Package selection question Tom 0 siblings, 1 reply; 11+ messages in thread From: Rod Boyce @ 2007-05-25 14:49 UTC (permalink / raw) To: buildroot All, I have been adding ALSA to the build root package system I am only able to test on a x86 platform. Is anybody else interested in ALSA for build-root? I have also been adding libogg and libvorbis would it be OK if I submitted a combined patch or would you prefer 2 separate patches? Is anybody else working on this who would like an advanced copy to test out and or compare against? This would include the following packages: alsa-lib-1.0.14rc4 alsa-utils-1.0.14rc4 libogg-1.1.3 libvorbis-1.1.2 Regards, Rod Boyce ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Package selection question 2007-05-25 14:49 [Buildroot] ALSA for build root Rod Boyce @ 2007-05-25 19:23 ` Tom 2007-05-25 20:03 ` Bernhard Fischer 0 siblings, 1 reply; 11+ messages in thread From: Tom @ 2007-05-25 19:23 UTC (permalink / raw) To: buildroot Hello, I just want to build the toolchain and the debugger on host: cygwin, target: arm. So, even after I unchecked busybox and all packages, it still builds gmp (and, unsuccessfully, mpfr). Why does it need it please and why is this an option then? Or am I doing something wrong here? Thanks Tom ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Package selection question 2007-05-25 19:23 ` [Buildroot] Package selection question Tom @ 2007-05-25 20:03 ` Bernhard Fischer [not found] ` <4657D353.7030704@gmail.com> [not found] ` <4657D933.8060109@gmail.com> 0 siblings, 2 replies; 11+ messages in thread From: Bernhard Fischer @ 2007-05-25 20:03 UTC (permalink / raw) To: buildroot On Fri, May 25, 2007 at 12:23:37PM -0700, Tom wrote: > >Hello, > >I just want to build the toolchain and the debugger on host: cygwin, >target: arm. > >So, even after I unchecked busybox and all packages, it still builds gmp >(and, unsuccessfully, mpfr). Why does it need it please and why is this >an option then? Or am I doing something wrong here? gcc uses gmp/mpfr, you're doing nothing wrong. Please report build failures of gmp/mpfr to the respective lists. Before you report it to the mpfr folks, please paste the error here, since i suspect that it could have to do something with the binary/library name extensions, which (IIRC) we currently do not handle at all (there's a bug somewhere about this, if memory serves me right). ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <4657D353.7030704@gmail.com>]
* [Buildroot] mpfr error on cygwin for arm [not found] ` <4657D353.7030704@gmail.com> @ 2007-05-26 6:33 ` Tom 0 siblings, 0 replies; 11+ messages in thread From: Tom @ 2007-05-26 6:33 UTC (permalink / raw) To: buildroot Tom wrote: > because it does not seem to > recognize the "--rpath" options, Never mind this part. Sorry, it has been a long day. ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <4657D933.8060109@gmail.com>]
* [Buildroot] mpfr error on cygwin for arm [not found] ` <4657D933.8060109@gmail.com> @ 2007-05-26 9:48 ` Bernhard Fischer 2007-05-30 3:07 ` Tom 0 siblings, 1 reply; 11+ messages in thread From: Bernhard Fischer @ 2007-05-26 9:48 UTC (permalink / raw) To: buildroot On Fri, May 25, 2007 at 11:52:35PM -0700, Tom wrote: >Hi Bernhard and all, > >sorry if this thread is a little out of sequence, had problems with text >attachment. > >Bernhard Fischer wrote: >>Before you report it to the mpfr folks, please paste the error here, >>since i suspect that it could have to do something with the >>binary/library name extensions, which (IIRC) we currently do not handle >>at all (there's a bug somewhere about this, if memory serves me right). >> > >You were right about extensions, below is the error as produced by >buildroot-20050516 built, I just added -verbose for ld. >It can not resolve the depency to libgmp.so, because cygwin ld assumes >libs to end in .a, .lib or .dll, and will append them to .so libs, which >thus can never be found. >Can I help to add support for this? Yes, you can. Depending on the target, set ifneq $($(findstring linux,$(BR2_GNU_BUILD_SUFFIX)),) EXEEXT:= LIBEXT:=.a SHREXT:=.so endif ifneq $($(findstring apple,$(BR2_GNU_BUILD_SUFFIX)),) EXEEXT:=.pear LIBEXT:=.dunno SHREXT:=.dylib endif ifneq $($(findstring cygwin,$(BR2_GNU_BUILD_SUFFIX)),) EXEEXT:=.exe LIBEXT:=.dunno SHREXT:=.dll endif ifneq $($(findstring mingw,$(BR2_GNU_BUILD_SUFFIX)),) EXEEXT:=.exe LIBEXT:=.dunno SHREXT:=.dll endif in the toplevel Makefile, before the all: world target, and use them accordingly. While you're at it, it would be awesome if you could deal with this too: We want to be able to select which flavour of lib is built (shared or static) with a single config-option. So, instead of changing all ".so" blindly to $(SHREXT), change it to $(LIBTGTEXT) which is set either to ifeq $($(BR2_DEFAULT_LIB_TARGET),shared) LIBTGTEXT=$(SHREXT) else LIBTGTEXT=$(LIBEXT) endif below the newly added block i mentioned above. TIA and cheers, ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] mpfr error on cygwin for arm 2007-05-26 9:48 ` Bernhard Fischer @ 2007-05-30 3:07 ` Tom 2007-05-30 9:47 ` Bernhard Fischer 0 siblings, 1 reply; 11+ messages in thread From: Tom @ 2007-05-30 3:07 UTC (permalink / raw) To: buildroot Hi Bernhard, All Enclosed is cygwin-1.patch for buildroot-20050524.tar.bz2. - requires cygwin 1.5.24 with development package - configure buildroot for arm, arm-generic, eabi, "pc-cygwin", uclibc-0.9.29, buildroot toolchain with gcc 4.1.2 - FIRST do one build attempt (will fail, just to get and extract uclibc) - apply cygwin-1.patch with p1 (it is at very bottom of this email) - THEN do another build attempt, which will build gmp, mpfr, newlib and arm-linux-uclibcgnueabi-gcc-4.1.2.exe before failing (*). Thanks Tom PS: if someone could take care of the apple part, that would be great. Also, the one fix belongs to uclibc and not to buildroot... (*) it fails when cross compiling uclibc, maybe my UCLIBC options? Hints appreciated, need this to test on target. make MAKE="make -j1" -C /tw/buildroot/toolchain_build_arm/uClibc-0.9.29 \ PREFIX= \ DEVEL_PREFIX=/ \ RUNTIME_PREFIX=/ \ HOSTCC="gcc" \ all arm-linux-uclibcgnueabi-gcc: n: No such file or directory make[1]: Entering directory `/tw/buildroot/toolchain_build_arm/uClibc-0.9.29' arm-linux-uclibcgnueabi-gcc: n: No such file or directory make[2]: `conf' is up to date. arm-linux-uclibcgnueabi-gcc: n: No such file or directory CC ldso/ldso/ldso.oS arm-linux-uclibcgnueabi-gcc: n: No such file or directory make[1]: *** [ldso/ldso/ldso.oS] Error 1 make[1]: Leaving directory `/tw/buildroot/toolchain_build_arm/uClibc-0.9.29' make: *** [/tw/buildroot/toolchain_build_arm/uClibc-0.9.29/lib/libc.a] Error 2 Bernhard Fischer wrote: > On Fri, May 25, 2007 at 11:52:35PM -0700, Tom wrote: >> Hi Bernhard and all, >> >> sorry if this thread is a little out of sequence, had problems with text >> attachment. >> >> Bernhard Fischer wrote: >>> Before you report it to the mpfr folks, please paste the error here, >>> since i suspect that it could have to do something with the >>> binary/library name extensions, which (IIRC) we currently do not handle >>> at all (there's a bug somewhere about this, if memory serves me right). >>> >> You were right about extensions, below is the error as produced by >> buildroot-20050516 built, I just added -verbose for ld. >> It can not resolve the depency to libgmp.so, because cygwin ld assumes >> libs to end in .a, .lib or .dll, and will append them to .so libs, which >> thus can never be found. >> Can I help to add support for this? > > Yes, you can. > > Depending on the target, set > ifneq $($(findstring linux,$(BR2_GNU_BUILD_SUFFIX)),) > EXEEXT:= > LIBEXT:=.a > SHREXT:=.so > endif > ifneq $($(findstring apple,$(BR2_GNU_BUILD_SUFFIX)),) > EXEEXT:=.pear > LIBEXT:=.dunno > SHREXT:=.dylib > endif > ifneq $($(findstring cygwin,$(BR2_GNU_BUILD_SUFFIX)),) > EXEEXT:=.exe > LIBEXT:=.dunno > SHREXT:=.dll > endif > ifneq $($(findstring mingw,$(BR2_GNU_BUILD_SUFFIX)),) > EXEEXT:=.exe > LIBEXT:=.dunno > SHREXT:=.dll > endif > > in the toplevel Makefile, before the > all: world > target, and use them accordingly. > > > While you're at it, it would be awesome if you could deal with this too: > We want to be able to select which flavour of lib is built (shared or > static) with a single config-option. > So, instead of changing all ".so" blindly to $(SHREXT), change it to > $(LIBTGTEXT) which is set either to > > ifeq $($(BR2_DEFAULT_LIB_TARGET),shared) > LIBTGTEXT=$(SHREXT) > else > LIBTGTEXT=$(LIBEXT) > endif > > below the newly added block i mentioned above. > > TIA and cheers, > cygwin-1.patch: --- buildroot.orig/Makefile 2007-05-29 11:55:38.025317600 -0700 +++ buildroot/Makefile 2007-05-29 19:54:26.130869700 -0700 @@ -66,7 +66,32 @@ # ############################################################# +ifneq (,$(findstring linux,$(BR2_GNU_BUILD_SUFFIX))) +EXEEXT:= +LIBEXT:=.a +SHREXT:=.so +endif +ifneq (,$(findstring apple,$(BR2_GNU_BUILD_SUFFIX))) +EXEEXT:=.pear +LIBEXT:=.dunno +SHREXT:=.dylib +endif +ifneq (,$(findstring cygwin,$(BR2_GNU_BUILD_SUFFIX))) +EXEEXT:=.exe +LIBEXT:=.lib +SHREXT:=.dll +endif +ifneq (,$(findstring mingw,$(BR2_GNU_BUILD_SUFFIX))) +EXEEXT:=.exe +LIBEXT:=.lib +SHREXT:=.dll +endif +ifeq ($(BR2_PREFER_STATIC_LIB),y) +LIBTGTEXT=$(LIBEXT) +else +LIBTGTEXT=$(SHREXT) +endif all: world --- buildroot.orig/Config.in 2007-05-29 11:54:55.651131200 -0700 +++ buildroot/Config.in 2007-05-29 19:39:05.976662000 -0700 @@ -373,6 +373,19 @@ help This option hides outdated/obsolete versions of packages. +config BR2_PREFER_STATIC_LIB + bool "prefer static libraries" + default n + help + Where possible, use static libraries. + This increases your code size a lot and should only be + used with a good reason why not use the default, which + is dynamic libraries. + + If unsure, say No. + + WARNING: This is highly experimental at the moment. + endmenu source "toolchain/Config.in" --- buildroot.orig/package/gmp/gmp.mk 2007-05-29 11:56:19.118278600 -0700 +++ buildroot/package/gmp/gmp.mk 2007-05-29 19:34:47.184755900 -0700 @@ -18,6 +18,18 @@ GMP_BE:=no endif +ifeq ($(BR2_PREFER_STATIC_LIB),y) +GMP_LIB_FLAGS:=--enable-static --disable-shared +else +GMP_LIB_FLAGS:=--disable-static --enable-shared +endif + +ifeq ($(EXEEXT),".exe") +GMP_CPP_FLAGS:=-DDLL_EXPORT +else +GMP_CPP_FLAGS:=-DDLL_EXPORT +endif + $(DL_DIR)/$(GMP_SOURCE): $(WGET) -P $(DL_DIR) $(GMP_SITE)/$(GMP_SOURCE) @@ -35,6 +47,7 @@ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ + CPPFLAGS="$(GMP_CPP_FLAGS)" \ ac_cv_c_bigendian=$(GMP_BE) \ $(GMP_DIR)/configure \ --target=$(GNU_TARGET_NAME) \ @@ -52,7 +65,7 @@ --includedir=/include \ --mandir=/usr/man \ --infodir=/usr/info \ - --enable-shared \ + $(GMP_LIB_FLAGS) \ $(DISABLE_NLS) \ ); touch $@ @@ -105,12 +118,12 @@ CC_FOR_BUILD="$(HOSTCC)" \ CC="$(HOSTCC)" \ CFLAGS="$(HOST_CFLAGS)" \ + CPPFLAGS="$(GMP_CPP_FLAGS)" \ $(GMP_DIR)/configure \ --prefix="$(GMP_HOST_DIR)" \ --build=$(GNU_HOST_NAME) \ --host=$(GNU_HOST_NAME) \ - --enable-shared \ - --enable-static \ + $(GMP_LIB_FLAGS) \ $(DISABLE_NLS) \ ); touch $@ --- buildroot.orig/toolchain_build_arm/uClibc-0.9.29/extra/config/Makefile 2007-04-17 04:38:21.000000000 -0700 +++ buildroot/toolchain_build_arm/uClibc-0.9.29/extra/config/Makefile 2007-05-29 19:34:47.200380600 -0700 @@ -21,7 +21,7 @@ $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $< -o $@ $(host-cmulti): %: $(host-cobjs) $(host-cshlib) - $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $($@-objs) -o $@ + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $($@-objs) -lintl -o $@ $(host-cobjs): %.o: %.c $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) -c $< -o $@ ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] mpfr error on cygwin for arm 2007-05-30 3:07 ` Tom @ 2007-05-30 9:47 ` Bernhard Fischer 2007-05-30 16:03 ` Tom 2007-05-31 7:33 ` Tom 0 siblings, 2 replies; 11+ messages in thread From: Bernhard Fischer @ 2007-05-30 9:47 UTC (permalink / raw) To: buildroot On Tue, May 29, 2007 at 08:07:48PM -0700, Tom wrote: >Hi Bernhard, All > >Enclosed is cygwin-1.patch for buildroot-20050524.tar.bz2. Thanks for doing this! >- requires cygwin 1.5.24 with development package > >- configure buildroot for arm, arm-generic, eabi, "pc-cygwin", >uclibc-0.9.29, buildroot toolchain with gcc 4.1.2 > >- FIRST do one build attempt (will fail, just to get and extract uclibc) > >- apply cygwin-1.patch with p1 (it is at very bottom of this email) > >- THEN do another build attempt, which will build > gmp, mpfr, newlib and arm-linux-uclibcgnueabi-gcc-4.1.2.exe > before failing (*). > >Thanks >Tom > >PS: if someone could take care of the apple part, that would be great. >Also, the one fix belongs to uclibc and not to buildroot... > > >(*) it fails when cross compiling uclibc, maybe my UCLIBC options? Hints >appreciated, need this to test on target. > >make MAKE="make -j1" -C /tw/buildroot/toolchain_build_arm/uClibc-0.9.29 >\ > PREFIX= \ > DEVEL_PREFIX=/ \ > RUNTIME_PREFIX=/ \ > HOSTCC="gcc" \ > all >arm-linux-uclibcgnueabi-gcc: n: No such file or directory >make[1]: Entering directory >`/tw/buildroot/toolchain_build_arm/uClibc-0.9.29' >arm-linux-uclibcgnueabi-gcc: n: No such file or directory >make[2]: `conf' is up to date. >arm-linux-uclibcgnueabi-gcc: n: No such file or directory > CC ldso/ldso/ldso.oS >arm-linux-uclibcgnueabi-gcc: n: No such file or directory >make[1]: *** [ldso/ldso/ldso.oS] Error 1 >make[1]: Leaving directory >`/tw/buildroot/toolchain_build_arm/uClibc-0.9.29' >make: *** [/tw/buildroot/toolchain_build_arm/uClibc-0.9.29/lib/libc.a] >Error 2 [snip] >cygwin-1.patch: > >--- buildroot.orig/Makefile 2007-05-29 11:55:38.025317600 -0700 >+++ buildroot/Makefile 2007-05-29 19:54:26.130869700 -0700 [snip] > source "toolchain/Config.in" >--- buildroot.orig/package/gmp/gmp.mk 2007-05-29 11:56:19.118278600 -0700 >+++ buildroot/package/gmp/gmp.mk 2007-05-29 19:34:47.184755900 -0700 >@@ -18,6 +18,18 @@ > GMP_BE:=no > endif > >+ifeq ($(BR2_PREFER_STATIC_LIB),y) >+GMP_LIB_FLAGS:=--enable-static --disable-shared >+else >+GMP_LIB_FLAGS:=--disable-static --enable-shared >+endif Better put this into the toolchain/Makefile.in, like: +ifeq ($(BR2_PREFER_STATIC_LIB),y) +BR2_SHARED_LIBS:=--enable-static --disable-shared +else +BR2_SHARED_LIBS:=--disable-static --enable-shared +endif and use ./configure $(BR2_SHARED_LIBS) ... >+ >+ifeq ($(EXEEXT),".exe") >+GMP_CPP_FLAGS:=-DDLL_EXPORT >+else >+GMP_CPP_FLAGS:=-DDLL_EXPORT >+endif This can't be right. [snip] >buildroot.orig/toolchain_build_arm/uClibc-0.9.29/extra/config/Makefile >2007-04-17 04:38:21.000000000 -0700 >+++ buildroot/toolchain_build_arm/uClibc-0.9.29/extra/config/Makefile >2007-05-29 19:34:47.200380600 -0700 >@@ -21,7 +21,7 @@ > $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) >$(HOST_LOADLIBES) $< -o $@ > > $(host-cmulti): %: $(host-cobjs) $(host-cshlib) >- $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) >$(HOST_LOADLIBES) $($@-objs) -o $@ >+ $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) >$(HOST_LOADLIBES) $($@-objs) -lintl -o $@ Shouldn't this libintel rather go into HOST_LOADLIBES for windows? ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] mpfr error on cygwin for arm 2007-05-30 9:47 ` Bernhard Fischer @ 2007-05-30 16:03 ` Tom 2007-05-31 7:33 ` Tom 1 sibling, 0 replies; 11+ messages in thread From: Tom @ 2007-05-30 16:03 UTC (permalink / raw) To: buildroot Hi Bernhard, will do changes below. Bernhard Fischer wrote: > Better put this into the toolchain/Makefile.in, like: > +ifeq ($(BR2_PREFER_STATIC_LIB),y) > +BR2_SHARED_LIBS:=--enable-static --disable-shared > +else > +BR2_SHARED_LIBS:=--disable-static --enable-shared > +endif > and use ./configure $(BR2_SHARED_LIBS) ... will try this. > >> + >> +ifeq ($(EXEEXT),".exe") >> +GMP_CPP_FLAGS:=-DDLL_EXPORT >> +else >> +GMP_CPP_FLAGS:=-DDLL_EXPORT >> +endif > > This can't be right. True. The non-.exe case should be empty, sorry. > [snip] > >> buildroot.orig/toolchain_build_arm/uClibc-0.9.29/extra/config/Makefile >> 2007-04-17 04:38:21.000000000 -0700 >> +++ buildroot/toolchain_build_arm/uClibc-0.9.29/extra/config/Makefile >> 2007-05-29 19:34:47.200380600 -0700 >> @@ -21,7 +21,7 @@ >> $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) >> $(HOST_LOADLIBES) $< -o $@ >> >> $(host-cmulti): %: $(host-cobjs) $(host-cshlib) >> - $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) >> $(HOST_LOADLIBES) $($@-objs) -o $@ >> + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) >> $(HOST_LOADLIBES) $($@-objs) -lintl -o $@ > > Shouldn't this libintel rather go into HOST_LOADLIBES for windows? It seems there is an issue with the sequence. (Just moving this -lintl before the $($@-objs) caused it to fail.) ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] mpfr error on cygwin for arm 2007-05-30 9:47 ` Bernhard Fischer 2007-05-30 16:03 ` Tom @ 2007-05-31 7:33 ` Tom 1 sibling, 0 replies; 11+ messages in thread From: Tom @ 2007-05-31 7:33 UTC (permalink / raw) To: buildroot Hi Bernhard, Below is cygwin-2.patch, which takes your recommendations into account, proceedings for cygwin-1.patch still apply. Another issue I ran into now is the following for building the host gdb.exe, let me know if this is worth a separate thread: make[1]: Leaving directory `/tw/buildroot/toolchain_build_arm/gdbhost-6.6' strip /tw/buildroot/toolchain_build_arm/gdbhost-6.6/gdb/gdb strip: /tw/buildroot/toolchain_build_arm/gdbhost-6.6/gdb/gdb: No such file or directory make: *** [/tw/buildroot/toolchain_build_arm/gdbhost-6.6/gdb/gdb] Error 1 The problem is that gdbhost-6.6/gdb/gdb does not exist. gdbhost-6.6/gdb/gdb.exe does exist (and works fine) and should not be stripped. Where should the cygwin exclusion for this happen? Thanks Tom cygwin-2.patch -------------- --- buildroot.orig/Makefile 2007-05-24 00:15:29.000000000 -0700 +++ buildroot/Makefile 2007-05-29 19:54:26.130869700 -0700 @@ -66,7 +66,32 @@ # ############################################################# +ifneq (,$(findstring linux,$(BR2_GNU_BUILD_SUFFIX))) +EXEEXT:= +LIBEXT:=.a +SHREXT:=.so +endif +ifneq (,$(findstring apple,$(BR2_GNU_BUILD_SUFFIX))) +EXEEXT:=.pear +LIBEXT:=.dunno +SHREXT:=.dylib +endif +ifneq (,$(findstring cygwin,$(BR2_GNU_BUILD_SUFFIX))) +EXEEXT:=.exe +LIBEXT:=.lib +SHREXT:=.dll +endif +ifneq (,$(findstring mingw,$(BR2_GNU_BUILD_SUFFIX))) +EXEEXT:=.exe +LIBEXT:=.lib +SHREXT:=.dll +endif +ifeq ($(BR2_PREFER_STATIC_LIB),y) +LIBTGTEXT=$(LIBEXT) +else +LIBTGTEXT=$(SHREXT) +endif all: world --- buildroot.orig/Config.in 2007-05-24 00:15:29.000000000 -0700 +++ buildroot/Config.in 2007-05-29 19:39:05.976662000 -0700 @@ -373,6 +373,19 @@ help This option hides outdated/obsolete versions of packages. +config BR2_PREFER_STATIC_LIB + bool "prefer static libraries" + default n + help + Where possible, use static libraries. + This increases your code size a lot and should only be + used with a good reason why not use the default, which + is dynamic libraries. + + If unsure, say No. + + WARNING: This is highly experimental at the moment. + endmenu source "toolchain/Config.in" --- buildroot.orig/toolchain/Makefile.in 2007-05-24 00:15:08.000000000 -0700 +++ buildroot/toolchain/Makefile.in 2007-05-30 19:30:26.858173300 -0700 @@ -10,6 +10,12 @@ MULTILIB:=--disable-multilib endif +ifeq ($(BR2_PREFER_STATIC_LIB),y) +PREFERRED_LIB_FLAGS:=--enable-static --disable-shared +else +PREFERRED_LIB_FLAGS:=--disable-static --enable-shared +endif + # FIXME -- this is temporary OPTIMIZE_FOR_CPU=$(ARCH) --- buildroot.orig/toolchain_build_arm/uClibc-0.9.29/extra/config/Makefile 2007-04-17 04:38:21.000000000 -0700 +++ buildroot/toolchain_build_arm/uClibc-0.9.29/extra/config/Makefile 2007-05-29 19:34:47.200380600 -0700 @@ -21,7 +21,7 @@ $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $< -o $@ $(host-cmulti): %: $(host-cobjs) $(host-cshlib) - $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $($@-objs) -o $@ + $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $($@-objs) -lintl -o $@ $(host-cobjs): %.o: %.c $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) -c $< -o $@ --- buildroot.orig/package/gmp/gmp.mk 2007-05-24 00:15:24.000000000 -0700 +++ buildroot/package/gmp/gmp.mk 2007-05-30 20:56:55.313191500 -0700 @@ -18,6 +18,14 @@ GMP_BE:=no endif +# this is a workaround for a bug in GMP, please see +# http://gmplib.org/list-archives/gmp-devel/2006-April/000618.html +ifeq ($(EXEEXT),.exe) +GMP_CPP_FLAGS:=-DDLL_EXPORT +else +GMP_CPP_FLAGS:= +endif + $(DL_DIR)/$(GMP_SOURCE): $(WGET) -P $(DL_DIR) $(GMP_SITE)/$(GMP_SOURCE) @@ -35,6 +43,7 @@ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ + CPPFLAGS="$(GMP_CPP_FLAGS)" \ ac_cv_c_bigendian=$(GMP_BE) \ $(GMP_DIR)/configure \ --target=$(GNU_TARGET_NAME) \ @@ -52,7 +61,7 @@ --includedir=/include \ --mandir=/usr/man \ --infodir=/usr/info \ - --enable-shared \ + $(PREFERRED_LIB_FLAGS) \ $(DISABLE_NLS) \ ); touch $@ @@ -105,12 +114,12 @@ CC_FOR_BUILD="$(HOSTCC)" \ CC="$(HOSTCC)" \ CFLAGS="$(HOST_CFLAGS)" \ + CPPFLAGS="$(GMP_CPP_FLAGS)" \ $(GMP_DIR)/configure \ --prefix="$(GMP_HOST_DIR)" \ --build=$(GNU_HOST_NAME) \ --host=$(GNU_HOST_NAME) \ - --enable-shared \ - --enable-static \ + $(PREFERRED_LIB_FLAGS) \ $(DISABLE_NLS) \ ); touch $@ ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-06-02 8:41 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <465F9792.9000200@gmail.com>
[not found] ` <20070601094409.GA23984@aon.at>
2007-06-01 20:31 ` [Buildroot] mpfr error on cygwin for arm] Tom
2007-06-01 20:32 ` [Buildroot] mpfr error on cygwin for arm Tom
2007-06-01 22:11 ` Bernhard Fischer
2007-06-02 1:27 ` Tom
2007-06-02 8:41 ` Bernhard Fischer
2007-05-25 14:49 [Buildroot] ALSA for build root Rod Boyce
2007-05-25 19:23 ` [Buildroot] Package selection question Tom
2007-05-25 20:03 ` Bernhard Fischer
[not found] ` <4657D353.7030704@gmail.com>
2007-05-26 6:33 ` [Buildroot] mpfr error on cygwin for arm Tom
[not found] ` <4657D933.8060109@gmail.com>
2007-05-26 9:48 ` Bernhard Fischer
2007-05-30 3:07 ` Tom
2007-05-30 9:47 ` Bernhard Fischer
2007-05-30 16:03 ` Tom
2007-05-31 7:33 ` Tom
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox