LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Building chromium on -current (https://www.linuxquestions.org/questions/slackware-arm-108/building-chromium-on-current-4175637382/)

stormtracknole 08-29-2018 10:35 AM

Building chromium on -current
 
I know there have been few posts regarding chromium already, but I don't think I have seen anyone being successful. I'm trying to build this on an rpi3 using the latest -current using the same SlackBuild that AlienBob uses.

The build script seems to be hanging here:
Code:

...
-- Performing Test HAS_MAYBE_UNINITIALIZED
-- Performing Test HAS_MAYBE_UNINITIALIZED - Success
-- Native target architecture is ARM
-- Threads enabled.
-- Doxygen disabled.

It has not moved any further in over 5 hours. I see this process running at %100:
Code:

2094 root      20  0  827268  11912  8020 R 100.6  1.2 331:23.12 /usr/bin/go run /tmp/build/tmp-chromium/chromium-68.0.3440.84/third_party/llvm/bindings/go/conftest.go
So my question for those who have tried building from source, is this an expected behavior for this process to "hang" at this point?

Before building this, I attempted to use the deb package, but I'm getting undefined symbol problems.

Code:

/usr/lib/chromium/chromium: symbol lookup error: /usr/lib/chromium/chromium: undefined symbol: UCNV_TO_U_CALLBACK_SKIP_60
Anyhow, been meaning to give this a try (building Chromium) for a long time now. Thanks for any help you may provide!

drmozes 08-29-2018 10:48 AM

"go" is screwed. I don't know what's wrong with it.

Code:

removepkg gcc-go
and try again.

stormtracknole 08-29-2018 11:24 AM

Quote:

Originally Posted by drmozes (Post 5897514)
"go" is screwed. I don't know what's wrong with it.

Code:

removepkg gcc-go
and try again.

Thank you good doctor for the quick reply. I'll report back later. :)

stormtracknole 08-29-2018 07:20 PM

Blah! No go. The build got this far:
Code:

/tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/cxa_handlers.cpp:88:52: error: invalid operands of types ‘char [8]’ and ‘c
onst uint64_t’ {aka ‘const long long unsigned int’} to binary ‘operator&’                                                                                         
                (unwind_exception->exception_class & get_vendor_and_language) ==                                                                                 
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~                                                                                     
At global scope:                                                                                                                                                 
cc1plus: warning: unrecognized command line option ‘-Wno-c++11-narrowing’                                                                                         
[41/415] c++ -MMD -MF /tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/fallback_malloc.o.d  -I/tmp/build/tmp-chromium/chromium-68.0.3440.84/out_bootstrap/gen -I/tmp/build/tmp-chromium/chromium-68.0.3440.84 -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0 -D_FILE_OFFSET_BITS=64 -D__STDC_CON
STANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D_
_STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -DLIBCXXABI_SILENT_TERMINATE -D_LIBCXXABI_NO_EXCEPTIONS -std=c++14 -Wno-c++11-narrowing -nostdinc++ -isystem/tmp
/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++/trunk/include -isystem/tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/
libc++abi/trunk/include -c /tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/fallback_malloc.cpp -o /tmp/build/tmp-chromium/
chromium-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/fallback_malloc.o                                                                               
[42/415] c++ -MMD -MF /tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/private_typeinfo.o.d  -I/tmp/build/tmp-chromium/chro
mium-68.0.3440.84/out_bootstrap/gen -I/tmp/build/tmp-chromium/chromium-68.0.3440.84 -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0 -D_FILE_OFFSET_BITS=64 -D__STDC_CO
NSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D
__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -DLIBCXXABI_SILENT_TERMINATE -D_LIBCXXABI_NO_EXCEPTIONS -std=c++14 -Wno-c++11-narrowing -nostdinc++ -isystem/tm
p/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++/trunk/include -isystem/tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party
/libc++abi/trunk/include -c /tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/private_typeinfo.cpp -o /tmp/build/tmp-chromiu
m/chromium-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/private_typeinfo.o                                                                             
[43/415] c++ -MMD -MF /tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++/trunk/src/string.o.d  -I/tmp/build/tmp-chromium/chromium-68.0.344
0.84/out_bootstrap/gen -I/tmp/build/tmp-chromium/chromium-68.0.3440.84 -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS
 -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT
_MACROS -pthread -pipe -fno-exceptions -D_LIBCPP_NO_EXCEPTIONS -D_LIBCPP_BUILDING_LIBRARY -DLIBCXX_BUILDING_LIBCXXABI -std=c++14 -Wno-c++11-narrowing -nostdinc++ -
isystem/tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++/trunk/include -isystem/tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/t
hird_party/libc++abi/trunk/include -c /tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++/trunk/src/string.cpp -o /tmp/build/tmp-chromium/c
hromium-68.0.3440.84/buildtools/third_party/libc++/trunk/src/string.o                                                                                             
[44/415] c++ -MMD -MF /tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/cxa_demangle.o.d  -I/tmp/build/tmp-chromium/chromium
-68.0.3440.84/out_bootstrap/gen -I/tmp/build/tmp-chromium/chromium-68.0.3440.84 -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTA
NT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__ST
DC_FORMAT_MACROS -pthread -pipe -fno-exceptions -DLIBCXXABI_SILENT_TERMINATE -D_LIBCXXABI_NO_EXCEPTIONS -std=c++14 -Wno-c++11-narrowing -nostdinc++ -isystem/tmp/bu
ild/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++/trunk/include -isystem/tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/lib
c++abi/trunk/include -c /tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/cxa_demangle.cpp -o /tmp/build/tmp-chromium/chromi
um-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/cxa_demangle.o                                                                                         
[45/415] c++ -MMD -MF /tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++/trunk/src/locale.o.d  -I/tmp/build/tmp-chromium/chromium-68.0.344
0.84/out_bootstrap/gen -I/tmp/build/tmp-chromium/chromium-68.0.3440.84 -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS
 -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -DNO_TCMALLOC -D__STDC_FORMAT_MACROS -O2 -g0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT
_MACROS -pthread -pipe -fno-exceptions -D_LIBCPP_NO_EXCEPTIONS -D_LIBCPP_BUILDING_LIBRARY -DLIBCXX_BUILDING_LIBCXXABI -std=c++14 -Wno-c++11-narrowing -nostdinc++ -
isystem/tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++/trunk/include -isystem/tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/t
hird_party/libc++abi/trunk/include -c /tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++/trunk/src/locale.cpp -o /tmp/build/tmp-chromium/c
hromium-68.0.3440.84/buildtools/third_party/libc++/trunk/src/locale.o                                                                                             
ninja: build stopped: subcommand failed.                                                                                                                         
Command '['ninja', '-C', '/tmp/build/tmp-chromium/chromium-68.0.3440.84/out_bootstrap', '-w', 'dupbuild=err', '-v', 'gn']' returned non-zero exit status 1       
Building gn manually in a temporary directory for bootstrapping...                                                                                               
-- Generating ninja build files.                                                                                                                                 
./chromium.SlackBuild: line 875: out/Release/gn: No such file or directory                                                                                       
-- Compiling the lot.                                                                                                                                             
ninja: Entering directory `out/Release'                                                                                                                           
ninja: fatal: chdir to 'out/Release' - No such file or directory                                                                                                 
-- Manually installing everything.                                                                                                                               
install: cannot stat 'out/Release/chrome': No such file or directory                                                                                             
./chromium.SlackBuild FAILED at line 907


drmozes 08-31-2018 04:12 AM

Quote:

Originally Posted by stormtracknole (Post 5897749)
Blah! No go. The build got this far:
Code:

/tmp/build/tmp-chromium/chromium-68.0.3440.84/buildtools/third_party/libc++abi/trunk/src/cxa_handlers.cpp:88:52: error: invalid operands of types ‘char [8]’ and ‘c
onst uint64_t’ {aka ‘const long long unsigned int’} to binary ‘operator&’                                                                                         
                (unwind_exception->exception_class & get_vendor_and_language) ==                                                                                 
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~


You should go hunting for source patches for this.

stormtracknole 08-31-2018 08:11 PM

Quote:

Originally Posted by drmozes (Post 5898322)
You should go hunting for source patches for this.

I spent most of the day looking at some patches that are out there, but nothing was sticking out. So, I went back to the method of trying to get the raspbian binary to work. Instead of stripping the contents out of the *.deb package, I just copied the contents from raspbian machine that I have running. THAT worked! It had a different binary (/usr/bin/chromium-browser) vs /usr/bin/chromium. In the end though, Chromium might have felt a little snappier compared to Firefox, but not enough to go through an entire compilation process I think. I need to find the patches that the Raspbian folks used for comparison purposes at least.

Thank you for the pointers as always drmozes!


All times are GMT -5. The time now is 04:32 PM.