New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 717558 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Last visit 16 days ago
Closed: May 2018
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug

Blocking:
issue angleproject:1668



Sign in to add a comment

Warning/message when compiling vulkan-validation-layers

Project Member Reported by vmp...@chromium.org, May 2 2017

Issue description

After syncing this morning, I'm seeing the following message appear when compiling chrome:

../../third_party/vulkan-validation-layers/src/loader/loader.c:222:9: warning: Warning:  Falling back to non-secure getenv for environmental lookups!  Consider updating to a different libc. [-W#pragma-messages]
#pragma message("Warning:  Falling back to non-secure getenv for environmental lookups!  Consider" \
        ^
1 warning generated.


Is this known/expected? If so, should we be suppressing the warning? If not, we should fix it.
 
Owner: jmad...@chromium.org
Status: Assigned (was: Available)
No, I've never seen this warning. I don't know if something changed or not. Will investigate, probably can just suppress it.
Owner: fjhenigman@chromium.org
Oh, actually, it's probably related to Frank's enabling of Linux. Assigning to Frank. Just noticed this was Linux.
Cc: mgiuca@chromium.org
 Issue 717393  has been merged into this issue.
Labels: -Pri-2 Pri-1
Escalating priority.
Support for the Vulkan back-end was disabled on Linux in https://chromium.googlesource.com/angle/angle/+/0d4340463c9641c70edc891859fcb7d513f13d39. Will be fixed with the next roll. Leaving Pri-1 until we roll out.
Labels: -Pri-1 Pri-2
Frank, I think we can just go ahead and define HAVE_SECURE_GETENV in angle's Vulkan BUILD.gn and GYP. It's probably safe to assume we have these on Linux. The loader shouldn't be spamming a warning here but let's just move forward with a quick fix.

I think the reason the bots aren't complaining here is that although the message loudly proclaims "WARNING BLAH BLAH" this is in fact a #pragma message not a #pragma warning and hence it is not a warning, but a message. Lowering priority as this isn't actually breaking any builds, but just causing spam and confusion (should still be fixed quickly).
Project Member

Comment 8 by bugdroid1@chromium.org, May 2 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/angle/angle/+/f231232b012b43c0365b617890de66d0185197eb

commit f231232b012b43c0365b617890de66d0185197eb
Author: Frank Henigman <fjhenigman@chromium.org>
Date: Tue May 02 21:26:03 2017

vulkan: assume secure_getenv().

Vulkan's cmake files check for the availability of secure_getenv() but we
just assume it exists.

BUG= chromium:717558 

Change-Id: I22054c3967f543d163dde37b9a6b13e896da7a50
Reviewed-on: https://chromium-review.googlesource.com/494126
Commit-Queue: Frank Henigman <fjhenigman@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>

[modify] https://crrev.com/f231232b012b43c0365b617890de66d0185197eb/src/vulkan_support/BUILD.gn
[modify] https://crrev.com/f231232b012b43c0365b617890de66d0185197eb/src/vulkan_support/vulkan.gypi

This is harmless for the moment, and should go away with the next angle roll (daily Mon-Thu).
Project Member

Comment 10 by bugdroid1@chromium.org, May 3 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/97af8a5b4bd46c78ecb55287d6c680b0232bef6d

commit 97af8a5b4bd46c78ecb55287d6c680b0232bef6d
Author: cwallez <cwallez@chromium.org>
Date: Wed May 03 15:54:45 2017

Roll ANGLE d262799..ba29fa4

https://chromium.googlesource.com/angle/angle.git/+log/d262799..ba29fa4

BUG= chromium:717558 , chromium:717385 

TBR=geofflang@chromium.org

TEST=bots

CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2860743002
Cr-Commit-Position: refs/heads/master@{#468988}

[modify] https://crrev.com/97af8a5b4bd46c78ecb55287d6c680b0232bef6d/DEPS

I believe this is fixed and we can close this, right?

I am building with Vulkan enabled and do not see this warning message any more.
Blocking: angleproject:1668
Status: Fixed (was: Assigned)
Should be fixed now.

Sign in to add a comment