Sign in Join

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

Mailing lists / fpc-pascal / 2013-04

FPC_JVM compilation fails on trunk

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Torsten Bonde Christiansen

Hi List.

I'm trying to follow this guide: http://wiki.freepascal.org/FPC_JVM/Building

But when i reach the point where i do the actual compilation fail with the following output:

make all crossinstall
CROSSOPT="-O2 -g" CPU_TARGET=jvm OS_TARGET=android INSTALL_PREFIX=~/fpc make: -iVSPTPSOTO: Command not found
make compiler_cycle RELEASE=1
make[1]: -iVSPTPSOTO: Command not found
make[1]: Entering directory `/home/torsten/FreePascal/fpc-trunk' make -C compiler cycle
make[2]: -iVSPTPSOTO: Command not found
make[2]: Entering directory `/home/torsten/FreePascal/fpc-trunk/compiler' make OS_TARGET= CPU_TARGET= CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 rtlclean rtl CYCLELEVEL=1
make[3]: Entering directory `/home/torsten/FreePascal/fpc-trunk/compiler' make -C clean
make: Entering an unknown directory
make: *** clean: No such file or directory. Stop. make: Leaving an unknown directory
make[3]: *** [rtlclean] Error 2
make[3]: Leaving directory `/home/torsten/FreePascal/fpc-trunk/compiler' make[2]: *** [cycle] Error 2
make[2]: Leaving directory `/home/torsten/FreePascal/fpc-trunk/compiler' make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory `/home/torsten/FreePascal/fpc-trunk' make: *** [base.build-stamp.jvm-android] Error 2

I'm using the 2.6.2 compiler and i have successfully compiled a new fpcmake, placed it
such that I know it is first in the path, but still it fails.

Any help is appriciated.

Regards,
Torsten B. Christiansen.

Reply by email

Jonas Maebe
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 6 lines
I'm trying to follow this guide: http://wiki.freepascal.org/FPC_JVM/Building But when i reach the point where i do the actual compilation fail with the following output: make all crossinstall CROSSOPT="-O2 -g" CPU_TARGET=jvm OS_TARGET=android INSTALL_PREFIX=~/fpc

This command does not match what is written on the wiki page you refer to above.

make: -iVSPTPSOTO: Command not found

This means that no fpc binary can be found in the path. This error is unrelated to building the JVM compiler specifically, it will happen regardless of what kind of compiler you try to build. Did you perform a standard installation of FPC 2.6.2 and is its installation directory in your path?

Additionally, the merge of the 8086 branch broke several things in the compiler (but that's unrelated to the error you get above), so you may encounter other errors once you fix your configuration. For now, I would recommend sticking to r24323 of trunk (regardless of which platform you use).

Jonas

Reply by email

Torsten Bonde Christiansen
to Jonas Maebe
Jonas Maebe wrote 14 lines
On 26 Apr 2013, at 22:37, Torsten Bonde Christiansen wrote: > I'm trying to follow this > guide:http://wiki.freepascal.org/FPC_JVM/Building > > But when i reach the point where i do the actual compilation fail > with the following output: > > make all crossinstall > CROSSOPT="-O2 -g" CPU_TARGET=jvm OS_TARGET=android INSTALL_PREFIX=~/fpc This command does not match what is written on the wiki page you refer to above.

True, but i thought that the order of defines and make targets didn't matte? The only other part i left out was the FPCMAKE, but since the fpcmake i created i now located where the old one used to be I do not think that should matter either?

Show quoted text 8 lines
> make: -iVSPTPSOTO: Command not found This means that no fpc binary can be found in the path. This error is unrelated to building the JVM compiler specifically, it will happen regardless of what kind of compiler you try to build. Did you perform a standard installation of FPC 2.6.2 and is its installation directory in your path?

I build fpc from scratch with my own settings, but all is installed into ~/fpc/...
My path contains ~/fpc/bin in which i symlink to the different compilers and crosscompilers.

Show quoted text 7 lines
Additionally, the merge of the 8086 branch broke several things in the compiler (but that's unrelated to the error you get above), so you may encounter other errors once you fix your configuration. For now, I would recommend sticking to r24323 of trunk (regardless of which platform you use).

I "downgraded" to r24323, but still the same issue, even when reordering the defines and make targets. The actual error from make seem to be this though:

make[3]: Entering directory `/home/torsten/FreePascal/fpc-trunk/compiler' make -C clean <=== "clean" is not a director, perhaps it is a target? make: Entering an unknown directory
make: *** clean: No such file or directory. Stop. make: Leaving an unknown directory

Regards,
Torsten.

Reply by email

Jonas Maebe
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 14 lines
On 2013-04-26 22:53, Jonas Maebe wrote: > > On 26 Apr 2013, at 22:37, Torsten Bonde Christiansen wrote: > >> I'm trying to follow this guide:http://wiki.freepascal.org/FPC_JVM/Building >> >> But when i reach the point where i do the actual compilation fail >> with the following output: >> >> make all crossinstall CROSSOPT="-O2 -g" CPU_TARGET=jvm OS_TARGET=android INSTALL_PREFIX=~/fpc > > This command does not match what is written on the wiki page you refer to above. True, but i thought that the order of defines and make targets didn't matte? The only other part i left out was the FPCMAKE, but since the fpcmake i created i now located where the old one used to be I do not think that should matter either?

Yes, then it should not matter.

>> make: -iVSPTPSOTO: Command not found > > This means that no fpc binary can be found in the path. This error is unrelated to building the JVM compiler specifically, it will happen regardless of what kind of compiler you try to build. Did you perform a standard installation of FPC 2.6.2 and is its installation directory in your path? I build fpc from scratch with my own settings,

That is not supported. Only official full install are supported. The reason is because otherwise you run into problems like the ones you are having.

but all is installed into ~/fpc/... My path contains ~/fpc/bin in which i symlink to the different compilers and crosscompilers.

The question was whether you have an "fpc" binary in your path (i.e., a program literally called "fpc"). If not, you have to explicitly specify the compiler to use via FPC=/full/path/to/ppc386 (or ppcx64, or ppcppc, etc depending on what your host platform is).

But again: only full official FPC installs are supported. If you keep getting problems, or ever have problems again in the future, please first install an official FPC release and try again. If you absolutely insist on not doing that (please do it anyway), at the very least mention that in every request for help when something doesn't work.

Jonas

Reply by email