Page 2 of 2

Re: Gcc cross compiler creation error

Posted: Fri Oct 31, 2014 6:31 am
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.

Re: Gcc cross compiler creation error

Posted: Sat Nov 01, 2014 12:46 pm
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.

Re: Gcc cross compiler creation error

Posted: Sun Nov 02, 2014 11:56 am
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

Re: Gcc cross compiler creation error

Posted: Sun Nov 02, 2014 11:58 am
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

Re: Gcc cross compiler creation error

Posted: Sun Nov 02, 2014 12:31 pm
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.

Re: Gcc cross compiler creation error

Posted: Sun Nov 02, 2014 12:47 pm
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

Re: Gcc cross compiler creation error

Posted: Sun Nov 02, 2014 12:57 pm
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).

Re: Gcc cross compiler creation error

Posted: Sun Nov 02, 2014 1:16 pm
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.

Re: Gcc cross compiler creation error

Posted: Sun Nov 02, 2014 1:58 pm
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

Re: Gcc cross compiler creation error

Posted: Sun Nov 02, 2014 2:55 pm
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?