Building NetSNMP for ARM/atsamv

Ruhollah Majdoddin r.majdodin at gmail.com
Mon Jul 11 11:03:46 UTC 2016


Can you please give me a sample invocation of  configure with the
write option values? This will save me lots of trial and error.

I tried once more  with -std=gnu11 and -std=gnu++14 (GNU says that
these are, however, expected to be default values [1]), but know I get
other errors (may be the _POSIX_C_SOURCE flag should also be set?).
[1] https://gcc.gnu.org/onlinedocs/gcc/Standards.html

This is the shell command:
~/mcg/kernel-4.12-git/atsam$ ~/mcg/kernel-4.12-git/rtems/configure
--prefix=/home/rooholah/mcg/rtems-git/4.12 --target=arm-rtems4.12
--enable-rtemsbsp=atsamv --enable-posix --enable-networking
--enable-cxx --enable-tests --enable-rtems-debug
CFLAGS_FOR_BUILD='-std=gnu11' CFLAGS_FOR_HOST='-std=gnu11'
CFLAGS_FOR_TARGET='-std=gnu11' CXXFLAGS_FOR_BUILD='-std=gnu++14'
CXXFLAGS_FOR_HOST='-std=gnu++14' CXXFLAGS_FOR_TARGET='-std=gnu++14'
ATSAM_MEMORY_INTFLASH_SIZE=32768000

Some of Warnings:
1-
/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/../../cpukit/libmisc/shell/hexdump-odsyntax.c:
In function 'odformatfp':
/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/../../cpukit/libmisc/shell/hexdump-odsyntax.c:373:2:
warning: implicit declaration of function 'asprintf'
[-Wimplicit-function-declaration]
  asprintf(&hdfmt, "%lu/%lu \" %%%d.%de \" \"\\n\"",
  ^~~~~~~~

2-
/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:236:0:
warning: "_ALIGNBYTES" redefined
 #define _ALIGNBYTES     CPU_ALIGNMENT

In file included from
../../cpukit/../../../atsamv/lib/include/sys/socket.h:39:0,
                 from
/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/../../cpukit/libmisc/shell/main_ping.c:70:
../../cpukit/../../../atsamv/lib/include/machine/_align.h:20:0: note:
this is the location of the previous definition
 #define _ALIGNBYTES (sizeof(long long) - 1)


AND THE FINAL ERROR:

arm-rtems4.12-gcc --pipe -B../../../../../.././lib/
-B../../../../../.././atsamv/lib/ -specs bsp_specs -qrtems
-DHAVE_CONFIG_H
-I/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/lib/libbsp/arm/atsam/../shared/armv7m/include
-I/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/lib/libbsp/arm/atsam/../shared/CMSIS/Include
-I/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/lib/libbsp/arm/atsam/libraries/libboard
-I/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/lib/libbsp/arm/atsam/libraries/libboard/include
-I/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/lib/libbsp/arm/atsam/libraries/libchip
-I/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/lib/libbsp/arm/atsam/libraries/libchip/include
  -std=gnu11 -MT libbsp_a-dac_dma.o -MD -MP -MF
.deps/libbsp_a-dac_dma.Tpo -c -o libbsp_a-dac_dma.o `test -f
'libraries/libchip/source/dac_dma.c' || echo
'/home/rooholah/mcg/kernel-4.12-git/rtems/c/src/lib/libbsp/arm/atsam/'`libraries/libchip/source/dac_dma.c
{standard input}: Assembler messages:
{standard input}:188: Error: selected processor does not support `dsb
0xF' in ARM mode
{standard input}:211: Error: selected processor does not support `dsb
0xF' in ARM mode
{standard input}:214: Error: selected processor does not support `isb
0xF' in ARM mode
Makefile:1464: recipe for target 'libbsp_a-afe_dma.o' failed
make[6]: *** [libbsp_a-afe_dma.o] Error 1
make[6]: *** Warte auf noch nicht beendete Prozesse...
{standard input}: Assembler messages:
{standard input}:31: Error: selected processor does not support `dsb
0xF' in ARM mode
{standard input}:71: Error: selected processor does not support `dsb
0xF' in ARM mode
{standard input}:74: Error: selected processor does not support `isb
0xF' in ARM mode
Makefile:1478: recipe for target 'libbsp_a-dac_dma.o' failed
make[6]: *** [libbsp_a-dac_dma.o] Error 1
make[6]: Leaving directory
'/home/rooholah/mcg/kernel-4.12-git/atsam/arm-rtems4.12/c/atsamv/lib/libbsp/arm/atsam'
Makefile:388: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
'/home/rooholah/mcg/kernel-4.12-git/atsam/arm-rtems4.12/c/atsamv/lib/libbsp/arm'
Makefile:397: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
'/home/rooholah/mcg/kernel-4.12-git/atsam/arm-rtems4.12/c/atsamv/lib/libbsp'
Makefile:310: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
'/home/rooholah/mcg/kernel-4.12-git/atsam/arm-rtems4.12/c/atsamv/lib'
Makefile:425: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
'/home/rooholah/mcg/kernel-4.12-git/atsam/arm-rtems4.12/c/atsamv'
Makefile:286: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/home/rooholah/mcg/kernel-4.12-git/atsam/arm-rtems4.12/c'
Makefile:410: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1





> My thought on isspace is that it is guarded by a feature flag which you
> haven't enabled. See http://linux.die.net/man/3/isspace for advice. That may
> indicate an issue with the single file or an argument to pass to define the
> flag.
>



More information about the users mailing list