Intel-BMC/openbmc

meta-intel/meta-s2600wf does not build: "start.S undefined reference to main"

Opened this issue · 1 comments

I'm unsure where to raise this issue. It has remain unanswered on openbmc/openbmc (issue #3614), so figured I'd better try here.

/usr/src/debug/glibc/2.30-r0/git/csu/../sysdeps/arm/start.S:121: undefined reference to `main

Firstly, a leading question... what should my expectations be of the code in this repo? I'm wondering whether each of the meta-* configurations have been proven to build.

If I'm missing a step in my process, I'll be glad to learn what it may be. I believe I've closely followed the documented steps, though maybe I'm missing some subtlety.

Perhaps the build issue is related to the version of Linux or something else in my environment? Though, this build error seems unrelated to any environmental concerns.

matt@marathon:~/openbmc.repos/openbmc/build$ uname -a
Linux marathon 5.0.0-29-generic #31~18.04.1-Ubuntu SMP Thu Sep 12 18:29:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

This is the build error and I'm not sure what I need to do to correct it. FWIW, I see this same error when building with either repo: Intel-BMC/openbmc or openbmc/openbmc.

matt@marathon:~/openbmc.repos/openbmc/build$ echo $TEMPLATECONF 
meta-intel/meta-s2600wf/conf
| /home/matt/openbmc.repos/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-host/1.0+gitAUTOINC+99bf1c410f-r1/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi/../../libexec/arm-openbmc-linux-gnueabi/gcc/arm-openbmc-linux-gnueabi/9.2.0/ld: /home/matt/openbmc.repos/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-ipmi-host/1.0+gitAUTOINC+99bf1c410f-r1/recipe-sysroot/usr/lib/crt1.o: in function `_start':
| /usr/src/debug/glibc/2.30-r0/git/csu/../sysdeps/arm/start.S:121: undefined reference to `main'
| collect2: error: ld returned 1 exit status
| Makefile:1106: recipe for target 'ipmid' failed
| make[2]: *** [ipmid] Error 1

Please use the latest version.