Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on Linux: gn.py: Could not find checkout in any parent of the current path. This must be run inside a checkout. #900

Open
theridev opened this issue Dec 12, 2024 · 5 comments

Comments

@theridev
Copy link

System Details

  • OS: Debian 12 Bookworm
  • Thorium Version 130.0.6723.158

Problem
I did all the steps to build Thorium from source code (using the documentation). However, when I try to run gn args out/thorium I get this error:

gn.py: Could not find checkout in any parent of the current path.
This must be run inside a checkout.

Did you read the FAQ?
yes. None of the answers are for me.

Additional Notes
There are also some errors when running version.sh

Current Thorium version is: 130.0.6723.158
NOTE: Checking out tags/130.0.6723.158 in /home/leafus/chromium/src...
warning: unable to rmdir 'third_party/ink/src': Katalog nie jest pusty
warning: unable to rmdir 'third_party/ink_stroke_modeler/src': Katalog nie jest pusty
warning: unable to rmdir 'third_party/libva-fake-driver/src': Katalog nie jest pusty
warning: unable to rmdir 'third_party/llvm-libc/src': Katalog nie jest pusty
warning: unable to rmdir 'third_party/speedometer/main': Katalog nie jest pusty
warning: unable to rmdir 'third_party/speedometer/v2.0': Katalog nie jest pusty
warning: unable to rmdir 'third_party/speedometer/v2.1': Katalog nie jest pusty
warning: unable to rmdir 'third_party/webpagereplay': Katalog nie jest pusty
Aktualizowanie plików: 100% (84044/84044), gotowe.
Poprzednim wskazaniem HEAD było e29eb13a5781c Code Health: Clean up stale base::Feature "BlockRepeatedAutoReauthnPrompts"
HEAD wskazuje teraz na 50f4331ffddad Incrementing VERSION to 130.0.6723.158
'src/build/vs_toolchain.py' -> '/home/leafus/chromium/src/build/vs_toolchain.py'
cp: nie można wykonać stat na 'thorium-libjxl/src/DEPS': Nie ma takiego pliku ani katalogu
Chromium tree is checked out at tag: 130.0.6723.158
Downloading PGO Profiles for Linux, Windows, and Mac...
python3: can't open file '/home/leafus/thorium/tools/update_pgo_profiles.py': [Errno 2] No such file or directory
leafus@owo:~/thorium$ ./setup.sh
Creating build output directory...
Copying Thorium source files over the Chromium tree...
cp: nie można wykonać stat na 'thorium-libjxl/src/.': Nie ma takiego pliku ani katalogu
./setup.sh: linia 124: patchThor: nie znaleziono polecenia
Copying other files to `out/thorium`
'infra/default_apps/./external_extensions.json' -> '/home/leafus/chromium/src/out/thorium/default_apps/./external_extensions.json'
'infra/initial_preferences' -> '/home/leafus/chromium/src/out/thorium/initial_preferences'
'infra/thor_ver' -> '/home/leafus/chromium/src/out/thorium/thor_ver'
Done!
   ___________   ___  ___    ________    ________    ___    ___  ___    _____________      
  |\____   ___\ |\  \ \  \  |\   __  \  |\   __  \  |\  \  |\  \ \  \  |\   __   __  \     
  \|___ \  \__| \ \  \_\  \ \ \  \ \  \ \ \  \_\  \ \ \  \ \ \  \ \  \ \ \  \ \__\ \  \    
       \ \  \    \ \   __  \ \ \  \ \  \ \ \   _  _\ \ \  \ \ \  \ \  \ \ \  \|__|\ \  \   
        \ \  \    \ \  \ \  \ \ \  \_\  \ \ \  \\  \  \ \  \ \ \  \_\  \ \ \  \    \ \  \  
         \ \__\    \ \__\ \__\ \ \_______\ \ \__\\ _\  \ \__\ \ \_______\ \ \__\    \ \__\ 
          \|__|     \|__|\|__|  \|_______|  \|__||__|   \|__|  \|_______|  \|__|     \|__| 
                                                                                    
Tip: See the aliases.txt file for some handy bash aliases.
 IMPORTANT: If you ran setup.sh without any flags, you must also run ./patch_ac3.sh for AC3/E-AC3 support.
  Enjoy Thorium!
@theridev
Copy link
Author

There was no tools folder in the root directory of Thorium. Once added it throws this error:
image

@gz83
Copy link
Collaborator

gz83 commented Dec 13, 2024

Emmm I suspect you didn't place the Chromium code checkout correctly, it should be placed in the $HOME directory or in the directory corresponding to the environment variable.

Also, the new version is not yet fully ready to compile.

@theridev
Copy link
Author

It is in the home directory.

@gz83
Copy link
Collaborator

gz83 commented Dec 14, 2024

Can you upload your current environment variables?

@theridev
Copy link
Author

SHELL=/bin/bash
WINDOWID=39845899
COLORTERM=truecolor
GYP_MSVS_HASH_1023ce2e82=15be23e584
PWD=/home/leafus
LOGNAME=leafus
XDG_SESSION_TYPE=tty
KITTY_PUBLIC_KEY=1:S?P-FuaAs3GT52!<UdsY<ja~UtBqA6YWaMK$>0e|
MOTD_SHOWN=pam
HOME=/home/leafus
LANG=pl_PL.UTF-8
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=00: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:*.avif=01;35:*.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:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:
KITTY_WINDOW_ID=1
SSH_CONNECTION=185.241.198.127 33794 192.168.51.13 6969
XDG_SESSION_CLASS=user
TERM=xterm-kitty
TERMINFO=/home/leafus/.terminfo
USER=leafus
SHLVL=1
XDG_SESSION_ID=3
XDG_RUNTIME_DIR=/run/user/1000
SSH_CLIENT=185.241.198.127 33794 6969
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/leafus/depot_tools
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
SSH_TTY=/dev/pts/0
DEPOT_TOOLS_WIN_TOOLCHAIN_BASE_URL=/home/leafus/chromium/win/
_=/usr/bin/printenv

here they are @gz83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants