Jack Mitchell | 26 Jun 2012 16:35
Picon

[oe] net-snmp build failure

Has anyone successfully built net-snmp-server for the Beaglebone under 
the Poky distribution (or more generally using GCC 4.7.x for arm)? I had 
a go today but it failed (see file attached) and it looks to me like a 
bug in GCC or a bug in net-snmp that GCC 4.7 has shown up...

-- 

   Jack Mitchell (jack <at> embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--

DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
DEBUG: Executing shell function do_compile
NOTE: make INSTALL_PREFIX=/home/jack/Projects/poky-denzil.git/r0005-new/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/net-snmp-5.7.1-r3.3/image
WARNING: not running autoheader
arm-poky-linux-gnueabi-gcc -E --sysroot=/home/jack/Projects/poky-denzil.git/r0005-new/tmp/sysroots/beaglebone  -march=armv7-a -fno-tree-vectorize     -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Iinclude -I./include -I./agent/mibgroup -I. -I. -DDONT_INC_STRUCTS -DBINDIR=/usr/bin  ./sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript
arm-poky-linux-gnueabi-gcc: warning: ./sedscript.in: linker input file unused because linking not done
echo 's/VERSIONINFO/5.7.1/g' >> sedscript
echo 's#DATADIR#/usr/share#g' >> sedscript
echo 's#LIBDIR#/usr/lib#g' >> sedscript
echo 's#BINDIR#/usr/bin#g' >> sedscript
echo 's#PERSISTENT_DIRECTORY#/var/net-snmp#g' >> sedscript
echo 's#SYSCONFDIR#/etc#g' >> sedscript
/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
making all in /home/jack/Projects/poky-denzil.git/r0005-new/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/net-snmp-5.7.1-r3.3/net-snmp-5.7.1/snmplib
make[1]: Entering directory `/home/jack/Projects/poky-denzil.git/r0005-new/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/net-snmp-5.7.1-r3.3/net-snmp-5.7.1/snmplib'
(Continue reading)

Jack Mitchell | 2 Jul 2012 16:52
Picon

Re: [oe] net-snmp build failure

On 26/06/12 15:35, Jack Mitchell wrote:
> Has anyone successfully built net-snmp-server for the Beaglebone under 
> the Poky distribution (or more generally using GCC 4.7.x for arm)? I 
> had a go today but it failed (see file attached) and it looks to me 
> like a bug in GCC or a bug in net-snmp that GCC 4.7 has shown up...
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel <at> lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

To fix this build failure I removed the systemd patch which allowed it 
to build. The issue (initially) seems that the patch enables systemd but 
there is no configure switch to disable it once the patch is applied. 
I'm sure this is wrong as it sound ridiculous, however easiest for my to 
just try to get it going was removal of the patch. I will hopefully have 
time to revisit later and see if I can put a proper fix in.

Regards,

--

-- 

   Jack Mitchell (jack <at> embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--
(Continue reading)


Gmane