public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* problems installing my arm-linux crosscompiler using ct-ng - Build failed in step 'Installing static core C compiler'
@ 2012-04-23  2:05 tpflima
  2012-04-23  3:07 ` Michael Hope
  2012-04-23 16:32 ` Yann E. MORIN
  0 siblings, 2 replies; 4+ messages in thread
From: tpflima @ 2012-04-23  2:05 UTC (permalink / raw)
  To: crossgcc


Hello, how are you?

I am having problems installing my arm-linux crosscompiler using ct-ng

I downloaded the crosstoll-ng 1.9.3 last week.
- I changed the prefixed directory for /usr/local/xtools/${CT_TARGET}
- I changed the number of parallel jobs, 8
- I changed the «Tuple's alias» to arm-­linux.
- I Enabled strace on debug facilities (gdb and ltrace could not be enabled
because the tarball could not be retrieved from their online locals)

I also used the following configurations:

Target OS Linux
Operating System, linux kernel version - 2.6.36
Binary Utilities - binutils version 2.20.1
C Compiler - gcc version 4.4.5
C-library - egLibc version 2_10
Companion libraries - GMP Version 4.3.2
MPFR version 3.0.0
PPL Version0.10.2
Cloog/ppl version 0.15.10
libelf version 0.8.13
(*) Build shared companion libraries

The output was:

=====================


