www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Compile fails

reply Russel Winder via digitalmars-d-ldc <digitalmars-d-ldc puremagic.com> writes:
Just wondering if this is already known about:


[ 31%] Generating src/object_.o
[ 31%] Generating src/gc/gc.o
/home/Checkouts/Git/Git/LDC/runtime/druntime/src/gc/gc.d(2569): Error: func=
tion core.thread.thread_processGCMarks (scope IsMarked delegate(void* addr)=
 isMarked) is not callable using argument types (int delegate(void* addr) n=
othrow)
runtime/CMakeFiles/druntime-ldc.dir/build.make:748: recipe for target 'runt=
ime/src/gc/gc.o' failed
make[2]: *** [runtime/src/gc/gc.o] Error 1
CMakeFiles/Makefile2:297: recipe for target 'runtime/CMakeFiles/druntime-ld=
c.dir/all' failed
make[1]: *** [runtime/CMakeFiles/druntime-ldc.dir/all] Error 2
Makefile:147: recipe for target 'all' failed


--=20
Russel.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder ekiga.n=
et
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
Sep 27 2014
next sibling parent reply "Trass3r" <un known.com> writes:
Are the submodules in sync (git submodule update)?
Sep 27 2014
parent Russel Winder via digitalmars-d-ldc <digitalmars-d-ldc puremagic.com> writes:
On Sat, 2014-09-27 at 12:20 +0000, Trass3r via digitalmars-d-ldc wrote:
 Are the submodules in sync (git submodule update)?
They are. I always do a "git submodule status" and "git submodule update" if there are updates pending before starting a build. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Sep 27 2014
prev sibling next sibling parent reply "kink" <noone nowhere.com> writes:
I've had this error a few days ago, but I fortunately don't 
anymore. Use "git submodule update --recursive" to update LDC's 
druntime and Phobos.
Sep 27 2014
parent Russel Winder via digitalmars-d-ldc <digitalmars-d-ldc puremagic.com> writes:
On Sat, 2014-09-27 at 13:11 +0000, kink via digitalmars-d-ldc wrote:
 I've had this error a few days ago, but I fortunately don't=20
 anymore. Use "git submodule update --recursive" to update LDC's=20
 druntime and Phobos.
I had not been using "git submodule update --recursive", just "git submodule update" I tried adding the --recursive, but no difference. :-( --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Sep 27 2014
prev sibling parent reply "Kai Nacke" <kai redstar.de> writes:
Hi Russel!

On Saturday, 27 September 2014 at 10:33:28 UTC, Russel Winder via 
digitalmars-d-ldc wrote:
 Just wondering if this is already known about:


 [ 31%] Generating src/object_.o
 [ 31%] Generating src/gc/gc.o
 /home/Checkouts/Git/Git/LDC/runtime/druntime/src/gc/gc.d(2569): 
 Error: function core.thread.thread_processGCMarks (scope 
 IsMarked delegate(void* addr) isMarked) is not callable using 
 argument types (int delegate(void* addr) nothrow)
 runtime/CMakeFiles/druntime-ldc.dir/build.make:748: recipe for 
 target 'runtime/src/gc/gc.o' failed
 make[2]: *** [runtime/src/gc/gc.o] Error 1
 CMakeFiles/Makefile2:297: recipe for target 
 'runtime/CMakeFiles/druntime-ldc.dir/all' failed
 make[1]: *** [runtime/CMakeFiles/druntime-ldc.dir/all] Error 2
 Makefile:147: recipe for target 'all' failed
Which platform do you use? There is a missing nothrow declaration, see pull request https://github.com/D-Programming-Language/druntime/pull/966. I see failures e.g. on Linux/ARM but not on Linux/x64. Regards, Kai
Sep 28 2014
next sibling parent Russel Winder via digitalmars-d-ldc <digitalmars-d-ldc puremagic.com> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kai,

This is Debian Sid using LLVM 3.4. I will try 3.5 shortly. GCC is 4.9.1.

On 29/09/14 07:02, Kai Nacke via digitalmars-d-ldc wrote:
 Hi Russel!
 
 On Saturday, 27 September 2014 at 10:33:28 UTC, Russel Winder via 
 digitalmars-d-ldc wrote:
 Just wondering if this is already known about:
 
 
 [ 31%] Generating src/object_.o [ 31%] Generating src/gc/gc.o 
 /home/Checkouts/Git/Git/LDC/runtime/druntime/src/gc/gc.d(2569):
 Error: function core.thread.thread_processGCMarks (scope
 IsMarked delegate(void* addr) isMarked) is not callable using
 argument types (int delegate(void* addr) nothrow) 
 runtime/CMakeFiles/druntime-ldc.dir/build.make:748: recipe for
 target 'runtime/src/gc/gc.o' failed make[2]: ***
 [runtime/src/gc/gc.o] Error 1 CMakeFiles/Makefile2:297: recipe
 for target 'runtime/CMakeFiles/druntime-ldc.dir/all' failed 
 make[1]: *** [runtime/CMakeFiles/druntime-ldc.dir/all] Error 2 
 Makefile:147: recipe for target 'all' failed
Which platform do you use? There is a missing nothrow declaration, see pull request https://github.com/D-Programming-Language/druntime/pull/966. I see failures e.g. on Linux/ARM but not on Linux/x64. Regards, Kai
- -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlQpA/cACgkQ+ooS3F10Be/DKACeP0KhkWlPu3gwHr9LcZd0x9Cl zw4AnRikz38qgRwp5HukZqwmYlQqoQzg =XDPW -----END PGP SIGNATURE-----
Sep 29 2014
prev sibling parent reply Russel Winder via digitalmars-d-ldc <digitalmars-d-ldc puremagic.com> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I was continuing to get the same build error so thought I would delete
my current build area and start again. Running the cmake command
picked up LLVM-3.5 instead of 3.4 so I am clearly now not able to
recreate the previous error. I am now though getting another problem:

…
Scanning dependencies of target gen_gccbuiltins
[ 16%] Building CXX object
CMakeFiles/gen_gccbuiltins.dir/utils/gen_gccbuiltins.cpp.o
Linking CXX executable bin/gen_gccbuiltins
/usr/bin/ld: cannot find -ledit
collect2: error: ld returned 1 exit status
CMakeFiles/gen_gccbuiltins.dir/build.make:180: recipe for target
'bin/gen_gccbuiltins' failed
make[2]: *** [bin/gen_gccbuiltins] Error 1
CMakeFiles/Makefile2:96: recipe for target
'CMakeFiles/gen_gccbuiltins.dir/all' failed
make[1]: *** [CMakeFiles/gen_gccbuiltins.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2

Hopefully all this is just a missing library…
- -- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip:
sip:russel.winder ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlQw12AACgkQ+ooS3F10Be8u0wCeMVhIQy7ctWrQP/JWB3oCHzUZ
PCMAoPMRgzlF/lMhReIUrZYVG6BNN54/
=YnvE
-----END PGP SIGNATURE-----
Oct 04 2014
parent reply "Kai Nacke" <kai redstar.de> writes:
Hi Russel!

On Sunday, 5 October 2014 at 05:30:18 UTC, Russel Winder via 
digitalmars-d-ldc wrote:
 I was continuing to get the same build error so thought I would 
 delete
 my current build area and start again. Running the cmake command
 picked up LLVM-3.5 instead of 3.4 so I am clearly now not able 
 to
 recreate the previous error. I am now though getting another 
 problem:
...

 Hopefully all this is just a missing library…
Yes, libedit is missing. On Ubuntu, you have to install libedit2 and libedit-dev. I guess it is the same with Debian. Regarding the previous error, I backported the nogc changes from current development stream. (It's required for ARM.) Regards, Kai
Oct 05 2014
parent Russel Winder via digitalmars-d-ldc <digitalmars-d-ldc puremagic.com> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On 06/10/14 07:17, Kai Nacke via digitalmars-d-ldc wrote:
[…]
 Yes, libedit is missing. On Ubuntu, you have to install libedit2
 and libedit-dev. I guess it is the same with Debian.
A few minutes ago (just before reading your email!) I saw that libedit2 was installed but libedit-dev not, installed the latter and got a complete build. So the LDC CMake files need to encode this dependency but as yet do not?
 Regarding the previous error, I backported the  nogc changes from 
 current development stream. (It's required for ARM.)
Having installed LLVM 3.5, LDC chooses it rather than 3.4, so this is no longer a worry for me. Those still on 3.4 will though be very happy :-) - -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlQyPlsACgkQ+ooS3F10Be/obACfUygq78e2PHLW/tfHbUv8y0H4 yDIAn0uxRPGj3Gpxb5PbgVBKUgeyMZG0 =rkta -----END PGP SIGNATURE-----
Oct 06 2014