Bug 28037 - Semireproducible bug
Summary: Semireproducible bug
Status: UNCONFIRMED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-30 21:13 UTC by Volker Weißmann
Modified: 2021-07-01 13:55 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Weißmann 2021-06-30 21:13:32 UTC
Hello,

sometimes (1 in 20 times maybe) when I run `cargo run` on my project I get this error message (full output at the bottom)

```
= note: /usr/local/bin/ld: BFD (GNU Binutils) 2.34.50.20200328 internal error, aborting at merge.c:939 in _bfd_merged_section_offset

          /usr/local/bin/ld: Please report this bug.

          collect2: error: ld returned 1 exit status
```

If I run `cargo run` again, it builds succesfully.

I also reported it here:

https://github.com/rust-lang/cargo/issues/9640




My Project: https://gitlab.com/volkerweissmann/math_dsl_macro

OS: Arch Linux

$ rustc --version
rustc 1.55.0-nightly (ce1d5611a 2021-06-18)

$ cargo --version
cargo 1.54.0-nightly (44456677b 2021-06-12)

$ which ld
/usr/local/bin/ld

$ ld --version
GNU ld (GNU Binutils) 2.34.50.20200328
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

$ which cc
/usr/bin/cc

$ cc --version
cc (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Full output:

```
$ cargo run
    Blocking waiting for file lock on build directory
   Compiling math_dsl_macro v0.1.0 (/home/volker/Sync/git/math_dsl_macro)
warning: unused imports: `Stmt`, `parse_quote`
 --> src/lib.rs:8:30
  |
8 | use syn::{parse_macro_input, parse_quote, LitStr, Stmt};
  |                              ^^^^^^^^^^^          ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.15rmcd31w0ec3eff.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1aj32pvlqpb8xe9z.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1d7hid1ojzbmqa17.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1ih1dgoai1wr9v38.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1lius7wsim5jmie2.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1qgw16dqdderkgen.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1ti9pptda6mniel1.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1ticighp1y236rvu.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1uwey1eit1ysg4rm.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1vbk52hehjrowtcf.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1wnynfxzefidhkhe.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1xv9rmx9s4x26nbn.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1ys67tzuzml4ser4.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1zuykat9r0i4b0jv.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.21931xa4uuet82qw.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.21gxkcnjr0z24axl.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.26e9cjr9zjkhrp1g.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2761qzot2dsjyv83.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.27dncdyrogph137n.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.27vfs8406383ty2z.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2ahlrpqxmszrph67.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2bl0lhiamar3xb8q.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2c6s1ltgp9h1ctui.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2g68swr008u64se.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2glas95vas3au71u.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2j6nz4954ae5s1fq.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2k3suqg8v9ywpbmh.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2kygx8z2od3yvcyy.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2oc9nsfvgf4tccw4.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2pjrx8py877ad7zu.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2qjrkp034g2jlzd7.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2so01a6632spa4ne.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2unpe1q2thqxi0q5.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2uxov3iujr9xreuq.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2vcbmfdzrcfrkx9r.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2vfs1cdkwu8pteie.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2wfz1mix80hxvz5n.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2xmckjoztfnu97b5.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2xyokbb8cyjspwb5.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2y4c3y6ai0vnq0hb.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2z95lhbrqgtq5mi1.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2zlrs5m855b5ixev.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.332e4qeikec441yz.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.360icijgw6ef1ciw.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.361le9s2zefcg0u0.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.36ik5je8kkhjxfws.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3a1lf3zdiofs142z.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3d3whz6hlfq7wbh6.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3gc5kwdzdxgofvsm.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3kc88ygze1ct56p1.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3kmwergcfja6kjet.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3ob5t6m6qgfd9vo6.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3rhi0acwib76ooyz.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3rs5outqosqyuuvt.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3tg69vzunliuckeu.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3uan8ppqyf3d4c3j.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3ujiab69gobkal65.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.3v2d0axyywufk69t.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.41hs7ngb8gd3hksg.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.44gz0f0nauq8bghq.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4881h3d3gwgkg1oi.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.48w6xnr4sar3vxu9.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4adnvoweghfj3bsh.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4cd3mv7umdirjoe1.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4dir2b92dbssaeav.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4g79cpn9ppttxk8n.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4hod8qmzjngq4g0s.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4jmv2bjt6a0nf1nk.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4jnasorfqb4hb3s0.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4l3rmp763bp07ytz.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4nbhryl5u0is7tw0.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4qaxrknkyz7gxgxe.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4qi332oa1w77p52l.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4rh4xeymgz8pcj4i.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4s5aksai9u4ds6w7.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4slrsv1z00cugqz9.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4uyuehpl08bsvgpf.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4v5cz3z2gzvzqcw4.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4vv5gwxii81bxovk.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4wbkl9mzceuie6az.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4xud3qgnk03t6ft0.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4y2u5287lgfqdzun.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4y39ijfeij335jl7.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.4zqpvxekajl42vo0.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.51eadu269eqx25ll.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.52m5dbxc9nxi8skl.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.54d7s86dfkzh3tk4.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.558nvtsemju0n4ng.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.55nb1yjsskif3se1.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.564h8eo0x60jtqgg.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.5664qe1ye8atkzpy.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.57a4j7tqsancx2de.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.57o4v6oax1hxuvd4.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.59rnwdqft702xuaq.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.5a0ahbeneaz0ao0u.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.5a0jjm4nox65zve7.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.5cuyg968l5yt4k24.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.5eemjttmc7ffo6uc.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.5eradbp57qry31a3.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.5gixkzjzoqq0epoq.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.7h8zhe9pusb4zj8.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.fy9uu08s5pknaeh.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.gdzowy5l7v6769x.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.ipld5ngso9cyklk.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.lqljuxk4h2bz2hv.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.mswv7ov84ger72c.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.mtbnjqtg9jb3wtz.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.r2gspprz0vrvbcv.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.ufd1i7prn0b2cwd.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.vp2ybpzt51dgj3d.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.zjy23ffl54exiw2.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.1bns5qe8m0ov5ar9.rcgu.o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/math_dsl_macro-1788dc7e3138276b.2snqcd36p9ay6avj.rcgu.o" "-Wl,--as-needed" "-L" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps" "-L" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/libsyn-86172766a57eb655.rlib" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/libquote-222a78d45ac6a98c.rlib" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/libproc_macro2-4fc7cd6531551569.rlib" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/libunicode_xid-38987aa89d2b0d41.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-b06277eed200c81d.rlib" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/libpest_consume-bd94c5d73438f207.rlib" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/libpest-9f883fbb51bb2212.rlib" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/libucd_trie-3f330169ff161d45.rlib" "-Wl,--start-group" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-363511a59ca6fedb.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-bfca9168c92854a6.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-812e30513d1c89b8.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-188e363ded42de4f.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-e28ffeccd22e9a1f.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-4548dd8a58fdea8b.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-a19002c3af511478.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fa470ca82472f5af.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-d7e6aa5f63bd2910.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-0913465657a90cb1.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-1ff59d4f23b10626.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-13cac61c165498fc.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-cb211021e5cae8f7.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-1079ae9f5c548531.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-3ff27e866345b61e.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-2588c44e3ecacf72.rlib" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-c8ded1707ad10767.rlib" "-Wl,--end-group" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d231748acf961207.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/volker/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/volker/Sync/git/math_dsl_macro/target/debug/deps/libmath_dsl_macro-1788dc7e3138276b.so" "-Wl,--gc-sections" "-shared" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs"
  = note: /usr/local/bin/ld: BFD (GNU Binutils) 2.34.50.20200328 internal error, aborting at merge.c:939 in _bfd_merged_section_offset

          /usr/local/bin/ld: Please report this bug.

          collect2: error: ld returned 1 exit status


error: aborting due to previous error; 1 warning emitted

error: could not compile `math_dsl_macro`

To learn more, run the command again with --verbose.
$
```
Comment 1 Nick Clifton 2021-07-01 13:55:37 UTC
(In reply to Volker Weißmann from comment #0)
Hi Volker,

> sometimes (1 in 20 times maybe) 

A bug that does not happemn reliably is very hard to track down.  The most
common cause for such bugs are memory issues - either using uninitialised
memory or using freed memory or the like.  Are you able to run your tests
in an environment with additional memory debugging enabled ?  For example
by using valgrind, or setting the MALLOC_CHECK_ environment variable ?

Another possibility is a hardware problem.  If you have a faulty memory 
bank for example then that might explain the problem.  Are you able to
reproduce the failure on another machine ?


> = note: /usr/local/bin/ld: BFD (GNU Binutils) 2.34.50.20200328

This is not an official binutils release.  Nor is it the latest release.

Are you able to run your tests using the newest binutils (2.36.1) ?


> internal
> error, aborting at merge.c:939 in _bfd_merged_section_offset

This error suggests that the issue might be due to uninitialised memory.
There is a comment just before line 939 which says:

      /* This should only happen if somebody points into the padding
	 after a NUL character but before next entity.  */
      if (*p)
	abort ();
 
So the implication is that 'p' is pointing into "padding" of some kind
and padding can often contain random bytes.  Still without more information
to go on, it is hard to make any further progress.

Cheers
  Nick