Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-15-2005, 10:21 AM   #1
LQ Newbie
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
ncurses for arm-elf

Hi there,

I am trying to cross compile ncurses for an arm-processor under uClinux. I have been having a lot of problems with that, and my last try was to install ncurses.5.4 under uClinux/uClibc 'casue when i selected the "ncurses-library support" option compiling the uClinux kernel (make menuconfig), it did not work (basically because the ncurses libraries were installed under glibc instead uClibc).

When i run a script (see below) to configure ncurses-5.4 i get the following error:

Configuring NCURSES 5.4 ABI 5 (Wed Sep 14 17:36:37 CEST 2005)
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-elf
checking target system type... arm-unknown-elf
Configuring for elf
checking for prefix... /home/juan/Desktop/Downloads/uClinux-dist/uClibc/ncurses
checking for arm-elf-gcc... arm-elf-gcc
checking for C compiler default output... configure: error: C compiler cannot create executables

Although i have tried different configurations of this script i have not yet succeeded. I would really be grateful if somebody can give me a hand.

#! /bin/bash

# CC C compiler command
# CPP C preprocessor
# CXX C++ compiler command
# CXXCPP C++ preprocessor

# CFLAGS C compiler flags
# LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
# nonstandard directory <lib dir>
# CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
# headers in a nonstandard directory <include dir>
# CXXFLAGS C++ compiler flags

STDFLAGS="-g -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe"
STDFLAGS="-W -ansi -fno-builtin -DNO_MM -mapcs-32"
STDFLAGS="-mtune=arm7tdmi -mshort-load-bytes -msoft-float -nostdinc -iwithprefix include"
INCLUDES="-I${UCLINUX}/uClibc/include -I${UCLINUX} -I${UCLINUX}/linux/include -I${UCLINUX}/lib/uClibc/include -I${UCLINUX}/lib/libm -I${UCLINUX}/lib/libcrypt_old"
LDFLAGS="-s -Wl,-elf2flt -L${UCLINUX} -CRTO=${UCLINUX}/uClibc/lib/crt0.o -lncurses -lpanel -lmenu -lform"

export CC=arm-elf-gcc
export CPP=arm-elf-gcc
export CXX=arm-elf-g++
export CXXCPP=arm-elf-g++
export AS=arm-elf-as
export AR=arm-elf-ar
export LD=arm-elf-ld
export RANLIB=arm-elf-ranlib
export LDFLAGS

./configure --target=arm-elf\

Best regards,

Juan Fco.
Old 09-16-2005, 12:29 PM   #2
Registered: Jun 2005
Posts: 75

Rep: Reputation: 15
Hmm, here's a guess from the top of my head... Is the configure script trying to execute a sample program compiled with the cross-compiler?

BTW the '[ code ]' tags (without spaces) make code and output a lot easier to read.


Last edited by sind; 09-16-2005 at 12:31 PM.
Old 09-16-2005, 03:06 PM   #3
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,853

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
A few months ago I was compiling, or trying to compile ncurses againsta uClib and was getting errors about 'not getting pthread version' or something similar.

I was following a step-by-step for building uSTEP -you might look for it as a reference
Old 09-19-2005, 06:04 AM   #4
LQ Newbie
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
With this script i just wanted to configure the ncurses specifying basically the compiler and the flags that must be used in order to compile and link a program that uses the ncurses libraries. My intention is to execute a program based on ncurses after configuring ncurses and compiling uClinux in a proper way.

Regarding to the step-by-step for building uSTEP, i am afraid that i could not find that such a document, could you please tell me a little bit clearer where you found that document?
Old 09-19-2005, 08:43 AM   #5
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,853

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
ncurses wouldn't compile against uClib -returned errors of:
'pthread version not found'


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ARM a8 architecture corbis_demon Programming 0 10-16-2005 07:31 AM
ARM Toolchain Problem richardji Linux - General 2 08-08-2005 10:24 PM
Mobile programming / ARM unholy Programming 2 03-14-2005 07:48 AM
ARM system type blackzone Linux - Hardware 1 09-15-2004 01:03 AM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 12:00 AM

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration