Sign in Join

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

Mailing lists / fpc-pascal / 2005-05

ppcrossarm

10 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Carsten Bager

Switching from version 1.9.5 to version 1.9.9 gives me the following problem; the compiler cannot find the assembler. The assembler (as) and linker (ld) are in the same folder. I am using the same fpc.cfg (in the same folder). What are I doing wrong.
see below

Regards
Carsten

./ppcrossarm TestEmbedded.pas -

a
Free Pascal Compiler version 1.9.9 [2005/03/03] for arm Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for ARM
Compiling TestEmbedded.pas
Compiling system.pp
Assembling system
system.pp(8,1) Error: Assembler -as not found, switching to external assembling
system.pp(8,1) Fatal: There were 1 errors compiling module, stopping

./ppcrossarm TestEmbedded.pas -

a
Free Pascal Compiler version 1.9.5 [2005/03/03] for arm Copyright (c) 1993-2004 by Florian Klaempfl
Target OS: Linux for ARM
Compiling TestEmbedded.pas
Assembling testembedded
Linking TestEmbedded
5 Lines compiled, 0.0 sec

Carsten Bager Bøvlingbjerg El-automatik Brørupvænget 10 7650 Bøvlingbjerg Tlf. +4597885222 Fax +4597885434 http://www.beas.dk

Reply by email

Carsten Bager

Switching from version 1.9.5 to version 1.9.9 gives me the following problem; the compiler cannot find the assembler. The assembler (as) and linker (ld) are in the same folder. I am using the same fpc.cfg (in the same folder). What are I doing wrong.
see below

Regards
Carsten

./ppcrossarm TestEmbedded.pas -

a
Free Pascal Compiler version 1.9.9 [2005/03/03] for arm Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for ARM
Compiling TestEmbedded.pas
Compiling system.pp
Assembling system
system.pp(8,1) Error: Assembler -as not found, switching to external assembling
system.pp(8,1) Fatal: There were 1 errors compiling module, stopping

./ppcrossarm TestEmbedded.pas -

a
Free Pascal Compiler version 1.9.5 [2005/03/03] for arm Copyright (c) 1993-2004 by Florian Klaempfl
Target OS: Linux for ARM
Compiling TestEmbedded.pas
Assembling testembedded
Linking TestEmbedded
5 Lines compiled, 0.0 sec

Reply by email

Carsten Bager

Switching from version 1.9.5 to version 1.9.9 gives me the following problem; the compiler cannot find the assembler. The assembler (as) and linker (ld) are in the same folder. I am using the same fpc.cfg (in the same folder). What are I doing wrong.
see below

Regards
Carsten

./ppcrossarm TestEmbedded.pas -

a
Free Pascal Compiler version 1.9.9 [2005/03/03] for arm Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for ARM
Compiling TestEmbedded.pas
Compiling system.pp
Assembling system
system.pp(8,1) Error: Assembler -as not found, switching to external assembling system.pp(8,1) Fatal: There were 1 errors compiling module,
stopping

./ppcrossarm TestEmbedded.pas -

a
Free Pascal Compiler version 1.9.5 [2005/03/03] for arm Copyright (c) 1993-2004 by Florian Klaempfl
Target OS: Linux for ARM
Compiling TestEmbedded.pas
Assembling testembedded
Linking TestEmbedded
5 Lines compiled, 0.0 sec

Carsten Bager Bøvlingbjerg El-automatik Brørupvænget 10 7650 Bøvlingbjerg Tlf. +4597885222 Fax +4597885434 http://www.beas.dk

Reply by email

Florian Klaempfl
to Carsten Bager
Carsten Bager wrote 6 lines
Switching from version 1.9.5 to version 1.9.9 gives me the following problem; the compiler cannot find the assembler. The assembler (as) and linker (ld) are in the same folder. I am using the same fpc.cfg (in the same folder). What are I doing wrong. see below

The newer compilers requires an updated fpc.cfg and that the assembler is called e.g. arm-linux-as and arm-linux-ld.

Show quoted text 28 lines
Regards Carsten > ./ppcrossarm TestEmbedded.pas - a Free Pascal Compiler version 1.9.9 [2005/03/03] for arm Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Linux for ARM Compiling TestEmbedded.pas Compiling system.pp Assembling system system.pp(8,1) Error: Assembler -as not found, switching to external assembling system.pp(8,1) Fatal: There were 1 errors compiling module, stopping > ./ppcrossarm TestEmbedded.pas - a Free Pascal Compiler version 1.9.5 [2005/03/03] for arm Copyright (c) 1993-2004 by Florian Klaempfl Target OS: Linux for ARM Compiling TestEmbedded.pas Assembling testembedded Linking TestEmbedded 5 Lines compiled, 0.0 sec >

Reply by email

Jose Pascual
to Florian Klaempfl

Hi,

I Have downloaded last cvs version for FPC, I want to make a cross compile for ARM

make crossall CPU_TARGET=arm

that's work perfectly

but

make crossinstall CPU_TARGET=arm

give me next error

------------------------------------------------------------------------ ------------------------
make[3]: Leaving directory `/trabajo/programas/freepascal/cvs/fpc' make rtl_install
FPC=/trabajo/programas/freepascal/cvs/fpc/compiler/ppcrossarm ZIPDESTDIR=/trabajo/programas/freepascal/cvs/fpc FPCMAKE=fpcmake make[3]: Entering directory `/trabajo/programas/freepascal/cvs/fpc' make -C rtl install
make[4]: Entering directory `/trabajo/programas/freepascal/cvs/fpc/rtl' make -C linux all
make[5]: Entering directory
`/trabajo/programas/freepascal/cvs/fpc/rtl/linux'
make[5]: Leaving directory
`/trabajo/programas/freepascal/cvs/fpc/rtl/linux'
fpcmake -p -Tarm-linux Makefile.fpc
Processing Makefile.fpc
Error: No targets set
make[4]: *** [fpc_install] Error 1
make[4]: Leaving directory `/trabajo/programas/freepascal/cvs/fpc/rtl' make[3]: *** [rtl_install] Error 2
make[3]: Leaving directory `/trabajo/programas/freepascal/cvs/fpc' make[2]: *** [installbase] Error 2
make[2]: Leaving directory `/trabajo/programas/freepascal/cvs/fpc' make[1]: *** [install] Error 2
make[1]: Leaving directory `/trabajo/programas/freepascal/cvs/fpc' make: *** [crossinstall] Error 2
------------------------------------------------------------------------ ------------------------

regards

Reply by email

Peter Vreman
to Jose Pascual
Show quoted text 14 lines
Hi, I Have downloaded last cvs version for FPC, I want to make a cross compile for ARM > make crossall CPU_TARGET=arm that's work perfectly but > make crossinstall CPU_TARGET=arm give me next error

You need a fpcmake from 1.9.8 installed on the system.

Reply by email

Den Jean
to Jose Pascual: I Have downloaded last cvs version for FPC, I want to make a cross compile for ARM that's…
Jose Pascual wrote
but > make crossinstall CPU_TARGET=arm

Please read README.TXT of arm fpc qt binding demo.

http://prdownloads.sourceforge.net/qtforfpc/demo-qteintf-0.9.tar.gz?download http://users.pandora.be/Jan.Van.hijfte/qtforfpc/qtedemo.html

the ... from CVS instructions ... (arm or even i386) are way at the bottom. I thought the PREFIX option may interest you.

kind regards,

Den Jean

Reply by email

Jose Pascual
to Den Jean

Hi Dean,

The solution for make crossinstall CPU_TARGET=arm was fpcmake from >= 1.9.8 as
Peter Vreman said in his last email to forum.

I have been making test to new ppcarm releas (1.9.9) and I have found a old problem with cprtO.o

---------------------------------------------------- Linking test_libc
/usr/local/lib/fpc/1.9.9/units/arm-linux/rtl/cprt0.o(.text+0x64): In function `_haltproc':
: undefined reference to `_fini'
/usr/local/lib/fpc/1.9.9/units/arm-linux/rtl/cprt0.o(.text+0x6c): In function `_haltproc':
: undefined reference to `_init'
example_libc.pas(21) Error: Error while linking
----------------------------------------------------- with arm-linux-nm I can find label _init and _fini, but it seems to be empty,
-------------------------------------------
00000000 t $a
U abort
00000000 d $d
00000000 r $d
00000058 t $d
00000000 D __data_start
00000000 W data_start
U _fini
00000048 T _haltproc
U _init
U __libc_start_main
00000004 C operatingsystem_parameter_argc
00000004 C operatingsystem_parameter_argv
00000004 C operatingsystem_parameter_envp
U operatingsystem_result
U PASCALMAIN
00000000 T _start
------------------------------------------

As many months ago the solution for me was and has been to override cprtO.o with prtO.o

Is it a problem/bug during cprtO.o generation?
which is the differences between cprtO.o and prtO.o

If my program is working thanks to overwrite cprtO.o with prtO.o What does it means?

thank you in advanced

kind regards

p.s. Florian, very good job with ppcarm (threads are working very good, like delphi in windows ;-) )

Show quoted text 17 lines
-----Mensaje original----- De: En nombre de Den Jean Enviado el: jueves, 12 de mayo de 2005 19:00 Para: FPC-Pascal users discussions Asunto: Re: [fpc-pascal] installing ppcrossarm from cvs On Thursday 12 May 2005 11:19 am, Jose Pascual wrote: > but > > > make crossinstall CPU_TARGET=arm > Please read README.TXT of arm fpc qt binding demo.

http://prdownloads.sourceforge.net/qtforfpc/demo-qteintf-0.9.tar.gz?down load
http://users.pandora.be/Jan.Van.hijfte/qtforfpc/qtedemo.html

the ... from CVS instructions ... (arm or even i386) are way at the bottom. I thought the PREFIX option may interest you.

kind regards,

Den Jean

Reply by email

Marco van de Voort
to Jose Pascual
Show quoted text 7 lines
As many months ago the solution for me was and has been to override cprtO.o with prtO.o If my program is working thanks to overwrite cprtO.o with prtO.o What does it means?

prt0 is for static programs, cprt0 is for libc programs. cprt0 initialises and finalises libc, prt0 does not.

So I think it simply means that your program links to libc, but doesn't use it, or doesn't use parts that rely on initialisation.

Reply by email

Jose Pascual
to Jose Pascual: The solution for make crossinstall CPU_TARGET=arm was fpcmake from >= 1.9.8 as Peter…

Hi

I have been making test to new ppcarm releas (1.9.9) and I have found a old problem with cprtO.o

---------------------------------------------------- Linking test_libc
/usr/local/lib/fpc/1.9.9/units/arm-linux/rtl/cprt0.o(.text+0x6 4): In function `_haltproc':
: undefined reference to `_fini'
/usr/local/lib/fpc/1.9.9/units/arm-linux/rtl/cprt0.o(.text+0x6 c): In function `_haltproc':
: undefined reference to `_init'
example_libc.pas(21) Error: Error while linking
----------------------------------------------------- with arm-linux-nm I can find label _init and _fini, but it seems to be empty,
-------------------------------------------
00000000 t $a
U abort
00000000 d $d
00000000 r $d
00000058 t $d
00000000 D __data_start
00000000 W data_start
U _fini
00000048 T _haltproc
U _init
U __libc_start_main
00000004 C operatingsystem_parameter_argc
00000004 C operatingsystem_parameter_argv
00000004 C operatingsystem_parameter_envp
U operatingsystem_result
U PASCALMAIN
00000000 T _start
------------------------------------------

thank you in advanced

kind regards

Reply by email