Unable to compile gcc-11.3

| libbackend.a(insn-emit.o)(.debug_info+0x1a2c5): error: undefined reference to '.LASF8010'
| libbackend.a(insn-emit.o)(.debug_info+0x1a30b): error: undefined reference to '.LASF8020'
| libbackend.a(insn-emit.o)(.debug_info+0x1a2cc): error: undefined reference to '.LASF8011'
| libbackend.a(insn-emit.o)(.debug_info+0x1a312): error: undefined reference to '.LASF8021'
| libbackend.a(insn-emit.o)(.debug_info+0x1a2d3): error: undefined reference to '.LASF8012'
| libbackend.a(insn-emit.o)(.debug_info+0x1a319): error: undefined reference to '.LASF8022'
| libbackend.a(insn-emit.o)(.debug_info+0x1a2da): error: undefined reference to '.LASF8013'
| libbackend.a(insn-emit.o)(.debug_info+0x1a320): error: undefined reference to '.LASF8023'
| libbackend.a(insn-emit.o)(.debug_info+0x1a2e1): error: undefined reference to '.LASF8014'
| libbackend.a(insn-emit.o)(.debug_info+0x1a327): error: undefined reference to '.LASF8024'
| libbackend.a(insn-emit.o)(.debug_info+0x1a2e8): error: undefined reference to '.LASF8015'
| libbackend.a(insn-emit.o)(.debug_info+0x1a32e): error: undefined reference to '.LASF8025'
| libbackend.a(insn-emit.o)(.debug_info+0x1a2ef): error: undefined reference to '.LASF8016'
| libbackend.a(insn-emit.o)(.debug_info+0x1a335): error: undefined reference to '.LASF8026'
| libbackend.a(insn-emit.o)(.debug_info+0x1a2f6): error: undefined reference to '.LASF8017'
| libbackend.a(insn-emit.o)(.debug_info+0x1a33c): error: undefined reference to '.LASF8027'
| libbackend.a(insn-emit.o)(.debug_info+0x1a2fd): error: undefined reference to '.LASF8018'
| libbackend.a(insn-emit.o)(.debug_info+0x1a343): error: undefined reference to '.L'
| libbackend.a(insn-emit.o)(.debug_info+0x1a304): error: undefined reference to '.LASF8019'
| libbackend.a(insn-emit.o)(.debug_info+0x1a30b): error: undefined reference to '.LASF8020'
| libbackend.a(insn-emit.o)(.debug_info+0x1a312): error: undefined reference to '.LASF8021'
| libbackend.a(insn-emit.o)(.debug_info+0x1a319): error: undefined reference to '.LASF8022'
| libbackend.a(insn-emit.o)(.debug_info+0x1a320): error: undefined reference to '.LASF8023'
| libbackend.a(insn-emit.o)(.debug_info+0x1a327): error: undefined reference to '.LASF8024'
| libbackend.a(insn-emit.o)(.debug_info+0x1a32e): error: undefined reference to '.LASF8025'
| libbackend.a(insn-emit.o)(.debug_info+0x1a335): error: undefined reference to '.LASF8026'
| libbackend.a(insn-emit.o)(.debug_info+0x1a33c): error: undefined reference to '.LASF8027'
| libbackend.a(insn-emit.o)(.debug_info+0x1a343): error: undefined reference to '.L'
| collect2: error: ld returned 1 exit status
| make[1]: *** [../../../../../../work-shared/gcc-11.3.0-r0/gcc-11.3.0/gcc/cp/Make-lang.in:136: cc1plus] Error 1
| collect2: error: ld returned 1 exit status
| make[1]: *** [../../../../../../work-shared/gcc-11.3.0-r0/gcc-11.3.0/gcc/c/Make-lang.in:87: cc1] Error 1
| make[1]: Leaving directory '/mnt/4630b78a-c352-4243-8663-99684a2cf522/build-webos/BUILD/work/raspberrypi4_64-webos-linux/gcc/11.3.0-r0/build/gcc'
| make: *** [Makefile:4456: all-gcc] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/mnt/4630b78a-c352-4243-8663-99684a2cf522/build-webos/oe-core/meta/recipes-devtools/gcc/gcc_11.3.bb:do_compile) failed with exit code '1'

Ive made it a good way through building WebOS OSE for the raspberry pi 4 but I cant seem to compile gcc, I also cannot find a log relating to its error, only the console output above.

Ive tried different mcf settings, just building gcc on it's own as a component and it still fails to build. Can anyone provide some guidence on what else I can try to fix this

Hi @Nova1545, welcome to the forum!

Did you mean that you failed to build the webOS OSE platform? If so, could you give the whole steps you'd tried (the commands you entered at your terminal)?

Commands:

  1. Clone the build-webos repo
  2. sudo scripts/prerequisites.sh
  3. ./mcf -p 18 -b 18 raspberrypi4-64
  4. source oe-init-build-env
  5. bitbake webos-image

Yes I failed to build the webOS OSE platform. The issue seems to be that when running "bitbake webos-image", it fails to compile gcc-11.3.0-r0 and will not let me continue the rest of the process.
The error in the console is as follows (Same as the first post in the chain)

| libbackend.a(insn-emit.o)(.debug_info+0x1a335): error: undefined reference to '.LASF8026'
| libbackend.a(insn-emit.o)(.debug_info+0x1a33c): error: undefined reference to '.LASF8027'
| libbackend.a(insn-emit.o)(.debug_info+0x1a343): error: undefined reference to '.L'

Could you try the new building guide?

An extra step (git checkout to the latest tag) is added before the mcf command.
For now, please checkout to v2.19.1 tag.

See also the news for the webOS OSE 2.19.1 release.

I will try the new guide

I checked out into the branch specified and still recieived the same error as before:
Command: "git checkout tags/v2.19.1 -b build"

Could you give me your Ubuntu version (if 18.04, please give the GCC version, too) and storage size?

I'll report this error to the dev. team. I'll let you know the answer as soon as I get it.

I am using Ubuntu 20.04.4 LTS and the drive is 500Gb

Thanks!

Our team will check the issue!

After attempting again (Following the instructions you gave me above), I was able to build the image. I'm not sure what the cause was, but I recloned (again) and also fresh installed the OS (Using a VM).

Thanks for taking the time to help me!

1 Like

VM sometimes causes unexpected errors.

Anyway, I'm glad to hear that you've solved the problem. :grinning: