digitalmars.D.ldc - LDC cannot compile this on linux
Hi all,
I have this simple program:
module testcase;
import std.stdio;
import std.net.curl;
void main()
{
	auto t = HTTP("http:/test");
	writeln("Will it compile?");
}
Trying to compile this on Centos 6 linux with DMD: dmd testcase.d 
-release -O -inline -w -L-lcurl
This works well.
When I try to compile this with LDC: ldmd2 testcase.d -release -O 
-inline -w -L-lcurl
the following error occurs:
/usr/local/include/d/std/mmfile.d(344): Deprecation: alias 
core.sys.posix.sys.mman.MAP_ANON is deprecated - Please use 
core.sys.linux.sys.mman for non-POSIX extensions
My LDC version is:
LDC - the LLVM D compiler (2d4956):
   based on DMD v2.065 and LLVM 3.2svn
   Default target: x86_64-unknown-linux-gnu
   Host CPU: core-avx-i
What am I doing wrong?
Thanks, Jeroen
 Aug 24 2014
Hi Jeroen!
On Sunday, 24 August 2014 at 16:53:41 UTC, JD wrote:
 Hi all,
 I have this simple program:
 module testcase;
 import std.stdio;
 import std.net.curl;
 void main()
 {
 	auto t = HTTP("http:/test");
 	writeln("Will it compile?");
 }
 Trying to compile this on Centos 6 linux with DMD: dmd 
 testcase.d -release -O -inline -w -L-lcurl
 This works well.
 When I try to compile this with LDC: ldmd2 testcase.d -release 
 -O -inline -w -L-lcurl
 the following error occurs:
 /usr/local/include/d/std/mmfile.d(344): Deprecation: alias 
 core.sys.posix.sys.mman.MAP_ANON is deprecated - Please use 
 core.sys.linux.sys.mman for non-POSIX extensions
 My LDC version is:
 LDC - the LLVM D compiler (2d4956):
   based on DMD v2.065 and LLVM 3.2svn
   Default target: x86_64-unknown-linux-gnu
   Host CPU: core-avx-i
 What am I doing wrong?
 Thanks, Jeroen
You're doing nothing wrong, I guess. I have to check what's going 
on here. At least I can confirm the difference using the same 
front end version 2.065.
Regards,
Kai
 Aug 25 2014








 
  
  
  "Kai Nacke" <kai redstar.de>
 "Kai Nacke" <kai redstar.de>