So you didn't copy and paste the command lines as specifically requested. Until people see exactly what you are typing in (and that means copy and pasting not retyping) it's impossible to know what you are doing wrong. But, judging from your posts, it's probably just a silly typo.sonus wrote:Ok let forget about typo error . Check pastebin file , there is an error . This error doesn't occur due to copy/paste there is something behind the error .Combuster wrote:no typos this time please.sonus wrote:mv gmp<space>6.0.0a gcc-4.8.2/gmp
mv mpfr<space>-3.1.2 gcc-4.8.2/mpfr
EDIT: I just finished building the crosscompiler on a borrowed 14.04.1 Ubuntu LTS without problems.
Gcc cross compiler creation error
Re: Gcc cross compiler creation error
- xenos
- Member
- Posts: 1121
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: Gcc cross compiler creation error
So obviously you made something wrong, but since you're not telling us what exactly you did, we cannot follow it. Download all the files again to make sure they are not corrupt, start from a clean build directory and follow the wiki instructions again and preceisely.sonus wrote:You can check pastebin link there is an error .
Re: Gcc cross compiler creation error
I followed all the instruction as mentioned in wiki page still getting same error .As you said download all new file and clean all the directory and build again i followed as it is .There is some error in library as you can see below .XenOS wrote:So obviously you made something wrong, but since you're not telling us what exactly you did, we cannot follow it. Download all the files again to make sure they are not corrupt, start from a clean build directory and follow the wiki instructions again and preceisely.sonus wrote:You can check pastebin link there is an error .
Code: Select all
../../gcc-4.9.2/gcc/../include/libiberty.h:110:64: note: in expansion of macro ‘ATTRIBUTE_NONNULL’
extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from ../../gcc-4.9.2/gcc/system.h:205,
from ../../gcc-4.9.2/gcc/genmddeps.c:19:
/usr/include/string.h:601:26: error: ambiguates old declaration ‘const char* basename(const char*)’
extern "C++" const char *basename (const char *__filename)
http://pastebin.com/K5e8j4ED
Re: Gcc cross compiler creation error
I followed all the instruction as mentioned in wiki page still getting the same error . There is some error in library as you can see below .So you didn't copy and paste the command lines as specifically requested. Until people see exactly what you are typing in (and that means copy and pasting not retyping) it's impossible to know what you are doing wrong. But, judging from your posts, it's probably just a silly typo.
Code: Select all
../../gcc-4.9.2/gcc/../include/libiberty.h:110:64: note: in expansion of macro ‘ATTRIBUTE_NONNULL’
extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from ../../gcc-4.9.2/gcc/system.h:205,
from ../../gcc-4.9.2/gcc/genmddeps.c:19:
/usr/include/string.h:601:26: error: ambiguates old declaration ‘const char* basename(const char*)’
extern "C++" const char *basename (const char *__filename)
http://pastebin.com/K5e8j4ED
-
- Member
- Posts: 307
- Joined: Wed Oct 30, 2013 1:57 pm
- Libera.chat IRC: no92
- Location: Germany
- Contact:
Re: Gcc cross compiler creation error
Once again, please restart over.
Make sure you do everything correctly, include everything needed, follow the instructions provided with care, as the computer problem is mostly in between the keyboard and the chair.
Make sure you do everything correctly, include everything needed, follow the instructions provided with care, as the computer problem is mostly in between the keyboard and the chair.
Re: Gcc cross compiler creation error
Hi,
Cheers,
Brendan
I'm going to create a maze of tight-ropes stretched between the tops of skyscrapers, and expect people to use it to get to work each day. Every time someone falls to their death, I'm going to say "Hah, the problem was their lack of balance!".no92 wrote:Make sure you do everything correctly, include everything needed, follow the instructions provided with care, as the computer problem is mostly in between the keyboard and the chair.
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
-
- Member
- Posts: 307
- Joined: Wed Oct 30, 2013 1:57 pm
- Libera.chat IRC: no92
- Location: Germany
- Contact:
Re: Gcc cross compiler creation error
Well, no. He was told several times to do it with care, to start over, and he's obviously not really getting it. It's probably not due to his lack of ability (balance), but his lack of listening to the instructions (using safety system).
The wiki does a pretty good job explaining on how to do it. You usually don't run into problems when using it for creating a cross-compiler. If you fail, it is very likely your fault.
But let's keep that aside, and try to help sonus with his problem (even if it's likely his fault).
The wiki does a pretty good job explaining on how to do it. You usually don't run into problems when using it for creating a cross-compiler. If you fail, it is very likely your fault.
But let's keep that aside, and try to help sonus with his problem (even if it's likely his fault).
- xenos
- Member
- Posts: 1121
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: Gcc cross compiler creation error
Also, learn to use google - your exact error has occurred to other people before:
http://stackoverflow.com/questions/2168 ... -gcc-4-8-2
Check your environment variables.
http://stackoverflow.com/questions/2168 ... -gcc-4-8-2
Check your environment variables.
Re: Gcc cross compiler creation error
I tried but it didn't work . Getting same error . I used this command to UnsetXenOS wrote:Also, learn to use google - your exact error has occurred to other people before:
http://stackoverflow.com/questions/2168 ... -gcc-4-8-2
Check your environment variables.
Code: Select all
unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE
- xenos
- Member
- Posts: 1121
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: Gcc cross compiler creation error
Did you check your environment variables? What was the result? Did you come to the conclusion, that your unset command would solve the problem, and how did you come to this conclusion? What did your own research of the error message on google tell you?XenOS wrote:Check your environment variables.