Sign in Join

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

Mailing lists / fpc-pascal / 2009-04

Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

ik

Hello,

I'm trying to create a cross compile to arm-linux. I made the following execution:

fpcmake -Tarm-linux -v
FPCMake Version 2.0.0 [2009/02/20]
Processing Makefile.fpc
Targets: "arm-linux"
Globals:
FPCDIR = "."
PACKAGESDIR = "$(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra $(FPCDIR)/packages"
UNITSDIR = "$(FPCDIR)/units/$(FULLTARGET)"
BASEDIR = "/_/programming/fpc/fpc"
Required packages for linux-arm:
Required dirs for arm-linux: compiler rtl utils packages ide installer Subdir: compiler/Makefile.fpc
Subdir: rtl/Makefile.fpc
Subdir: utils/Makefile.fpc
Subdir: packages/Makefile.fpc
Subdir: ide/Makefile.fpc
Subdir: installer/Makefile.fpc
arm-linux requires:
Writing Makefile

When I try to use make (even without any parameters) it returns me the following error message:
Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

My machine is x86_64 (Arch Linux).
What am I missing or doing wrong here ?

Thanks,
Ido

Reply by email

Jonas Maebe
to ik
ik wrote
I'm trying to create a cross compile to arm-linux. I made the following execution: fpcmake -Tarm-linux -v

Use this instead:
fpcmake -Tall

Why are you regenerating the makefiles anyway? They already should contain support for all supported platforms.

Jonas

Reply by email

ik
to Jonas Maebe
Jonas Maebe wrote 14 lines
On 06 Apr 2009, at 10:00, ik wrote: I'm trying to create a cross compile to arm-linux. > I made the following execution: > > fpcmake -Tarm-linux -v > Use this instead: fpcmake -Tall Why are you regenerating the makefiles anyway? They already should contain support for all supported platforms.

Followed the instructions. Now if I try to do the following: make MAKEFILETARGETS=arm-linux all

It still gives me the following error:
Makefile:197: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

Without MAKEFILETARGETS it does works.

So how can I cross compile fpc to arm in Linux (I have the linker etc.. for arm) ?

Show quoted text 5 lines
Jonas

Ido

Reply by email

Jonas Maebe
to ik
ik wrote 9 lines
Followed the instructions. Now if I try to do the following: make MAKEFILETARGETS=arm-linux all It still gives me the following error: Makefile:197: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop. Without MAKEFILETARGETS it does works.

That's probably because this MAKEFILETARGETS tells the makefile to regenerate all makefiles only for arm-linux.

So how can I cross compile fpc to arm in Linux (I have the linker etc.. for arm) ?

make CPU_TARGET=arm OS_TARGET=linux all

See http://www.stack.nl/~marcov/buildfaq.pdf for more information.

Jonas

Reply by email

ik
to Jonas Maebe

http://ik.homelinux.org/

Jonas Maebe wrote 22 lines
On 06 Apr 2009, at 10:16, ik wrote: Followed the instructions. Now if I try to do the following: > make MAKEFILETARGETS=arm-linux all > > It still gives me the following error: > Makefile:197: *** The Makefile doesn't support target x86_64-linux, please > run fpcmake first. Stop. > > Without MAKEFILETARGETS it does works. > That's probably because this MAKEFILETARGETS tells the makefile to regenerate all makefiles only for arm-linux. So how can I cross compile fpc to arm in Linux (I have the linker etc.. > for > arm) ? > make CPU_TARGET=arm OS_TARGET=linux all

Now I understand, at first when I did it like that I saw x86_64, now I reread the output better.

Show quoted text 11 lines
See http://www.stack.nl/~marcov/buildfaq.pdf<http://www.stack.nl/%7Emarcov/buildfaq.pdf>for more information. Jonas _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Thanks,

Ido

Reply by email

Vincent Snijders
to ik: I'm trying to create a cross compile to arm-linux. I made the following execution:…
ik wrote 6 lines
Hello, I'm trying to create a cross compile to arm-linux. I made the following execution: fpcmake -Tarm-linux -v

Why do you regenerate the makefile? Makefiles from svn support all targets the compiler can handle.

Show quoted text 5 lines
When I try to use make (even without any parameters) it returns me the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

You removed support for the host target in the makefile.

My machine is x86_64 (Arch Linux). What am I missing or doing wrong here ?

Vincent

Reply by email