All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Randy Dunlap <rdunlap@infradead.org>,
	Masahiro Yamada <masahiroy@kernel.org>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915: fix header test with GCOV
Date: Mon, 24 Feb 2020 14:29:59 +0200	[thread overview]
Message-ID: <87eeuktbg8.fsf@intel.com> (raw)
In-Reply-To: <0f6712cd-87e5-5480-f01c-bfadd98368b5@infradead.org>

On Fri, 21 Feb 2020, Randy Dunlap <rdunlap@infradead.org> wrote:
> On 2/21/20 9:49 PM, Masahiro Yamada wrote:
>> On Sat, Feb 22, 2020 at 2:25 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>
>>> On 2/21/20 8:53 PM, Masahiro Yamada wrote:
>>>> On Sat, Feb 22, 2020 at 1:43 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>>>>>
>>>>> Hi Jani,
>>>>>
>>>>> On Fri, Feb 21, 2020 at 7:54 PM Jani Nikula <jani.nikula@intel.com> wrote:
>>>>>>
>>>>>> $(CC) with $(CFLAGS_GCOV) assumes the output filename with .gcno suffix
>>>>>> appended is writable. This is not the case when the output filename is
>>>>>> /dev/null:
>>>>>>
>>>>>>   HDRTEST drivers/gpu/drm/i915/display/intel_frontbuffer.h
>>>>>> /dev/null:1:0: error: cannot open /dev/null.gcno
>>>>>>   HDRTEST drivers/gpu/drm/i915/display/intel_ddi.h
>>>>>> /dev/null:1:0: error: cannot open /dev/null.gcno
>>>>>> make[5]: *** [../drivers/gpu/drm/i915/Makefile:307:
>>>>>> drivers/gpu/drm/i915/display/intel_ddi.hdrtest] Error 1
>>>>>> make[5]: *** Waiting for unfinished jobs....
>>>>>> make[5]: *** [../drivers/gpu/drm/i915/Makefile:307:
>>>>>> drivers/gpu/drm/i915/display/intel_frontbuffer.hdrtest] Error 1
>>>>>>
>>>>>> Filter out $(CFLAGS_GVOC) from the header test $(c_flags) as they don't
>>>>>> make sense here anyway.
>>>>>
>>>>>
>>>>>
>>>>> Is GCOV the only case that produces a separate file?
>>>>>
>>>>> Could you also test CONFIG_DEBUG_INFO_SPLIT, please ?
>>>>>
>>>>>
>>>>> The GCC manual says this:
>>>>>
>>>>> -gsplit-dwarf
>>>>>
>>>>>    Separate as much DWARF debugging information as possible into a
>>>>> separate output
>>>>>    file with the extension .dwo. This option allows the build system
>>>>> to avoid linking
>>>>>    files with debug information. To be useful, this option requires a debugger
>>>>>    capable of reading .dwo files.
>>>>>
>>>>
>>>>
>>>> I just tested it.
>>>>
>>>> This is not a problem for header test
>>>> because cmd_hdrtest uses '-S' instead of '-c'.
>>>>
>>>> If '-c' were used, we would see a similar error.
>>>>
>>>>
>>>> So, gsplit-dwarf is OK.
>>>
>>> Yes, works for me also.
>>>
>>> (I think you have a faster build machine that I do. I began the build
>>> almost immediately after reading your email. :)
>> 
>> 
>> I use a reasonable PC for my development.
>> (core-i9 with 4 physical cores)
>> 
>> 
>> I just compiled under i915/ with this command:
>> 
>> make drivers/gpu/drm/i915/
>
> Good trick.  I did a full build.

Thanks for the testing.

I also checked with some other options, did not see any failures. I'll
go with this for now, let's revisit as needed.

Another related thing is we try to hide this a bit from build testing
outside of our CI with "depends on !COMPILE_TEST" but I guess there's no
way to ensure something is not enabled on a randconfig build...

BR,
Jani.


-- 
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2020-02-24 12:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-21 10:54 [Intel-gfx] [PATCH] drm/i915: fix header test with GCOV Jani Nikula
2020-02-21 15:59 ` Randy Dunlap
2020-02-24 12:22   ` Jani Nikula
2020-02-21 18:03 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2020-02-21 18:28 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-02-22  4:43 ` [Intel-gfx] [PATCH] " Masahiro Yamada
2020-02-22  4:53   ` Masahiro Yamada
2020-02-22  5:25     ` Randy Dunlap
2020-02-22  5:49       ` Masahiro Yamada
2020-02-22  5:53         ` Randy Dunlap
2020-02-24 12:29           ` Jani Nikula [this message]
2020-02-24 11:54 ` [Intel-gfx] ✓ Fi.CI.IGT: success for " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eeuktbg8.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=masahiroy@kernel.org \
    --cc=rdunlap@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.