On 25 January 2018 at 15:54, Matt Godbolt wrote: > Hi there, > > I've been building homegrown GCCs with in-tree binutils (2.29.1) for a long > while, with a pretty simple script. However, with the 7.3 release I'm > seeing: > > gcc/7.3.0/objdir/binutils/../../gcc-7.3.0/binutils/dwarf.c:976: undefined > reference to `get_DW_IDX_name' > > Has anyone seen this before, and/or does anyone have an idea what I might > be doing wrong? Don't build with binutils in-tree. I think that's only supported for top-of-tree from both repos, when the top-level configure and libtool stuff is in sync between the two trees. You can't necessarily combine two arbitrary releases of GCC and binutils into one source tree. Build binutils, install binutils. Build GCC with --prefix set to wherever you installed binutils, install GCC. > The script I use is here: > https://github.com/mattgodbolt/compiler-explorer-image/blob/master/gcc/build/build.sh > > The same error occurs when I build GCC 5.5, but curiously does not happen > when I grab a trunk build from svn directly. > > Thanks in advance! > > -- > Matt