Author Topic: Chromium for Ubuntu  (Read 789 times)

MauryG5

  • Hero Member
  • *****
  • Posts: 773
  • Karma: +22/-1
    • View Profile
Chromium for Ubuntu
« on: November 17, 2024, 11:16:00 am »
By chance I re -examined the Hardisk where I had installed Ubuntu 20.04, I had dismantled it about 3 years ago as it had too many small bugs and in the meantime Debian 11 had arrived which I had liked much more than Debian 10 and so I went to Debian. I noticed with my great surprise that in the meantime, after years, they finally resolved those ugly and annoying bugs that compromised the proper functioning of Firefox and that did not work completely working Thunderbird. I said incredible Wow, considering how little I see used Ubuntu in our Cominita Power, compared to Fedora and Debian above all. I must say that now I am using it again with good satisfaction, however, I miss the only thing and that I cannot use Chromium despite being Ubuntu a direct debian derivative. I was wondering and I would also ask Raptor that I take care of Chromium, is it not possible to have repositories compatible for Chromium? I tried to use those of Debian 12 before and 11 after but nothing. I managed to install the key, the repositories, on the other hand, obviously do not go even if in reality when I try to update after putting the reposoarths, he loads them almost all except one that ignores and I think it happens because they are not the right ones for Ubuntu. I was wondering if there was a way, as Ubuntu was a Debian derivative, to be able to install Chromium too ...

MauryG5

  • Hero Member
  • *****
  • Posts: 773
  • Karma: +22/-1
    • View Profile
Re: Chromium for Ubuntu
« Reply #1 on: November 24, 2024, 12:03:20 pm »
I am trying to build Chromium from 0, following the wiki/raptor guide but unfortunately I blocked myself in the part where you have to enter the exact version of the Clag compiler that Chromium uses. Raptor recommends using the specific version of the moment and from a link where to see it and the link shows this result: Clang_revision = 'LLVMORG-20-ARST-9764-GB81D8E90'

The problem is that it does not work in every way, whether I take it as it is, it gives me error of syntax because it only wants it to numbers, entering only the numbers I see. I can't understand how to take this number of clan version, to give it correctly. I also searched on the web but I can't find it in the same way. The mistakes that gives me are always the same:
Unable to connect to a repository at url 'https://llvm.org/svn/llvm-project/llvm/trunk'

Access To '/Svn/LLVM-PROJECT/LLVM/TRUNK' FORBIDDEN
Does anyone know how to get this correct number of Clag Version?

carlosgonz

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Chromium for Ubuntu
« Reply #2 on: November 24, 2024, 06:23:35 pm »
Hi
I am  using Netsurf plus duckduckgo-htmlsearch because native libre firmware on gles1.
« Last Edit: November 24, 2024, 08:57:02 pm by carlosgonz »
Blackbird  Rv1.02

MauryG5

  • Hero Member
  • *****
  • Posts: 773
  • Karma: +22/-1
    • View Profile
Re: Chromium for Ubuntu
« Reply #3 on: November 25, 2024, 10:49:41 am »
Hi, I don't understand how I can get the number I need from this information you are giving me...

atomicdog

  • Newbie
  • *
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: Chromium for Ubuntu
« Reply #4 on: November 26, 2024, 08:12:13 pm »
LLVM switched from svn to git.

https://github.com/llvm/llvm-project

MauryG5

  • Hero Member
  • *****
  • Posts: 773
  • Karma: +22/-1
    • View Profile
Re: Chromium for Ubuntu
« Reply #5 on: November 27, 2024, 06:57:23 am »
Yes, I too had come to see that git screen, only I don't know where to get the number that is requested of me... I don't understand where to find this number that he is asking me...

atomicdog

  • Newbie
  • *
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: Chromium for Ubuntu
« Reply #6 on: November 27, 2024, 12:21:15 pm »
Looks like that tag isn't from the main LLVM git but chromium has their own repo of LLVM.

Here's a recent build log that shows what you can do.

https://chromium.googlesource.com/chromium/src/+/main/docs/updating_clang.md

I think this might work:
Code: [Select]
# git clone https://chromium.googlesource.com/external/github.com/llvm/llvm-project
# git checkout llvmorg-20-init-9764-gb81d8e90

MauryG5

  • Hero Member
  • *****
  • Posts: 773
  • Karma: +22/-1
    • View Profile
Re: Chromium for Ubuntu
« Reply #7 on: November 27, 2024, 01:08:34 pm »
So excuse me, do you mean to tell me that I should replace the original line that Raptor gives in his wiki guide, that is the line of the depot tools that says:

$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

and insert instead of this the one you mentioned, that is:

# git clone https://chromium.googlesource.com/external/github.com/llvm/llvm-project
# git checkout llvmorg-?20-init-9764-gb81d8e90?

After when you have to insert the part dedicated to LLVM/CLANG, inserting the code: 20-init-9764-gb81d8e90, at that point it should recognize it... I don't know, I had understood that in this part it wants a series of numbers and that's it, then I don't know for sure if inserting that part that you tell me instead of the one reported in the guide, changes everything... I have to understand this fundamentally...

atomicdog

  • Newbie
  • *
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: Chromium for Ubuntu
« Reply #8 on: November 27, 2024, 03:36:47 pm »
No, that's a different section in the wiki, you still need the helper programs in depot_tools.

The sections below LLVM/Clang is what needs to be updated/modified. Replace the SVN checkout commands with git clone and checkout commands

The number is a git tag. It tells git which exact version to checkout/use so you can compile a known good version.
The 'CLANG_SVN_REVISION=35769' number in the wiki will no longer work since LLVM doesn't use SVN anymore.

MauryG5

  • Hero Member
  • *****
  • Posts: 773
  • Karma: +22/-1
    • View Profile
Re: Chromium for Ubuntu
« Reply #9 on: November 27, 2024, 03:52:18 pm »
Ah ok then let me understand, okay replace the commands in the checkout wiki with the ones you gave me, but the command export CLANG_SVN_REVISION, which is immediately after entering the created directory of CHROMIUM, what do I have to do at this point? Thanks for your patience and collaboration!

atomicdog

  • Newbie
  • *
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: Chromium for Ubuntu
« Reply #10 on: November 27, 2024, 05:06:13 pm »
Replace this:
Code: [Select]
$ cd $CHROMIUM_DIR
$ export CLANG_SVN_REVISION=357692 # Check the above link for the current version
$ svn checkout --force https://llvm.org/svn/llvm-project/llvm/trunk@$CLANG_SVN_REVISION llvm
$ svn checkout --force https://llvm.org/svn/llvm-project/cfe/trunk@$CLANG_SVN_REVISION llvm/tools/clang
$ svn checkout --force https://llvm.org/svn/llvm-project/compiler-rt/trunk@$CLANG_SVN_REVISION llvm/compiler-rt

With:
Code: [Select]
$ cd $CHROMIUM_DIR
$ git clone https://chromium.googlesource.com/external/github.com/llvm/llvm-project
$ git checkout llvmorg-20-init-9764-gb81d8e90

MauryG5

  • Hero Member
  • *****
  • Posts: 773
  • Karma: +22/-1
    • View Profile
Re: Chromium for Ubuntu
« Reply #11 on: November 28, 2024, 12:57:47 am »
Perfect now it's clear thank you very much, I'll update you as soon as I get on the computer these days.

MauryG5

  • Hero Member
  • *****
  • Posts: 773
  • Karma: +22/-1
    • View Profile
Re: Chromium for Ubuntu
« Reply #12 on: November 28, 2024, 12:54:47 pm »
I performed the first of the 2 commands and downloaded me 3.4 GB of files and therefore everything went regular, when I performed the command:
$ Git Checkout LLVMORG-20-INART-9764-GB81D8E90
gives me this output:
Fatal: it is not a git repository (nor is any parent to the point of Mount /)
I stop at the limit of the filesystem (the Git_discovery_across_filesystem option is not set).

atomicdog

  • Newbie
  • *
  • Posts: 39
  • Karma: +4/-0
    • View Profile
Re: Chromium for Ubuntu
« Reply #13 on: November 28, 2024, 02:50:08 pm »
Sorry, you need to change into the llvm-project directory first (or specify which directory in the git checkout command).

Code: [Select]
$ cd $CHROMIUM_DIR
$ git clone https://chromium.googlesource.com/external/github.com/llvm/llvm-project

$ cd llvm-project

$ git checkout llvmorg-20-init-9764-gb81d8e90

MauryG5

  • Hero Member
  • *****
  • Posts: 773
  • Karma: +22/-1
    • View Profile
