bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

_nc_get_table error while cross compiling ncurses-5.4 for arm


From: Juan Lablanca
Subject: _nc_get_table error while cross compiling ncurses-5.4 for arm
Date: Wed, 12 Oct 2005 15:13:16 +0200
User-agent: Debian Thunderbird 1.0.2 (X11/20050331)

Hi again, 

I have not been patching out-of-order indeed, so firstly i used 
ncurses-5.4-20040424-patch.sh.bz2 
<ftp://invisible-island.net/ncurses/5.4/ncurses-5.4-20040424-patch.sh.bz2> and 
then i tried to use the other patches in order (but they were not applied). 
Anyway i could finally run 'make' successfully and the test programs also run 
on the arm target. Thank you very much for your help, now i can worry about 
compiling and running my application successfully. 

Best regards, 

Juan. 
Hi Juan,


>> Thank you Frank for your quick answer, very kind!
>  
>

No problem, but next time please cc the list as well, so that other people who 
might be interested stay up2date too  ;) 

>> Unfortunately it still is not working. I applied the last rollup patch
>> (patch-5.4-20050827.sh) and besides all the patches between 20050827 till
>> 20051008 (from ftp://invisible-island.net/ncurses/5.4/). However not all the 
>> hunks from every patch were applied, for example this is a part of the
>> output after running  patch -p1 < ncurses-5.4-20051008.patch:
>>
>> ***********************
>> This file doesn't appear to be the 1.927 version -- patch anyway? [n] y
>> <cut>
>> I am not sure whether that is normal or i did something wrong...
>  
>

Each patch checks whether or not it is applied to an up2date installation 
(i.e. an installation that has all the earlier patches applied). This looks 
like you've been patching out-of-order. You definitely *don't* want to do 
that......


>> Regarding to the configure file, I have just added the next line:
>>         --with-terminfo-dirs=/usr/share/terminfo
>  
>

This shouldn't make any difference as far as succesfull compiling/linking is 
concerned.


>> the error after running make was:
>>
>> ***********************
>> /usr/local/arm-elf/bin/ld: line 139: 16731 Segmentation fault  $LINKER
>> -r -d -o $OFILE.elf2flt $ARG1
>> collect2: ld returned 139 exit status
>> make[1]: *** [background] Error 1
>> make[1]: Leaving directory
>> `/home/juan/Desktop/Downloads/uClinux-dist/ncurses-5.4/test'
>> make: *** [all] Fehler 2
>> ***********************
>  
>

If your linker is segfaulting, I'd be looking into the linker itself first, 
before doubting ncurses. You're not using gcc 2.96, are you.....? If you are 
(and given the error it looks a bit like you do), you could try to either 
downgrade to 2.95.3 or upgrade. I'm using gcc-4.0.1-glibc-2.3.2 myself. You 
could build that toolchain by downloading this (~3.7MB):

        http://kegel.com/crosstool/crosstool-0.38.tar.gz

Unpack it and add the two files attached to the directory. Fiddle with the 
base path in aml-arm.sh if you want to and simply start the script.

Everything will be built in the crosstool-0.38 directory which will end up 
having a size of ~1.7 GB in size.





-- Best, Frank.

Thank you Frank for your quick answer, very kind! Unfortunately it still
is not working. I applied the last rollup patch (patch-5.4-20050827.sh)
and besides all the patches between 20050827 till 20051008 (from
ftp://invisible-island.net/ncurses/5.4/). However not all the hunks from
every patch were applied, for example this is a part of the output after
running  patch -p1 < ncurses-5.4-20051008.patch:

***********************
This file doesn't appear to be the 1.927 version -- patch anyway? [n] y
patching file NEWS
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 6.
2 out of 2 hunks FAILED -- saving rejects to file NEWS.rej
***********************
I am not sure whether that is normal or i did something wrong...

Regarding to the configure file, I have just added the next line:
        --with-terminfo-dirs=/usr/share/terminfo\

the rest remained the same as the attached file of my first mail. And
the error after running make was:

***********************
/usr/local/arm-elf/bin/ld: line 139: 16731 Segmentation fault  $LINKER
-r -d -o $OFILE.elf2flt $ARG1
collect2: ld returned 139 exit status
make[1]: *** [background] Error 1
make[1]: Leaving directory
`/home/juan/Desktop/Downloads/uClinux-dist/ncurses-5.4/test'
make: *** [all] Fehler 2
***********************

Any ideas? I would be thankful for a further help.

Best regards,

Juanfran.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]