From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-devhelp+bounces-131-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QMPhV-0008Gq-MM
	for garchives@archives.gentoo.org; Tue, 17 May 2011 19:13:01 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9B5AD1C124;
	Tue, 17 May 2011 19:12:41 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 616011C124
	for <gentoo-devhelp@lists.gentoo.org>; Tue, 17 May 2011 19:12:41 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id E7EF81B400E
	for <gentoo-devhelp@lists.gentoo.org>; Tue, 17 May 2011 19:12:40 +0000 (UTC)
X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org
X-Spam-Score: -2.856
X-Spam-Level: 
X-Spam-Status: No, score=-2.856 required=5.5 tests=[AWL=-0.257,
	BAYES_00=-2.599]
Received: from smtp.gentoo.org ([127.0.0.1])
	by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id g9aBG2lkmojf for <gentoo-devhelp@lists.gentoo.org>;
	Tue, 17 May 2011 19:12:33 +0000 (UTC)
Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])
	by smtp.gentoo.org (Postfix) with ESMTP id 9A5401B4032
	for <gentoo-devhelp@gentoo.org>; Tue, 17 May 2011 19:12:30 +0000 (UTC)
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <glgd-gentoo-devhelp@m.gmane.org>)
	id 1QMPgx-0005rj-UW
	for gentoo-devhelp@gentoo.org; Tue, 17 May 2011 21:12:27 +0200
Received: from athedsl-389606.home.otenet.gr ([79.131.73.228])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-devhelp@gentoo.org>; Tue, 17 May 2011 21:12:27 +0200
Received: from realnc by athedsl-389606.home.otenet.gr with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-devhelp@gentoo.org>; Tue, 17 May 2011 21:12:27 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: gentoo-devhelp@lists.gentoo.org
From: Nikos Chantziaras <realnc@arcor.de>
Subject: [gentoo-devhelp] Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
Date: Tue, 17 May 2011 22:12:11 +0300
Organization: Lucas Barks
Message-ID: <iquhab$fms$1@dough.gmane.org>
References: <iqsr5o$qbk$1@dough.gmane.org> <iqsuoj$8nf$1@dough.gmane.org>	 <20110517051428.GL31702@ohnopublishing.net> <iqt0p3$hls$1@dough.gmane.org>	 <1305614715.23203.4.camel@tablet> <iqt7ga$gpk$1@dough.gmane.org>	 <1305622668.23203.21.camel@tablet>  <iqu4t9$vtq$1@dough.gmane.org> <1305658739.19924.2.camel@tablet>
Precedence: bulk
List-Post: <mailto:gentoo-devhelp@lists.gentoo.org>
List-Help: <mailto:gentoo-devhelp+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-devhelp+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-devhelp+subscribe@lists.gentoo.org>
List-Id: Gentoo Development-related help <gentoo-devhelp.gentoo.org>
X-BeenThere: gentoo-devhelp@gentoo.org
X-BeenThere: gentoo-devhelp@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
X-Complaints-To: usenet@dough.gmane.org
X-Gmane-NNTP-Posting-Host: athedsl-389606.home.otenet.gr
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110430 Thunderbird/3.1.10
In-Reply-To: <1305658739.19924.2.camel@tablet>
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: 0d5b15994c23493c75011d2b40d36f22

On 05/17/2011 09:58 PM, Peter Volkov wrote:
> =D0=92 =D0=92=D1=82=D1=80, 17/05/2011 =D0=B2 18:40 +0300, Nikos Chantzi=
aras =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
>> On 05/17/2011 11:57 AM, Peter Volkov wrote:
>>> =D0=92 =D0=92=D1=82=D1=80, 17/05/2011 =D0=B2 10:18 +0300, Nikos Chant=
ziaras =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
>>>> On 05/17/2011 09:45 AM, Peter Volkov wrote:
>>>>> =D0=92 =D0=92=D1=82=D1=80, 17/05/2011 =D0=B2 08:23 +0300, Nikos Cha=
ntziaras =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
>>>>>> scons: *** Path for option install_path does not exist:
>>>>>> /var/tmp/portage/dev-util/gpuocelot-9999/image
>>>>>
>>>>> Please, post full ebuild.
>>>
>>>> src_compile() {
>>>> 	tc-export CC CXX
>>>> 	escons install_path=3D"${D}"/usr test_level=3Dnone || die
>>>
>>> You don't need install_path here, only in src_install().
>>
>> Removing it brings us back to the original problem:
>>
>> g++ -o .release_build/OcelotConfig -L/usr/lib64/llvm -lpthread -lffi
>> -ldl -lm .release_build/ocelot/tools/OcelotConfig.o -L/usr/lib
>> -L/usr/lib64/llvm -L. -locelot
>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu=
/bin/ld:
>> cannot find -locelot
>> collect2: ld returned 1 exit status
>
> Looks like this is bug in build system not in ebuild. Try to build
> manually and if that fails then either fix it or report upstream.

Building manually (using the exact same commands as used in the ebuild)=20
works correctly.  Only with the ebuild does it fail.