Stratos: Punto de Encuentro de Desarrolladores

¡Bienvenido a Stratos!

Acceder

Foros





Problemas Para Compilar Un Compilador Cruzado

Iniciado por Depredator, 19 de Septiembre de 2004, 08:44:34 PM

« anterior - próximo »

Depredator

 Hola, el tema es el siguiente:

Estoy intentando compilar un compilador cruzado de Pascal para MIPS desde Cygwin, para ello he seguido los pasitos que vienen en los txt de GCC, pues bien, he llegado al punto en que tras hacer

.../GCC/configure --enable-languages=c,pascal --target=mips
--with-gnu-as --with-gnu-ld

y salir mas o menos bien, cuando hago el "make" despues de un buen rato me salta:

configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [p/rts/Makefile] Error 1

He estado mirando por mil sitios y estoy por pegarme un tiro  (nooo)

Os meto el config.log por si veis algo que se me haya escapado...
QUOTE ("config.log")
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:599: checking LIBRARY_PATH variable
configure:624: checking GCC_EXEC_PREFIX variable
configure:965: checking host system type
configure:986: checking target system type
configure:1004: checking build system type
configure:1031: checking for gcc
configure:1144: checking whether the C compiler (gcc  ) works
configure:1160: gcc -o conftest    conftest.c  1>&5
configure:1186: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1191: checking whether we are using GNU C
configure:1219: checking whether gcc accepts -g
configure:1262: checking whether make sets ${MAKE}
configure:1290: checking whether a default assembler was specified
configure:1302: checking whether a default linker was specified
configure:1319: checking for gawk
configure:1351: checking for flex
configure:1385: checking for yywrap in -lfl
configure:1427: checking whether ln works
configure:1459: checking whether ln -s works
configure:1491: checking for volatile
configure:1526: checking for ranlib
configure:1558: checking for bison
configure:1599: checking for a BSD compatible install
configure:1650: checking how to run the C preprocessor
configure:1730: checking for ANSI C header files
configure:1834: checking whether time.h and sys/time.h may both be included
configure:1869: checking whether string.h and strings.h may both be included
configure:1903: checking for sys/wait.h that is POSIX.1 compatible
configure:1948: checking for limits.h
configure:1948: checking for stddef.h
configure:1948: checking for string.h
configure:1948: checking for strings.h
configure:1948: checking for stdlib.h
configure:1948: checking for time.h
configure:1948: checking for fcntl.h
configure:1948: checking for unistd.h
configure:1948: checking for stab.h
configure:1948: checking for sys/file.h
configure:1948: checking for sys/time.h
configure:1948: checking for sys/resource.h
configure:1948: checking for sys/param.h
configure:1948: checking for sys/times.h
configure:1948: checking for sys/stat.h
configure:1948: checking for direct.h
configure:1988: checking for thread.h
configure:2022: checking for pthread.h
configure:2059: checking for gnatbind
configure:2090: checking whether cpp understands the stringify operator
configure:2126: checking for inttypes.h
configure:2165: checking for strtoul
configure:2165: checking for bsearch
configure:2165: checking for strerror
configure:2165: checking for putenv
configure:2165: checking for popen
configure:2165: checking for bcopy
configure:2165: checking for bzero
configure:2165: checking for bcmp
configure:2165: checking for index
configure:2165: checking for rindex
configure:2165: checking for strchr
configure:2165: checking for strrchr
configure:2165: checking for kill
configure:2165: checking for getrlimit
configure:2165: checking for setrlimit
configure:2165: checking for atoll
configure:2165: checking for atoq
configure:2165: checking for sysconf
configure:2165: checking for isascii
configure:2165: checking for gettimeofday
configure:2165: checking for strsignal
configure:2165: checking for putc_unlocked
configure:2165: checking for fputc_unlocked
configure:2165: checking for fputs_unlocked
configure:2222: checking for vprintf
configure:2338: checking whether the printf functions support %p
configure:2392: checking for pid_t
configure:2426: checking for vfork.h
configure:2461: checking for working vfork
configure:2640: checking whether malloc must be declared
configure:2640: checking whether realloc must be declared
configure:2640: checking whether calloc must be declared
configure:2640: checking whether free must be declared
configure:2640: checking whether bcopy must be declared
configure:2640: checking whether bzero must be declared
configure:2640: checking whether bcmp must be declared
configure:2640: checking whether index must be declared
configure:2640: checking whether rindex must be declared
configure:2640: checking whether getenv must be declared
configure:2640: checking whether atol must be declared
configure:2640: checking whether sbrk must be declared
configure:2640: checking whether abort must be declared
configure:2640: checking whether atof must be declared
configure:2640: checking whether strerror must be declared
configure:2640: checking whether getcwd must be declared
configure:2640: checking whether getwd must be declared
configure:2640: checking whether strsignal must be declared
configure:2640: checking whether putc_unlocked must be declared
configure:2640: checking whether fputs_unlocked must be declared
configure:2640: checking whether strstr must be declared
configure:2707: checking whether getrlimit must be declared
configure:2707: checking whether setrlimit must be declared
configure:2776: checking for sys_siglist declaration in signal.h or unistd.h
configure:2816: checking if mkdir takes one argument
configure:6044: checking for strerror in -lcposix
configure:6086: checking for working const
configure:6161: checking for inline
configure:6201: checking for off_t
configure:6234: checking for size_t
configure:6269: checking for working alloca.h
configure:6302: checking for alloca
configure:6504: checking for unistd.h
configure:6543: checking for getpagesize
configure:6596: checking for working mmap
configure:6772: checking for argz.h
configure:6772: checking for limits.h
configure:6772: checking for locale.h
configure:6772: checking for nl_types.h
configure:6772: checking for malloc.h
configure:6772: checking for string.h
configure:6772: checking for unistd.h
configure:6772: checking for sys/param.h
configure:6812: checking for getcwd
configure:6812: checking for munmap
configure:6812: checking for putenv
configure:6812: checking for setenv
configure:6812: checking for setlocale
configure:6812: checking for strchr
configure:6812: checking for strcasecmp
configure:6812: checking for strdup
configure:6812: checking for __argz_count
configure:6812: checking for __argz_stringify
configure:6812: checking for __argz_next
configure:6931: checking for LC_MESSAGES
configure:6964: checking whether NLS is requested
configure:8051: checking assembler alignment features
configure:8172: checking assembler subsection support
configure:8212: checking assembler instructions
[/quote]
enemos dos oidos y una boca para hablar menos y escuhar más...

