Re: error building libpmc_events.c [solved (sort of)]

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Wed, 6 Jun 2018 11:35:55 -0400
On 6/6/18 11:22 AM, Claude Buisson wrote:
> On 06/06/2018 16:20, Bryan Drewery wrote:
>> I think I know the issue. Will try looking later today or tomorrow.
>>
>> Regards,
>> Bryan Drewery
>>
>>> On Jun 5, 2018, at 13:18, Claude Buisson <clbuisson_at_orange.fr> wrote:
>>>
>>> Replying to my own mail for more details, and ccing potential commiters
>>>
>>>> On 06/04/2018 17:34, Claude Buisson wrote:
>>>> Hi,
>>>> During a buildworld of head on amd64, from 332518 to 334590, the
>>>> build stops with:
>>>> --- all_subdir_lib/libpmc ---
>>>> ===> lib/libpmc (all)
>>>> --- libpmc_events.c ---
>>>> ./pmu-events/jevents "x86" /home/src/lib/libpmc/pmu-events/arch
>>>> libpmc_events.c
>>>> sh: ./pmu-events/jevents: not found
>>>> *** [libpmc_events.c] Error code 127
>>>> ...
>>>
>>> This was during the lib32 build: jevents is not built in this context
>>>
>>> The same error has been described by kevans_at_ on svn-src-all_at_ as a
>>> consequence of svn 334226 (by bdrewery), pmu-events having since been
>>> moved in svn r334242 (by mmacy)
>>>
>>> CBu
>>
> 
> After further investigations, I found that jevents was effectively
> built, but in the src directory, instead of obj-lib32
> 
> Commenting WITHOUT_AUTO_OBJ in src-env.conf has been sufficient to get a
> successful buildword !
> 
> So the question becomes: must WITHOUT_AUTO_OBJ be supported by the build
> infrastructure ?

Well it's exactly why WITH_AUTO_OBJ is a thing. There's no reason
jevents should be in your source tree when using buildworld. If you were
building manually in the directories then that's why WITH_AUTO_OBJ is
there, to prevent the binary from being written to the source tree later
leading to build problems like this.

WITHOUT_AUTO_OBJ is "supported" as much as it was before, expect
problems like this. I don't recommend setting WITHOUT_AUTO_OBJ. Feedback
on why you were using it would help.


> 
> Thanks for your time
> 
> CBu


-- 
Regards,
Bryan Drewery


Received on Wed Jun 06 2018 - 13:36:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:16 UTC