usuario2748943
Estoy tratando de instalar un software diferente en mi Raspberry Pi con Debian Wheezy OS. Cuando ejecuto intento configurar el software que estoy tratando de instalar, obtengo este resultado
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in 'directory of where I'm installing the software'
configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See config.log' for more details
Entonces reviso el registro de configuración y básicamente dice lo mismo, la única diferencia es que veo que hubo una falla de segmento al verificar si se realiza una compilación cruzada:
configure:3547: checking for suffix of executables
configure:3554: /usr/bin/gcc -o conftest -Wno-long-long conftest.c >&5
configure:3558: $? = 0
configure:3580: result:
configure:3602: checking whether we are cross compiling
configure:3610: /usr/bin/gcc -o conftest -Wno-long-long conftest.c >&5
configure:3614: $? = 0
configure:3621: ./conftest
./configure: line 3623: 3679 Segmentation fault ./conftest$ac_cv_exeext
configure:3625: $? = 139
configure:3632: error: in `/usr/local/src/VALGRIND/valgrind-3.10.1':
configure:3634: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
Este error ha aparecido dos veces ahora. Una vez al intentar instalar Valgrind y una vez al intentar instalar libusb.
La salida con gcc -v es esta:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-14+rpi1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable- languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.6.3 (Debian 4.6.3-14+rpi1)
Eric A. Suess
En CoreOS, resolvió el problema con.
install.packages('rgdal', type = "source", configure.args="--host=host")
Pengchy
El problema aquí ha sido resuelto por:
export PATH=/path/to/gcc-4.9.2/bin/:$PATH
export LD_LIBRARY_PATH=/path/to/gcc-4.9.2/lib64/:$LD_LIBRARY_PATH
./configure --prefix=/path/to/ --host=arm
Espero que esto te ayudará.
es un problema con /tmp
directorio. Simplemente agregue esto a su comando pip: --build ./
y vuelva a ejecutarlo.
./
es el directorio de trabajo actual.
-
Está bien, pero esto es C,
configure
ymake
… entonces, ¿cómo se relaciona conpip
?– Priftan
24 de mayo a las 9:33
Recibí este error exacto. cuando miré adentro config.log
Vi el mensaje:
fatal error: sys/cdefs.h: No such file or directory
Para arreglar esto, ejecuté:
sudo apt-get install libc6-dev
Entonces podría configurar y compilar mi programa.
Son cruzas compilando?
– nemetroide
11 de agosto de 2015 a las 13:45
No que yo sepa. Solo estoy tratando de configurar e instalar este software para Linux
– usuario2748943
11 de agosto de 2015 a las 13:52
¿Está ejecutando todo lo anterior en el propio RPi?
– Eugenio Sh.
11 de agosto de 2015 a las 14:05
Los errores sugieren que
/usr/bin/gcc
es un compilador que genera ejecutables para una arquitectura diferente a la computadora en la que se ejecuta.– nemetroide
11 de agosto de 2015 a las 14:11
@EugeneSh. Estoy ejecutando todo lo anterior en el RPi
– usuario2748943
11 de agosto de 2015 a las 14:36