install script crashes on unknown ld option -Bsylmbolic-functions

Bug #317827 reported by Jerome Abela
8
Affects Status Importance Assigned to Milestone
ecl (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ sudo apt-get install ecl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  ecl-doc
The following NEW packages will be installed:
  ecl
0 upgraded, 1 newly installed, 0 to remove and 1016 not upgraded.
Need to get 0B/1335kB of archives.
After unpacking 4293kB of additional disk space will be used.
Selecting previously deselected package ecl.
(Reading database ... 126288 files and directories currently installed.)
Unpacking ecl (from .../ecl_0.9j-20080306-5ubuntu1_i386.deb) ...
Setting up ecl (0.9j-20080306-5ubuntu1) ...
/usr/lib/common-lisp/bin/ecl.sh loading and dumping clc.
;;; Loading "/usr/lib/ecl/install-clc.lisp"
;;; Loading #P"/usr/lib/ecl/cmp.fas"
;;; Loading #P"/usr/lib/ecl/sysfun.lsp"
Saving to new-ecl.../usr/bin/ld: unrecognized option '-Bsymbolic-functions'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
An error occurred during initialization:
(SYSTEM "i486-linux-gnu-gcc -o \"/var/cache/common-lisp-controller/0/ecl/common-lisp-controller/common-lisp-controller.fas\" -L\"/usr/lib/\" \"/var/cache/common-lisp-controller/0/ecl/common-lisp-controller/common-lisp-controller.o\" -Wl,--rpath,/usr/lib/ -shared -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -lecl -lpthread -ldl -lm -lgc -lgmp") returned non-zero value 1.

$

Tags: packaging
Revision history for this message
Jerome Abela (jerome-abela) wrote :

I've found an explanation.

- When ecl package is built on the developer host, the flags given by dpkg-buildpackage are stored in the install script.
- These flags include LDFLAGS => '-Wl,-Bsymbolic-functions'
- When ecl is installed on the user host, it needs a version of /usr/bin/ld which supports -Bsylmbolic-functions.
- Therefore, there is a dependency of ecl install script on that version of ld.

-> binutils 2.17.20070103cvs-0ubuntu2 doesn't work
-> binutils_2.18.93.20081009-0ubuntu1_i386.deb works

Revision history for this message
Peter Antoniac (pan1nx) wrote :

I guess this problem can be solved with a right package dependency, if confirmed?

Revision history for this message
Angel Abad (angelabad) wrote :

Hi! I retry the install in all supported ubuntu versions and it installs fine.

Could you retry please?

Changed in ecl (Ubuntu):
status: New → Incomplete
Revision history for this message
Jerome Abela (jerome-abela) wrote : Re: [Bug 317827] Re: install script crashes on unknown ld option -Bsylmbolic-functions

No, sorry, I don't have any machine that can be reverted to such an
old version of binutils.

It could only happen when installing ecl on a machine with binutils
2.17, and Hardy (the oldest supported version) uses 2.18, so the bug
is now deprecated (it's almost 3 years old).

Note that if a new flag is added on binutils, the bug will come back,
if ecl still uses at install time a file generated by
dpkg-buildpackage at compile time.

On Thu, Sep 1, 2011 at 11:33 AM, Angel Abad <email address hidden> wrote:
> Hi! I retry the install in all supported ubuntu versions and it installs
> fine.
>
> Could you retry please?
>
> ** Changed in: ecl (Ubuntu)
>       Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/317827
>
> Title:
>  install script crashes on unknown ld option -Bsylmbolic-functions
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/ecl/+bug/317827/+subscriptions
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ecl (Ubuntu) because there has been no activity for 60 days.]

Changed in ecl (Ubuntu):
status: Incomplete → Expired
Revision history for this message
PeterPall (peterpall) wrote :
Changed in ecl (Ubuntu):
status: Expired → Confirmed
Revision history for this message
PeterPall (peterpall) wrote :

Possible Workaround from the user's side: In my case calling

./configure

as

./configure LDFLAGS=""

allowed me to compile my program.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.