Re: Chromium for Ubuntu
« Reply #14 on: November 28, 2024, 03:57:56 pm »
Yes, after this specification you made, I worked, I continued with the CMAKE command, from the Chromium_dir/Llvm -Protject/LLVM_BUILD $ path, I performed: Cmake -Dcmake_build_type = release -Dllvm_Targets_to_build = "PowerPC" -G "Unix Makefiles" .. /LLVM.
It initially gave me error on the CMAKE command as it told me that I had version 3.16 and he wanted at least 3.20. Hop proceeds to install version 3.20 after which the CMAKE command started. It seems that some things have not found them but I don't know if it is just things about other architectures or files that are needed for me ...

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python3: /usr/bin/python3.8 (found suitable version "3.8.10", minimum required is "3.8") found components: Interpreter
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sysexits.h
-- Looking for sysexits.h - found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Performing Test HAVE_BUILTIN_THREAD_POINTER
-- Performing Test HAVE_BUILTIN_THREAD_POINTER - Failed
-- Looking for mach/mach.h
-- Looking for mach/mach.h - not found
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Looking for linux/magic.h
-- Looking for linux/magic.h - found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_rwlock_init in pthread
-- Looking for pthread_rwlock_init in pthread - found
-- Looking for pthread_mutex_lock in pthread
-- Looking for pthread_mutex_lock in pthread - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for pfm_initialize in pfm
-- Looking for pfm_initialize in pfm - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found ZLIB: /usr/lib/powerpc64le-linux-gnu/libz.so (found version "1.2.11")
-- Looking for compress2
-- Looking for compress2 - found
-- Found LibXml2: /usr/lib/powerpc64le-linux-gnu/libxml2.so (found version "2.9.10")
-- Looking for xmlReadMemory
-- Looking for xmlReadMemory - found
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include 
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Looking for __register_frame
-- Looking for __register_frame - found
-- Looking for __deregister_frame
-- Looking for __deregister_frame - found
-- Looking for __unw_add_dynamic_fde
-- Looking for __unw_add_dynamic_fde - not found
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for setrlimit
-- Looking for setrlimit - found
-- Looking for isatty
-- Looking for isatty - found
-- Looking for futimens
-- Looking for futimens - found
-- Looking for futimes
-- Looking for futimes - found
-- Looking for sigaltstack
-- Looking for sigaltstack - found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - found
-- Looking for mallinfo2
-- Looking for mallinfo2 - not found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - not found
-- Looking for getrlimit
-- Looking for getrlimit - found
-- Looking for posix_spawn
-- Looking for posix_spawn - found
-- Looking for pread
-- Looking for pread - found
-- Looking for sbrk
-- Looking for sbrk - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for strerror_s
-- Looking for strerror_s - not found
-- Looking for setenv
-- Looking for setenv - found
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Success
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Looking for pthread_getname_np
-- Looking for pthread_getname_np - found
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - found
-- Looking for pthread_get_name_np
-- Looking for pthread_get_name_np - not found
-- Looking for pthread_set_name_np
-- Looking for pthread_set_name_np - not found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for dladdr
-- Looking for dladdr - found
-- Looking for proc_pid_rusage
-- Looking for proc_pid_rusage - not found
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- LLVM host triple: powerpc64le-unknown-linux-gnu
-- Native target architecture is PowerPC
-- Threads enabled.
-- Doxygen disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Found Python module yaml
-- LLVM default target triple: powerpc64le-unknown-linux-gnu
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test C_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG
-- Performing Test C_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG
-- Performing Test CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG - Failed
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Failed
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Linker detection: unknown
-- Performing Test HAS_WERROR_GLOBAL_CTORS
-- Performing Test HAS_WERROR_GLOBAL_CTORS - Failed
-- Looking for __x86_64__
-- Looking for __x86_64__ - not found
-- Found Git: /usr/bin/git (found version "2.25.1")
-- Looking for logf128
-- Looking for logf128 - found
-- Targeting PowerPC
-- Registering ExampleIRTransforms as a pass plugin (static build: OFF)
-- Registering Bye as a pass plugin (static build: OFF)
-- Google Benchmark version: v0.0.0, normalized to 0.0.0
-- Looking for shm_open in rt
-- Looking for shm_open in rt - found
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success
-- Performing Test HAVE_CXX_FLAG_WOLD_STYLE_CAST
-- Performing Test HAVE_CXX_FLAG_WOLD_STYLE_CAST - Success
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS
-- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS - Success
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
-- Compiling and running to test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Compiling and running to test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- success
-- Compiling and running to test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Compiling and running to test HAVE_PTHREAD_AFFINITY
-- Performing Test HAVE_PTHREAD_AFFINITY -- failed to compile
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mauryg5/CHROMIUM_DIR/llvm-project/llvm_build
mauryg5@mauriziop9:~/CHROMIUM_DIR/llvm-project/llvm_build$

However I would like to try to give the make -up command for the compilation, but I will do it tomorrow or after tomorrow that it is now late from me and I know it takes a long time to fill in Chromium if it should leave so I wait ... if you think there is some Anomaly, however, from this output let me know and thanks for your help, having reached here already is a great thing for me ...