Building NetSNMP for ARM/atsamv

Ruhollah Majdoddin r.majdodin at gmail.com
Fri Jul 8 06:54:34 UTC 2016


I try to have RSB to build the NetSNMP package, but it fails. The RSB
and RTEMS kernel  are both 4.12, target architecture is ARM and BSP is
atsamv (arch/bsp are already built in prefix).

As far as I can see,  one problem is that function "isspace" from
cctype is undeclared, and the other is with linking:
linkcmds.base:390 cannot move location counter backwards  (from
00000000204bf480 to 000000002045f000)

Any suggestions?

This is the shell command and output:

$ ../source-builder/sb-set-builder --log=log_atsamv_net_snmp
--prefix=$HOME/mcg/rtems-git/4.12 --target=arm-rtems4.12
--with-rtems-bsp=atsamv net-mgmt/net-snmp.bset
RTEMS Source Builder - Set Builder, 4.12 (c476de6150f3 modified)
Build Set: net-mgmt/net-snmp.bset
config: net-mgmt/net-snmp-5.7.2.1-1.cfg
package: net-snmp-5.7.2.1-arm-rtems4.12-1
building: net-snmp-5.7.2.1-arm-rtems4.12-1
error: building net-snmp-5.7.2.1-arm-rtems4.12-1
Build FAILED
  See error report: rsb-report-net-snmp-5.7.2.1-arm-rtems4.12-1.txt
error: building net-snmp-5.7.2.1-arm-rtems4.12-1
Build Set: Time 0:02:03.899070
Build FAILED

And this is the tail of error report file:

/bin/bash ../libtool  --mode=compile arm-rtems4.12-gcc -I../include
-I../../net-snmp-5.7.2.1/include -I. -I../agent
-I../../net-snmp-5.7.2.1/agent -I../agent/mibgroup
-I../../net-snmp-5.7.2.1/agent/mibgroup -I../snmplib
-I../../net-snmp-5.7.2.1/snmplib
-I/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/atsamv/lib/include
-fno-strict-aliasing -qrtems
-B/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/lib/
-B/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/atsamv/lib/ --specs
bsp_specs -mthumb -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -O2
-g -ffunction-sections -fdata-sections
-I/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/atsamv/lib/include
-DNETSNMP_CAN_USE_SYSCTL=1 -DARP_SCAN_FOUR_ARGUMENTS=1 -DINP_IPV6=0
-Urtems4 -Drtems4=rtems4  -c -o snmpd.lo
../../net-snmp-5.7.2.1/agent/snmpd.c
libtool: compile:  arm-rtems4.12-gcc -I../include
-I../../net-snmp-5.7.2.1/include -I. -I../agent
-I../../net-snmp-5.7.2.1/agent -I../agent/mibgroup
-I../../net-snmp-5.7.2.1/agent/mibgroup -I../snmplib
-I../../net-snmp-5.7.2.1/snmplib
-I/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/atsamv/lib/include
-fno-strict-aliasing -qrtems
-B/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/lib/
-B/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/atsamv/lib/ --specs
bsp_specs -mthumb -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -O2
-g -ffunction-sections -fdata-sections
-I/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/atsamv/lib/include
-DNETSNMP_CAN_USE_SYSCTL=1 -DARP_SCAN_FOUR_ARGUMENTS=1 -DINP_IPV6=0
-Urtems4 -Drtems4=rtems4 -c ../../net-snmp-5.7.2.1/agent/snmpd.c -o
snmpd.o
../../net-snmp-5.7.2.1/agent/snmpd.c: In function 'snmpd_thread':
../../net-snmp-5.7.2.1/agent/snmpd.c:1545:9: warning: implicit
declaration of function 'isspace' [-Wimplicit-function-declaration]
     if (isspace (*args))
         ^~~~~~~
/bin/bash ../libtool  --mode=link arm-rtems4.12-gcc
-fno-strict-aliasing -qrtems
-B/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/lib/
-B/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/atsamv/lib/ --specs
bsp_specs -mthumb -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -O2
-g -ffunction-sections -fdata-sections
-I/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/atsamv/lib/include
-DNETSNMP_CAN_USE_SYSCTL=1 -DARP_SCAN_FOUR_ARGUMENTS=1 -DINP_IPV6=0
-Urtems4 -Drtems4=rtems4  -o snmpd snmpd.lo
-L/home/rooholah/mcg/rtems-git/rsb/rtems/build/tmp/sb-rooholah/net-mgmt/net-snmp.bset/home/rooholah/mcg/rtems-git/4.12/lib
 libnetsnmpagent.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lm
libtool: link: arm-rtems4.12-gcc -fno-strict-aliasing -qrtems
-B/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/lib/
-B/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/atsamv/lib/ --specs
bsp_specs -mthumb -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -O2
-g -ffunction-sections -fdata-sections
-I/home/rooholah/mcg/rtems-git/4.12/arm-rtems4.12/atsamv/lib/include
-DNETSNMP_CAN_USE_SYSCTL=1 -DARP_SCAN_FOUR_ARGUMENTS=1 -DINP_IPV6=0
-Urtems4 -Drtems4=rtems4 -o snmpd snmpd.o
-L/home/rooholah/mcg/rtems-git/rsb/rtems/build/tmp/sb-rooholah/net-mgmt/net-snmp.bset/home/rooholah/mcg/rtems-git/4.12/lib
./.libs/libnetsnmpagent.a ./.libs/libnetsnmpmibs.a
/home/rooholah/mcg/rtems-git/rsb/rtems/build/net-snmp-5.7.2.1-arm-rtems4.12-1/build-cxc/agent/.libs/libnetsnmpagent.a
/home/rooholah/mcg/rtems-git/rsb/rtems/build/net-snmp-5.7.2.1-arm-rtems4.12-1/build-cxc/snmplib/.libs/libnetsnmp.a
../snmplib/.libs/libnetsnmp.a -lm
linkcmds.base:390 cannot move location counter backwards (from
00000000204bf480 to 000000002045f000)
collect2: error: ld returned 1 exit status
Makefile:789: recipe for target 'snmpd' failed
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory
'/home/rooholah/mcg/rtems-git/rsb/rtems/build/net-snmp-5.7.2.1-arm-rtems4.12-1/build-cxc/agent'
Makefile:654: recipe for target 'subdirs' failed
make: *** [subdirs] Error 1
shell cmd failed: /bin/sh -ex
/home/rooholah/mcg/rtems-git/rsb/rtems/build/net-snmp-5.7.2.1-arm-rtems4.12-1/doit
error: building net-snmp-5.7.2.1-arm-rtems4.12-1


More information about the users mailing list