This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fw: CT_DoExecLog error during GCC build


Dear Arnaud, Yann, All,
?
I would like to inform that I succeeded to build the cross compiler for MIPS architecture R4K,?without Thread local storage support (or threads support).
?
First of all, I took Arnaud's advice to install the necessary patch this is gcc's PR/41818:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818

I added it in /opt/crosstool-ng-me/lib/ct-ng-1.8.0/patches/gcc/ in each directory
?
Then, the steps are as follows:
?
1. Create build directory in tmp for example
#mkdir build
#cd build
2. Very important step:
#/opt/crosstool-ng/bin/ct-ng mips-unknown-linux-uclibc

NO COPY from samples, Yann suggested and confirmed this step?on my enquiry.

3. Call .config file
#/opt/crosstool-ng/bin/ct-ng menuconfig

Please, change thread implementation to none, set architecture to mips2, and do not forget to excluded?DUMA and GDB from Debug facilities option in menuconfig since it is impossible to build cross compiler without thread support if the DUMA and GDB are not switched off.
?
Other options are left as default.
?
4. Build cross compiler

#/opt/crosstool-ng/bin/ct-ng build



IMPORTANT NOTE

I have run building on two computers, one with 32-bit Slackware 13.1 the other with 64-bit Slackware 13.1.

On computer with 64-bit Slackware 13.1 everything?was built without adding patch.

On computer with 32-bit Slackware 13.1 I had to add proposed patch to build the cross compiler.

?
************************
?
Problem:

However, I have an issue with the compiling the multiple source files:
?
warning: linking abicalls files with non-abicalls files

?
I rebuilt the cross compiler forcing it to build all libraries with the same flags (-mno-abicalls -fno-PIC -mno-mips16 -fno-omit-frame-pointer -fcaller-saves).? 
?
CFLAGS :=?-mno-abicalls -fno-PIC -mno-mips16 -fno-omit-frame-pointer -fcaller-saves
LDFLAGS :=?-mno-abicalls -fno-PIC -mno-mips16 -fno-omit-frame-pointer -fcaller-saves

During compiling I used the following switches
?
--static -O2 -g -mno-abicalls -fno-PIC -mno-mips16 -fno-omit-frame-pointer -fcaller-saves

Also, from my test source files I excluded any calls to libraries, however, the warnings still persisted:
?
warning: linking abicalls files with non-abicalls files
?
Any suggestions how to solve this issue to remove warnings?
?
Thanks for helping me.
?
Milan



--- On Fri, 8/6/10, Arnaud Lacombe <lacombar@gmail.com> wrote:


From: Arnaud Lacombe <lacombar@gmail.com>
Subject: Re: Fw: CT_DoExecLog error during GCC build
To: "milan radulovic" <radulovic_milan@yahoo.com>
Cc: crossgcc@sourceware.org
Date: Friday, August 6, 2010, 1:11 AM


Hi,

On Tue, Aug 3, 2010 at 7:12 AM, milan radulovic
<radulovic_milan@yahoo.com> wrote:
> Dear Yann, All,
>
> I would like to use crosstool-ng as cross compiler for MIPS architecture R4K, and I need to build cross compiler without Thread local storage support or threads support.
>
> So far, I tried to build cross compiler but I didn't make any success since I am getting the following error message:
>
>
> INFO ]? Installing final compiler
> [EXTRA]??? Configuring final compiler
> [EXTRA]??? Building final compiler
> [ERROR]???checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
> [ERROR]??? make[2]: ***
> [configure-target-libstdc++-v3] Error 1
> [ERROR]
> ?make[1]: *** [all] Error 2
> [ERROR]??? Build failed in step 'Installing final compiler'
> [ERROR]??? Error happened in '/opt/crosstool-ng/lib/ct-ng-hg_default@2039_c5a2e4ee7fb8/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
> [ERROR]?called from '/opt/crosstool-ng/lib/ct-ng-hg_default@2039_c5a2e4ee7fb8/scripts/build/cc/gcc.sh' at line # 414 in function 'do_cc'
> [ERROR] called from '/opt/crosstool-ng/lib/ct-ng-hg_default@2039_c5a2e4ee7fb8/scripts/crosstool-NG.sh' at line # 583 in function 'main'
> [ERROR]??? Look at '/root/x-tools/mips-unknown-linux-uclibc/build.log' for more info on this error.
> [ERROR]? (elapsed: 36:36.24)
> [36:37] / make: ***
> [build] Error 2
>
this is gcc's PR/41818:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818

Try rebuilding with the attached patch. I'm preparing a proper
submission for Yann (and myself).

- Arnaud






--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]