Article 5NFZZ Problem compiling Chromium-ungoogled on a raspberry pi 4 with SARPI (SlackWare ARM-Current RPI)

Problem compiling Chromium-ungoogled on a raspberry pi 4 with SARPI (SlackWare ARM-Current RPI)

by
Minime_2003
from LinuxQuestions.org on (#5NFZZ)
Hello guys n' girls and slackers.

I am trying to compile Chromium-ungoogled on my raspberry pi 4 installed with SARPI (Slackware ARM -Current)

uname -m shows:
Quote:
armv7l
lscpu shows:
Quote:
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Vendor ID: ARM
Model: 3
Model name: Cortex-A72
Stepping: r0p3
CPU max MHz: 1500.0000
CPU min MHz: 600.0000
BogoMIPS: 198.00
Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc3
Do not know if its relevent but i am using raspberry pis kernel
as i had to install to get the correct driver for the graphics card and sound card.
Quote:
Linux mediarpi4.not4u.lan 5.10.52-v7l+ #1441 SMP Tue Aug 3 18:11:56 BST 2021 armv7l BCM2711 GNU/Linux
Tried using Alien BOBs chromium-ungoogled slackbuild.
Managed to edit/change the script so it starts to compile google's clang.
But here is where i get stuck as it complains that there are no compatible triple.

Quote:
error: unable to create target: 'No available targets are compatible with triple "armv7-unknown-linux-gnueabihf"'
At this point i think i have tried everything possible.
Weird thing is that the clang Driver never seems to be able to detect the correct triple:

Starting the compile of clang it shows:
Quote:
-- Performing Test HAS_MAYBE_UNINITIALIZED
-- Performing Test HAS_MAYBE_UNINITIALIZED - Success
-- Native target ARM is not selected; lli will not JIT code
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings enabled.
-- Ninja version: 1.10.2
-- 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
-- Could NOT find Python module yaml
-- LLVM host triple: armv7l-unknown-linux-gnueabihf
-- LLVM default target triple: armv7l-unknown-linux-gnueabihf
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
Repatched AlienBOB's "clang.toolchains.i586.triple.diff"
Quote:
--- clang/lib/Driver/ToolChains/Gnu.cpp.orig 2021-08-08 21:50:13.230299026 +0200
+++ clang/lib/Driver/ToolChains/Gnu.cpp 2021-08-18 01:45:29.292312040 +0200
@@ -2085,10 +2085,15 @@
static const char *const ARMLibDirs[] = {"/lib"};
static const char *const ARMTriples[] = {"arm-linux-gnueabi",
"arm-linux-androideabi"};
- static const char *const ARMHFTriples[] = {"arm-linux-gnueabihf",
- "armv7hl-redhat-linux-gnueabi",
- "armv6hl-suse-linux-gnueabi",
- "armv7hl-suse-linux-gnueabi"};
+ static const char *const ARMHFTriples[] = {
+ "arm-linux-gnueabihf", "arm-unknown-linux-gnueabihf", "arm-slackware-linux-gnueabihf",
+ "armv6-linux-gnueabihf", "armv6-unknown-linux-gnueabihf", "armv6-slackware-linux-gnueabihf",
+ "armv6l-linux-gnueabihf", "armv6l-unknown-linux-gnueabihf", "armv6l-slackware-linux-gnueabihf",
+ "armv6hl-linux-gnueabihf", "armv6hl-unknown-linux-gnueabihf", "armv6hl-slackware-linux-gnueabihf",
+ "armv7-linux-gnueabihf", "armv7-unknown-linux-gnueabihf", "armv7-slackware-linux-gnueabihf",
+ "armv7l-linux-gnueabihf", "armv7l-unknown-linux-gnueabihf", "armv7l-slackware-linux-gnueabihf",
+ "armv7hl-linux-gnueabihf", "armv7hl-unknown-linux-gnueabihf", "armv7hl-slackware-linux-gnueabihf",
+ "armv7hl-redhat-linux-gnueabi", "armv6hl-suse-linux-gnueabi", "armv7hl-suse-linux-gnueabi"};
static const char *const ARMebLibDirs[] = {"/lib"};
static const char *const ARMebTriples[] = {"armeb-linux-gnueabi",
"armeb-linux-androideabi"};
@@ -2111,6 +2116,7 @@
static const char *const X32LibDirs[] = {"/libx32", "/lib"};
static const char *const X86LibDirs[] = {"/lib32", "/lib"};
static const char *const X86Triples[] = {
+ "i486-slackware-linux", "i586-slackware-linux", "i686-slackware-linux",
"i586-linux-gnu", "i686-linux-gnu",
"i686-pc-linux-gnu", "i386-redhat-linux6E",
"i686-redhat-linux", "i386-redhat-linux",
Hoping this would solve the clang Driver detection of the target, but even if i change the target in the script the error is the same anyway?

The diffrent targets i have tried in the build script are:
Quote:
arm-slackware-linux-gnueabihf ;;
armv7-slackware-linux-gnueabihf ;;
armv7l-slackware-linux-gnueabihf ;;
armv7hl-slackware-linux-gnueabihf ;;
Path to gcc information shows:
Quote:
ignoring nonexistent directory "/usr/lib/gcc/arm-slackware-linux-gnueabihf/10.3.0/../../../../arm-slackware-linux-gnueabihf/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/arm-slackware-linux-gnueabihf/10.3.0/include
/usr/local/include
/usr/lib/gcc/arm-slackware-linux-gnueabihf/10.3.0/include-fixed
/usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"
Please i have run out of idears and need some help and hoping some in here has been dealing with this and maybe have a solution to this issue?

Best regards:
Minimelatest?d=yIl2AUoC8zA latest?i=Z3DmWPmdavk:Q4ed5Y7xVy4:F7zBnMy latest?i=Z3DmWPmdavk:Q4ed5Y7xVy4:V_sGLiP latest?d=qj6IDK7rITs latest?i=Z3DmWPmdavk:Q4ed5Y7xVy4:gIN9vFwZ3DmWPmdavk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments