On 23 January 2016 at 09:18, Bruce Dubbs <[email protected]> wrote:
> Pierre Labastie wrote:
>>
>> On 23/01/2016 03:56, Bruce Dubbs wrote:
>>>
>>> William Harrington wrote:
>>>>
>>>> On Fri, January 22, 2016 18:54, Bruce Dubbs wrote:
>>>>>
>>>>> I'm thinking about changing the way we build packages in separate
>>>>> directories.  What we do now for tool chain packages is:
>>>>>
>>>>> mkdir -v ../binutils-build
>>>>> cd ../binutils-build
>>>>>
>>>>> ../binutils-2.25.1/configure  ...
>>>>>
>>>>>
>>>>> I'm thinking about changing that to:
>>>>>
>>>>> mkdir -v build
>>>>> cd       build
>>>>>
>>>>> ../configure ...
>>>>>
>>>>
>>>> Hello Bruce,
>>>>
>>>> [...]
>>>>
>>>> We have stuck with this for the longest time:
>>>>
>>>> https://gcc.gnu.org/install/configure.html
>>>>
>>>> "First, we highly recommend that GCC be built into a separate directory
>>>> from the sources which does not reside within the source tree. This is
>>>> how
>>>> we generally build GCC; building where srcdir == objdir should still
>>>> work,
>>>> but doesn't get extensive testing; building where objdir is a
>>>> subdirectory
>>>> of srcdir is unsupported."
>>>
>>>
>>> When I read that, I interpret is to mean that they build for multiple
>>> targets
>>> and want to keep the object files from those builds separate.
>>>
>>> I've modified LFS according to the attached diff.  I did a full build and
>>> the
>>> failures in the test logs are the same as with the current book.
>>>
>>> Actually I cannot think of a good reason for differentiation between the
>>> case
>>> where objdir is completely separate from srcdir and the case where objdir
>>> is a
>>> subdirectory of srcdir, even though they say that case is unsupported.
>>> About
>>> the only thing I can think of is that they may be doing some kind of
>>> recursive
>>> directory search and there is some sort of match in the build tree.
>>>
>>
>> Definitely, building with srcdir == objdir does not work: I tried that
>> when I
>> saw this thread, and it failed at gcc-pass1. It looks like "make" does not
>> get
>> the build order right in this case (I tried both with -j5 and -j1, and got
>> the
>> same error), or misses some dependency:
>
>
> I definitely did not propose that.  The question where does the separate
> objdir need to be?  I've been thinking about this some more and and will
> post a summary of my thought later today.
>
>   -- Bruce

I have been using build directories inside the extracted folders in my
build scripts for a few years now, until this thread was not aware
there was any concerns on it (I have never tried deleting/rebuilding
leaving the original source)

Personally just found it easier to delete 1 folder instead of 2.
-- 
Nathan Coulson (conathan)
------
Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to