Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDC only compiles with /LARGEADDRESSAWARE:NO on Win64 #442

Closed
dymk opened this issue Aug 16, 2013 · 5 comments
Closed

LDC only compiles with /LARGEADDRESSAWARE:NO on Win64 #442

dymk opened this issue Aug 16, 2013 · 5 comments

Comments

@dymk
Copy link

dymk commented Aug 16, 2013

This makes it impossible to use of 2gb of memory, which is very unfortunate given one of the main reasons for compiling 64 bit is to be able to use more than the 32 bit address space.

I've tried passing the flag -L"/LARGEADDRESSAWARE" and -L"-LARGEADDRESSAWARE", however LDC turns the first into a file to link with, and the second into a /LIBPATH argument, so I've had no luck overriding by passing in an additional flag.

Is there a way to get around this limitation?

@dymk
Copy link
Author

dymk commented Aug 16, 2013

The Wiki page at http://wiki.dlang.org/Building_and_hacking_LDC_on_Windows_using_MSVC says that /LARGEADDRESSAWARE:NO is required due to an LLVM bug, but I'm able to compile and run just fine if I manually link LDC generated files without the flag. Perhaps the bug in LLVM was fixed, and the restriction can be lifted, or a compiler flag to override the behavior can be added?

I've built LDC with LLVM at tag release_33, if that helps.

@redstar
Copy link
Member

redstar commented Aug 16, 2013

It is fixed in LLVM 3.4. With LLVM 3.3 it won't work if you specify -g.

@dymk dymk closed this as completed Aug 17, 2013
@dymk
Copy link
Author

dymk commented Aug 17, 2013

Figured I'd close this as it's fixed when using LLVM 3.4. Please re-open if that's not a good reason.

redstar pushed a commit that referenced this issue Sep 27, 2014
@JohanEngelen JohanEngelen reopened this Apr 19, 2015
@JohanEngelen
Copy link
Member

Reopening this issue.
LDC needs -L"/LARGEADDRESSAWARE" for debug -g builds.
See LLVM bug: https://llvm.org/bugs/show_bug.cgi?id=15393

kinke added a commit to kinke/ldc that referenced this issue Jul 19, 2015
A work-around for LDC issue ldc-developers#442 regarding debug infos.
kinke added a commit to kinke/ldc that referenced this issue Aug 6, 2015
A work-around for LDC issue ldc-developers#442 regarding debug infos.
kinke added a commit to kinke/ldc that referenced this issue Aug 8, 2015
A work-around for LDC issue ldc-developers#442 regarding debug infos.
@kinke
Copy link
Member

kinke commented Nov 13, 2016

Finally obsolete due to CodeView debug infos and fixed by #1880.

@kinke kinke closed this as completed Nov 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants