Sign in Join

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

Mailing lists / fpc-devel / 2009-11

FPC tests

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

dmitry boyarintsev

hello FPC-developers,

I've added the internal i386-darwin assembler to FPC. It seems to work fine on my small tests, but I'm having problems using FPC tests.

$ make TEST_FPC=~/modcompiler/i386/pp
make -C utils utils
make -C units FPC_VERSION= FPC=/Users/dmitry/modcompiler/i386/pp CPU_TARGET=is OS_TARGET=registered! OPT="" CCOMPILER= BINUTILSPREFIX= Makefile:199: *** The Makefile doesn't support target is-registered!, please run fpcmake first. Stop.
make: *** [units] Error 2

Making the test with TEST_FPC=/usr/local/bin/ppc386 works fine.

What can be wrong? Can it be caused by the internal darwin assembler (registered via assemble.RegisterAssembler()) ?

thanks,
dmitry

Reply by email

Jonas Maebe
to dmitry boyarintsev
dmitry boyarintsev wrote 16 lines
I've added the internal i386-darwin assembler to FPC. It seems to work fine on my small tests, but I'm having problems using FPC tests. $ make TEST_FPC=~/modcompiler/i386/pp make -C utils utils make -C units FPC_VERSION= FPC=/Users/dmitry/modcompiler/i386/pp CPU_TARGET=is OS_TARGET=registered! OPT="" CCOMPILER= BINUTILSPREFIX= Makefile:199: *** The Makefile doesn't support target is-registered!, please run fpcmake first. Stop. make: *** [units] Error 2 Making the test with TEST_FPC=/usr/local/bin/ppc386 works fine. What can be wrong? Can it be caused by the internal darwin assembler (registered via assemble.RegisterAssembler()) ?

$ grep 'registered!' *pas
assemble.pas: writeln('Warning: Assembler is already registered!') dbgbase.pas: writeln('Warning: DebugInfo is already registered!') rabase.pas: writeln('Warning: Asmmode is already registered!') systems.pas: writeln('Warning: Target is already registered!') systems.pas: writeln('Warning: ar is already registered!')

The makefile uses $TEST_FPC -iTO and $TEST_FPC -iTP to determine the target OS and target processor. Apparently in that case the compiler prints that warning because you are somehow registering two assemblers with the same id (maybe you used the same id as the external Darwin assembler?)

Jonas

Reply by email