Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Buildroot compilation errors (libintl) in cygwin.
@ 2007-07-18  4:51 Gabbar Singh
  2007-07-18  5:34 ` Hebbar
  0 siblings, 1 reply; 9+ messages in thread
From: Gabbar Singh @ 2007-07-18  4:51 UTC (permalink / raw)
  To: buildroot

Hi,
I am trying to build a rootfs for arm9 using buildroot.
I am getting this error repeatedly. I couldnt find any helpful info on googling. could anybody please help me out with this.

$ make
if [ ! -e "/home/buildroot/toolchain_build_arm/bin/sed" ] ; then \
                mkdir -p "/home/buildroot/toolchain_build_arm/bin"; \
                rm -f "/home/buildroot/toolchain_build_arm/bin/sed"; \
                ln -sf "/usr/bin/sed" "/home/buildroot/toolchain_build_arm
/bin/sed"; \
        fi

Checking build system dependencies:
CC clean:                                       Ok
CXX clean:                                      Ok
CPP clean:                                      Ok
CFLAGS clean:                                   Ok
INCLUDES clean:                                 Ok
CXXFLAGS clean:                                 Ok
which installed:                                Ok
sed works:                                      Ok (/usr/bin/sed)
GNU make version '3.81':                        Ok
C compiler '/usr/bin/gcc'
C compiler version '3.4.4':                     Ok
C++ compiler '/usr/bin/g++'
C++ compiler version '3.4.4':                   Ok
bison installed:                                Ok
flex installed:                                 Ok
gettext installed:                              Ok
makeinfo installed:                             Ok
Build system dependencies:                      Ok

set -x && make MAKE="make -j1" -C /home/buildroot/toolchain_build_arm/uCli
bc-0.9.29 \
                PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ \
                DEVEL_PREFIX=/usr/ \
                RUNTIME_PREFIX=/home/buildroot/toolchain_build_arm/uClibc_
dev/ \
                HOSTCC="/usr/bin/gcc" \
                pregen install_dev
+ make 'MAKE=make -j1' -C /home/buildroot/toolchain_build_arm/uClibc-0.9.2
9 PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ DEVEL_PREFIX=/usr
/ RUNTIME_PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ HOSTCC=/u
sr/bin/gcc pregen install_dev
/bin/sh: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: No such file or di
rectory
make[1]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
9.29'
make[1]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
9.29'
make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
9.29'
/bin/sh: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: No such file or di
rectory
make[2]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
make[2]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
/usr/bin/gcc -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -DLOCALE    conf.
o  zconf.tab.o -o conf
conf.o:conf.c:(.text+0xb2): undefined reference to `_libintl_gettext'
conf.o:conf.c:(.text+0xc6): undefined reference to `_libintl_gettext'
conf.o:conf.c:(.text+0xda): undefined reference to `_libintl_gettext'
conf.o:conf.c:(.text+0xf2c): undefined reference to `_libintl_gettext'
conf.o:conf.c:(.text+0x10c5): undefined reference to `_libintl_gettext'
conf.o:conf.c:(.text+0x116f): more undefined references to `_libintl_gettext' fo
llow
collect2: ld returned 1 exit status
make[2]: *** [conf] Error 1
make[1]: *** [extra/config/conf] Error 2
make[1]: Leaving directory `/home/buildroot/toolchain_build_arm/uClibc-0.9
.29'
make: *** [/home/buildroot/toolchain_build_arm/uClibc-0.9.29/.configured]
Error 2


Thanks and Regards,
Naren

 
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070717/e43b8dc7/attachment-0001.htm 

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

* [Buildroot] Buildroot compilation errors (libintl) in cygwin.
  2007-07-18  4:51 [Buildroot] Buildroot compilation errors (libintl) in cygwin Gabbar Singh
@ 2007-07-18  5:34 ` Hebbar
  2007-07-18  9:08   ` Gabbar Singh
  0 siblings, 1 reply; 9+ messages in thread
From: Hebbar @ 2007-07-18  5:34 UTC (permalink / raw)
  To: buildroot


This is an error due a small bus in a make file. the patch is already been
set. u can use the latest version to solve it. Also make sure u have gettext
installed

check this link for solution

http://www.nabble.com/-PATCH--Critical-typo-in--Makefile-tf4073315.html

