Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834099 - app-office/libreoffice-7.2.5.2-r1: bridges/source/cpp_uno/gcc3_linux_x86-64/callvirtualmethod.cxx:109: Error: junk `80' after expression
Summary: app-office/libreoffice-7.2.5.2-r1: bridges/source/cpp_uno/gcc3_linux_x86-64/c...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2022-02-26 17:39 UTC by Erik
Modified: 2025-02-23 01:40 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.xz,95.17 KB, application/octet-stream)
2022-02-26 17:46 UTC, Erik
Details
build.log for version 7.2.6.1 (build.log.xz,94.75 KB, application/octet-stream)
2022-02-27 01:40 UTC, Erik
Details
emerge --info (emerge.info,7.08 KB, text/plain)
2022-02-27 01:41 UTC, Erik
Details
emerge --info with swap (emerge.info,7.08 KB, text/plain)
2022-02-28 01:35 UTC, Erik
Details
build.log for version 7.3.1.1-r1 with swap (build.log.xz,94.23 KB, application/octet-stream)
2022-02-28 01:38 UTC, Erik
Details
build.log for version 7.2.5.2-r1 with all USE flags disabled and only -mstackrealign in CFLAGS (build.log.lzma,92.90 KB, application/octet-stream)
2022-03-21 23:10 UTC, Erik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik 2022-02-26 17:39:33 UTC
emerge fails

Reproducible: Always
Comment 1 Erik 2022-02-26 17:46:56 UTC
Created attachment 765894 [details]
build.log
Comment 2 Andreas Sturmlechner gentoo-dev 2022-02-26 17:50:26 UTC
Your system ran out of resources.

Missing emerge --info.
Comment 3 Erik 2022-02-27 01:40:03 UTC
Created attachment 765900 [details]
build.log for version 7.2.6.1
Comment 4 Erik 2022-02-27 01:41:36 UTC
Created attachment 765901 [details]
emerge --info
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-27 01:47:30 UTC
(In reply to Erik from comment #4)
> Created attachment 765901 [details]
> emerge --info

When is this from?

>KiB Mem:     8152896 total,    706776 free
>KiB Swap:          0 total,         0 free

That's not much free. Anyway:
>/var/tmp/portage/app-office/libreoffice-7.2.6.1/work/libreoffice-7.2.6.1/bridges/source/cpp_uno/gcc3_linux_x86-64/callvirtualmethod.cxx: Assembler messages:
>/var/tmp/portage/app-office/libreoffice-7.2.6.1/work/libreoffice-7.2.6.1/bridges/source/cpp_uno/gcc3_linux_x86-64/callvirtualmethod.cxx:109: Error: junk `80' after expression

This usually means the compiler died. Can you check dmesg too for OOM messages?
Comment 6 Andreas Sturmlechner gentoo-dev 2022-02-27 09:30:18 UTC
Add swap.
Comment 7 Erik 2022-02-28 01:35:08 UTC
Created attachment 765936 [details]
emerge --info with swap
Comment 8 Erik 2022-02-28 01:38:25 UTC
Created attachment 765937 [details]
build.log for version 7.3.1.1-r1 with swap
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-07 06:03:07 UTC
(In reply to Erik from comment #8)
> Created attachment 765937 [details]
> build.log for version 7.3.1.1-r1 with swap

- Was there anything in OOM like I mentioned?
- >Used CFLAGS:    -fno-stack-protector -mstackrealign -march=native -pipe -O2

Please try without -fno-stack-protector and possibly without -mstackrealign.

- If you go into /var/tmp/portage/app-office/libreoffice-7.3.1.1-r1/work/libreoffice-7.3.1.1 and run the last command before failure manually, does it work?

- You could also try new GCC just stabled.

But this is pretty odd and it still seems a lot like OOM although I accept that's odd given the swap and -j1. The compiler shouldn't ever really die like that.

The last person who filed a bug similar to this ended up having bad RAM. Can you do a memtest?
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-07 06:17:04 UTC
(In reply to Sam James from comment #9)
> (In reply to Erik from comment #8)
> > Created attachment 765937 [details]
> > build.log for version 7.3.1.1-r1 with swap
> 
> - Was there anything in OOM like I mentioned?
> - >Used CFLAGS:    -fno-stack-protector -mstackrealign -march=native -pipe
> -O2
> 
> Please try without -fno-stack-protector and possibly without -mstackrealign.
> 
> - If you go into
> /var/tmp/portage/app-office/libreoffice-7.3.1.1-r1/work/libreoffice-7.3.1.1
> and run the last command before failure manually, does it work?
> 
> - You could also try new GCC just stabled.
> 
> But this is pretty odd and it still seems a lot like OOM although I accept
> that's odd given the swap and -j1. The compiler shouldn't ever really die
> like that.
> 
> The last person who filed a bug similar to this ended up having bad RAM. Can
> you do a memtest?

basically: nothing about this yet makes sense, and the compiler tends to only die in weird circumstances. It shouldn't crash (ICE) even with bad code, but in your case, it's just.. giving up partway through when calling as(?).

That usually happens because some process which got spawned was killed for some reason. Further, usually that reason is OOM. It could be something else - so check dmesg.

Other than that, it could be memory corruption, hence suggestion to memtest.

But there's no concrete reason that's obvious as to why this would be happening nor is it seemingly generic to LO (it's not something everyone is hitting), so we need to do some work to narrow down what's interesting about your system and rule stuff out. Throwing out e.g. odd flags is part of that.
Comment 11 Erik 2022-03-19 23:56:43 UTC
After disabling all use flags and compiler flags, the package was installed!

I will try to add back flags and report which causes the error.
Comment 12 Erik 2022-03-21 23:10:55 UTC
Created attachment 767538 [details]
build.log for version 7.2.5.2-r1 with all USE flags disabled and only -mstackrealign in CFLAGS
Comment 13 Erik 2022-03-21 23:24:59 UTC
Executing the last command gives the same error (but with localized error message). It can be executed from anywhere because it includes a cd command:
S=/var/tmp/portage/app-office/libreoffice-7.2.5.2-r1/work/libreoffice-7.2.5.2 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/bridges/source/cpp_uno/gcc3_linux_x86-64/ $W/Dep/CxxObject/bridges/source/cpp_uno/gcc3_linux_x86-64/ && cd /var/tmp/portage/app-office/libreoffice-7.2.5.2-r1/work/libreoffice-7.2.5.2 &&       x86_64-pc-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT  -DHAVE_POSIX_FALLOCATE   -fvisibility=hidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros  -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -fstack-protector-strong -fdiagnostics-color=always  -Wdeprecated-copy-dtor -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -Wno-cast-function-type -fvisibility-inlines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=c++17 -pthread  -mstackrealign  -O0 -fstrict-aliasing -fstrict-overflow -fnon-call-exceptions  -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -fno-omit-frame-pointer -fno-strict-aliasing -fno-lto -mno-avx    -DLIBO_INTERNAL_ONLY  -c $S/bridges/source/cpp_uno/gcc3_linux_x86-64/callvirtualmethod.cxx -o $W/CxxObject/bridges/source/cpp_uno/gcc3_linux_x86-64/callvirtualmethod.o  -I$S/bridges/inc -I$S/include   -I$S/config_host  -I$W/UnoApiHeadersTarget/udkapi/comprehensive

Removing -mstackrealign from that command makes it finish without error.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-23 01:40:51 UTC
Can you still reproduce this?