Bug#620815: fp-compiler: produced executables crash on startup

April 04th, 2011 - 08:00 am ET by Adam Borowski | Report spam
Package: fp-compiler
Version: 2.4.2-1
Severity: grave
Justification: renders package unusable

Any program compiled by new fpc, even just "begin end.", crashes on startup:

[/tmp]$ fpc hello.pas
Free Pascal Compiler version 2.4.2-1 [2011/03/30] for x86_64
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling hello.pas
Linking hello
/usr/bin/ld: warning: link.res:1:19: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:2:23: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:3:48: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:4:54: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:5:58: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:6:50: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:7:31: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:13:13: ignoring command OPTION; OPTION is only valid for scripts specified via -T/--script
2 lines compiled, 0.1 sec
[/tmp]$ ./hello
Killed


I tried rebuilding 2.4.2 using squeeze's libraries, and it worked there,
suggesting it's a problem with recent toolchain changes in unstable.

Linking on squeeze still spews warnings, though:
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?


Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (150, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-vserver-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages fp-compiler depends on:
ii fp-compiler-2.4.2 2.4.2-1 Free Pascal - Compiler

fp-compiler recommends no packages.

fp-compiler suggests no packages.




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 4 repliesReplies Make a reply

Replies

#1 Abou Al Montacir
April 05th, 2011 - 07:00 am ET | Report spam



I was not able to reproduce this, can you please ensure you have the
correct /etc/fpc.cfg file as there is a know issue when upgrading.

Please provide the output of "ls /etc/fpc.cfg" as well as
"update-alternatives --display fpc" "update-alternatives --display
fp-utils"

Can you please check if dpkg-reconfigure fp-compiler fixes the issue?

Cheers,

On Mon, 2011-04-04 at 13:12 +0200, Adam Borowski wrote:

Package: fp-compiler
Version: 2.4.2-1
Severity: grave
Justification: renders package unusable

Any program compiled by new fpc, even just "begin end.", crashes on startup:

[/tmp]$ fpc hello.pas
Free Pascal Compiler version 2.4.2-1 [2011/03/30] for x86_64
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling hello.pas
Linking hello
/usr/bin/ld: warning: link.res:1:19: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:2:23: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:3:48: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:4:54: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:5:58: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:6:50: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:7:31: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:13:13: ignoring command OPTION; OPTION is only valid for scripts specified via -T/--script
2 lines compiled, 0.1 sec
[/tmp]$ ./hello
Killed


I tried rebuilding 2.4.2 using squeeze's libraries, and it worked there,
suggesting it's a problem with recent toolchain changes in unstable.

Linking on squeeze still spews warnings, though:
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?


Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (150, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-vserver-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages fp-compiler depends on:
ii fp-compiler-2.4.2 2.4.2-1 Free Pascal - Compiler

fp-compiler recommends no packages.

fp-compiler suggests no packages.









<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
I was not able to reproduce this, can you please ensure you have the correct /etc/fpc.cfg file as there is a know issue when upgrading.<BR>
<BR>
Please provide the output of &quot;ls /etc/fpc.cfg&quot; as well as &quot;update-alternatives --display fpc&quot; &quot;update-alternatives --display fp-utils&quot;<BR>
<BR>
Can you please check if dpkg-reconfigure fp-compiler fixes the issue?<BR>
<BR>
Cheers,<BR>
<BR>
On Mon, 2011-04-04 at 13:12 +0200, Adam Borowski wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Package: fp-compiler
Version: 2.4.2-1
Severity: grave
Justification: renders package unusable

Any program compiled by new fpc, even just &quot;begin end.&quot;, crashes on startup:

[/tmp]$ fpc hello.pas
Free Pascal Compiler version 2.4.2-1 [2011/03/30] for x86_64
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling hello.pas
Linking hello
/usr/bin/ld: warning: link.res:1:19: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:2:23: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:3:48: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:4:54: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:5:58: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:6:50: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:7:31: ignoring SEARCH_DIR; SEARCH_DIR is only valid for scripts specified via -T/--script
/usr/bin/ld: warning: link.res:13:13: ignoring command OPTION; OPTION is only valid for scripts specified via -T/--script
2 lines compiled, 0.1 sec
[/tmp]$ ./hello
Killed


I tried rebuilding 2.4.2 using squeeze's libraries, and it worked there,
suggesting it's a problem with recent toolchain changes in unstable.

Linking on squeeze still spews warnings, though:
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?


Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (150, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-vserver-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages fp-compiler depends on:
ii fp-compiler-2.4.2 2.4.2-1 Free Pascal - Compiler

fp-compiler recommends no packages.

fp-compiler suggests no packages.





</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>







To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics