Cross-Compiling SSH Server

Matt Johnston matt at ucc.asn.au
Tue Aug 17 01:10:13 WST 2004


On Mon, Aug 16, 2004 at 12:55:24PM -0400, Rick Woodring wrote:
> 
> I am trying to cross compile dropbear 0.43 on an x86 machine running
> RedHat 9 for an ARM 9 based development board that runs the 2.4.21
> kernel (with ARM patches), busybox 1.0.0-RC2, and tinylogin.  I have
> successfully  built the kernel, busybox, and tinylogin with my GCC
> cross-compile toolcahinm, but when I tried to use cross-compile
> dropbear, I received the error show at the bottom.  In order to
> cross-compile dropbear, I modified the options.h file to select the
> pieces i wanted to compile and then set my CC and CPP environment
> variables to arm_920t_le-gcc and arm_920t_le-g++ respectively.  When I
> ran "./configure --host=armv4l" this is the output it gave me:

Hrm. The test "to run the C preprocessor" should be running g++, rather than
gcc, AFAIK. What does the output of config.log (near the lines after
"run the C preprocessor") look like? Dropbear doesn't require g++, so if
you unset CPP, does that help?

Cheers,
Matt

> 
> [jffs at openRoam dropbear-0.43]$ ./configure --host=armv4l
> configure: WARNING: If you wanted to set the --build type, don't use --host.
>     If a cross compiler is detected then cross compile mode will be used.
> checking for armv4l-gcc... /usr/local/xtools/arm-glibc-3.2.1/bin/arm_920t_le-gcc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... yes
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /usr/local/xtools/arm-glibc-3.2.1/bin/arm_920t_le-gcc accepts -g... yes
> checking for /usr/local/xtools/arm-glibc-3.2.1/bin/arm_920t_le-gcc option to accept ANSI C... none needed
> checking whether make sets $(MAKE)... yes
> No $CFLAGS set... using "-Os -W -Wall for GCC"
> checking build system type... i686-pc-linux-gnu
> checking host system type... armv4l-unknown-none
> checking for armv4l-ar... no
> checking for ar... ar
> checking for armv4l-ranlib... no
> checking for ranlib... ranlib
> checking for armv4l-strip... no
> checking for strip... strip
> checking for armv4l-install... no
> checking for install... install
> checking how to run the C preprocessor... /usr/local/xtools/arm-glibc-3.2.1/bin/arm_920t_le-g++
> configure: error: C preprocessor "/usr/local/xtools/arm-glibc-3.2.1/bin/arm_920t_le-g++" fails sanity check
> See `config.log' for more details.
> 
> Any help would be appreciated
> -rick
> 


More information about the Dropbear mailing list