Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-10

crosscompile x64->i386 Ubuntu 10.10 Maverick, latest svn

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lukas Gradl

Hello!

I'm still stuck with cross-compiling fpc from x64 to i386 on an Ubuntu 10.10 machine.

I did:

make distclean;make all;sudo make install PREFIX=/usr;make clean

Worked as expected so far.

Then I did:

make all CPU_TARGET=i386

This build script stops.

Output is:

make compiler_cycle RELEASE=1
make[1]: Betrete Verzeichnis '/mnt/projects/Source/fpc' make -C compiler cycle
make[2]: Betrete Verzeichnis '/mnt/projects/Source/fpc/compiler' make OS_TARGET= CPU_TARGET= CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 rtlclean rtl
make[3]: Betrete Verzeichnis '/mnt/projects/Source/fpc/compiler' make -C clean
make: Betrete ein unbekanntes Verzeichnis
make: *** clean: No such file or directory. Schluss. make: Verlasse ein unbekanntes Verzeichnis
make[3]: *** [rtlclean] Fehler 2
make[3]: Verlasse Verzeichnis '/mnt/projects/Source/fpc/compiler' make[2]: *** [cycle] Fehler 2
make[2]: Verlasse Verzeichnis '/mnt/projects/Source/fpc/compiler' make[1]: *** [compiler_cycle] Fehler 2
make[1]: Verlasse Verzeichnis '/mnt/projects/Source/fpc' make: *** [build-stamp.i386-] Fehler 2

Here a translated version (just a translation, so might be different from the english version):

make compiler_cycle RELEASE=1
make[1]: Entering Directory '/mnt/projects/Source/fpc' make -C compiler cycle
make[2]: Entering Directory '/mnt/projects/Source/fpc/compiler' make OS_TARGET= CPU_TARGET= CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 rtlclean rtl
make[3]: Entering Directory '/mnt/projects/Source/fpc/compiler' make -C clean
make: Entering an unknown Directory
make: *** clean: No such file or directory. Finishing. make: Leaving an unknown Directory
make[3]: *** [rtlclean] Error 2
make[3]: Leaving Directory '/mnt/projects/Source/fpc/compiler' make[2]: *** [cycle] Error 2
make[2]: Leaving Directory '/mnt/projects/Source/fpc/compiler' make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving Directory '/mnt/projects/Source/fpc' make: *** [build-stamp.i386-] Error 2

Anyone a little hint for me?

regards
Lukas

-------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 5 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 --------------------------

Reply by email

Lukas Gradl
to Lukas Gradl
Lukas Gradl wrote 5 lines
Hello! I'm still stuck with cross-compiling fpc from x64 to i386 on an Ubuntu 10.10 machine.

Compared a compile on Ubuntu 10.10 to seems like there ist a problem with environment-variables on my 10.10
- Installation.

On 10.10 after a "make all CPU_TARGET=i386" i get:

make OS_TARGET= CPU_TARGET= CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 rtlclean rtl

whereas on 10.04 I get:
make OS_TARGET=linux CPU_TARGET=x86_64 CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 rtlclean rtl

Please, anyone a hint what might go wrong?

Regards
Lukas

-------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 5 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 --------------------------

Reply by email

Marco van de Voort
to Lukas Gradl

In our previous episode, Lukas Gradl said:

make OS_TARGET=linux CPU_TARGET=x86_64 CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 rtlclean rtl Please, anyone a hint what might go wrong?

No "fpc" binary in the path?

Reply by email

Lukas Gradl
to Marco van de Voort
Marco van de Voort wrote 11 lines
In our previous episode, Lukas Gradl said: > make OS_TARGET=linux CPU_TARGET=x86_64 CROSSBINDIR= BINUTILSPREFIX= > CROSSCYCLEBOOTSTRAP=1 rtlclean rtl > > Please, anyone a hint what might go wrong? No "fpc" binary in the path? _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

fpc binary is in path - otherwise the normal x64-build wouldn't have worked as well...

The problem was a crippled ppcross386 - it didn't report parameters correctly to fill "make fpc_basinfo". I deleted it and recreated it using ppcx64 - now everything ok again, although I can't reproduce what lead to the crippled one...

regards
Lukas

-------------------------- software security networks Lukas Gradl <fpc#ssn.at> Eduard-Bodem-Gasse 5 A - 6020 Innsbruck Tel: +43-512-214040-0 Fax: +43-512-214040-21 --------------------------

Reply by email