LDC 1.1.0 released

Sai via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Feb 18 13:50:27 PST 2017


On Wednesday, 1 February 2017 at 03:40:42 UTC, David Nadlinger 
wrote:
> Hi everyone,
>
> On behalf of the LDC team I am happy to finally announce the 
> release of LDC 1.1.0, based on the 2.071. It has been in the 
> making for an uncharacteristically long time, but we hope you 
> will enjoy the multitude of new features: profile-guided 
> optimization, better-integrated link-time optimization, 
> experimental cross module inlining and first Windows DLL export 
> support; along with UDAs for fine-grained optimizer control 
> (e.g. @fastmath), a partial object file cache, and of course 
> many other bug fixes and improvements.
>
> Binary packages (now also including Dub) and the source tarball 
> can be found on the GitHub release page, along with the 
> detailed changelog:
>
> https://github.com/ldc-developers/ldc/releases/tag/v1.1.0
>
> All the binary packages are built against LLVM 3.9.1. The Linux 
> x86/x86_64 binaries are built on Ubuntu 12.04 LTS and should 
> work on any newer distribution. The Win32 and Win64 MSVC 
> versions are built with Visual Studio 2015, and shouldn't be 
> expected to work with any older version.
>
> Note that there were some changes to the command line 
> semantics, which – although mostly minute – could break some 
> application: 
> http://forum.dlang.org/post/ubobkfmsspbsmjunosna@forum.dlang.org
>
> Please be sure to report any bugs at 
> https://github.com/ldc-developers/ldc/issues, and feel free to 
> post here in the digitalmars.D.ldc forums for any questions or 
> comments.
>
> Oh, and stay tuned for a new release soon, now that the LDC 
> release process has been straightened out and the team has more 
> manpower again. There even is a pull request open for 2.072.2 
> already.
>
>  — David


I am using Lubuntu 16.10, testing a simple hello world:

sai at saivb:~$ uname -a
Linux saivb 4.8.0-37-generic #39-Ubuntu SMP Thu Jan 26 02:27:07 
UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


sai at saivb:~/tmp$ cat t.d
import std.stdio;

int main(string[] args) {
	writefln("Hello world!");
	return 0;
}


I am getting the following error:

sai at saivb:~/tmp$ ldc2 t.d
/usr/bin/ld: 
/home/sai/Programs/ldc2-1.1.0-linux-x86_64/bin/../lib/libdruntime-ldc.a(errno.c.o): relocation R_X86_64_PC32 against symbol `__errno_location@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1


sai at saivb:~/tmp$ ldc2 -relocation-model=dynamic-no-pic  t.d
/usr/bin/ld: 
/home/sai/Programs/ldc2-1.1.0-linux-x86_64/bin/../lib/libdruntime-ldc.a(errno.c.o): relocation R_X86_64_PC32 against symbol `__errno_location@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1

sai at saivb:~/tmp$ ldc2 -relocation-model=pic t.d
/usr/bin/ld: 
/home/sai/Programs/ldc2-1.1.0-linux-x86_64/bin/../lib/libdruntime-ldc.a(errno.c.o): relocation R_X86_64_PC32 against symbol `__errno_location@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1


I posted this in other thread, anything else that I can do 
besides recompiling druntime/phobos?

Thanks in advance.





More information about the digitalmars-d-ldc mailing list