Getting this error while setting up the build i.e after gn args out/Default

1,042 views
Skip to first unread message

Siddhi

unread,
Oct 17, 2023, 2:41:38 PM10/17/23
to Chromium-dev
ERROR at //build/nocompile.gni:149:9: Invalid substitution type.
        args += [
        ^--------
The substitution {{cflags}} isn't valid for something
operating on a source file such as this.
See //base/BUILD.gn:4116:3: whence it was called.
  nocompile_source_set("base_nocompile_tests_new") {
  ^-------------------------------------------------
See //BUILD.gn:94:7: which caused the file to be included.
      "//base:base_unittests",

vidya...@gmail.com

unread,
Feb 13, 2024, 7:52:29 AMFeb 13
to Chromium-dev, Siddhi
Hello

Did you get any resolution for this issue? I face the same error.

Regards
Vidya

Văn Nguyễn Chí

unread,
Feb 13, 2024, 11:59:05 AMFeb 13
to Chromium-dev, vidya...@gmail.com, Siddhi
Could you kindly share your env variables. I have resolved this issue by removing the variables associated to clang.

Văn Nguyễn Chí

unread,
Feb 13, 2024, 11:59:11 AMFeb 13
to Chromium-dev, vidya...@gmail.com, Siddhi
Could you kindly share your env variables? I have resolved this issue by removing the variables associated to clang.

On Tuesday, February 13, 2024 at 7:52:29 PM UTC+7 vidya...@gmail.com wrote:

vidya...@gmail.com

unread,
Feb 14, 2024, 3:58:37 AMFeb 14
to Chromium-dev, Văn Nguyễn Chí, vidya...@gmail.com, Siddhi
Hello

Thank you so much. I am pasting the environment variables using printenv command. Please let me know if this is the one you asked for or something different.

I am building this on the Ubuntu 22.04.2 LTS.

vsrini4@vsrini4-NUC10i7FNH:~/chromium/src$ printenv
SHELL=/bin/bash
LANGUAGE=en_IN:en
PWD=/home/vsrini4/chromium/src
LOGNAME=vsrini4
XDG_SESSION_TYPE=tty
MOTD_SHOWN=pam
HOME=/home/vsrini4
LANG=en_IN
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
SSH_CONNECTION=192.168.1.2 43148 192.168.1.44 22
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=screen
LESSOPEN=| /usr/bin/lesspipe %s
USER=vsrini4
SHLVL=1
XDG_SESSION_ID=1061
XDG_RUNTIME_DIR=/run/user/1000
SSH_CLIENT=192.168.1.2 43148 22
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/vsrini4/chromium/depot_tools
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
SSH_TTY=/dev/pts/7
OLDPWD=/home/vsrini4/chromium
_=/usr/bin/printenv
vsrini4@vsrini4-NUC10i7FNH:~/chromium/src$

Regards
Vidya

Văn Nguyễn Chí

unread,
Feb 17, 2024, 9:57:12 PMFeb 17
to Chromium-dev, vidya...@gmail.com, Văn Nguyễn Chí, Siddhi
Try to move `/home/vsrini4/chromium/depot_tools` on the top of the $PATH variable. May be it work!

vidya srinivas

unread,
Mar 5, 2024, 1:02:29 AMMar 5
to Văn Nguyễn Chí, Chromium-dev, Siddhi
Thank you so much. Will give it a try.

Regards
Vidya

Daniel Cheng

unread,
Mar 5, 2024, 1:30:02 AMMar 5
to vidya...@gmail.com, Văn Nguyễn Chí, Chromium-dev, Siddhi
There's some logic that's out of sync and should be fixed in GN.

Daniel

--
--
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/CAF_1bU%2BgAvOX-aowf8SyQ2tNi%3DUPbZbX4D6RnMDCFQJit7V5gw%40mail.gmail.com.

vidya srinivas

unread,
Mar 5, 2024, 12:58:42 PMMar 5
to Daniel Cheng, Văn Nguyễn Chí, Chromium-dev, Siddhi
Thank you so much. I will try this and update.

Regards
Vidya

廖柏翰

unread,
Mar 8, 2024, 1:33:53 PMMar 8
to vidya srinivas, Daniel Cheng, Văn Nguyễn Chí, Chromium-dev, Siddhi
I was test dow,If have any problems.i will told to us. Thanks.

Shiqiang Wei

unread,
Jul 11, 2024, 1:28:15 PMJul 11
to Chromium-dev, Siddhi
Hello all,

Recently, I encountered the same error. Finally, I figured out my gn pointed to an old version in /usr/bin/gn and its version is only 1000. The latest version of gn should be 2175. Fixed this error by replacing the old with latest one.

Regards,
Simon Wei

Reply all
Reply to author
Forward
0 new messages