Trying to compile chromium browser for armv5

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Re: Trying to compile chromium browser for armv5

Postby moonman » Fri Jan 18, 2013 2:52 am

Well, it seems it's doing (hopefully final) linking now. Swap usage is at 800MB, i hope it doesn't fail because of that. Firefox 17 failed on linking with 2.5 GB swap usage.

$this->bbcode_second_pass_code('', '.
.
.
COPY out/Release/chrome-wrapper
COPY out/Release/xdg-mime
COPY out/Release/xdg-settings
COPY out/Release/product_logo_48.png
CXX(target) out/Release/obj.target/chrome/chrome/app/chrome_exe_main_gtk.o
CXX(target) out/Release/obj.target/chrome/chrome/app/chrome_main.o
CXX(target) out/Release/obj.target/chrome/chrome/app/chrome_main_delegate.o
LINK(target) out/Release/chrome
')

$this->bbcode_second_pass_code('', 'Tasks: 73 total, 2 running, 71 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.3 us, 3.0 sy, 0.0 ni, 0.0 id, 96.7 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 252800 total, 187920 used, 64880 free, 716 buffers
KiB Swap: 1048572 total, 809928 used, 238644 free, 7636 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
36 root 20 0 0 0 0 R 1.0 0.0 15:42.96 usb-storage
10307 root 20 0 702m 101m 236 D 1.0 41.2 6:17.39 ld
3 root 20 0 0 0 0 S 0.3 0.0 6:46.96 ksoftirqd/0
')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Trying to compile chromium browser for armv5

Postby ebbix » Fri Jan 18, 2013 6:42 pm

A little bit off-topic:
Isn't it weird that browsers nowadays are very heavy monsters? :lol:
I remember reading a news quite a while ago that it was impossible to compile Firefox on 32-bit Windows due to too high memory usage while linking. But I think this was a version number smaller than 8. Since I don't know much about Firefox code internals (and their horrible versioning scheme makes it impossible to guess if this has significantly improved) and Linux internals, I don't know whether you're facing a similar problem when building Firefox on ARM here. But I could imagine that Firefox is simply too big to compile on a 32 bit system and you had to take another machine running 64-bit Arch and cross-compile the whole thing.
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm

Re: Trying to compile chromium browser for armv5

Postby moonman » Fri Jan 18, 2013 7:52 pm

It was probably that. Linker failed not because of an error linking, but because it ran out of memory.
Chromium failed too though:
$this->bbcode_second_pass_code('', 'LINK(target) out/Release/chrome
out/Release/obj.target/third_party/zlib/../../minizip/third_party/zlib/contrib/minizip/unzip.o: In function `unzReadCurrentFile':
unzip.c:(.text.unzReadCurrentFile+0x184): undefined reference to `MOZ_Z_inflate'
unzip.c:(.text.unzReadCurrentFile+0x1d0): undefined reference to `MOZ_Z_crc32'
unzip.c:(.text.unzReadCurrentFile+0x270): undefined reference to `MOZ_Z_crc32'
out/Release/obj.target/third_party/zlib/../../minizip/third_party/zlib/contrib/minizip/unzip.o: In function `unzCloseCurrentFile':
unzip.c:(.text.unzCloseCurrentFile+0x90): undefined reference to `MOZ_Z_inflateEnd'
out/Release/obj.target/third_party/zlib/../../minizip/third_party/zlib/contrib/minizip/unzip.o: In function `unzOpenCurrentFile3':
unzip.c:(.text.unzOpenCurrentFile3+0x4ac): undefined reference to `MOZ_Z_inflateInit2_'
out/Release/obj.target/third_party/zlib/../../minizip/third_party/zlib/contrib/minizip/zip.o: In function `zipWriteInFileInZip':
zip.c:(.text.zipWriteInFileInZip+0x2c): undefined reference to `MOZ_Z_crc32'
zip.c:(.text.zipWriteInFileInZip+0x13c): undefined reference to `MOZ_Z_deflate'
out/Release/obj.target/third_party/zlib/../../minizip/third_party/zlib/contrib/minizip/zip.o: In function `zipCloseFileInZipRaw64':
zip.c:(.text.zipCloseFileInZipRaw64+0x2ec): undefined reference to `MOZ_Z_deflate'
zip.c:(.text.zipCloseFileInZipRaw64+0x4a8): undefined reference to `MOZ_Z_deflateEnd'
out/Release/obj.target/third_party/zlib/../../minizip/third_party/zlib/contrib/minizip/zip.o: In function `zipOpenNewFileInZip4_64':
zip.c:(.text.zipOpenNewFileInZip4_64+0x4d4): undefined reference to `MOZ_Z_get_crc_table'
zip.c:(.text.zipOpenNewFileInZip4_64+0x79c): undefined reference to `MOZ_Z_deflateInit2_'
collect2: error: ld returned 1 exit status
distcc[10304] ERROR: compile (null) on localhost failed
make: *** [out/Release/chrome] Error 1
')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Trying to compile chromium browser for armv5

Postby kmihelich » Fri Jan 18, 2013 7:57 pm

That's some of the same errors I've seen on my builds.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Trying to compile chromium browser for armv5

Postby moonman » Fri Jan 18, 2013 8:56 pm

Did you ever figure it out? I will try to build with the minizip from aur and will add "--no-keep-memory" to LDFLAGS for experimenting. Maybe it will help with swap usage.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Trying to compile chromium browser for armv5

Postby kmihelich » Fri Jan 18, 2013 9:51 pm

I never looked much into it, I put chromium on the back burner for a while because I have more important things here to take care of at the moment.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Trying to compile chromium browser for armv5

Postby moonman » Fri Jan 18, 2013 10:32 pm

Fair enough
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Trying to compile chromium browser for armv5

Postby moonman » Sat Jan 19, 2013 11:18 pm

I got it built, but it wont launch. Some files are missing. I'll take a look when i get home. Linking took over 12 hours.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Trying to compile chromium browser for armv5

Postby moonman » Sun Jan 20, 2013 9:13 pm

I don't know how to fix this one:

$this->bbcode_second_pass_code('', 'chromium
[1:1:0120/141206:ERROR:data_pack.cc(152)] Entry #8 in data pack points off end of file. Was the file corrupted?
[1:1:0120/141206:ERROR:resource_bundle.cc(577)] Failed to load /usr/lib/chromium/chrome.pak
Some features may not be available.
[1:1:0120/141206:ERROR:data_pack.cc(152)] Entry #0 in data pack points off end of file. Was the file corrupted?
[1:1:0120/141206:ERROR:resource_bundle.cc(577)] Failed to load /usr/lib/chromium/chrome_100_percent.pak
Some features may not be available.
[1:1:0120/141206:ERROR:data_pack.cc(152)] Entry #0 in data pack points off end of file. Was the file corrupted?
[1:1:0120/141206:ERROR:resource_bundle.cc(312)] failed to load locale.pak
[1:1:0120/141206:FATAL:chrome_main_delegate.cc(626)] Check failed: !loaded_locale.empty(). Locale could not be found for
')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Trying to compile chromium browser for armv5

Postby moonman » Mon Jan 21, 2013 6:39 am

I don't have anymore time to work on this, too much stuff at uni to work on.

If somebody wants to continue:

complete tarball of the whole src folder with everything compiled (if it's only packaging problem, no need to recompile)
src.tar.xz

PKGBUILD + all the patches:
chromium.tar.xz

Meanwhile use epiphany
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Previous

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests