Sign in Join

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

Mailing lists / lazarus / 2013-06

"crti.o" "crtbegin.o" "crtend.o" "crtn.o"

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Junior

Hi all

When compiling fpc 2.7.1 realized these warnings:

-----------------------------------------------
fpmake.pp(218,1) Warning: "crti.o" not found, this will probably cause a linking failure
fpmake.pp(218,1) Warning: "crtbegin.o" not found, this will probably cause a linking failure
fpmake.pp(218,1) Warning: "crtend.o" not found, this will probably cause a linking failure
fpmake.pp(218,1) Warning: "crtn.o" not found, this will probably cause a linking failure
-----------------------------------------------

Included in the compilation shown below:

...
[100%] Compiled package utils
make[2]: Saindo do diret?rio `/home/junior/tmp/fpc/utils' make[1]: Saindo do diret?rio `/home/junior/tmp/fpc' make ide_all FPC=/home/junior/tmp/fpc/compiler/ppc386 FPCFPMAKE=/home/junior/tmp/fpc/compiler/ppc386 RELEASE=1 make[1]: Entrando no diret?rio `/home/junior/tmp/fpc' make -C ide all
make[2]: Entrando no diret?rio `/home/junior/tmp/fpc/ide' /home/junior/tmp/fpc/compiler/ppc386 fpmake.pp
-Fu/home/junior/tmp/fpc/rtl/units/i386-linux
-Fu/home/junior/tmp/fpc/packages/paszlib/units/i386-linux -Fu/home/junior/tmp/fpc/packages/fcl-process/units/i386-linux -Fu/home/junior/tmp/fpc/packages/hash/units/i386-linux -Fu/home/junior/tmp/fpc/packages/libtar/units/i386-linux -Fu/home/junior/tmp/fpc/packages/fpmkunit/units/i386-linux Free Pascal Compiler version 2.7.1 [2013/06/03] for i386 Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Linux for i386
Compiling fpmake.pp
Linking fpmake
fpmake.pp(218,1) Warning: "crti.o" not found, this will probably cause a linking failure
fpmake.pp(218,1) Warning: "crtbegin.o" not found, this will probably cause a linking failure
fpmake.pp(218,1) Warning: "crtend.o" not found, this will probably cause a linking failure
fpmake.pp(218,1) Warning: "crtn.o" not found, this will probably cause a linking failure
/usr/bin/ld: warning: link.res contains output sections; did you forget -T? 220 lines compiled, 0.6 sec
4 warning(s) issued
...

-------------------------------------------------------------------------

The fpc compiles successfully.
In Lazarus, all compiled project appears this error. The even happens when compiling Lazarus himself:

StartLazarus:
...
startlazarus.lpr(51,1) Warning: "crti.o" not found, this will probably cause a linking failure
startlazarus.lpr(51,1) Warning: "crtbegin.o" not found, this will probably cause a linking failure
startlazarus.lpr(51,1) Warning: "crtend.o" not found, this will probably cause a linking failure
startlazarus.lpr(51,1) Warning: "crtn.o" not found, this will probably cause a linking failure
Projeto "startlazarus" criado com sucesso.

---------------------------------------

LazBuild:
...
lazbuild.lpr(1622,1) Warning: "crti.o" not found, this will probably cause a linking failure
lazbuild.lpr(1622,1) Warning: "crtbegin.o" not found, this will probably cause a linking failure
lazbuild.lpr(1622,1) Warning: "crtend.o" not found, this will probably cause a linking failure
lazbuild.lpr(1622,1) Warning: "crtn.o" not found, this will probably cause a linking failure
Projeto "lazbuild" criado com sucesso.

thanks

Reply by email

leledumbo
to Junior

Just ignore the warnings, they seem to be safe for FPC programs (FPC doesn't use GCC initializer/finalizer, it has its own). This may be caused by newer binutils, whose behavior is documented here:
http://gcc.gnu.org/onlinedocs/gccint/Initialization.html

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-crti-o-crtbegin-o-crtend-o-crtn-o-tp4031611p4031619.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email

Junior
to leledumbo

it did not existed before.
always (in any project) shows this warning in the compilation would not be a bug?

thanks

leledumbo wrote 17 lines
Just ignore the warnings, they seem to be safe for FPC programs (FPC doesn't use GCC initializer/finalizer, it has its own). This may be caused by newer binutils, whose behavior is documented here: http://gcc.gnu.org/onlinedocs/gccint/Initialization.html -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-crti-o-crtbegin-o-crtend-o-crtn-o-tp4031611p4031619.html Sent from the Free Pascal - Lazarus mailing list . -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email