public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* LLVM 5.0 is not building on Clang
@ 2017-12-18 11:54 Darmie Akinlaja
  2017-12-20 12:37 ` Csaba Raduly
  0 siblings, 1 reply; 2+ messages in thread
From: Darmie Akinlaja @ 2017-12-18 11:54 UTC (permalink / raw)
  To: cygwin

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
/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

-- 
*ABOUT ME*
*Damilare Darmie Akinlaja *is a physicist and software developer who
actively develops and contributes to the architecture of RubiQube—a
cross-platform mobile application that gives users access to a variety of
innovative HTML5 applications based on their location. He serves as the
Head of Mobile at MobiQube Ltd. and a Mobile Applications developer at
Digiterati Ltd. a software and digital marketing coy respectively located
in the city of Lagos, Nigeria, where he's dedicated to developing rich
mobile applications. In 2008, Darmie supported his college best friend in
developing a social network, which enjoyed its moment of fame at the
Federal University of Technology, Akure. In 2011, his interest in video
games and animations deepened, so he founded a video game production
start-up, Gigaware Enterprise, with the goal of creating the best quality
and fun games with local African contexts.

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LLVM 5.0 is not building on Clang
  2017-12-18 11:54 LLVM 5.0 is not building on Clang Darmie Akinlaja
@ 2017-12-20 12:37 ` Csaba Raduly
  0 siblings, 0 replies; 2+ messages in thread
From: Csaba Raduly @ 2017-12-20 12:37 UTC (permalink / raw)
  To: cygwin list; +Cc: dreakinlaja

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-20 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-18 11:54 LLVM 5.0 is not building on Clang Darmie Akinlaja
2017-12-20 12:37 ` Csaba Raduly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).