This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: LLVM 5.0 is not building on Clang


Hi Darmie,

On Mon, Dec 18, 2017 at 12:29 PM, Darmie Akinlaja  wrote:
> I tried building LLVM / Clang 5.0 but it's failing.
>
> This is the error I am getting:
>
> [ 63%] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.
> cpp.o

It might be useful to see the actual command line. Clang's makefiles
are created by cmake; you can add VERBOSE=1 to the make command to see
the actual commands during build.

> /usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../x86_64-pc-cygwin/bin/as:
> CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o: too many sections (44421)
> /tmp/cch2ze42.s: Assembler messages:
> /tmp/cch2ze42.s: Fatal error: can't write 18 bytes to section .text of
> CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o because: 'File too big'
> /usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../x86_64-pc-cygwin/bin/as:
> CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o: too many sections (44421)
> /tmp/cch2ze42.s: Fatal error: can't close
> CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o:
> File too big
> make[2]: *** [lib/Passes/CMakeFiles/LLVMPasses.dir/build.make:63:
> lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:12756:
> lib/Passes/CMakeFiles/LLVMPasses.dir/all]
> Error 2
> make: *** [Makefile:150: all] Error 2

You didn't attach a cygcheck output, as recommended in
> Problem reports:       http://cygwin.com/problems.html

Is your Cygwin 64-bit? What is the output of 'uname -a'?

Try re-running cmake with CMAKE_BUILD_TYPE=Release
The debug info can get very large for some object files in clang/LLVM.

Or you could try the suggestion I found after googling for  :
assembler can't write file too big

https://lists.llvm.org/pipermail/llvm-dev/2014-May/072642.html

(disclaimer: I didn't try it)

>
> --
> *ABOUT ME*
> *Damilare Darmie Akinlaja *is a physicist and software developer who
[snip]

For the love of God and all that is holy, get rid of that monstrosity!
I don't care about what you did in 2011, let alone in 2008.
If I did, I would visit your website or Linkedin page.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]