Gcc cross compiler creation error

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
iansjack
Member
Member
Posts: 4707
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Gcc cross compiler creation error

Post by iansjack »

sonus wrote:
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.
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 .
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.
User avatar
xenos
Member
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

Post by xenos »

sonus wrote:You can check pastebin link there is an 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.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
sonus
Posts: 11
Joined: Thu Oct 30, 2014 11:20 am

Re: Gcc cross compiler creation error

Post by sonus »

XenOS wrote:
sonus wrote:You can check pastebin link there is an 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.
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 .

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)
 
This file contains all terminal output and input(commands) .
http://pastebin.com/K5e8j4ED
sonus
Posts: 11
Joined: Thu Oct 30, 2014 11:20 am

Re: Gcc cross compiler creation error

Post by sonus »

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.
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 .

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)
 
This file contains all terminal output and input(commands) .
http://pastebin.com/K5e8j4ED
no92
Member
Member
Posts: 307
Joined: Wed Oct 30, 2013 1:57 pm
Libera.chat IRC: no92
Location: Germany
Contact:

Re: Gcc cross compiler creation error

Post by no92 »

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.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Gcc cross compiler creation error

Post by Brendan »

Hi,
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.
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!".


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.
no92
Member
Member
Posts: 307
Joined: Wed Oct 30, 2013 1:57 pm
Libera.chat IRC: no92
Location: Germany
Contact:

Re: Gcc cross compiler creation error

Post by no92 »

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).
User avatar
xenos
Member
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

Post by xenos »

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.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
sonus
Posts: 11
Joined: Thu Oct 30, 2014 11:20 am

Re: Gcc cross compiler creation error

Post by sonus »

XenOS 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.
I tried but it didn't work . Getting same error . I used this command to Unset

Code: Select all

unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE
User avatar
xenos
Member
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

Post by xenos »

XenOS wrote:Check your environment variables.
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?
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
Post Reply