Regards
Gururaja



Gabbar Singh wrote:
> 
> Hi,
> I am trying to build a rootfs for arm9 using buildroot.
> I am getting this error repeatedly. I couldnt find any helpful info on
> googling. could anybody please help me out with this.
> 
> $ make
> if [ ! -e "/home/buildroot/toolchain_build_arm/bin/sed" ] ; then \
>                 mkdir -p "/home/buildroot/toolchain_build_arm/bin"; \
>                 rm -f "/home/buildroot/toolchain_build_arm/bin/sed"; \
>                 ln -sf "/usr/bin/sed" "/home/buildroot/toolchain_build_arm
> /bin/sed"; \
>         fi
> 
> Checking build system dependencies:
> CC clean:                                       Ok
> CXX clean:                                      Ok
> CPP clean:                                      Ok
> CFLAGS clean:                                   Ok
> INCLUDES clean:                                 Ok
> CXXFLAGS clean:                                 Ok
> which installed:                                Ok
> sed works:                                      Ok (/usr/bin/sed)
> GNU make version '3.81':                        Ok
> C compiler '/usr/bin/gcc'
> C compiler version '3.4.4':                     Ok
> C++ compiler '/usr/bin/g++'
> C++ compiler version '3.4.4':                   Ok
> bison installed:                                Ok
> flex installed:                                 Ok
> gettext installed:                              Ok
> makeinfo installed:                             Ok
> Build system dependencies:                      Ok
> 
> set -x && make MAKE="make -j1" -C /home/buildroot/toolchain_build_arm/uCli
> bc-0.9.29 \
>                 PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ \
>                 DEVEL_PREFIX=/usr/ \
>                 RUNTIME_PREFIX=/home/buildroot/toolchain_build_arm/uClibc_
> dev/ \
>                 HOSTCC="/usr/bin/gcc" \
>                 pregen install_dev
> + make 'MAKE=make -j1' -C /home/buildroot/toolchain_build_arm/uClibc-0.9.2
> 9 PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ DEVEL_PREFIX=/usr
> / RUNTIME_PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ HOSTCC=/u
> sr/bin/gcc pregen install_dev
> /bin/sh: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: No such file or di
> rectory
> make[1]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
> make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
> 9.29'
> make[1]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
> make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
> 9.29'
> make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
> 9.29'
> /bin/sh: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: No such file or di
> rectory
> make[2]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
> make[2]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
> /usr/bin/gcc -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" -DLOCALE   
> conf.
> o  zconf.tab.o -o conf
> conf.o:conf.c:(.text+0xb2): undefined reference to `_libintl_gettext'
> conf.o:conf.c:(.text+0xc6): undefined reference to `_libintl_gettext'
> conf.o:conf.c:(.text+0xda): undefined reference to `_libintl_gettext'
> conf.o:conf.c:(.text+0xf2c): undefined reference to `_libintl_gettext'
> conf.o:conf.c:(.text+0x10c5): undefined reference to `_libintl_gettext'
> conf.o:conf.c:(.text+0x116f): more undefined references to
> `_libintl_gettext' fo
> llow
> collect2: ld returned 1 exit status
> make[2]: *** [conf] Error 1
> make[1]: *** [extra/config/conf] Error 2
> make[1]: Leaving directory `/home/buildroot/toolchain_build_arm/uClibc-0.9
> .29'
> make: *** [/home/buildroot/toolchain_build_arm/uClibc-0.9.29/.configured]
> Error 2
> 
> 
> Thanks and Regards,
> Naren
> 
>  
> ---------------------------------
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
> 

-- 
View this message in context: http://www.nabble.com/Buildroot-compilation-errors-%28libintl%29-in-cygwin.-tf4101102.html#a11662767
Sent from the BuildRoot mailing list archive at Nabble.com.

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

* [Buildroot] Buildroot compilation errors (libintl) in cygwin.
  2007-07-18  5:34 ` Hebbar
