gn gen is having pkg-config trouble (with system_nss_no_ssl_config).

75 views
Skip to first unread message

Dave Mielke

unread,
Mar 19, 2021, 5:34:24 PM3/19/21
to Chromium OS Development
I'm unable to figure out a "gn gen" problem in preparation for building the browser and would appreciate some advice on how to proceed. If this isn't the right place to ask about it, please let me know what is.

The command that's failing is: gn gen out_amd64-generic/Release

The error is:

Could not run pkg-config.
See //build/config/linux/nss/BUILD.gn:15:3: whence it was called.
pkg_config("system_nss_no_ssl_config") {
^---------------------------------------
See //crypto/BUILD.gn:221:25: which caused the file to be included.
public_configs += [ "//build/config/linux/nss:system_nss_no_ssl_config" ]
^--------------------------------------------------

The context of line 15 of build/config/linux/nss/BUILD.gn is:

* pkg_config("system_nss_no_ssl_config") {
packages = [ "nss" ]
extra_args = [
"-v",
"-lssl3",
]
}

The context of line 221 of crypto/BUILD.gn is:

if (use_nss_certs) {
public_configs = [ ":platform_config" ]
* public_configs += [ "//build/config/linux/nss:system_nss_no_ssl_config" ]
}

When I run gn gen with its -v option, it says that the failing comand is:

Command: python /Google/Browser/src/build/config/linux/pkg-config.py -p x86_64-pc-linux-gnu-pkg-config nss -v -lssl3
Returned 1.

When I run this command manually, I do get the same error.

The command implies that I need the nss package, which I do. I also have the nss development package (nss-devel). In case it matters, I have version 3.62.0 of nss.

The -lssl3 operand imlies that I need libssl3, and, yes, I do have /usr/lib64/libssl3.so.

Also, in case it matters, this is a Fedora (not a Debian) system. And, yes, I've ensured that all of the packages listed in the Fedora section of the Chromium OS Docs - Building Chrome for Chrome OS (Simple Chrome) document are installed.

Does anyone have any idea(s) regarding what might be wrong and/or what else I might try?

--
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Da...@Mielke.cc | Ottawa, Ontario | Twitter: @Dave_Mielke
Phone: +1 613 726 0014 | Canada K2A 1H7 |

Mike Frysinger

unread,
Mar 20, 2021, 1:34:03 AM3/20/21
to Dave Mielke, Chromium OS Development
it looks like you're trying to build the browser.  you want chromium-dev@ instead.
-mike

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-dev

Reply all
Reply to author
Forward
0 new messages