Use of Undeclared Identifier Error

489 views
Skip to first unread message

Luke Swiderski

unread,
Jan 28, 2021, 12:33:00 PM1/28/21
to Chromium-dev

I have been working on dev-tools bugs to gain open source experience.  

Recently, I found a fairly simple bug and made a small code change and now I need to run web tests to make sure I didn't break anything. I am using the integrated checkout, as described here: https://chromium.googlesource.com/devtools/devtools-frontend/+/HEAD/docs/workflows.md

My code change is in the /devtools/devtools-frontend repo, as described in the above doc.

To run the web tests, according to https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_tests.md,

from the /chromium/src repo, I need to first run "autoninja -C out/Default blink_tests" to build the blink_tests target to get content_shell and all of the other needed binaries.

When I run "autoninja -C out/Default blink_tests" from /chromium/src, I consistently get errors involving undeclared identifiers.  Several weeks ago, I tried to start over and fetch chromium from scratch, and when I went to build chromium I got these same errors.  So I’ve uncounted this use of undeclared identifier when trying to just build chromium and when trying to build blink_test target.  Eventually I checkout an old commit and then rebased and gclient synched.  I was able to build chromium that way but when I ran ""autoninja -C out/Default blink_tests" I got the errors again.  

I have attached a terminal output with an example of the errors.

I have tried rebasing and gclient synching everyday for several weeks, hoping that an update would fix the problem. I tried `gn clean -C out/Default` and then ran 'autoninja -C out/Default blink_tests' again and got the same error.  After numerous attempts, I reverted my code changes and have been attempting this from the master branch, again with no code changes, just to get it working, but to no avail.

I have been struggling with this issue for several weeks now.  I posted in the dev-tools group, but the folks who responded do not believe it to be a dev-tools problem specifically, and suggested I post here.  I would really appreciate any help.

I am on an intel Mac, version 10.14.6.


Screen Shot 2021-01-25 at 11.04.51 AM.png

Christian Biesinger

unread,
Jan 28, 2021, 1:00:55 PM1/28/21
to luke.sw...@gmail.com, Chromium-dev
Please send error messages as text, not as screenshots.

My guess is that you are using the wrong version of Xcode and/or the
Mac SDK, have you checked
https://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md
?

Christian
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/80ef6424-4e92-4680-af64-e608d5a4cf93n%40chromium.org.

Avi Drissman

unread,
Jan 28, 2021, 2:30:23 PM1/28/21
to Christian Biesinger, luke.sw...@gmail.com, Chromium-dev
Christian is correct.

Your error refers to the 10.15 SDK. Chromium requires the macOS 11.0 SDK.

As per that document, you must upgrade your macOS to at least 10.15.4, and your Xcode to at least Xcode 12.2.

Avi

Reply all
Reply to author
Forward
0 new messages