Sign in Join

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

Mailing lists / fpc-pascal / 2016-09

log file of the linker ?

9 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

fredvs

Hello.

When linking compiled fpc objects, after few minutes, there is a message from the linker (*ld*):
"There was a error while linking. Abort"

Does it exist a parameter for* ld *to have a log-file of all what the linker did ?
Or a kind of debug for *ld* ?

Or does it exist a way to know what error prevent the linking ?

Many thanks.

Fre;D

-----
Many thanks ;-)

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/log-file-of-the-linker-tp5726311.html Sent from the Free Pascal - General mailing list .

Reply by email

Mark Morgan Lloyd
to fredvs
fredvs wrote 11 lines
Hello. When linking compiled fpc objects, after few minutes, there is a message from the linker (*ld*): "There was a error while linking. Abort" Does it exist a parameter for* ld *to have a log-file of all what the linker did ? Or a kind of debug for *ld* ? Or does it exist a way to know what error prevent the linking ?

Is this when calling it from FPC or when executing a shell script (see earlier thread)?.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to fredvs
fredvs wrote 6 lines
Hello, I am still here ! No idea how to get the log file of ld (if it exists) ? Or if there is no way to know what error makes the process of linking-ld fail, is it possible to use a other linker for the compiled objects of fpc ?

Knowing that you were in the position of being able to add arbitrary options to the ld command line, I did not want to insult your intelligence by telling you to investigate --verbose (or as appropriate to the variant of linker you're using).

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

fredvs
to Mark Morgan Lloyd: Knowing that you were in the position of being able to add arbitrary options to the ld…

Mark Morgan Lloyd-5 wrote

(or as appropriate to the variant of linker you're using).

Ooops, wait a bit, do you mean that a other linker than *ld* coud be used in unix system for linking fpc objects ?
If yes, what other linker for example ?

Many thanks.

Fre;D

-----
Many thanks ;-)

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/log-file-of-the-linker-tp5726311p5726328.html Sent from the Free Pascal - General mailing list .

Reply by email

Mark Morgan Lloyd
to fredvs
fredvs wrote 6 lines
Mark Morgan Lloyd-5 wrote > (or as appropriate to the variant of linker you're using). Ooops, wait a bit, do you mean that a other linker than *ld* coud be used in unix system for linking fpc objects ? If yes, what other linker for example ?

No, I meant that there were different implementations of ld which are almost but not quite entirely unlike tea.

Apart from oddities like Solaris ld there's GNU ld which for a long time has been the default in Linux, and there's "Gold" which might or might not replace it in some distreaux. The behaviour of non-basic options such as --verbose might vary.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

fredvs
to Mark Morgan Lloyd

Yeeep, Mark and Andrew you did it !

Mark's magic "ld --verbose" + fantastic Andrew's "fpc -s" show tons of missing dependencies for the linker.

OK, tonight will be a looooong night to add all that missing things but sure the result will be wooow.

Write you (much) later.

Fre;D

-----
Many thanks ;-)

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/log-file-of-the-linker-tp5726311p5726330.html Sent from the Free Pascal - General mailing list .

Reply by email