x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Compiling C on NEC mp900

sroland81 Page Icon Posted 2023-06-23 2:23 AM
#
Avatar image of sroland81
Subscribers
Factorite (Junior)

Posts:
48
Location:
Uruguay 
Status:
Hi, i'm interested in compiling some old software (contemporary versions with JLime) but i get the error that the C compiler cannot create excecutables. Is there anyway to bypass this?

I'm trying to compile some basic cli/terminal stuff

P.S: I rebuilt both batteries for the MobilePro 900 with good quality Sanyo 18650 cells and i'm getting plenty of hours. This is my main device for off-the-grid article writing.

Best regards.
 Top of the page
watamario15 Page Icon Posted 2023-06-24 2:45 AM
#
Avatar image of watamario15
Factorite (Senior)

Posts:
85
Location:
Japan
Status:
What exact error message are you getting, on which compiler, from compiling which source code?
The whole error message is useful for troubleshooting, and redundancy is far more preferable here than lacking.

(Well, I can't promise to be able to fix your issue as I'm not familiar with JLime, but at least, these pieces of information are necessary to troubleshoot issues in general.)

Edited by watamario15 2023-06-24 2:54 AM
 Top of the page
stingraze Page Icon Posted 2023-06-25 10:54 AM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,692
Location:
Japan
Status:
If you can try compiling a very basic Hello World type and check if gcc etc. is working, I think it would be good to know what programs are missing or not working.

Something like this from https://www.programiz.com/c-programming/examples/print-sentence
#include <stdio.h> int main() { // printf() displays the string inside quotation printf("Hello, World!"); return 0; }


If you're looking to cross compile instead of compile on the device, it seems:
arm-crosscompiler-gcc-3.4.1.tar.gz
arm-gcc-3.4.5-glibc-2.3.5.tar.gz

are what you need, according to this blog post:
https://duncanbowring.wordpress.com/2021/04/10/nec-mobilepro-900-900c/
 Top of the page
sroland81 Page Icon Posted 2023-06-29 3:14 AM
#
Avatar image of sroland81
Subscribers
Factorite (Junior)

Posts:
48
Location:
Uruguay 
Status:
This is the output. I never used a cross compiler, i could try, but i would like to be able to compile old code natively.

linux:~# cd octave-3.0.3
linux:~/octave-3.0.3# ./configure
checking build system type... armv5tel-unknown-linux-gnu
checking host system type... armv5tel-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
linux:~/octave-3.0.3#

Octave is a math cli-software. You can try any old version, i tried 3.0.3 which was the same epoch as JLime --> https://mirror2.evolution-host.com/gnu/octave/

Edited by sroland81 2023-06-29 3:16 AM
 Top of the page
sroland81 Page Icon Posted 2023-06-29 3:30 AM
#
Avatar image of sroland81
Subscribers
Factorite (Junior)

Posts:
48
Location:
Uruguay 
Status:
I would like to compile some basic command line stuff, like a RSS reader, maybe a text editor like nano, any suggestions are welcome. I used newsbeuter rss reader years ago, but it seems that libcurl version is higher than shipped with jlime. There has to be something older than newsbeuter anyways.
 Top of the page
sroland81 Page Icon Posted 2023-06-29 3:33 AM
#
Avatar image of sroland81
Subscribers
Factorite (Junior)

Posts:
48
Location:
Uruguay 
Status:
I tried compile this and failed

linux:~# gcc prueba.c
gcc: error trying to exec 'as': execvp: No such file or directory
 Top of the page
C:Amie Page Icon Posted 2023-06-29 8:20 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
18,042
Location:
United Kingdom
Status:
What is its config.log?
 Top of the page
stingraze Page Icon Posted 2023-06-29 12:28 PM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,692
Location:
Japan
Status:
C:Amie is right.

Try doing

cat config.log


and tell us what you see.
 Top of the page
sroland81 Page Icon Posted 2023-06-30 1:13 AM
#
Avatar image of sroland81
Subscribers
Factorite (Junior)

Posts:
48
Location:
Uruguay 
Status:
This is the log, i pasted it here because it is long

https://paste.buzon.uy/?6287f846b2960c20#HdJyHsCUz2RnHgUEVZ89tKwnJVeqEUiKTVqVKcLyatf3

Cheers!
 Top of the page
stingraze Page Icon Posted 2023-06-30 7:52 AM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,692
Location:
Japan
Status:
I've looked at the log, and I think there's lots of developer related files missing.

This is CentOS, but you'll get the idea.
https://stackoverflow.com/questions/37985352/whats-wrong-with-configure-fail-c-compiler-cannot-create-executablesconfigure

You probably need something like these:

cpp
glibc-devel
glibc-headers
kernel-headers
glibc
glibc-common
libgcc

I also see a lot of flags for something, maybe that is something you need to look into.

I see you're trying to compile version 3.0.3, AMD related flag so maybe it's pretty new? (I see circa 2009)
https://ftpmirror.gnu.org/octave has a lot of older stuff, maybe older versions might compile easier?

-stingraze

Edited by stingraze 2023-06-30 8:00 AM
 Top of the page
sroland81 Page Icon Posted 2023-07-01 2:48 AM
#
Avatar image of sroland81
Subscribers
Factorite (Junior)

Posts:
48
Location:
Uruguay 
Status:
I'll try finding those packages, the thing is that there is no kernel-headers, only kernel-headers-dev i think. This is the list of the packages in the repository --> https://paste.buzon.uy/?d7d3b77cb7424065#4GJHoUN96WGBHoDUSPuMKmZFNbnTAPtWMapupFvhaSKs

What packages should i install?

Edited by sroland81 2023-07-01 2:49 AM
 Top of the page
sroland81 Page Icon Posted 2023-10-01 1:45 AM
#
Avatar image of sroland81
Subscribers
Factorite (Junior)

Posts:
48
Location:
Uruguay 
Status:
Hi, i'm back again. Been busy with work and stuff. I'm trying to crosscompile on linux and see if i can generate usable binaries for the NEC. I absolutely love it. I have rebuilt two batteries with new cells, it lasts for hours.

Other things i'm exploring how to configure:

- terminal tty font size
- systemwide character encoding, i'm getting some render issues with nano and pico in terminal mode, some spanish accents like ó, é, í and ñ screw up the flow of text when going back with the cursor, the letter disappears, reappears, etc. I think is the character encoding, i wish to set system wide to UTF-8
- Cross-compiling some terminal applications, like octave, or some terminal browser like lynx or elinks

Thanks for the help.
 Top of the page
torch Page Icon Posted 2023-11-26 4:44 AM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,781
Location:
United States 
Status:
I wish I could offer some help and advice - I'm sorry I missed this thread earlier..

I'm not sure how much this could help but did some digging and found this github with installation scripts, but that's for the Jornada. Not sure how useful for the 900
https://github.com/timob0/jornada-config

I know the file isn't available (the sugar sync one)

but a complete "code" for config I found here too
https://github.com/timob0/jornada-config/blob/main/jornada-config

maybe some of the settings could assist?
 Top of the page
sroland81 Page Icon Posted 2023-12-07 1:34 AM
#
Avatar image of sroland81
Subscribers
Factorite (Junior)

Posts:
48
Location:
Uruguay 
Status:
Wow! i definetly will look at this and try to test it. I'm trying to understand crosscompiling to see if i can compile old software to run on JLime.
 Top of the page
Jump to forum:
Seconds to generate: 0.235 - Cached queries : 72 - Executed queries : 8