Comment déboguer les erreurs configure.sh lors de la compilation de rsync sur Yosemite

J'essaie de créer une nouvelle version de rsync 3.1.1 sous Mac OS 10.10.3, car le Mac est livré avec une ancienne version et le projet ne dissortingbue pas les files binarys.

J'ai suivi ce script simple, mais il fait un hoquet sur gcc. (Je ne sais pas pourquoi – bien que j'ai supprimé XCode pour économiser de l'espace disque, j'ai les outils de command line, y compris gcc dans / usr / bin etc.) J'essayerais de le build avec clang à la place, mais comment dois-je faire? cette?

Voici l'erreur du script:

configure.sh: Configuring rsync 3.1.1 checking build system type... x86_64-apple-darwin14.3.0 checking host system type... x86_64-apple-darwin14.3.0 checking whether to include debugging symbols... yes checking for gcc... gcc checking whether the C comstackr works... no configure.sh: error: in `/Users/laszlosandor/Downloads/rsync-3.1.1': configure.sh: error: C comstackr cannot create executable See `config.log' for more details make: *** No targets specified and no makefile found. Stop. 

Ou encore plus des sections pertinentes de config.log :

 gcc: warning: couldn't understand kern.osversion '14.3.0 configure.sh:2893: $? = 0 configure.sh:2882: gcc -v >&5 gcc: warning: couldn't understand kern.osversion '14.3.0 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin12.2.0/4.8.0/lto-wrapper Target: x86_64-apple-darwin12.2.0 Configured with: ../gcc-4.8-20120930/configure --enable-languages=c++,fortran Thread model: posix gcc version 4.8.0 20120930 (experimental) (GCC) configure.sh:2893: $? = 0 configure.sh:2882: gcc -V >&5 gcc: warning: couldn't understand kern.osversion '14.3.0 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure.sh:2893: $? = 1 configure.sh:2882: gcc -qversion >&5 gcc: warning: couldn't understand kern.osversion '14.3.0 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure.sh:2893: $? = 1 configure.sh:2913: checking whether the C comstackr works configure.sh:2935: gcc conftest.c >&5 gcc: warning: couldn't understand kern.osversion '14.3.0 ld: library not found for -lgcc_ext.10.4 collect2: error: ld returned 1 exit status configure.sh:2939: $? = 1 configure.sh:2977: result: no configure.sh: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define RSYNC_VERSION "3.1.1" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure.sh:2982: error: in `/Users/laszlosandor/Downloads/rsync-3.1.1': configure.sh:2984: error: C comstackr cannot create executables See `config.log' for more details 

En passant, je sais que je pourrais juste restr coincé avec Homebrew, mais maintenant je veux apprendre.

    Le problème concerne l'installation des outils de développement de command line sur votre Mac.

    Essayez d'installer à nouveau avec la command suivante. Cela devrait uniquement installer les outils de command line.

      xcode-select --install 

    Le script teste les outils de command line pour voir si une version compatible est installée mais renvoie des réponses confuses. C'est pourquoi il échoue.