[LLVMdev] LLVMHello pass compile error under Cygwin

Graham Keir graham.keir at gmail.com
Thu Sep 15 01:26:51 PDT 2011


Thankyou Takumi,

Without --enable-optimized I get a"File too big" error from the linker:

...
llvm[1]: Linking all LLVMLibs together for LLVM-3.0svn
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
/cygdrive/c/Users/Graham/home/projects/llvm_cygwin3/tools/llvm-shlib/Debug+Asserts/LLVM-3.0svn.a.o:
too many sections (59747)
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
final link failed: File too big
collect2: ld returned 1 exit status
make[1]: *** [/cygdrive/c/Users/Graham/home/projects/llvm_cygwin3/tools/llvm-shlib
/Debug+Asserts/LLVM-3.0svn.a.o] Error 1
make[1]: Leaving directory
`/cygdrive/c/Users/Graham/home/projects/llvm_cygwin3/tools/llvm-shlib'
make: *** [all] Error 1

(By the way, I have 4Gb Ram under 64-bit Windows 7, and use Cygwin's GCC 4.5.3)

If I instead use --enable-optimized, everything builds, however any
invocation of clang.exe
now halts with a segmentation fault, as shown:

clang hello.c fails:
      0 [main] clang 3608 exception::handle: Exception: STATUS_ACCESS_VIOLATION
  10619 [main] clang 3608 open_stackdumpfile: Dumping stack trace to
clang.exe.stackdump
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to
see invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/
 and include command line arguments and all diagnostic information.
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: note: diagnostic msg: Error generating preprocessed source(s).

Can you offer a suggestion here? (I am happy to submit a bug report if
appropriate.)

Regards,
Graham



More information about the llvm-dev mailing list