Estoy tratando de construir yo mismo una nueva versión de rsync 3.1.1 en Mac OS 10.10.3, como el mac viene con una versión anterior, y la proyecto no distribuye binarios.
Seguí este simple script pero tiene hipo en gcc. (No estoy seguro de por qué - aunque he quitado XCode para ahorrar espacio en disco, tengo las herramientas de línea de comandos, incl. gcc en /usr/bin etc.) Me gustaría tratar de construir con clang en su lugar, pero ¿cómo exactamente voy a hacer eso?
Este es el error del 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 compiler works... no
configure.sh: error: in `/Users/laszlosandor/Downloads/rsync-3.1.1':
configure.sh: error: C
compiler cannot create executable
See `config.log' for more details
make: *** No targets specified and no makefile found. Stop.
O incluso más de las secciones 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 compiler 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 compiler cannot create executables
See `config.log' for more details
Por cierto, sé que podría haberme quedado con Homebrew, pero ahora quiero aprender.
0 votos
@bmike Además, me gusta que estés interesado en los detalles del problema, pero yo estaba interesado en una solución específica. ¿Por qué no se puede pedir eso también? No veo por qué
clang
sería irrelevante en este caso.0 votos
Siéntase libre de revery mi cambio de título si no es una ayuda o lo que busca. El detalle en config.log es impresionante. Última pregunta - hace
gcc --version
Mostrar Apple LLVM versión 6.1.0 (clang-602.0.49) (basado en LLVM 3.6.0svn)0 votos
Si quieres más información sobre el problema, dinos qué has probado hasta ahora. En particular, cómo se ha eliminado Xcode, pero mantuvo las herramientas de línea de comandos. Parece por los errores que tiene GCC instalado a través de cerveza tal vez?
0 votos
Simplemente borré Xcode, creo. Sí, puede que gcc viniera con homebrew. ¿Entonces eso es un problema? ¿Y no tiene sentido probar clang en su lugar?
0 votos
En
gcc
que viene con Xcode es en realidadclang
. :) Yo intentaríabrew uninstall gcc
entoncesxcode-select --install
entonces intente./configure
de nuevo. Tu sistema parece estar un poco confuso ahora mismo.0 votos
En
brew uninstall gcc
:Error: No such keg: /usr/local/Cellar/gcc
0 votos
Si tienes homebrew de todas formas úsalo para rsync