[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20120422.223549
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in 0.05s (at
00:02)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[INFO ]  Extracting and patching toolchain components: done in 2.45s (at
00:04)
[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[INFO ]  Installing kernel headers: done in 4.96s (at 00:09)
[INFO ]  =================================================================
[INFO ]  Installing GMP
[INFO ]  Installing GMP: done in 54.65s (at 01:04)
[INFO ]  =================================================================
[INFO ]  Installing MPFR
[INFO ]  Installing MPFR: done in 15.13s (at 01:19)
[INFO ]  =================================================================
[INFO ]  Installing PPL
[INFO ]  Installing PPL: done in 132.39s (at 03:31)
[INFO ]  =================================================================
[INFO ]  Installing CLooG/ppl
[INFO ]  Installing CLooG/ppl: done in 6.76s (at 03:38)
[INFO ]  =================================================================
[INFO ]  Installing binutils
[INFO ]  Installing binutils: done in 35.86s (at 04:14)
[INFO ]  =================================================================
[INFO ]  Installing static core C compiler
[ERROR]    make[1]: *** [configure-gcc] Error 1
[ERROR]    Build failed in step 'Installing static core C compiler'
[ERROR]    Error happened in
'/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/functions' in
function 'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from
'/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/build/cc/gcc.sh'
at line # 289 in function 'do_cc_core'
[ERROR]          called from
'/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/build/cc/gcc.sh'
at line # 52 in function 'do_cc_core_pass_1'
[ERROR]          called from
'/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/crosstool-NG.sh'
at line # 597 in function 'main'
[ERROR]    Look at '/usr/local/xtools/arm-unknown-linux-gnueabi/build.log'
for more info on this error.
[ERROR]  (elapsed: 4:37.67)
[04:38] / make: *** [build] Error 2

I dont know what I'm doing wrong. :(
Could anyone give me a hint.

Thanks a lot and congrats for this excellent forum.

Thiago - tpfslima
-- 
View this message in context: http://old.nabble.com/problems-installing-my-arm-linux-crosscompiler-using-ct-ng---Build-failed-in-step-%27Installing-static-core-C-compiler%27-tp33730502p33730502.html
Sent from the Sourceware - crossgcc list mailing list archive at Nabble.com.


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problems installing my arm-linux crosscompiler using ct-ng - Build failed in step 'Installing static core C compiler'
  2012-04-23  2:05 problems installing my arm-linux crosscompiler using ct-ng - Build failed in step 'Installing static core C compiler' tpflima
@ 2012-04-23  3:07 ` Michael Hope
  2012-04-23 16:32 ` Yann E. MORIN
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Hope @ 2012-04-23  3:07 UTC (permalink / raw)
  To: tpflima; +Cc: crossgcc

On 23 April 2012 14:04, tpflima <thiagolima@gmail.com> wrote:
>
> Hello, how are you?
>
> I am having problems installing my arm-linux crosscompiler using ct-ng
>
> I downloaded the crosstoll-ng 1.9.3 last week.
> - I changed the prefixed directory for /usr/local/xtools/${CT_TARGET}
> - I changed the number of parallel jobs, 8
> - I changed the «Tuple's alias» to arm-­linux.
> - I Enabled strace on debug facilities (gdb and ltrace could not be enabled
> because the tarball could not be retrieved from their online locals)
>
> I also used the following configurations:
>
> Target OS Linux
> Operating System, linux kernel version - 2.6.36
> Binary Utilities - binutils version 2.20.1
> C Compiler - gcc version 4.4.5
> C-library - egLibc version 2_10
> Companion libraries - GMP Version 4.3.2
> MPFR version 3.0.0
> PPL Version0.10.2
> Cloog/ppl version 0.15.10
> libelf version 0.8.13
> (*) Build shared companion libraries
>
> The output was:
>
> =====================
>
>
> [INFO ]  Performing some trivial sanity checks
> [INFO ]  Build started 20120422.223549
> [INFO ]  Building environment variables
> [INFO ]  =================================================================
> [INFO ]  Retrieving needed toolchain components' tarballs
> [INFO ]  Retrieving needed toolchain components' tarballs: done in 0.05s (at
> 00:02)
> [INFO ]  =================================================================
> [INFO ]  Extracting and patching toolchain components
> [INFO ]  Extracting and patching toolchain components: done in 2.45s (at
> 00:04)
> [INFO ]  =================================================================
> [INFO ]  Installing kernel headers
> [INFO ]  Installing kernel headers: done in 4.96s (at 00:09)
> [INFO ]  =================================================================
> [INFO ]  Installing GMP
> [INFO ]  Installing GMP: done in 54.65s (at 01:04)
> [INFO ]  =================================================================
> [INFO ]  Installing MPFR
> [INFO ]  Installing MPFR: done in 15.13s (at 01:19)
> [INFO ]  =================================================================
> [INFO ]  Installing PPL
> [INFO ]  Installing PPL: done in 132.39s (at 03:31)
> [INFO ]  =================================================================
> [INFO ]  Installing CLooG/ppl
> [INFO ]  Installing CLooG/ppl: done in 6.76s (at 03:38)
> [INFO ]  =================================================================
> [INFO ]  Installing binutils
> [INFO ]  Installing binutils: done in 35.86s (at 04:14)
> [INFO ]  =================================================================
> [INFO ]  Installing static core C compiler
> [ERROR]    make[1]: *** [configure-gcc] Error 1
> [ERROR]    Build failed in step 'Installing static core C compiler'
> [ERROR]    Error happened in
> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/functions' in
> function 'CT_DoExecLog' (line unknown, sorry)
> [ERROR]          called from
> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/build/cc/gcc.sh'
> at line # 289 in function 'do_cc_core'
> [ERROR]          called from
> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/build/cc/gcc.sh'
> at line # 52 in function 'do_cc_core_pass_1'
> [ERROR]          called from
> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/crosstool-NG.sh'
> at line # 597 in function 'main'
> [ERROR]    Look at '/usr/local/xtools/arm-unknown-linux-gnueabi/build.log'
> for more info on this error.
> [ERROR]  (elapsed: 4:37.67)
> [04:38] / make: *** [build] Error 2
>
> I dont know what I'm doing wrong. :(
> Could anyone give me a hint.
>
> Thanks a lot and congrats for this excellent forum.
>
> Thiago - tpfslima

Hi Thiago.  I imagine it's a permissions problem.  /usr/local is
normally only writeable as root and you're probably running the script
as a normal user.

Does a plain 'mkdir -p /usr/local/xtools' work?  If not, try something like
 sudo mkdir /usr/local/xtools
 chown tpfslima:tpfslima /usr/local/xtools (or whatever your username is)

and test it by running
 touch /usr/local/xtools/itworked

-- Michael

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problems installing my arm-linux crosscompiler using ct-ng - Build failed in step 'Installing static core C compiler'
  2012-04-23  2:05 problems installing my arm-linux crosscompiler using ct-ng - Build failed in step 'Installing static core C compiler' tpflima
  2012-04-23  3:07 ` Michael Hope
@ 2012-04-23 16:32 ` Yann E. MORIN
  2012-04-23 22:53   ` Thiago Lima
  1 sibling, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2012-04-23 16:32 UTC (permalink / raw)
  To: crossgcc; +Cc: tpflima

Thiago, All,

On Monday 23 April 2012 04:04:53 tpflima wrote:
> I am having problems installing my arm-linux crosscompiler using ct-ng
> 
> I downloaded the crosstoll-ng 1.9.3 last week.

1.9.3 is no longer maintained. Please upgrade to 1.13.4 which is the
latest supported release.

> - I changed the prefixed directory for /usr/local/xtools/${CT_TARGET}

As already said, usually only root is allowed to write in /usr/local.
Did you check that your user is able to wite there?

Note that you should *not* run as root. It's very dangerous.

> - I changed the number of parallel jobs, 8
> - I changed the «Tuple's alias» to arm-­linux.
> - I Enabled strace on debug facilities (gdb and ltrace could not be enabled
> because the tarball could not be retrieved from their online locals)

That's a knwon problem, due to upstream renaming there releases. Update
to a more recent crosstool-NG to use the new names.

[--SNIP--]
> [INFO ]  Installing binutils
> [INFO ]  Installing binutils: done in 35.86s (at 04:14)

Looks like you are able to write into /usr/local, indeed.

> [INFO ]  =================================================================
> [INFO ]  Installing static core C compiler
> [ERROR]    make[1]: *** [configure-gcc] Error 1
> [ERROR]    Build failed in step 'Installing static core C compiler'
> [ERROR]    Error happened in
> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/functions' in
> function 'CT_DoExecLog' (line unknown, sorry)
> [ERROR]          called from
> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/build/cc/gcc.sh'
> at line # 289 in function 'do_cc_core'
> [ERROR]          called from
> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/build/cc/gcc.sh'
> at line # 52 in function 'do_cc_core_pass_1'
> [ERROR]          called from
> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/crosstool-NG.sh'
> at line # 597 in function 'main'
> [ERROR]    Look at '/usr/local/xtools/arm-unknown-linux-gnueabi/build.log'
> for more info on this error.

And what is in this file?

As Martin suggested, please post the relevant part of the build.log file.
If you do not know what part is relevant, do *not* post the entire file;
instead, put it on some website where we can download it.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problems installing my arm-linux crosscompiler using ct-ng - Build failed in step 'Installing static core C compiler'
  2012-04-23 16:32 ` Yann E. MORIN
@ 2012-04-23 22:53   ` Thiago Lima
  0 siblings, 0 replies; 4+ messages in thread
From: Thiago Lima @ 2012-04-23 22:53 UTC (permalink / raw)
  To: Yann E. MORIN, michael.hope, crossgcc

Yann, Michael and linux friends,

Thank You very much for the hints!

So... I started again. Checked if my directory had permissions for
write ( /usr/local/xtools/${CT_TARGET} )

I downloaded crosstool-ng 1.14.1,

./configure --prefix=/home/thiago//Documents/linux_labs/crosstool-ng-1.14.1
export PATH="${PATH}:/home/thiago/Documents/linux_labs/crosstool-ng-1.14.1"
make
make install
./ct­-ng  arm-­unknown­-linux­-uclibcgnueabi
./ct-­ng menuconfig

- I Changed the prefix directory to /usr/local/xtools/${CT_TARGET}
- I modified the tuple's alias
- I needed to select strace butI had to disable this feature because
the tarball could not be retrieved.
- I used the following itens/versions:

 'linux-2.6.33.20'
 'gmp-4.3.2'
 'mpfr-2.4.2'
 'ppl-0.10.2'
 'cloog-ppl-0.15.9'
 'libelf-0.8.13'
 'binutils-2.19.1a'
 'gcc-4.4.3'
 'uClibc-0.9.30.2'
 'gdb-7.1a'
 'ncurses-5.9'
 'expat-2.0.1'
 'ltrace-0.5.3'

./ct-ng build

Everything was OK!!

:)

export PATH="${PATH}:/usr/local/xtools/arm-unknown-linux-uclibcgnueabi/bin"
arm-linux-gcc main.c -o main

And it compiled!
Thank you very much agains. cheers!

Thiago - tpfslima

On 23 April 2012 13:31, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> Thiago, All,
>
> On Monday 23 April 2012 04:04:53 tpflima wrote:
>> I am having problems installing my arm-linux crosscompiler using ct-ng
>>
>> I downloaded the crosstoll-ng 1.9.3 last week.
>
> 1.9.3 is no longer maintained. Please upgrade to 1.13.4 which is the
> latest supported release.
>
>> - I changed the prefixed directory for /usr/local/xtools/${CT_TARGET}
>
> As already said, usually only root is allowed to write in /usr/local.
> Did you check that your user is able to wite there?
>
> Note that you should *not* run as root. It's very dangerous.
>
>> - I changed the number of parallel jobs, 8
>> - I changed the «Tuple's alias» to arm-­linux.
>> - I Enabled strace on debug facilities (gdb and ltrace could not be enabled
>> because the tarball could not be retrieved from their online locals)
>
> That's a knwon problem, due to upstream renaming there releases. Update
> to a more recent crosstool-NG to use the new names.
>
> [--SNIP--]
>> [INFO ]  Installing binutils
>> [INFO ]  Installing binutils: done in 35.86s (at 04:14)
>
> Looks like you are able to write into /usr/local, indeed.
>
>> [INFO ]  =================================================================
>> [INFO ]  Installing static core C compiler
>> [ERROR]    make[1]: *** [configure-gcc] Error 1
>> [ERROR]    Build failed in step 'Installing static core C compiler'
>> [ERROR]    Error happened in
>> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/functions' in
>> function 'CT_DoExecLog' (line unknown, sorry)
>> [ERROR]          called from
>> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/build/cc/gcc.sh'
>> at line # 289 in function 'do_cc_core'
>> [ERROR]          called from
>> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/build/cc/gcc.sh'
>> at line # 52 in function 'do_cc_core_pass_1'
>> [ERROR]          called from
>> '/home/thiago/Documents/linux_labs/crosstool-ng-1.9.3/scripts/crosstool-NG.sh'
>> at line # 597 in function 'main'
>> [ERROR]    Look at '/usr/local/xtools/arm-unknown-linux-gnueabi/build.log'
>> for more info on this error.
>
> And what is in this file?
>
> As Martin suggested, please post the relevant part of the build.log file.
> If you do not know what part is relevant, do *not* post the entire file;
> instead, put it on some website where we can download it.
>
> Regards,
> Yann E. MORIN.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-23 22:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-23  2:05 problems installing my arm-linux crosscompiler using ct-ng - Build failed in step 'Installing static core C compiler' tpflima
2012-04-23  3:07 ` Michael Hope
2012-04-23 16:32 ` Yann E. MORIN
2012-04-23 22:53   ` Thiago Lima

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).