[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/13557] Undef. ref. err. when linking with slim LTO obj. in stati
From: |
lrn1986 at gmail dot com |
Subject: |
[Bug ld/13557] Undef. ref. err. when linking with slim LTO obj. in static lib. (mingw32 target) |
Date: |
Sat, 02 Aug 2014 05:51:27 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=13557
--- Comment #13 from LRN <lrn1986 at gmail dot com> ---
Probably unrelated: initially lto-wrapper (ran by gcc when linking main.exe)
bailed with error "lto-wrapper: CreateProcess: No such file or directory".
This is because lto-wrapper tries to spawn a "gcc" process (likely taken from
$COLLECT_GCC), and it only searches in PATH (and maybe the directory where
lto-wrapper is located, but gcc.exe isn't there).
I fixed this by adding the bin directory (where gcc.exe is) to the PATH. This
directory is *usually* in PATH (for obvious reasons) but i don't remember this
being a strict requirement, and everything works just fine unless LTO is
involved.
This hasn't been mentioned so far, so here it is, for completeness' sake.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/13557] Undef. ref. err. when linking with slim LTO obj. in static lib. (mingw32 target), amodra at gmail dot com, 2014/08/01
- [Bug ld/13557] Undef. ref. err. when linking with slim LTO obj. in static lib. (mingw32 target), lrn1986 at gmail dot com, 2014/08/02
- [Bug ld/13557] Undef. ref. err. when linking with slim LTO obj. in static lib. (mingw32 target),
lrn1986 at gmail dot com <=
- [Bug ld/13557] Undef. ref. err. when linking with slim LTO obj. in static lib. (mingw32 target), lrn1986 at gmail dot com, 2014/08/04
- [Bug ld/13557] Undef. ref. err. when linking with slim LTO obj. in static lib. (mingw32 target), d.g.gorbachev at gmail dot com, 2014/08/04
- [Bug ld/13557] Undef. ref. err. when linking with slim LTO obj. in static lib. (mingw32 target), d.g.gorbachev at gmail dot com, 2014/08/04
- [Bug ld/13557] Undef. ref. err. when linking with slim LTO obj. in static lib. (mingw32 target), cvs-commit at gcc dot gnu.org, 2014/08/04
- [Bug ld/13557] Undef. ref. err. when linking with slim LTO obj. in static lib. (mingw32 target), amodra at gmail dot com, 2014/08/04