Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Libreoffice 4.4.1.2 build error (arm)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
shimitar
Guru
Guru


Joined: 23 Nov 2003
Posts: 320
Location: Italy, Torino

PostPosted: Sat Mar 28, 2015 9:19 pm    Post subject: [SOLVED] Libreoffice 4.4.1.2 build error (arm) Reply with quote

I am trying to update libreoffice to 4.4.1.2 on my Asus TF700T which is an ARM Android tablet which i boot natvely with Gentoo.

I get the following error:

Code:

[build CXX] sfx2/source/doc/oleprops.cxx
{standard input}: Assembler messages:
{standard input}:15819: Warning: end of file not at end of a line; newline inserted
{standard input}: Error: .size expression for _ZN14SfxObjectShell10ImportFromER9SfxMediumRKN3com3sun4star3uno9ReferenceINS4_4text10XTextRangeEEE does not evaluate to a constant
armv7a-hardfloat-linux-gnueabi-g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,


The tablet has 1gb of ram and i have enabled 1gb of swap on the uSD (i don't use swap normally because it does kill the tablet performances, but to emerge big stuff like firefox it's mandatory).


My gcc is:

Code:
tf700t / # gcc -v
Using built-in specs.
COLLECT_GCC=/usr/armv7a-hardfloat-linux-gnueabi/gcc-bin/4.8.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3/lto-wrapper
Target: armv7a-hardfloat-linux-gnueabi
Configured with: /var/tmp/portage/sys-devel/gcc-4.8.3/work/gcc-4.8.3/configure --host=armv7a-hardfloat-linux-gnueabi --build=armv7a-hardfloat-linux-gnueabi --prefix=/usr --bindir=/usr/armv7a-hardfloat-linux-gnueabi/gcc-bin/4.8.3 --includedir=/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3/include --datadir=/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.8.3 --mandir=/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.8.3/man --infodir=/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.8.3/info --with-gxx-include-dir=/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3/include/g++-v4 --with-python-dir=/share/gcc-data/armv7a-hardfloat-linux-gnueabi/4.8.3/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.3 p1.1, pie-0.5.9' --enable-libstdcxx-time --enable-linker-build-id --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --with-float=hard --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloog --disable-libsanitizer
Thread model: posix
gcc version 4.8.3 (Gentoo 4.8.3 p1.1, pie-0.5.9)


Emerge --info:
Code:
tf700t / # emerge --info
Portage 2.2.14 (python 2.7.9-final-0, default/linux/arm/13.0/armv7a, gcc-4.8.3, glibc-2.19-r1, 3.1.10-that10-cogano6 armv7l)
=================================================================
System uname: Linux-3.1.10-that10-cogano6-armv7l-ARMv7_Processor_rev_9_-v7l-with-gentoo-2.2
KiB Mem:      991176 total,     43744 free
KiB Swap:    1048572 total,   1001428 free
Timestamp of tree: Sat, 07 Mar 2015 17:30:01 +0000
ld ld di GNU (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p53
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1
dev-util/ccache:          3.1.9-r4
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X aacs acl alsa arm armv5te armv6 armv6t2 berkdb bindist bluetooth bzip2 cli consolekit cracklib crypt cups cxx dbus dri fortran gdbm gudev iconv ipv6 jpeg jpg libav minizip modules mp3 ncurses neon networkmanager nls nptl opengl openmp pam pcre pdf png policykit qt5 readline samba session sqlite ssl tcpd tiff truetype udev unicode v4l zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


And i currently have libreoffice 4.3.5.2 installed and compiled on the tablet...
_________________
Willy Gardiol
willy@gardiol.org


Last edited by shimitar on Thu Apr 09, 2015 2:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Tue Mar 31, 2015 8:42 am    Post subject: Reply with quote

Code:
 armv7a-hardfloat-linux-gnueabi-g++: internal compiler error: Killed (program cc1plus)
There may be multiple issues here. Can you check dmesg for signs of the OOM killer after that happens?
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Tue Mar 31, 2015 12:14 pm    Post subject: Reply with quote

I have installed libreoffice-4.4.1.2 on a Raspberry Pi 2, which also uses gcc-4.8.3 with armv7a hardfloat and has 1GB RAM.

My setup has 1.5 GiB swap on sd card, but mainly uses four 384 MiB ZRAM swap devices (one for each core, set up using zram-init from mv overlay), so my total swap is 3GiB.

I do not know, however, whether the swap on sd card was used at all while building libreoffice. My laptop helped a lot using distcc. ;-)
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Tue Mar 31, 2015 2:45 pm    Post subject: Reply with quote