@ 2007-07-18  9:08   ` Gabbar Singh
  0 siblings, 0 replies; 9+ messages in thread
From: Gabbar Singh @ 2007-07-18  9:08 UTC (permalink / raw)
  To: buildroot

Hi,
Thanks for the quick reply. But my makefile.in already has that patch. I am using the latest buildroot. In fact I downloaded it on monday, july 16.
I have libintl_gettext installed on my cygwin but still these errors keep on popping up.
Any info will be helpful.

Regards,
Naren

Hebbar <gururajakr@sanyo.co.in> wrote: 
This is an error due a small bus in a make file. the patch is already been
set. u can use the latest version to solve it. Also make sure u have gettext
installed

check this link for solution

http://www.nabble.com/-PATCH--Critical-typo-in--Makefile-tf4073315.html

Regards
Gururaja



Gabbar Singh wrote:
> 
> Hi,
> I am trying to build a rootfs for arm9 using buildroot.
> I am getting this error repeatedly. I couldnt find any helpful info on
> googling. could anybody please help me out with this.
> 
> $ make
> if [ ! -e "/home/buildroot/toolchain_build_arm/bin/sed" ] ; then \
>                 mkdir -p "/home/buildroot/toolchain_build_arm/bin"; \
>                 rm -f "/home/buildroot/toolchain_build_arm/bin/sed"; \
>                 ln -sf "/usr/bin/sed" "/home/buildroot/toolchain_build_arm
> /bin/sed"; \
>         fi
> 
> Checking build system dependencies:
> CC clean:                                       Ok
> CXX clean:                                      Ok
> CPP clean:                                      Ok
> CFLAGS clean:                                   Ok
> INCLUDES clean:                                 Ok
> CXXFLAGS clean:                                 Ok
> which installed:                                Ok
> sed works:                                      Ok (/usr/bin/sed)
> GNU make version '3.81':                        Ok
> C compiler '/usr/bin/gcc'
> C compiler version '3.4.4':                     Ok
> C++ compiler '/usr/bin/g++'
> C++ compiler version '3.4.4':                   Ok
> bison installed:                                Ok
> flex installed:                                 Ok
> gettext installed:                              Ok
> makeinfo installed:                             Ok
> Build system dependencies:                      Ok
> 
> set -x && make MAKE="make -j1" -C /home/buildroot/toolchain_build_arm/uCli
> bc-0.9.29 \
>                 PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ \
>                 DEVEL_PREFIX=/usr/ \
>                 RUNTIME_PREFIX=/home/buildroot/toolchain_build_arm/uClibc_
> dev/ \
>                 HOSTCC="/usr/bin/gcc" \
>                 pregen install_dev
> + make 'MAKE=make -j1' -C /home/buildroot/toolchain_build_arm/uClibc-0.9.2
> 9 PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ DEVEL_PREFIX=/usr
> / RUNTIME_PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ HOSTCC=/u
> sr/bin/gcc pregen install_dev
> /bin/sh: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: No such file or di
> rectory
> make[1]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
> make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
> 9.29'
> make[1]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
> make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
> 9.29'
> make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
> 9.29'
> /bin/sh: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: No such file or di
> rectory
> make[2]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
> make[2]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
> /usr/bin/gcc -I/usr/include/ncurses -DCURSES_LOC="" -DLOCALE   
> conf.
> o  zconf.tab.o -o conf
> conf.o:conf.c:(.text+0xb2): undefined reference to `_libintl_gettext'
> conf.o:conf.c:(.text+0xc6): undefined reference to `_libintl_gettext'
> conf.o:conf.c:(.text+0xda): undefined reference to `_libintl_gettext'
> conf.o:conf.c:(.text+0xf2c): undefined reference to `_libintl_gettext'
> conf.o:conf.c:(.text+0x10c5): undefined reference to `_libintl_gettext'
> conf.o:conf.c:(.text+0x116f): more undefined references to
> `_libintl_gettext' fo
> llow
> collect2: ld returned 1 exit status
> make[2]: *** [conf] Error 1
> make[1]: *** [extra/config/conf] Error 2
> make[1]: Leaving directory `/home/buildroot/toolchain_build_arm/uClibc-0.9
> .29'
> make: *** [/home/buildroot/toolchain_build_arm/uClibc-0.9.29/.configured]
> Error 2
> 
> 
> Thanks and Regards,
> Naren
> 
>  
> ---------------------------------
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
> 

-- 
View this message in context: http://www.nabble.com/Buildroot-compilation-errors-%28libintl%29-in-cygwin.-tf4101102.html#a11662767
Sent from the BuildRoot mailing list archive at Nabble.com.

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot


       
---------------------------------
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070718/bb2a2e04/attachment.htm 

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

* [Buildroot] Buildroot compilation errors (libintl) in cygwin.
@ 2007-07-18  9:59 Gururaja Hebbar K R
  0 siblings, 0 replies; 9+ messages in thread
From: Gururaja Hebbar K R @ 2007-07-18  9:59 UTC (permalink / raw)
  To: buildroot

Dear Naren,
 
I had the same issue for gettext not taking files of libintl. there is
update in the latest snapshot for gettext & libintl may be u can
download it & try.
also u may be getting errors related libxml2. u can check the latest
buildroot mailing list for update on the same.
 
Regards
Gururaja

________________________________

From: Gabbar Singh [mailto:gabbar_singh_new at yahoo.com] 
Sent: Wednesday, July 18, 2007 2:08 AM
To: Gururaja Hebbar K R; buildroot at uclibc.org
Subject: Re: [Buildroot] Buildroot compilation errors (libintl) in
cygwin.


Hi,
Thanks for the quick reply. But my makefile.in already has that patch. I
am using the latest buildroot. In fact I downloaded it on monday, july
16.
I have libintl_gettext installed on my cygwin but still these errors
keep on popping up.
Any info will be helpful.

Regards,
Naren

Hebbar <gururajakr@sanyo.co.in> wrote: 


	This is an error due a small bus in a make file. the patch is
already been
	set. u can use the latest version to solve it. Also make sure u
have gettext
	installed
	
	check this link for solution
	
	
http://www.nabble.com/-PATCH--Critical-typo-in--Makefile-tf4073315.html
	
	Regards
	Gururaja
	
	
	
	Gabbar Singh wrote:
	> 
	> Hi,
	> I am trying to build a rootfs for arm9 using buildroot.
	> I am getting this error repeatedly. I couldnt find any helpful
info on
	> googling. could anybody please help me out with this.
	> 
	> $ make
	> if [ ! -e "/home/buildroot/toolchain_build_arm/bin/sed" ] ;
then \
	> mkdir -p "/home/buildroot/toolchain_build_arm/bin"; \
	> rm -f "/home/buildroot/toolchain_build_arm/bin/sed"; \
	> ln -sf "/usr/bin/sed" "/home/buildroot/toolchain_build_arm
	> /bin/sed"; \
	> fi
	> 
	> Checking build system dependencies:
	> CC clean: Ok
	> CXX clean: Ok
	> CPP clean: Ok
	> CFLAGS clean: Ok
	> INCLUDES clean: Ok
	> CXXFLAGS clean: Ok
	> which installed: Ok
	> sed works: Ok (/usr/bin/sed)
	> GNU make version '3.81': Ok
	> C compiler '/usr/bin/gcc'
	> C compiler version '3.4.4': Ok
	> C++ compiler '/usr/bin/g++'
	> C++ compiler version '3.4.4': Ok
	> bison installed: Ok
	> flex installed: Ok
	> gettext installed: Ok
	> makeinfo installed: Ok
	> Build system dependencies: Ok
	> 
	> set -x && make MAKE="make -j1" -C
/home/buildroot/toolchain_build_arm/uCli
	> bc-0.9.29 \
	> PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ \
	> DEVEL_PREFIX=/usr/ \
	> RUNTIME_PREFIX=/home/buildroot/toolchain_build_arm/uClibc_
	> dev/ \
	> HOSTCC="/usr/bin/gcc" \
	> pregen install_dev
	> + make 'MAKE=make -j1' -C
/home/buildroot/toolchain_build_arm/uClibc-0.9.2
	> 9 PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/
DEVEL_PREFIX=/usr
	> /
RUNTIME_PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ HOSTCC=/u
	> sr/bin/gcc pregen install_dev
	> /bin/sh: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: No
such file or di
	> rectory
	> make[1]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc:
Command not found
	> make[1]: Entering directory
`/home/buildroot/toolchain_build_arm/uClibc-0.
	> 9.29'
	> make[1]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc:
Command not found
	> make[1]: Entering directory
`/home/buildroot/toolchain_build_arm/uClibc-0.
	> 9.29'
	> make[1]: Entering directory
