crt1.o and crti.o missing

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
shengchieh

crt1.o and crti.o missing

Post by shengchieh »

I am trying compile using g95 (parallel fortran) which uses the gcc libraries.
I get error messages for missing crt1.o and crti.o, i.e.,

Code: Select all

ld: cannot find crt1.o: No such file or directory
ld: cannot find crti.o: No such file or directory
This code works just fine when using archbang linux or crunchbang linux, so
I know I am just missing libraries.

After searching the LM forum, I double-checked that
- I have libc6-dev and gcc
- I get the same error when running as root
- I installed build-essential which has g++

I am running LM XFCE 15 and the hardware specs are

http://shengchieh.50webs.com/Desktoplspci.txt
http://shengchieh.50webs.com/Desktoplsmod.txt
http://shengchieh.50webs.com/Desktoplshw.txt

What am I still missing? Is there a development library that I
need to install?

Thank in advanced for your help.

Sheng-Chieh
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29609
Joined: Wed Jul 06, 2011 3:58 am

Re: crt1.o and crti.o missing

Post by xenopeek »

Perhaps you haven't set up path correctly in the makefile? Try this:

Code: Select all

locate crt1.o
Where is it? And where does your makefile look for it?
Image
shengchieh

which g95 version? (was crt1.o and crti.o missing)

Post by shengchieh »

It turns out that I have an old version of g95 and I ought to download a more current
version. I am looking at g95 download page and can choose between

Linux x86
Linux x86-64 (32 bit DI)
Linux x86-64 (64 bit DI)
Linux x86 (Debian)
Linux x86-64 (Debian)

Which version do I want? Again my hardware specs are at

http://shengchieh.50webs.com/Desktoplspci.txt
http://shengchieh.50webs.com/Desktoplsmod.txt
http://shengchieh.50webs.com/Desktoplshw.txt

What does DI means? Educate me. Should I be using the deban version?

Sheng-Chieh
User avatar
xenopeek
Level 25
Level 25
Posts: 29609
Joined: Wed Jul 06, 2011 3:58 am

Re: crt1.o and crti.o missing

Post by xenopeek »

"direct install" perhaps? But you want the Debian download, as Linux Mint uses Debian package format. Download x86 if you have a 32-bit installation or x86-64 if 64-bit. If you're not sure, open a terminal and run the command:

Code: Select all

arch
If it responds x86_64, you have a 64-bit installation and otherwise 32-bit.

Download the right file and double-click it in your file manager after downloading. It should open with GDebi and give you option to install.
Image
shengchieh

Re: crt1.o and crti.o missing

Post by shengchieh »

Thank for replying - I'll look at it later when I have more time. For now, I used synaptic to compile gfortran. It gets the job done for now.
(I just needed a fortran compiler - no fancy feature).

Sheng-Chieh
Locked

Return to “Xfce”