Sign in Join

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

Mailing lists / fpc-pascal / 2015-04

CRTI.O and CRTN.O not found

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Anthony Walter

A user on my forums sent me this message. I've experienced the problem as wee for quite some time. I was wondering if anyone has a universal fix for it yet since it seems to happen so frequently to many people?

From Artie:

I just installed Lazarus 1.5 and it compiled well on my Debian 7.8 system. However, during compilation there were two warnings:

-crti.o not found
-crtn.o not found

When compiling my projects these two warnings always show up, pointing to the "end." at the end of the lpr file.

Still, the projects run fine so far.

Marco van de Voort
to Anthony Walter

In our previous episode, Anthony Walter said:

A user on my forums sent me this message. I've experienced the problem as wee for quite some time. I was wondering if anyone has a universal fix for it yet since it seems to happen so frequently to many people?

Basically the problem is that files that come with the system (read: distribution) are not detected.

There are two common causes:

1. The user didn't install Linux properly, and didn't prepare the system for development. ( installing package "build-essentials" on Debian iirc)
2. The files are installed but not found. The line to check is the -Fl line in fpc.cfg. This can be a mistake in FPC packaging, or build-essentials being installed after FPC, thus the FPC package's detection being run while the files were not there yet.

So in general the solution is to check your distribution's documentation and install base development packages (if you want to limit the packages you install, glibc-devel, make, binutils and gdb should be the bulk of it), and only then install FPC. Remove/reinstall FPC if necessary.

Peter
to Anthony Walter: A user on my forums sent me this message. I've experienced the problem as wee for quite…
Anthony Walter wrote 22 lines
A user on my forums sent me this message. I've experienced the problem as wee for quite some time. I was wondering if anyone has a universal fix for it yet since it seems to happen so frequently to many people? From Artie: I just installed Lazarus 1.5 and it compiled well on my Debian 7.8 system. However, during compilation there were two warnings: -crti.o not found -crtn.o not found When compiling my projects these two warnings always show up, pointing to the "end." at the end of the lpr file. Still, the projects run fine so far. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

They are in the libc6-dev package, which is included with build-essentials.

Anthony Walter
to Bart

Peter: I always install the build-essentials package whenever I setup a debian system, yet I occasionally get both -crti.o not found and -crtn.o not found

Bart: That first google result you linked relates to mavericks and not debian

Mark Morgan Lloyd
to Marco van de Voort: In our previous episode, Anthony Walter said: Basically the problem is that files that…
Marco van de Voort wrote 14 lines
In our previous episode, Anthony Walter said: > A user on my forums sent me this message. I've experienced the problem as > wee for quite some time. I was wondering if anyone has a universal fix for > it yet since it seems to happen so frequently to many people? Basically the problem is that files that come with the system (read: distribution) are not detected. There are two common causes: 1. The user didn't install Linux properly, and didn't prepare the system for development. ( installing package "build-essentials" on Debian iirc) 2. The files are installed but not found. The line to check is the -Fl line in fpc.cfg. This can be a mistake in FPC packaging, or build-essentials being installed after FPC, thus the FPC package's detection being run while the files were not there yet.

I've seen this on Solaris where the FPC installation script was broken, but otherwise the only time it happens is if I move an fpc.cfg file from one system to another where the underlying gcc etc. version is different.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]
Peter
to Anthony Walter: Peter: I always install the build-essentials package whenever I setup a debian system,…
Anthony Walter wrote 11 lines
Peter: I always install the build-essentials package whenever I setup a debian system, yet I occasionally get both -crti.o not found and -crtn.o not found Bart: That first google result you linked relates to mavericks and not debian _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

If you are sure the files are in /usr somewhere, then you possibly need to set an explicit path to them in /etc/fpc

Peter
to Peter
Peter wrote 18 lines
On 15/04/15 05:39, Anthony Walter wrote: > Peter: I always install the build-essentials package whenever I setup > a debian system, yet I occasionally get both -crti.o not found and > -crtn.o not found > > Bart: That first google result you linked relates to mavericks and not > debian > > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal If you are sure the files are in /usr somewhere, then you possibly need to set an explicit path to them in /etc/fpc _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

That should have been fpc.cfg, but maybe lazarus has other settings?