(Proverbio Chino)

Zaelsius

 Dá la impresión de que el compilador no sabe generar código para la arquitectura MIPS en la fase final. Seguramente te falte instalar algun paquete más(por ejemplo, la libc compilada para MIPS).

Buscando "MIPS configure: error: installation or configuration problem: C compiler cannot create executables" en google he visto esto:

Citar· Run the cross-compiler on the host machine to produce assembler files for
  the target machine.  This requires header files for the target machine.

· Assemble the files produced by the cross-compiler.  You can do this either
  with an assembler on the target machine, or with a cross-assembler on the
  host machine.

· Link those files to make an executable.  You can do this either with a linker
  on the target machine, or with a cross-linker on the host machine.  Whichever
  machine you use, you need libraries and certain startup files (typically
  crt....o) for the target machine.

Pues eso, comprueba que tengas la libreria "C Runtime" para MIPS instalada o no podrás crear los ejecutables finales.

Depredator

 Gracias, lo probare, pero creo q me explique mal.

El asunto es compilar un compilador cruzado de pascal que genere codigo MIPS, pero q se ejecute en windows (de ahi el hacerlo todo sobre cygwin) con x86.

Salu2!!
enemos dos oidos y una boca para hablar menos y escuhar más...

(Proverbio Chino)






Stratos es un servicio gratuito, cuyos costes se cubren en parte con la publicidad.
Por favor, desactiva el bloqueador de anuncios en esta web para ayudar a que siga adelante.
Muchísimas gracias.