[llvm-commits] [Cygwin] PIC & LTO patch

Aaron Gray aaronngray.lists at googlemail.com
Sat Mar 7 06:22:41 PST 2009


On Fri, Mar 6, 2009 at 11:22 PM, Aaron Gray <aaronngray.lists at googlemail.com
> wrote:

>  Nick,
>
> Think I have got the Cygwin problem sussed. There was a -nostdlib on the
> libLTO link and on LLVMHello Cygwin's linking requires listing libraries, it
> does not seem to search directories for them link Linux'es ld does, plus a
> few misc issues.
>
> Heres a provisional patch I have checked it on x86 Linux as well as Cygwin,
> to 'make tools-only' level, debug build.
>
> There maybe a bit more clearing up to be done the original build system
> does do some duplication of g++ flags which should be dealt with at some
> point. Also there is the difference in Linux finding libraries given '-L'
> paths where as Cygwin seems to have them listed on '-l' switches.
>
> Yeah I want to switch my development to Linux as it it just about 10 times
> faster than Cygwin.
>

I did say a provisional patch :)

I am getting the following failure on 'make check' on x86 Linux :-

   Running /usr/src/llvm/test/Feature/dg.exp ...
   FAIL: /usr/src/llvm/test/Feature/load_module.ll for PR1318
   Failed with exit(1) at line 1
   while running:  llvm-as < /usr/src/llvm/test/Feature/load_module.ll |
opt -load=/usr/build/llvm/Debug/lib/LLVMHello.so -hello  -disable-output -
|& /bin/grep Hello
   child killed: SIGABRT
   child process exited abnormally
Doing tests...

Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090307/1f37f32e/attachment.html>


More information about the llvm-commits mailing list