Another bad binutils?

After waiting through about 2 hours of hard drive spinning for Clang to link under my Xubuntu Lucid Lynx Linux setup on VirtualBox, ld finally just gave up trying to link it. I was using CMake's build scripts on version 2.7 release of LLVM and Clang. The version of ld is (GNU Binutils for Ubuntu) 2.20.1-system.20100303. Can anyone confirm this problem? If needed I'll cross-post this to the Ubuntu forums. Thanks for your time.

After waiting through about 2 hours of hard drive spinning for Clang to link under my Xubuntu Lucid Lynx Linux setup on VirtualBox, ld finally just gave up trying to link it.

How much memory? Debug or Release build?

I was using CMake's build scripts on version 2.7 release of LLVM and Clang. The version of ld is (GNU Binutils for Ubuntu) 2.20.1-system.20100303. Can anyone confirm this problem?

FWIW I use the Debian version of it, GNU ld (GNU Binutils for Debian)
2.20.1-system.20100303, and never had problems with it.

Best regards,
--Edwin

384 MBytes RAM

From: mike-m <mikem.llvm@gmail.com>
To: Samuel Crow <samuraileumas@yahoo.com>
Sent: Wed, May 5, 2010 3:32:20 PM
Subject: Re: [LLVMdev] Another bad binutils?

How much RAM have you allocated to vbox guest?

--mike-m

Hi Mike-M,

Thanks for the help. It seems I'll have to just download the precompiled binaries since I only have 1 Gig in the entire system I'm using.

--Sam

From: mike-m <mikem.llvm@gmail.com>
To: Samuel Crow <samuraileumas@yahoo.com>
Sent: Wed, May 5, 2010 3:36:34 PM
Subject: Re: [LLVMdev] Another bad binutils?

You will need a 1GB guest. Linking is the biggest memory hog of the entire build
process. I've measured it to require 850MB to 950MB for linking clang on various
32 and 64 bit linux distros. If you try and link on a 512MB vbox, it will take
an order (or more) magnitude longer to link due to swapping than a 1GB guest.

--mike-m

Hi Samuel,

After waiting through about 2 hours of hard drive spinning for Clang to link under my Xubuntu Lucid Lynx Linux setup on VirtualBox, ld finally just gave up trying to link it. I was using CMake's build scripts on version 2.7 release of LLVM and Clang. The version of ld is (GNU Binutils for Ubuntu) 2.20.1-system.20100303. Can anyone confirm this problem? If needed I'll cross-post this to the Ubuntu forums. Thanks for your time.

if you build without optimization then clang is huge and takes forever to link.
Try building with optimization.

Ciao,

Duncan.

I build llvm+clang almost every day with Ubuntu 10.04. Everything goes fine. I guess it’s your VirtualBox has too little memory.

I’ve tried lots of times. Ubuntu 10.04 on both x86 and x64, nothing wrong.

2010/5/6 Samuel Crow <samuraileumas@yahoo.com>

You’re right, it was a memory issue. Today I’ll start cleaning out my native toolchains so that I can build natively on my Mac without the virtual machine getting in the way.