GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #14011

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Ilya Minkov
Subject: GPC cross-compilation error
Date: 29 Apr 2007, 14:26:14

Hello.

I'm trying to build a GPC for a deeply embedded non-unixoid platform (sh-elf) 
and running into an error of this kind:

 --- 8< ---

../../gcc-3.4.6/gcc/p/script/mkdir-p p/rts
src=`cd ../../gcc-3.4.6/gcc && pwd` && \
	cd ./p/rts && \	
CC="`echo /home/eye/dc/dc-chain/build-gcc-sh-elf-3.4.6/gcc/xgcc -B/home/eye/dc/dc-chain/build-gcc-sh-elf-3.4.6/gcc/ -B/home/eye/dc/sh-elf/sh-elf/bin/ -B/home/eye/dc/sh-elf/sh-elf/lib/ -isystem /home/eye/dc/sh-elf/sh-elf/include -isystem /home/eye/dc/sh-elf/sh-elf/sys-include' ' | 
sed -e 's,\(-[BI]\)\([^/][^:]\),\1../../\2,g;s,^\([^/][^:]*/\),../../\1,'`" 
PC="`echo ./xgpc -B./' ' | sed -e 's,\(-[BI]\)\([^/][^:]\),
\1../../\2,g;s,^\([^/][^:]*/\),../../\1,'`" CONFIG_SITE=nonexisting-file \
	$src/p/rts/configure --silent > /dev/null --srcdir=$src/p/rts \
	 `if [ x@with_shared@ = xyes ]; then echo '--with-shared'; fi`
configure: error: installation or configuration problem: C compiler cannot 
create executables.
make[2]: *** [p/rts/Makefile] Fehler 1
make[2]: Verlasse 
Verzeichnis '/home/eye/dc/dc-chain/build-gcc-sh-elf-3.4.6/gcc'
make[1]: *** [all-gcc] Fehler 2
make[1]: Verlasse Verzeichnis '/home/eye/dc/dc-chain/build-gcc-sh-elf-3.4.6'

 --- >8 ---

And i believe the error message is quite correct too. The build process is 
working in the following steps, as far as i understood it. I am not the 
author of the compilation script, so i'm not quite sure.

1. compile a semi-broken C cross-compiler.
2. compile newlib (a C standard library) using this compiler.
3. throw away the compiler, use something from newlib to reconfigure GCC
4. compile the correct cross-compiler for selected languages, namely C, C++, 
and in my case also Pascal.

It seems to me that xgcc is the broken compiler from the first step, which is 
not intended to produce executables, just libraries. Besides, it generates 
the code for the target system, where a compiler would be plain unable to 
run. The compilers have to be compiled with ordinary GCC and would run on 
this computer.

If it helps, i have the script which steers the compilation attached to this 
message. It expects binutils-2.16, gcc-3.4.6, newlib-1.12.0, and 
gnupascal-20060325 unpacked in its directory. Other versions might work if 
Makefile is corrected, but e.g. binutils-2.17 and gcc starting with version 4 
will not work.

Please note that GPC is the only compiler whose compilation breaks. Before i 
added it, C and C++ compilers compiled and worked successfully.

Does anyone have a clue where i start to fix it?

Cheers,
Ilya Minkov

File attachment

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Replies

Author Subject Date
Waldek Hebisch GPC cross-compilation error 29 Apr 2007, 15:45:55

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).