http://llvm.org/bugs/show_bug.cgi?id=10160

           Summary: Problem with autoconf's mmap check
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


mmap.c contains the default MMAP check from autoconf

[/kutu/stuff]> clang -O1 -D_FORTIFY_SOURCE=2 mmap.c    
[/kutu/stuff]> ./a.out 
[... hangs ... ]

[/kutu/stuff]> gcc -O1 -D_FORTIFY_SOURCE=2 mmap.c 
[/kutu/stuff]> ./a.out 
[/kutu/stuff]> 

This only happens when -D_FORTIFY_SOURCE=2 is specified, according to gdb
program hangs in line 223:

    if (read (fd, data3, pagesize) != pagesize)

Due to this problem lots of configure scripts just hang when compiling programs
with clang.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to