`/home/buildroot/toolchain_build_arm/uClibc-0.
	> 9.29'
	> /bin/sh: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: No
such file or di
	> rectory
	> make[2]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc:
Command not found
	> make[2]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc:
Command not found
	> /usr/bin/gcc -I/usr/include/ncurses -DCURSES_LOC="" -DLOCALE 
	> conf.
	> o zconf.tab.o -o conf
	> conf.o:conf.c:(.text+0xb2): undefined reference to
`_libintl_gettext'
	> conf.o:conf.c:(.text+0xc6): undefined reference to
`_libintl_gettext'
	> conf.o:conf.c:(.text+0xda): undefined reference to
`_libintl_gettext'
	> conf.o:conf.c:(.text+0xf2c): undefined reference to
`_libintl_gettext'
	> conf.o:conf.c:(.text+0x10c5): undefined reference to
`_libintl_gettext'
	> conf.o:conf.c:(.text+0x116f): more undefined references to
	> `_libintl_gettext' fo
	> llow
	> collect2: ld returned 1 exit status
	> make[2]: *** [conf] Error 1
	> make[1]: *** [extra/config/conf] Error 2
	> make[1]: Leaving directory
`/home/buildroot/toolchain_build_arm/uClibc-0.9
	> .29'
	> make: ***
[/home/buildroot/toolchain_build_arm/uClibc-0.9.29/.configured]
	> Error 2
	> 
	> 
	> Thanks and Regards,
	> Naren
	> 
	> 
	> ---------------------------------
	> Need Mail bonding?
	> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers
users.
	> _______________________________________________
	> buildroot mailing list
	> buildroot at uclibc.org
	> http://busybox.net/mailman/listinfo/buildroot
	> 
	
	-- 
	View this message in context:
http://www.nabble.com/Buildroot-compilation-errors-%28libintl%29-in-cygw
in.-tf4101102.html#a11662767
	Sent from the BuildRoot mailing list archive at Nabble.com.
	
	_______________________________________________
	buildroot mailing list
	buildroot at uclibc.org
	http://busybox.net/mailman/listinfo/buildroot
	


________________________________

Get the Yahoo! toolbar and be alerted to new email
<http://us.rd.yahoo.com/evt=48225/*http://new.toolbar.yahoo.com/toolbar/
features/mail/index.php> wherever you're surfing. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070718/511a7e82/attachment-0001.htm 

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

* [Buildroot] Buildroot compilation errors (libintl) in cygwin.
       [not found] <6311fe0b0707180831sca30362ve3369fdcbafed7b1@mail.gmail.com>
@ 2007-07-19  3:56 ` Gabbar Singh
  2007-07-19  6:46   ` Tom
  0 siblings, 1 reply; 9+ messages in thread
From: Gabbar Singh @ 2007-07-19  3:56 UTC (permalink / raw)
  To: buildroot

Thanks a lot for the input Rex.
I did indeed add -lintl to the makefile and the error stopped. So every place where there is any configuration happening, I need to change that makefile.. correct ?
I had to make changes in two places to make it run.

Regards,
Naren

Rex Ashbaugh <rexonator@gmail.com> wrote: you must add '-lintl' to the Makefile script that links the conf program, so it brings in the libintl library

this problem has been reported many times

-Rex



 On 7/17/07, Gabbar Singh <gabbar_singh_new@yahoo.com> wrote: Hi,
I am trying to build a rootfs for arm9 using buildroot.
I am getting this error repeatedly. I couldnt find any helpful info on googling. could anybody please help me out with this.

$ make
if [ ! -e "/home/buildroot/toolchain_build_arm/bin/sed" ] ; then \ 
                mkdir -p "/home/buildroot/toolchain_build_arm/bin"; \
                rm -f "/home/buildroot/toolchain_build_arm/bin/sed"; \
                ln -sf "/usr/bin/sed" "/home/buildroot/toolchain_build_arm 
/bin/sed"; \
        fi

Checking build system dependencies:
CC  clean:                                       Ok
CXX clean:                                      Ok
CPP clean:                                      Ok
CFLAGS clean:                                   Ok
INCLUDES  clean:                                 Ok
CXXFLAGS clean:                                 Ok
which installed:                                Ok
sed works:                                      Ok (/usr/bin/sed)
 GNU make version  '3.81':                        Ok
C compiler '/usr/bin/gcc'
C compiler version '3.4.4':                     Ok
C++ compiler '/usr/bin/g++'
C++ compiler version '3.4.4':                   Ok 
bison installed:                                Ok
flex installed:                                 Ok
gettext  installed:                              Ok
makeinfo installed:                             Ok
Build system dependencies:                      Ok

set -x && make MAKE="make -j1" -C /home/buildroot/toolchain_build_arm/uCli 
bc-0.9.29 \
                PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ \
                DEVEL_PREFIX=/usr/  \
                RUNTIME_PREFIX=/home/buildroot/toolchain_build_arm/uClibc_
dev/ \
                HOSTCC="/usr/bin/gcc" \
                pregen install_dev
+ make 'MAKE=make -j1' -C /home/buildroot/toolchain_build_arm/uClibc- 0.9.2
9 PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ DEVEL_PREFIX=/usr
/ RUNTIME_PREFIX=/home/buildroot/toolchain_build_arm/uClibc_dev/ HOSTCC=/u
sr/bin/gcc pregen install_dev
/bin/sh: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: No such file or di 
rectory
make[1]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
9.29'
make[1]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not  found
make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
9.29'
make[1]: Entering directory `/home/buildroot/toolchain_build_arm/uClibc-0.
9.29'
/bin/sh: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: No such file or di 
rectory
make[2]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
make[2]: /home/arm/usr/bin/arm-linux-uclibcgnueabi-gcc: Command not found
/usr/bin/gcc -I/usr/include/ncurses -DCURSES_LOC="< ncurses.h>" -DLOCALE    conf.
o  zconf.tab.o -o conf
conf.o:conf.c:(.text+0xb2): undefined reference to `_libintl_gettext'
conf.o:conf.c:(.text+0xc6): undefined reference to `_libintl_gettext'
 conf.o:conf.c:(.text+0xda): undefined reference to `_libintl_gettext'
conf.o:conf.c:(.text+0xf2c): undefined reference to `_libintl_gettext'
conf.o:conf.c:(.text+0x10c5): undefined reference to `_libintl_gettext' 
conf.o:conf.c:(.text+0x116f): more undefined references  to `_libintl_gettext' fo
llow
collect2: ld returned 1 exit status
make[2]: *** [conf] Error 1
make[1]: *** [extra/config/conf] Error 2
make[1]: Leaving directory `/home/buildroot/toolchain_build_arm/uClibc- 0.9
.29'
make: *** [/home/buildroot/toolchain_build_arm/uClibc-0.9.29/.configured]
Error 2


Thanks and Regards,
Naren
   

---------------------------------
Need Mail bonding?
Go to the  Yahoo! Mail Q&A for  great tips from Yahoo! Answers users.

_______________________________________________
buildroot mailing list
 buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
 

 

       
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070718/6004fa78/attachment.htm 

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

* [Buildroot] Buildroot compilation errors (libintl) in cygwin.
  2007-07-19  3:56 ` Gabbar Singh
@ 2007-07-19  6:46   ` Tom
  2007-07-19 13:51     ` Rex Ashbaugh
  0 siblings, 1 reply; 9+ messages in thread
From: Tom @ 2007-07-19  6:46 UTC (permalink / raw)
  To: buildroot

Gabbar Singh wrote:
> Thanks a lot for the input Rex.
> I did indeed add -lintl to the makefile and the error stopped. So every 
> place where there is any configuration happening, I need to change that 
> makefile.. correct ?
> I had to make changes in two places to make it run.

As Rex said, there were and are several places, some of which not 
directly in buildroot but in the extracted archives. Gabbar, if you can 
give us a list of all the places that you needed to fix for a more 
recent buildroot than the one I was talking about below, that would be 
appreciated.

Thanks,
Tom


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





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

* [Buildroot] Buildroot compilation errors (libintl) in cygwin.
  2007-07-19  6:46   ` Tom
@ 2007-07-19 13:51     ` Rex Ashbaugh
  2007-07-19 17:49       ` Tom
  2007-07-20  4:05       ` Gabbar Singh
  0 siblings, 2 replies; 9+ messages in thread
From: Rex Ashbaugh @ 2007-07-19 13:51 UTC (permalink / raw)
  To: buildroot

Just an FYI to all those building a toolchain under cygwin..
The last time I built buildroot under cygwin, there was a particularly nasty
bug in which one of the uClibc libraries (*.so) was built incorrectly.
It was built with a mix of both static and dynamic functions, instead of
just the dynamic functions.
This happened because the build process used a filename twice, both with an
upper case *.S and lower case *.s suffix, but for different purposes. (I
can't remember which file it was now)
Because cygwin has case insensitivity, one file overwrote the other,
corrupting the build.
The failure was silent. There was no clue it was happening. I came across
the problem later when trying to build an app with the toolchain that made
use of the library, causing the app either to fail to build, or to crash at
runtime. This caused me alot of hair pulling.
Seeing no easy fix for this, I solved the problem by building the same
buildroot version under linux and copying the correctly built uClibc library
over to my cygwin toolchain.
If you absolutely need to build under cygwin, its not a bad strategy to
build under linux in parallel to gain understanding.

-Rex

On 7/18/07, Tom <fivemiletom@gmail.com> wrote:
>
> Gabbar Singh wrote:
> > Thanks a lot for the input Rex.
> > I did indeed add -lintl to the makefile and the error stopped. So every
> > place where there is any configuration happening, I need to change that
> > makefile.. correct ?
> > I had to make changes in two places to make it run.
>
> As Rex said, there were and are several places, some of which not
> directly in buildroot but in the extracted archives. Gabbar, if you can
> give us a list of all the places that you needed to fix for a more
> recent buildroot than the one I was talking about below, that would be
> appreciated.
>
> Thanks,
> Tom
>
>
> ---
> 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
>
>
>
>
>
> > 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 $@
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070719/15bede34/attachment.htm 

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

* [Buildroot] Buildroot compilation errors (libintl) in cygwin.
  2007-07-19 13:51     ` Rex Ashbaugh
@ 2007-07-19 17:49       ` Tom
  2007-07-20  4:05       ` Gabbar Singh
  1 sibling, 0 replies; 9+ messages in thread
From: Tom @ 2007-07-19 17:49 UTC (permalink / raw)
  To: buildroot


Rex Ashbaugh wrote:
> Just an FYI to all those building a toolchain under cygwin..
> The last time I built buildroot under cygwin, there was a particularly 
> nasty bug in which one of the uClibc libraries (*.so) was built incorrectly.
> It was built with a mix of both static and dynamic functions, instead of 
> just the dynamic functions.
> This happened because the build process used a filename twice, both with 
> an upper case *.S and lower case *.s suffix, but for different purposes. 
> (I can't remember which file it was now)
> Because cygwin has case insensitivity, one file overwrote the other, 
> corrupting the build.
> The failure was silent. There was no clue it was happening. I came 
> across the problem later when trying to build an app with the toolchain 
> that made use of the library, causing the app either to fail to build, 
> or to crash at runtime. This caused me alot of hair pulling.
> Seeing no easy fix for this, I solved the problem by building the same 
> buildroot version under linux and copying the correctly built uClibc 
> library over to my cygwin toolchain.
> If you absolutely need to build under cygwin, its not a bad strategy to 
> build under linux in parallel to gain understanding.

Thanks for the heads up, Rex. Yes, after too many issues encountered on 
cygwin I have switched to linux. There buildroot does an excellent job 
and I can use this as my reference build. However I will probably have 
to revisit cygwin soon...


> 
> -Rex
> 
> On 7/18/07, *Tom* <fivemiletom at gmail.com <mailto:fivemiletom@gmail.com>> 
> wrote:
> 
>     Gabbar Singh wrote:
>      > Thanks a lot for the input Rex.
>      > I did indeed add -lintl to the makefile and the error stopped. So
>     every
>      > place where there is any configuration happening, I need to
>     change that
>      > makefile.. correct ?
>      > I had to make changes in two places to make it run.
> 
>     As Rex said, there were and are several places, some of which not
>     directly in buildroot but in the extracted archives. Gabbar, if you can
>     give us a list of all the places that you needed to fix for a more
>     recent buildroot than the one I was talking about below, that would be
>     appreciated.
> 
>     Thanks,
>     Tom
> 
> 
>     ---
>     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
> 
> 
> 
> 
> 
>      > 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] 9+ messages in thread

* [Buildroot] Buildroot compilation errors (libintl) in cygwin.
  2007-07-19 13:51     ` Rex Ashbaugh
  2007-07-19 17:49       ` Tom
@ 2007-07-20  4:05       ` Gabbar Singh
  1 sibling, 0 replies; 9+ messages in thread
From: Gabbar Singh @ 2007-07-20  4:05 UTC (permalink / raw)
  To: buildroot

Thanks Rex, I have realized now that its better to install linux than banging my head with cygwin. But till the time i get my linux box.. i have to try and gain the understanding in cygwin. And as of now I am still trying to build buildroot for 4 consecutive day. I am getting so many randome errors. e.g.
`mpf/get_d_2exp.lo' is not a valid libtool object

sometimes just running 'make' one more time helps, sometimes i had to change the *.lo file and add the comments in that as follows:
# get_d_2exp.lo - a libtool object file
# Generated by ltmain.sh - GNU libtool 1.5.6 (1.1220.2.94 2004/04/10 16:27:27)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# Name of the PIC object

and then it runs perfectly well. Sometimes i had to copy a *.o file from lets say mpf/ to mpf/.libs/

I had changed the following makefiles to add -lintl 

/buildroot/toolchain_build_arm/uclibc-0.9.29/extra/config/
/packages/config/


Also, I had to remove DPIC option from the the following file:
/buildroot/toolchain_build_arm/gmp-4.2.1-host/libtool

Thanks anyways for all the help.

Regards,
Naren

Rex Ashbaugh <rexa@xeratech.com> wrote: Just an FYI to all those building a toolchain under cygwin..
The last time I built buildroot under cygwin, there was a particularly nasty bug in which one of the uClibc libraries (*.so) was built incorrectly.
It was built with a mix of both static and dynamic functions, instead of just the dynamic functions. 
This happened because the build process used a filename twice, both with an upper case *.S and lower case *.s suffix, but for different purposes. (I can't remember which file it was now)
Because cygwin has case insensitivity, one file overwrote the other, corrupting the build. 
The failure was silent. There was no clue it was happening. I came across the problem later when trying to build an app with the toolchain that made use of the library, causing the app either to fail to build, or to crash at runtime. This caused me alot of hair pulling. 
Seeing no easy fix for this, I solved the problem by building the same buildroot version under linux and copying the correctly built uClibc library over to my cygwin toolchain. 
If you absolutely need to build under cygwin, its not a bad strategy to build under linux in parallel to gain understanding. 

-Rex

On 7/18/07, Tom <fivemiletom@gmail.com> wrote: Gabbar Singh wrote:
> Thanks a lot for the input Rex.
> I did indeed add -lintl to the makefile and the error stopped. So every
> place where there is any configuration happening, I need to change that
 > makefile.. correct ?
> I had to make changes in two places to make it run.

As Rex said, there were and are several places, some of which not
directly in buildroot but in the extracted archives. Gabbar, if you can 
give us a list of all the places that you needed to fix for a more
recent buildroot than the one I was talking about below, that would be
appreciated.

Thanks,
Tom


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





 > 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 $@


 _______________________________________________
buildroot mailing list
buildroot@uclibc.org
http://busybox.net/mailman/listinfo/buildroot

       
---------------------------------
Pinpoint customers who are looking for what you sell. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070719/07a01e43/attachment-0001.htm 

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

end of thread, other threads:[~2007-07-20  4:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-18  4:51 [Buildroot] Buildroot compilation errors (libintl) in cygwin Gabbar Singh
2007-07-18  5:34 ` Hebbar
2007-07-18  9:08   ` Gabbar Singh
  -- strict thread matches above, loose matches on Subject: below --
2007-07-18  9:59 Gururaja Hebbar K R
     [not found] <6311fe0b0707180831sca30362ve3369fdcbafed7b1@mail.gmail.com>
2007-07-19  3:56 ` Gabbar Singh
2007-07-19  6:46   ` Tom
2007-07-19 13:51     ` Rex Ashbaugh
2007-07-19 17:49       ` Tom
2007-07-20  4:05       ` Gabbar Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox