Jump to page: 1 2
Thread overview
Re: GDC compiler crash -- latest GitHub source built against gcc-snapshot-20130209
Feb 14, 2013
Iain Buclaw
Feb 14, 2013
Iain Buclaw
Feb 15, 2013
Johannes Pfau
Feb 15, 2013
Iain Buclaw
Feb 22, 2013
Iain Buclaw
Feb 22, 2013
Iain Buclaw
Feb 22, 2013
Iain Buclaw
February 14, 2013
On Feb 14, 2013 5:49 PM, "Joseph Rushton Wakeling" < joseph.wakeling@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...

Regards
Iain.


February 14, 2013
On Feb 14, 2013 10:14 PM, "Iain Buclaw" <ibuclaw@ubuntu.com> wrote:
>
>
> On Feb 14, 2013 5:49 PM, "Joseph Rushton Wakeling" <
joseph.wakeling@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.


February 15, 2013
On 02/14/2013 11:20 PM, Iain Buclaw wrote:
> Nope, bt is definitely there, make sure you recompile all libphobos modules.

Anything in particular I should be looking for?  It's a fresh build -- new objdir, repeated the clean/patch of gcc sources, re-ran setup script, fresh configure and make.

February 15, 2013
Am Thu, 14 Feb 2013 22:20:52 +0000
schrieb Iain Buclaw <ibuclaw@ubuntu.com>:

> On Feb 14, 2013 10:14 PM, "Iain Buclaw" <ibuclaw@ubuntu.com> wrote:
> 
> Nope, bt is definitely there, make sure you recompile all libphobos modules.
> 
> Regards
> Iain.
> 

Is it possible that the Makefile doesn't build core.bitop? https://github.com/D-Programming-GDC/GDC/blob/master/libphobos/libdruntime/Makefile.am#L67

(I can reproduce this issue btw)
February 15, 2013
On 15 February 2013 08:14, Johannes Pfau <nospam@example.com> wrote:

> Am Thu, 14 Feb 2013 22:20:52 +0000
> schrieb Iain Buclaw <ibuclaw@ubuntu.com>:
>
> > On Feb 14, 2013 10:14 PM, "Iain Buclaw" <ibuclaw@ubuntu.com> wrote:
> >
> > Nope, bt is definitely there, make sure you recompile all libphobos modules.
> >
> > Regards
> > Iain.
> >
>
> Is it possible that the Makefile doesn't build core.bitop?
>
> https://github.com/D-Programming-GDC/GDC/blob/master/libphobos/libdruntime/Makefile.am#L67
>
>

Fixed.

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


February 15, 2013
On 02/15/2013 10:56 AM, Iain Buclaw wrote:
> Fixed.

Thanks!  Working now. :-)

February 22, 2013
On 02/15/2013 09:14 AM, Johannes Pfau wrote:
> Is it possible that the Makefile doesn't build core.bitop?
> https://github.com/D-Programming-GDC/GDC/blob/master/libphobos/libdruntime/Makefile.am#L67

I have what looks like a similar issue (but different part of core) with a build off the latest GitHub:

---------------------------------------------------------------------------------
/opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../lib/libgphobos2.a(process.o): In function `_D3std7process6systemFAyaZi':
/home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/process.d:105: undefined reference to `_D4core3sys5posix3sys4wait9WIFEXITEDFiZb'
/opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../lib/libgphobos2.a(process.o): In function `_D3std7process8_spawnvpFixPaxPPaZi':
/home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/process.d:195: undefined reference to `_D4core3sys5posix3sys4wait11WIFSIGNALEDFiZb'
/home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/process.d:200: undefined reference to `_D4core3sys5posix3sys4wait10WIFSTOPPEDFiZb'
/home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/process.d:190: undefined reference to `_D4core3sys5posix3sys4wait9WIFEXITEDFiZb'
/home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/process.d:192: undefined reference to `_D4core3sys5posix3sys4wait11WEXITSTATUSFiZi'
/home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/process.d:197: undefined reference to `_D4core3sys5posix3sys4wait8WTERMSIGFiZi'
/opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../lib/libgphobos2.a(process.o): In function `_D3std7process6systemFAyaZi':
/home/joseph/code/D/gdc/objdir/x86_64-unknown-linux-gnu/libphobos/../../../gcc-snapshot-20130209/src/libphobos/std/process.d:106: undefined reference to `_D4core3sys5posix3sys4wait11WEXITSTATUSFiZi'
collect2: error: ld returned 1 exit status
---------------------------------------------------------------------------------

Again, this is a completely fresh build.
February 22, 2013
On 22 February 2013 17:39, Joseph Rushton Wakeling < joseph.wakeling@webdrake.net> wrote:

> On 02/15/2013 09:14 AM, Johannes Pfau wrote:
>
>> Is it possible that the Makefile doesn't build core.bitop?
>> https://github.com/D-**Programming-GDC/GDC/blob/**
>> master/libphobos/libdruntime/**Makefile.am#L67<https://github.com/D-Programming-GDC/GDC/blob/master/libphobos/libdruntime/Makefile.am#L67>
>>
>
> I have what looks like a similar issue (but different part of core) with a build off the latest GitHub:
>
> ------------------------------**------------------------------**
> ---------------------
> /opt/gdc/lib/gcc/x86_64-**unknown-linux-gnu/4.8.0/../../**
> ../../lib/libgphobos2.a(**process.o): In function
> `_D3std7process6systemFAyaZi':
> /home/joseph/code/D/gdc/**objdir/x86_64-unknown-linux-**
> gnu/libphobos/../../../gcc-**snapshot-20130209/src/**libphobos/std/process.d:105:
> undefined reference to `_**D4core3sys5posix3sys4wait9WIFE**XITEDFiZb'
> /opt/gdc/lib/gcc/x86_64-**unknown-linux-gnu/4.8.0/../../**
> ../../lib/libgphobos2.a(**process.o): In function `_D3std7process8_**
> spawnvpFixPaxPPaZi':
> /home/joseph/code/D/gdc/**objdir/x86_64-unknown-linux-**
> gnu/libphobos/../../../gcc-**snapshot-20130209/src/**libphobos/std/process.d:195:
> undefined reference to `_**D4core3sys5posix3sys4wait11WIF**SIGNALEDFiZb'
> /home/joseph/code/D/gdc/**objdir/x86_64-unknown-linux-**
> gnu/libphobos/../../../gcc-**snapshot-20130209/src/**libphobos/std/process.d:200:
> undefined reference to `_**D4core3sys5posix3sys4wait10WIF**STOPPEDFiZb'
> /home/joseph/code/D/gdc/**objdir/x86_64-unknown-linux-**
> gnu/libphobos/../../../gcc-**snapshot-20130209/src/**libphobos/std/process.d:190:
> undefined reference to `_**D4core3sys5posix3sys4wait9WIFE**XITEDFiZb'
> /home/joseph/code/D/gdc/**objdir/x86_64-unknown-linux-**
> gnu/libphobos/../../../gcc-**snapshot-20130209/src/**libphobos/std/process.d:192:
> undefined reference to `_**D4core3sys5posix3sys4wait11WEX**ITSTATUSFiZi'
> /home/joseph/code/D/gdc/**objdir/x86_64-unknown-linux-**
> gnu/libphobos/../../../gcc-**snapshot-20130209/src/**libphobos/std/process.d:197:
> undefined reference to `_**D4core3sys5posix3sys4wait8WTER**MSIGFiZi'
> /opt/gdc/lib/gcc/x86_64-**unknown-linux-gnu/4.8.0/../../**
> ../../lib/libgphobos2.a(**process.o): In function
> `_D3std7process6systemFAyaZi':
> /home/joseph/code/D/gdc/**objdir/x86_64-unknown-linux-**
> gnu/libphobos/../../../gcc-**snapshot-20130209/src/**libphobos/std/process.d:106:
> undefined reference to `_**D4core3sys5posix3sys4wait11WEX**ITSTATUSFiZi'
>
> collect2: error: ld returned 1 exit status
> ------------------------------**------------------------------**
> ---------------------
>
> Again, this is a completely fresh build.
>


Not sure if your copy is fresh enough. :)

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


February 22, 2013
On 02/22/2013 06:47 PM, Iain Buclaw wrote:
> Not sure if your copy is fresh enough. :)

Was freshly pulled from GitHub at the time of building, but I see a new patch since then.  Will rebuild and see how it goes :-)

February 22, 2013
On 22 February 2013 17:54, Joseph Rushton Wakeling < joseph.wakeling@webdrake.net> wrote:

> On 02/22/2013 06:47 PM, Iain Buclaw wrote:
>
>> Not sure if your copy is fresh enough. :)
>>
>
> Was freshly pulled from GitHub at the time of building, but I see a new patch since then.  Will rebuild and see how it goes :-)
>
>
Actually, halt that right now... I see I've missed a backslash in one of the makefiles...


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


« First   ‹ Prev
1 2