AnneRanch
Posts: 211
Joined: Fri Oct 19, 2018 1:48 pm
Location: Hot Houston TX

What is / are current prefix tools for my OS ?

Sat Sep 18, 2021 2:55 pm

I am still looking for a SINGLE , an official source , for compiler tool(s) for my OS .
I am finding all kinds of resources but none seems to be current or for my specific OS - raspberrypi.
I am using Eclipse and it used to worked to download and specify "arm-linux-gnueabi..." prefix

And I am sorry if I asked this before, I am having the usual issues of loosing my OS and logging to forums.



pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.60-v7+ #1449 SMP Wed Aug 25 15:00:01 BST 2021 armv7l GNU/Linux
pi@raspberrypi:~ $


EDIT
IS this "close enough "?

https://github.com/raspberrypi/tools.git

Heater
Posts: 18601
Joined: Tue Jul 17, 2012 3:02 pm

Re: What is / are current prefix tools for my OS ?

Sat Sep 18, 2021 3:42 pm

AnneRanch wrote:
Sat Sep 18, 2021 2:55 pm
I am still looking for a SINGLE , an official source , for compiler tool(s) for my OS .
I am finding all kinds of resources but none seems to be current or for my specific OS - raspberrypi.
I am using Eclipse and it used to worked to download and specify "arm-linux-gnueabi..." prefix

And I am sorry if I asked this before, I am having the usual issues of loosing my OS and logging to forums.



pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.60-v7+ #1449 SMP Wed Aug 25 15:00:01 BST 2021 armv7l GNU/Linux
pi@raspberrypi:~ $


EDIT
IS this "close enough "?

https://github.com/raspberrypi/tools.git
I'm not sure I understand your question. Are you looking for the source code of the GCC compiler for some reason? Or are you just wanting a compiler to use with Eclipse?

If the later what is wrong with just using whatever gcc comes by default with the OS?
Memory in C++ is a leaky abstraction .

User avatar
DougieLawson
Posts: 41748
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: What is / are current prefix tools for my OS ?

Sat Sep 18, 2021 7:58 pm

If you're compiling on a RPi to run on a RPi then you don't need anything special.

Use
gcc -o programname myprogramsource.c
to compile it.

Use
./programname
to run it.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Twitter/LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

User avatar
jahboater
Posts: 7370
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: What is / are current prefix tools for my OS ?

Sat Sep 18, 2021 10:39 pm

AnneRanch wrote:
Sat Sep 18, 2021 2:55 pm
I am still looking for a SINGLE , an official source , for compiler tool(s) for my OS .
Have you tried simply "cc" ?

As noted above, the supplied compiler is all you need.
Rather impressively it can compile programs written in any of:
C, Ada, C++, Go, D, Fortran, objective-c, objective-c++
For those languages that have ISO standards, GCC support is generally complete and up to date.

Common alternatives are Clang/LLVM, or a more recent version of GCC.

The source for GCC may be downloaded from here:
https://gcc.gnu.org/

User avatar
jahboater
Posts: 7370
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: What is / are current prefix tools for my OS ?

Sun Sep 19, 2021 12:09 am

If you type something like "ldd /bin/ls" (say), you get:

Code: Select all

$ ldd /bin/ls
	linux-vdso.so.1 (0xbee52000)
	/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so (0xb6f77000)
	libselinux.so.1 => /lib/arm-linux-gnueabihf/libselinux.so.1 (0xb6f45000)
	libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6df7000)
	/lib/ld-linux-armhf.so.3 (0xb6f8c000)
	libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb6d80000)
	libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6d6d000)
	libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6d43000)
So is arm-linux-gnueabihf what you are looking for?

Return to “General programming discussion”