Another Noobe trying to compile for Taranis
Another Noobe trying to compile for Taranis
I have recently set up my computer running Linux Mint(Petra)Cinnamon 64bit.
I have not used Linux for some time.
I tried to execute the commands shown in https://code.google.com/p/opentx/wiki/L ... structions
Everything went well for the OpenTX portion.
I was able to run the make commands shown.
When I tried to do the "Build OpenTX binaries for Taranis" it seemed to work OK except when I got to
the last line where I was to check the version of gcc it did not work???
cc@cc-Notebook /opt/ARM/bin $ arm-none-eabi-gcc --version
bash: /opt/ARM/bin/arm-none-eabi-gcc: No such file or directory
cc@cc-Notebook /opt/ARM/bin $ ls -als arm*gcc
608 -rwxr-xr-x 2 cc cc 621860 Dec 3 13:40 arm-none-eabi-gcc
cc@cc-Notebook /opt/ARM/bin $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/ARM/bin
cc@cc-Notebook /opt/ARM/bin $ pwd
/opt/ARM/bin
cc@cc-Notebook /opt/ARM/bin $
my $PATH points to /opt/ARM/bin and I also happen to be in that directory when I try to get the version.
The file looks like it is executable.
Any ideas as to what I am doing wrong???
I have not used Linux for some time.
I tried to execute the commands shown in https://code.google.com/p/opentx/wiki/L ... structions
Everything went well for the OpenTX portion.
I was able to run the make commands shown.
When I tried to do the "Build OpenTX binaries for Taranis" it seemed to work OK except when I got to
the last line where I was to check the version of gcc it did not work???
cc@cc-Notebook /opt/ARM/bin $ arm-none-eabi-gcc --version
bash: /opt/ARM/bin/arm-none-eabi-gcc: No such file or directory
cc@cc-Notebook /opt/ARM/bin $ ls -als arm*gcc
608 -rwxr-xr-x 2 cc cc 621860 Dec 3 13:40 arm-none-eabi-gcc
cc@cc-Notebook /opt/ARM/bin $ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/ARM/bin
cc@cc-Notebook /opt/ARM/bin $ pwd
/opt/ARM/bin
cc@cc-Notebook /opt/ARM/bin $
my $PATH points to /opt/ARM/bin and I also happen to be in that directory when I try to get the version.
The file looks like it is executable.
Any ideas as to what I am doing wrong???
Re: Another Noobe trying to compile for Taranis
Try putting a ./ in front of the comand.
$ ./arm-none-eabi-gcc --version
$ ./arm-none-eabi-gcc --version
Geoff N
Re: Another Noobe trying to compile for Taranis
I tried the ./ but it did not help.
I think my problem is I do not understand what directory I am to be in at the time I execute the two sudo ..... commands
reffered to in https://code.google.com/p/opentx/wiki/L ... structions
I ended up with the opentx directory under my personal directory.
I think this is right because it allows me to edit the source code if I wish to.
When I executed the second sudo .... under "Build OpenTX for Taranis "
I believe I must have been at the very top level of my system.
That mv command created the /opt/ARM/... at the very top level of my system.
I also think this is the right location because the compilers should be there
and a believe that is where the /opt/ARM added to the $PATH refers to.
I find it interesting that /opt/ARM/bin is added to the $PATH because if I go to
/opt/ARM/arm-none-eabi/bin and check the version I get:
cc@cc-Notebook /opt/ARM/arm-none-eabi/bin $ gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Note that I did not check the version of arm-none-eabi-gcc-gcc
but I only checked the version of gcc
Does this make any sense to anyone??
Are these directories where they should be??
As I mentioned in my first post I am new to Linux.
By the way the make commands in the instructions worked fine.
I was able to run the simulator.
The second half of the instructions also say "Then unpack the file and move
it to the proper location."
I really don't know where the "proper location" is.
Any help will be appreciated.
I think my problem is I do not understand what directory I am to be in at the time I execute the two sudo ..... commands
reffered to in https://code.google.com/p/opentx/wiki/L ... structions
I ended up with the opentx directory under my personal directory.
I think this is right because it allows me to edit the source code if I wish to.
When I executed the second sudo .... under "Build OpenTX for Taranis "
I believe I must have been at the very top level of my system.
That mv command created the /opt/ARM/... at the very top level of my system.
I also think this is the right location because the compilers should be there
and a believe that is where the /opt/ARM added to the $PATH refers to.
I find it interesting that /opt/ARM/bin is added to the $PATH because if I go to
/opt/ARM/arm-none-eabi/bin and check the version I get:
cc@cc-Notebook /opt/ARM/arm-none-eabi/bin $ gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Note that I did not check the version of arm-none-eabi-gcc-gcc
but I only checked the version of gcc
Does this make any sense to anyone??
Are these directories where they should be??
As I mentioned in my first post I am new to Linux.
By the way the make commands in the instructions worked fine.
I was able to run the simulator.
The second half of the instructions also say "Then unpack the file and move
it to the proper location."
I really don't know where the "proper location" is.
Any help will be appreciated.
Re: Another Noobe trying to compile for Taranis
Where did you download your Arm tools? And do you have 32 bit libraries installed? If you downloaded them from https://launchpad.net/gcc-arm-embedded the readme says:
* Installing executables on Linux *
Unpack the tarball to the install directory, like this:
$ cd $install_dir && tar xjf gcc-arm-none-eabi-*-yyyymmdd-linux.tar.bz2
For 64 bit system, 32 bit libc and libncurses are required to run the tools.
I don't really see anything wrong with what you have done. Run the command fully specified as:
/opt/ARM/arm-none-eabi/bin/arm-none-eabi-gcc --version and if that doesn't work run:
file /opt/ARM/arm-none-eabi/bin/arm-none-eabi-gcc and if it says it is a ELF 32bit executable make sure you have the 32 bit libraries installed. I run openSUSE and not Mint so can't tell you how to verify you have 32 bit libraries or how to install them if you don't, but Google will be your friend.
If that isn't the problem post exactly what package you loaded and what you get running the fully specified /opt/ARM/arm-none-eabi/bin/arm-none-eabi-gcc --version
Jim
* Installing executables on Linux *
Unpack the tarball to the install directory, like this:
$ cd $install_dir && tar xjf gcc-arm-none-eabi-*-yyyymmdd-linux.tar.bz2
For 64 bit system, 32 bit libc and libncurses are required to run the tools.
I don't really see anything wrong with what you have done. Run the command fully specified as:
/opt/ARM/arm-none-eabi/bin/arm-none-eabi-gcc --version and if that doesn't work run:
file /opt/ARM/arm-none-eabi/bin/arm-none-eabi-gcc and if it says it is a ELF 32bit executable make sure you have the 32 bit libraries installed. I run openSUSE and not Mint so can't tell you how to verify you have 32 bit libraries or how to install them if you don't, but Google will be your friend.
If that isn't the problem post exactly what package you loaded and what you get running the fully specified /opt/ARM/arm-none-eabi/bin/arm-none-eabi-gcc --version
Jim
Re: Another Noobe trying to compile for Taranis
Hi Are you using a 64 bit system ? is this of any help ?
$ arm-none-eabi-gcc
-bash: /opt/arm-2013.05/bin/arm-none-eabi-gcc: No such file or directory
The ‘No such file or directory’ error occurs not because bash can’t find the file, but because your 64-bit system lacks the proper libraries to run the 32-bit executable.
From http://www.tomjstokes.com/2013/08/07/ho ... an-wheezy/
$ arm-none-eabi-gcc
-bash: /opt/arm-2013.05/bin/arm-none-eabi-gcc: No such file or directory
The ‘No such file or directory’ error occurs not because bash can’t find the file, but because your 64-bit system lacks the proper libraries to run the 32-bit executable.
From http://www.tomjstokes.com/2013/08/07/ho ... an-wheezy/
Geoff N
Re: Another Noobe trying to compile for Taranis
I just read through the thread and the poster does say that he is using 64 bit Linux, so the above two answers seem to have nailed down the problem.
I noticed that the old build instructions on google.code have been used to set up the toolchain. There is an updated version in the OpenTX development wiki. To spare you some trouble I can tell you that the only significant change between the instructions is that the new Wiki informs you that it is absolutely vital NOT to install the latest version of arm-none-eabi-gcc (4.8). You MUST instead install 4.7. Both are found at the same place, but 4.8 is the default.
4.8 will not build. At least it didn't last time I checked.
I noticed that the old build instructions on google.code have been used to set up the toolchain. There is an updated version in the OpenTX development wiki. To spare you some trouble I can tell you that the only significant change between the instructions is that the new Wiki informs you that it is absolutely vital NOT to install the latest version of arm-none-eabi-gcc (4.8). You MUST instead install 4.7. Both are found at the same place, but 4.8 is the default.
4.8 will not build. At least it didn't last time I checked.
Re: Another Noobe trying to compile for Taranis
Thanks all for your good information.
I remember reading about needing the two libraries, libc and libncurses, but I forgot to go back and get them.
In searching the internet I see a lot of similar libraries such as glibc and others.
Where is the best place to get these libraries and what directory do I install them into?
As I mentioned I am very new to Linux and gcc. Do I need to compile these libraries?
And thanks for the ARM 4.7 / 4.8 issue. I will go back and get 4.7.
I remember reading about needing the two libraries, libc and libncurses, but I forgot to go back and get them.
In searching the internet I see a lot of similar libraries such as glibc and others.
Where is the best place to get these libraries and what directory do I install them into?
As I mentioned I am very new to Linux and gcc. Do I need to compile these libraries?
And thanks for the ARM 4.7 / 4.8 issue. I will go back and get 4.7.
Re: Another Noobe trying to compile for Taranis
As I said I don't use Mint so can't give exact instructions, but I would install the ia32-libs package using your package manager instead of trying to just install those two libraries.
The Mint 16 Release notes at http://linuxmint.com/rel_petra_cinnamon.php say:
Recommended packages and 32-bit libraries
Recommended packages are no longer automatically installed in Linux Mint. To install a package with its recommended packages, use the command "apt install packagename --install-recommends".
If you're experiencing issues with Skype or other 32-bit programs under Linux Mint 64-bit, install the package "ia32-libs".
I don't know what Mint uses for a package manager but something like "sudo apt-get install ia32-libs" from the command line would probably do it.
The Mint 16 Release notes at http://linuxmint.com/rel_petra_cinnamon.php say:
Recommended packages and 32-bit libraries
Recommended packages are no longer automatically installed in Linux Mint. To install a package with its recommended packages, use the command "apt install packagename --install-recommends".
If you're experiencing issues with Skype or other 32-bit programs under Linux Mint 64-bit, install the package "ia32-libs".
I don't know what Mint uses for a package manager but something like "sudo apt-get install ia32-libs" from the command line would probably do it.
Re: Another Noobe trying to compile for Taranis
Thanks all once again.
I loaded the libraries and was able to make for Taranis.
I still have to revert to the 4.7, but I don't expect any problems there.
It is certainly helpful to have these forums.
Thanks again
I loaded the libraries and was able to make for Taranis.
I still have to revert to the 4.7, but I don't expect any problems there.
It is certainly helpful to have these forums.
Thanks again
Re: Another Noobe trying to compile for Taranis
Did you actually manage to build with 4.8? In that case I do not think you need to revert the ARM compiler.
As far as I remember the problem was not that 4.8 produced any kind of bad code. The problem was that it would not build at all.
It is quite likely that the code tree has been modified so that the problem does not occur, or that 4.8 has been patched.
As far as I remember the problem was not that 4.8 produced any kind of bad code. The problem was that it would not build at all.
It is quite likely that the code tree has been modified so that the problem does not occur, or that 4.8 has been patched.
Re: Another Noobe trying to compile for Taranis
Sorry dvogonen I have not checked these messages for some time.
I did revert back to 4.7 and everything is working for me.
I believe I did get a good compile with 4.8.
I would go back and check it but I am happy with using 4.7
and like I said I am new to the Linux side of this.
"If it is not broken, don't fix it."
I did revert back to 4.7 and everything is working for me.
I believe I did get a good compile with 4.8.
I would go back and check it but I am happy with using 4.7
and like I said I am new to the Linux side of this.
"If it is not broken, don't fix it."