<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">In case my guesswork was right this
would be the fix to Makefile.fpc:<br>
<br>
Index: Makefile.fpc<br>
===================================================================<br>
--- Makefile.fpc (revision 24625)<br>
+++ Makefile.fpc (working copy)<br>
@@ -169,8 +169,12 @@<br>
<br>
# Always use newly created fpcmake<br>
ifndef FPCMAKENEW<br>
+ifdef CROSSINSTALL<br>
+FPCMAKENEW=$(BASEDIR)/utils/fpcm/fpcmake$(SRCEXEEXT)<br>
+else<br>
FPCMAKENEW=$(BASEDIR)/utils/fpcm/bin/$(SOURCESUFFIX)/fpcmake$(SRCEXEEXT)<br>
endif<br>
+endif<br>
<br>
# Build/install options<br>
CLEANOPTS=FPC=$(PPNEW)<br>
@@ -316,6 +320,11 @@<br>
base.$(BUILDSTAMP):<br>
# create new compiler<br>
$(MAKE) compiler_cycle RELEASE=1<br>
+ifdef CROSSCOMPILE<br>
+# Buld a new native fpcmake when cross-compiling.<br>
+# Fresh native compiler and RTL are ready at this stage.<br>
+ $(MAKE) -C utils/fpcm bootstrap $(BUILDOPTS)<br>
+endif<br>
# clean<br>
$(MAKE) rtl_clean $(CLEANOPTS)<br>
# build everything<br>
<br>
<br>
Am 28.05.13 10:59, schrieb Michael Ring:<br>
</div>
<blockquote cite="mid:51A471EC.6030804@michael-ring.org" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
I was having troubles today installing ppcrossarm from trunk, I
have a workarround for the problem but I question myself how to
really fix the problem:<br>
<br>
SUBARCH=armv7m<br>
make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded
CPU_TARGET=arm SUBARCH=$SUBARCH CROSSOPT="-godwarfsets -gw2 -O-"
BINUTILSPREFIX=arm-none-eabi-<br>
<br>
works fine. But then installation goes wrong because fpcmake was
not build, but it is needed for installation (Question is why it
is necessary to invoke fpcmake at all;-)).<br>
<br>
I can fix this by adding:<br>
<br>
make -C utils/fpcm bootstrap
'FPC=/Users/ring/devel/fpc/compiler/ppc' OS_TARGET=darwin
CPU_TARGET=i386<br>
<br>
to my buildscript, but my guess is that this should better be
added to the buildbase rule, there's an entry for that in the
build rule<br>
<br>
<b>ifdef CROSSCOMPILE<br>
$(MAKE) -C utils/fpcm bootstrap $(BUILDOPTS)<br>
endif</b><br>
<br>
I have added this rule to my makefile, seems to work. I have no
idea if I break anything by adding this to the makefile<br>
<br>
fpcmake is now created in directory utils/fpcm/fpcmake<br>
<br>
Now installation nearly works, last problem is that FPCMAKE path
gets defined wrong as:<br>
<br>
make -C embedded all<br>
/Users/ring/devel/fpc/utils/fpcm/bin/i386-darwin/fpcmake -p
-Tarm-embedded Makefile.fpc<br>
make[2]: /Users/ring/devel/fpc/utils/fpcm/bin/i386-darwin/fpcmake:
No such file or directory<br>
<br>
<br>
I can fix this by defining FPCMAKENEW to the real position of
fpcmake after the build:<br>
<br>
sudo make installbase CROSSINSTALL=1 OS_TARGET=embedded
CPU_TARGET=arm SUBARCH=$SUBARCH CROSSOPT="-godwarfsets -gw2 -O-"
BINUTILSPREFIX=arm-none-eabi-
FPCMAKENEW=/Users/ring/devel/fpc/utils/fpcm/fpcmake<br>
<br>
At this point I ask myself if this error exists because I did
something wrong building fpcmake. <br>
<br>
Any ideas?<br>
<br>
TnX,<br>
<br>
Michael<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fpc-devel maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-devel">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>