On Feb 14, 2013 10:14 PM, "Iain Buclaw" <ibuc...@ubuntu.com> wrote: > > > On Feb 14, 2013 5:49 PM, "Joseph Rushton Wakeling" < joseph.wakel...@webdrake.net> wrote: > > > > Hello all, > > > > I built the latest from-GitHub source against an up-to-date gcc snapshot (20130209, the latest in Ubuntu 13.04). The build completes successfully and was installed, but when running it crashes with the following error: > > > > -------------------------------------------------------------------------------- > > /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../lib/libgphobos2.a(bitmanip.o): In function `_D3std8bitmanip8BitArray6toHashMxFNaNbZm': > > /home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/bitmanip.d:838: undefined reference to `_D4core5bitop2btFNaNbxPmmZi' > > /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../lib/libgphobos2.a(bitmanip.o): In function `_D3std8bitmanip8BitArray7opIndexMxFmZb': > > /home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/bitmanip.d:450: undefined reference to `_D4core5bitop2btFNaNbxPmmZi' > > /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../lib/libgphobos2.a(bitmanip.o): In function `std.bitmanip.BitArray.opIndex': > > /home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/bitmanip.d:450: undefined reference to `_D4core5bitop2btFNaNbxPmmZi' > > /home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/bitmanip.d:450: undefined reference to `_D4core5bitop2btFNaNbxPmmZi' > > /home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/bitmanip.d:450: undefined reference to `_D4core5bitop2btFNaNbxPmmZi' > > /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../lib/libgphobos2.a(bitmanip.o):/home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/bitmanip.d:450: more undefined references to `_D4core5bitop2btFNaNbxPmmZi' follow > > collect2: error: ld returned 1 exit status > > -------------------------------------------------------------------------------- > > > > Any thoughts on what's wrong? This was built using the following configure: > > > > ../gcc-snapshot-20130209/src/configure --enable-languages=d --disable-multilib --enable-checking=release --prefix=/opt/gdc > > > > I'm guessing that probably the gcc-snapshot is too recent? > > I might have forgotten to add core.bitop.BTW implementation into druntime... >
Nope, bt is definitely there, make sure you recompile all libphobos modules. Regards Iain.