Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to build cross-NG for ARM and i586 architectures. ct-ng build fails when trying to compile GCC. I already installed PPL version 1.0-1. Also tried version 0.11.2-2. I can'r understand why configuration script of GCC can't find PPL, while is already there...

All same result:

...
[CFG  ]    checking for the correct version of gmp.h... yes
[CFG  ]    checking for the correct version of mpfr.h... yes
[CFG  ]    checking for the correct version of mpc.h... yes
[CFG  ]    checking for the correct version of the gmp/mpfr/mpc libraries... yes
[CFG  ]    checking for PWL_handle_timeout in -lpwl... yes
[CFG  ]    checking for version 0.11 (revision 0 or later) of PPL... no
[ERROR]    configure: error: Unable to find a usable PPL.  See config.log for details.
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing pass-1 core C compiler'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@172]
[ERROR]  >>        called from: do_cc_core_backend[scripts/build/cc/gcc.sh@343]
[ERROR]  >>        called from: do_cc_core_pass_1[scripts/build/cc/gcc.sh@88]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@598]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'docs/B - Known issues.txt'
[ERROR]  
[ERROR]  (elapsed: 7:27.12)

In case that matters, my box:

uname -m x86_64
distro: archlinux
gcc -v: gcc version 4.7.1 20120721 (prerelease) (GCC)
share|improve this question

1 Answer 1

Crosstool-NG downloads & builds its dependencies on its own. In ct-ng menuconfig, there's this note :

  │ │    ()  Extra addons                                                 │ │  
  │ │          *** WARNING !!!                                            │ │  
  │ │          ***   For glibc >= 2.8, it can happen that the tarballs    │ │  
  │ │          ***   for the addons are not available for download.       │ │  
  │ │          ***   If that happens, bad luck... Try a previous version  │ │  
  │ │          ***   or try again later... :-(

Maybe the download server was momentarily down or your network connection flaked out. "Try again later" ?

Another thing to try is selecting different versions of PPL in ct-ng menuconfig under Companion libraries. In my case, I had selected a combination of gcc and other versions that crosstool does not support. Try using the stock generic arm-unknown-linux-gnueabi configuration without modification. That builds for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["                  <li><a href=\"//area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2015 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2015.4.24.2525\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Stack Overflow works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>\r\n    </nos"], "copyright__copyright__copyright": ["erent versions of PPL in ct-ng menuconfig under Companion libraries. In my case, I had selected a combination of gcc and other versions that crosstool does not support. Try using the stock generic arm-unknown-linux-gnueabi configuration without modification. That builds for me.\n\nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}