The message is precisely what you would expect if the compiler was terminated by the OOM killer while feeding assembly code to the assembler.
Back to top
View user's profile Send private message
shimitar
Guru
Guru


Joined: 23 Nov 2003
Posts: 320
Location: Italy, Torino

PostPosted: Wed Apr 01, 2015 9:02 pm    Post subject: Reply with quote

I am trying again setting up 4gb of swap space in addition to the 1gb of RAM ,let's see!

It will just take a few days to compile.

Unfortunately dmesg is useless for me because its always swamped by kernel messages...
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Thu Apr 02, 2015 8:56 am    Post subject: Reply with quote

shimitar wrote:
I am trying again setting up 4gb of swap space in addition to the 1gb of RAM ,let's see!

It will just take a few days to compile.

Unfortunately dmesg is useless for me because its always swamped by kernel messages...
I really think you should try to give ZRAM swap devices a chance. The compression ratio is around 1:3, so my 1.5 GB ZRAM swap use ~512MB real RAM. You'll notice the difference.

However, maybe getting rid of whatever floods your dmesg first might be a better idea. What's happening there?
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
shimitar
Guru
Guru


Joined: 23 Nov 2003
Posts: 320
Location: Italy, Torino

PostPosted: Thu Apr 02, 2015 9:52 am    Post subject: Reply with quote

The dmesg flood is due to the proprietary Asus/NVIDIA drivers which comes with the kernel (which is a 3.1 kernel). The kernel sources are very undocumented on the proprietary parts and even recompoiling i cannot get rid of the constant flood of things like "core 1 disabled / core 2 standby / screen dimmed to xxx / WiFi signal level changed from XX to YY / and tons of such crap).

ZRAM i don't know if it's an option since i am on the 3.1 kernel and i am stuck with it. Trying yo adapt the proprietary stuff on a 3.10 kernel was a total failure for me (maybe a better kernel dev could manage).

The kernel sources are available to anybody to download and recompile, for 3.1, but getting it to work with any kernel config different from the one provided by Asus for Android is almost impossible. Consider that anything wrong and the screen stays black and there is no console output of any kind unless the proprietary framebuffer driver loads and the kernel correctly boots.

Would ZRAM work on a 3.1 kernel?
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
shimitar
Guru
Guru


Joined: 23 Nov 2003
Posts: 320
Location: Italy, Torino

PostPosted: Thu Apr 09, 2015 2:58 pm    Post subject: Reply with quote

Ok, solved! Upping my swap to 4GB fixed it. Honestly, the ebuild should know this and check available ram/swap...

It took almost 4 days of full-time compilation !!! will definitely mask any newer release for the time being :)
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Fri Apr 10, 2015 7:46 am    Post subject: Reply with quote

shimitar wrote:
Ok, solved! Upping my swap to 4GB fixed it. Honestly, the ebuild should know this and check available ram/swap...

It took almost 4 days of full-time compilation !!! will definitely mask any newer release for the time being :)
Congratz!

And you are right. ZRAM is not an option with kernel 3.1. It was introduced in 3.2 and is perfectly reliable since 3.15. I've been using it since 3.6 I guess.

However, if you can access /proc/config.gz, you could use that as a base to build your own kernel using "make oldconfig" ?
... well ... probably not. Like on the Raspberry PI I guess your system needs proprietary kernel patches, right?
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
shimitar
Guru
Guru


Joined: 23 Nov 2003
Posts: 320
Location: Italy, Torino

PostPosted: Fri Apr 10, 2015 7:55 am    Post subject: Reply with quote

Yes, its a truckload of prorietary kernel patches. I tried with no luck to even adapt another 3.10 kernel from Asus for a newer model of the same tablet line. Even if most of the patches are still there, they simply do not compile anymore with 3.10 kernel sources.

It's a shame, since it's a great piece of hardware... and with no swap and a fast uSD card it's amazingly usable, at par with any small sized laptop based on intel processors, or even more since the battery life is incredible (over 8 hours of 4-core compilation battery-only!) and it has touch screen, multi-touch trackpad, full sized keyboard (no keypad) and a great resolution (1920x1080).

The actual kernel patches are not available, just a full kernel source three with the patches already applied. I guess it would be a massive work to try to extract those patches and move them to a newer kernel and try to adapt and compile...

I would like to try something to move to a newer kernel, but i am bit out of practical ideas, any suggestion or help would be great!
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum