Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #56 (closed defect: fixed)

Opened 6 months ago

Last modified 5 months ago

mingw support, backslashes in paths and libraries assumed to be present

Reported by: elrood Assigned to:
Priority: major Milestone: Alpha
Component: Version:
Keywords: windows Cc:

Description

$ llvmdc -v foo.d
...
llvm-ld -o=foo.exe -strip-debug -disable-opt -disable-inlining -LC:\msys\1.0\home\<username>\llvmdc\bin/../lib -native -lpthread -ldl -lm foo.bc C:\msys\1.0\home\<username>\llvmdc\bin/../lib/libtango-base-llvmdc-native.a
Error: linking failed:

there are no libpthread, -dl and -m on windows/mingw
the windows-style backward slashes cause problems because they are treated as escape chars
the -L directive could probably be omitted

Change History

07/21/08 02:23:24 changed by ChristianK

  • keywords set to windows.
  • priority changed from trivial to major.
  • milestone set to Alpha.
  • I have made the implicit libs Linux only in [395].
  • The -L directive just has to be removed from llvmdc.conf/llvmdc.ini. I left it in there for now since it doesn't hurt and might be handy if we want to allow switching to a non-native runtime.
  • The backslashes: I'm not sure this is an issue. Are the paths also problematic if you run llvmdc from outside the mingw environment? Ideally it should work in both, but for now it's more important that it works in a plain Windows shell. In any case, it should contain only forward or only backward slashes not both.

07/27/08 15:23:52 changed by lindquist

  • status changed from new to closed.
  • resolution set to fixed.

Should be fixed in rev [407]

Copyright © 2008, LDC Development Team.