caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Richard W.M. Jones" <rich@annexia.org>
To: Damien Doligez <damien.doligez@inria.fr>
Cc: caml users <caml-list@inria.fr>
Subject: [Caml-list] i686 linker failures - defined in discarded section (was: Re: 4.07.0+beta2)
Date: Thu, 26 Apr 2018 18:46:55 +0100	[thread overview]
Message-ID: <20180426174655.4cys22qws7ltgdkr@annexia.org> (raw)
In-Reply-To: <A7B4E0BE-ED16-437D-9FBB-9A1280AB51FA@inria.fr>


https://kojipkgs.fedoraproject.org//work/tasks/284/26580284/build.log

When compiling labltk on i686 we get lots of strange linking errors:

/usr/bin/ocamlmklib -g -o labltk cltkCaml.o cltkUtf.o cltkEval.o cltkEvent.o cltkFile.o cltkMain.o cltkMisc.o cltkTimer.o cltkVar.o cltkWait.o cltkImg.o -ldopt "-ltk8.6" -ldopt "-ltcl8.6" -ldopt "-lX11"
`.text.__x86.get_pc_thunk.bx' referenced in section `.gnu.build.attributes' of cltkCaml.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of cltkCaml.o
`.text.__x86.get_pc_thunk.bx' referenced in section `.gnu.build.attributes' of cltkUtf.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of cltkUtf.o
`.text.__x86.get_pc_thunk.bx' referenced in section `.gnu.build.attributes' of cltkEval.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of cltkEval.o
`.text.__x86.get_pc_thunk.bx' referenced in section `.gnu.build.attributes' of cltkEvent.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of cltkEvent.o
`.text.__x86.get_pc_thunk.ax' referenced in section `.gnu.build.attributes' of cltkFile.o: defined in discarded section `.text.__x86.get_pc_thunk.ax[__x86.get_pc_thunk.ax]' of cltkFile.o
`.text.__x86.get_pc_thunk.bx' referenced in section `.gnu.build.attributes' of cltkMain.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of cltkMain.o
`.text.__x86.get_pc_thunk.bx' referenced in section `.gnu.build.attributes' of cltkMisc.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of cltkMisc.o
`.text.__x86.get_pc_thunk.ax' referenced in section `.gnu.build.attributes' of cltkTimer.o: defined in discarded section `.text.__x86.get_pc_thunk.ax[__x86.get_pc_thunk.ax]' of cltkTimer.o
`.text.__x86.get_pc_thunk.bx' referenced in section `.gnu.build.attributes' of cltkVar.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of cltkVar.o
`.text.__x86.get_pc_thunk.bx' referenced in section `.gnu.build.attributes' of cltkWait.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of cltkWait.o
`.text.__x86.get_pc_thunk.bx' referenced in section `.gnu.build.attributes' of cltkImg.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of cltkImg.o
collect2: error: ld returned 1 exit status

Of course this is using all the latest GNU toolchain so it could
really be anything and maybe not OCaml 4.07 at all ...

gcc 8.0.1-0.23.fc29
binutils 2.30-15.fc29
ocaml 4.07.0-0.beta2.0.fc29

Other package versions are listed here:

https://kojipkgs.fedoraproject.org//work/tasks/284/26580284/root.log

Rich.

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

      parent reply	other threads:[~2018-04-26 17:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-13 13:49 [Caml-list] 4.07.0+beta2 Damien Doligez
2018-04-26 13:49 ` Richard W.M. Jones
2018-04-26 17:46 ` Richard W.M. Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180426174655.4cys22qws7ltgdkr@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=damien.doligez@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).