Using helper functions

punit vara punitvara at gmail.com
Tue Feb 7 14:44:17 UTC 2017


If you are trying to build my gpio sample then its just for arm
architecture and specifically for beagle bone black. Sparc is
completely different architecture so sample won't build in it.

On Tue, Feb 7, 2017 at 7:12 PM, Tanu Hari Dixit <tokencolour at gmail.com> wrote:
> Hello Punit,
>
> Thank you for the explanation. I did as you suggested.  I copied the gpio
> folder to testsuites/samples/ and edited configure.ac, ran bootstrap,
> configure and make for the new build. It ran fine (without errors). However,
> I could see all executables except for one in
> /home/thd/development/rtems/src/builds/erc32_gpio/sparc-rtems4.12/c/erc32/testsuites/samples/gpio
> for the gpio application. I am unable to figure out what might be the fault.
> The bootstrap and configure are as below. The make output is attached.
> Something strange that I observed in the make output is, that unlike other
> subdirectories in samples, there never appears a line like:
> make[6]: Entering directory
> `/home/thd/development/rtems/src/builds/erc32_gpio/sparc-rtems4.12/c/erc32/testsuites/samples/gpio'
> Also the gpio folder in
> home/thd/development/rtems/src/builds/erc32_gpio/sparc-rtems4.12/c/erc32/testsuites/samples/gpio
> just has Makefile in it.
> I (just experimenting) ran the Makefile and I got the following output:
>
> thd at thd-Inspiron-5537:~/development/rtems/src/builds/erc32_gpio/sparc-rtems4.12/c/erc32/testsuites/samples/gpio$
> make
> sparc-rtems4.12-gcc -B../../../../../erc32/lib/ -specs bsp_specs -qrtems
> -DHAVE_CONFIG_H -I.
> -I../../../../../../../../rtems/c/src/../../testsuites/samples/gpio -I..
> -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections -Wall
> -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes
> -Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo -c -o init.o
> ../../../../../../../../rtems/c/src/../../testsuites/samples/gpio/init.c
> ../../../../../../../../rtems/c/src/../../testsuites/samples/gpio/init.c:6:70:
> fatal error: bsp/beagleboneblack.h: No such file or directory
>  #include <bsp/beagleboneblack.h> /* Calls the BBB specific library */
>                                                                       ^
> compilation terminated.
> make: *** [init.o] Error 1
>
> Maybe that is the error I am facing. I don't know how to rectify it. I
> searched for similar errors but found no luck. Can you please help me with
> this?
> Also, now I am able to understand more and have a feeling that I'll soon
> have a working application that is made by me. Thank you.
>
> Regards,
> Tanu Hari Dixit.
>
>
> OUTPUT: ./bootstrap
>
> ./cpukit
> ./c
> ./c/src/ada-tests
> ./c/src
> ./c/src/make
> ./c/src/lib/libbsp/bfin/bf537Stamp
> ./c/src/lib/libbsp/bfin/eZKit533
> ./c/src/lib/libbsp/bfin
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/bfin/TLL6527M
> ./c/src/lib/libbsp/mips/malta
> ./c/src/lib/libbsp/mips/jmr3904
> ./c/src/lib/libbsp/mips/csb350
> ./c/src/lib/libbsp/mips/rbtx4925
> ./c/src/lib/libbsp/mips
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/mips/rbtx4938
> ./c/src/lib/libbsp/mips/hurricane
> ./c/src/lib/libbsp/epiphany
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/epiphany/epiphany_sim
> ./c/src/lib/libbsp/sparc/leon2
> ./c/src/lib/libbsp/sparc
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/sparc/erc32
> ./c/src/lib/libbsp/sparc/leon3
> ./c/src/lib/libbsp/no_cpu
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/no_cpu/no_bsp
> ./c/src/lib/libbsp/sh/shsim
> ./c/src/lib/libbsp/sh/gensh2
> ./c/src/lib/libbsp/sh/gensh4
> ./c/src/lib/libbsp/sh
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/sh/gensh1
> ./c/src/lib/libbsp/moxie
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/moxie/moxiesim
> ./c/src/lib/libbsp/m32c/m32cbsp
> ./c/src/lib/libbsp/m32c
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/nios2
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/nios2/nios2_iss
> ./c/src/lib/libbsp/arm/altera-cyclone-v
> ./c/src/lib/libbsp/arm/raspberrypi
> ./c/src/lib/libbsp/arm/beagle
> ./c/src/lib/libbsp/arm/edb7312
> ./c/src/lib/libbsp/arm/gumstix
> ./c/src/lib/libbsp/arm/stm32f4
> ./c/src/lib/libbsp/arm/csb337
> ./c/src/lib/libbsp/arm/lpc176x
> ./c/src/lib/libbsp/arm/tms570
> ./c/src/lib/libbsp/arm/xilinx-zynq
> ./c/src/lib/libbsp/arm/csb336
> ./c/src/lib/libbsp/arm
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/arm/lm3s69xx
> ./c/src/lib/libbsp/arm/smdk2410
> ./c/src/lib/libbsp/arm/gdbarmsim
> ./c/src/lib/libbsp/arm/lpc32xx
> ./c/src/lib/libbsp/arm/rtl22xx
> ./c/src/lib/libbsp/arm/lpc24xx
> ./c/src/lib/libbsp/arm/realview-pbx-a9
> ./c/src/lib/libbsp/arm/atsam
> ./c/src/lib/libbsp/v850
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/v850/gdbv850sim
> ./c/src/lib/libbsp/sparc64
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/sparc64/niagara
> ./c/src/lib/libbsp/sparc64/usiii
> ./c/src/lib/libbsp/m68k/av5282
> ./c/src/lib/libbsp/m68k/genmcf548x
> ./c/src/lib/libbsp/m68k/uC5282
> ./c/src/lib/libbsp/m68k/mvme147s
> ./c/src/lib/libbsp/m68k/mcf5329
> ./c/src/lib/libbsp/m68k/mvme147
> ./c/src/lib/libbsp/m68k/mvme167
> ./c/src/lib/libbsp/m68k/mcf5225x
> ./c/src/lib/libbsp/m68k/mvme162
> ./c/src/lib/libbsp/m68k/mcf5206elite
> ./c/src/lib/libbsp/m68k/mcf5206elite/tools
> ./c/src/lib/libbsp/m68k
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/m68k/gen68360
> ./c/src/lib/libbsp/m68k/mcf52235
> ./c/src/lib/libbsp/m68k/csb360
> ./c/src/lib/libbsp/m68k/mrm332
> ./c/src/lib/libbsp/m68k/mcf5235
> ./c/src/lib/libbsp/m68k/gen68340
> ./c/src/lib/libbsp/or1k
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/or1k/generic_or1k
> ./c/src/lib/libbsp/powerpc/mpc55xxevb
> ./c/src/lib/libbsp/powerpc/virtex4
> ./c/src/lib/libbsp/powerpc/ss555
> ./c/src/lib/libbsp/powerpc/mvme3100
> ./c/src/lib/libbsp/powerpc/gen83xx
> ./c/src/lib/libbsp/powerpc/mpc8260ads
> ./c/src/lib/libbsp/powerpc/virtex5
> ./c/src/lib/libbsp/powerpc/psim
> ./c/src/lib/libbsp/powerpc/tqm8xx
> ./c/src/lib/libbsp/powerpc/qemuppc
> ./c/src/lib/libbsp/powerpc
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/powerpc/beatnik
> ./c/src/lib/libbsp/powerpc/virtex
> ./c/src/lib/libbsp/powerpc/t32mppc
> ./c/src/lib/libbsp/powerpc/motorola_powerpc
> ./c/src/lib/libbsp/powerpc/gen5200
> ./c/src/lib/libbsp/powerpc/mvme5500
> ./c/src/lib/libbsp/powerpc/qoriq
> ./c/src/lib/libbsp/powerpc/haleakala
> ./c/src/lib/libbsp/lm32
> acinclude.m4 is unchanged
> ./c/src/lib/libbsp/lm32/milkymist
> ./c/src/lib/libbsp/lm32/lm32_evr
> ./c/src/lib/libbsp/i386/pc386
> ./c/src/lib/libbsp/i386/pc386/tools
> ./c/src/lib/libbsp/i386
> acinclude.m4 is unchanged
> ./c/src/lib/libcpu/bfin
> ./c/src/lib/libcpu/mips
> ./c/src/lib/libcpu/sparc
> ./c/src/lib/libcpu/sh
> ./c/src/lib/libcpu/nios2
> ./c/src/lib/libcpu/arm
> ./c/src/lib/libcpu/sparc64
> ./c/src/lib/libcpu/m68k
> ./c/src/lib/libcpu/or1k
> ./c/src/lib/libcpu/powerpc
> ./c/src/lib/libcpu/lm32
> ./c/src/lib/libcpu/i386
> .
> ./tools/build
> ./tools/cpu/sh
> ./tools/cpu
> ./tools/cpu/nios2
> ./tools/cpu/generic
> ./testsuites/psxtests
> ./testsuites/psxtmtests
> ./testsuites/mptests
> ./testsuites/sptests
> ./testsuites/samples
> ./testsuites
> ./testsuites/smptests
> ./testsuites/tools
> ./testsuites/tools/generic
> ./testsuites/libtests
> ./testsuites/fstests
> ./testsuites/tmtests
> ./testsuites/rhealstone
>
>
> OUTPUT : configure
>
>
> thd at thd-Inspiron-5537:~/development/rtems/src/builds/erc32_gpio$
> ../../rtems/configure --target=sparc-rtems4.12 --enable-tests=samples
> --enable-rtemsbsp=erc32 --prefix=/home/thd/development/rtems/install_path
> checking for gmake... no
> checking for make... make
> checking for RTEMS Version... 4.11.99.0
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> checking target system type... sparc-unknown-rtems4.12
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> configure: configuring in ./tools/build
> configure: running /bin/sh '../../../../rtems/tools/build/configure'
> '--prefix=/home/thd/development/rtems/install_path'
> '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu'
> '--enable-tests=samples' '--enable-rtemsbsp=erc32'
> '--target=sparc-rtems4.12'  '--cache-file=/dev/null'
> '--srcdir=../../../../rtems/tools/build'
> checking for gmake... no
> checking for make... make
> checking for RTEMS Version... 4.11.99.0
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for x86_64-pc-linux-gnu-gcc... no
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking getopt.h usability... yes
> checking getopt.h presence... yes
> checking for getopt.h... yes
> checking libgen.h usability... yes
> checking libgen.h presence... yes
> checking for libgen.h... yes
> checking for strerror... yes
> checking for strtol... yes
> checking for basename... yes
> checking for strnlen... yes
> checking for bash... /bin/bash
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating install-if-change
> config.status: creating config.h
> config.status: executing depfiles commands
> configure: configuring in ./tools/cpu
> configure: running /bin/sh '../../../../rtems/tools/cpu/configure'
> '--prefix=/home/thd/development/rtems/install_path'
> '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu'
> '--enable-tests=samples' '--enable-rtemsbsp=erc32'
> '--target=sparc-rtems4.12'  '--cache-file=/dev/null'
> '--srcdir=../../../../rtems/tools/cpu'
> checking for gmake... no
> checking for make... make
> checking for RTEMS Version... 4.11.99.0
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> checking target system type... sparc-unknown-rtems4.12
> checking rtems target cpu... sparc
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for bash... /bin/bash
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating Makefile
> === configuring in generic
> (/home/thd/development/rtems/src/builds/erc32_gpio/tools/cpu/generic)
> configure: running /bin/sh ../../../../../rtems/tools/cpu/generic/configure
> --disable-option-checking
> '--prefix=/home/thd/development/rtems/install_path'
> '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu'
> '--enable-tests=samples' '--enable-rtemsbsp=erc32'
> '--target=sparc-rtems4.12' 'build_alias=x86_64-pc-linux-gnu'
> 'host_alias=x86_64-pc-linux-gnu' 'target_alias=sparc-rtems4.12'
> --cache-file=/dev/null --srcdir=../../../../../rtems/tools/cpu/generic
> checking for gmake... no
> checking for make... make
> checking for RTEMS Version... 4.11.99.0
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> checking target system type... sparc-unknown-rtems4.12
> checking rtems target cpu... sparc
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for bash... /bin/bash
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating size_rtems
> configure: configuring in ./testsuites/tools
> configure: running /bin/sh '../../../../rtems/testsuites/tools/configure'
> '--prefix=/home/thd/development/rtems/install_path'
> '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu'
> '--enable-tests=samples' '--enable-rtemsbsp=erc32'
> '--target=sparc-rtems4.12'  '--cache-file=/dev/null'
> '--srcdir=../../../../rtems/testsuites/tools'
> checking for gmake... no
> checking for make... make
> checking for RTEMS Version... 4.11.99.0
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> checking target system type... sparc-unknown-rtems4.12
> checking rtems target cpu... sparc
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating Makefile
> === configuring in generic
> (/home/thd/development/rtems/src/builds/erc32_gpio/testsuites/tools/generic)
> configure: running /bin/sh
> ../../../../../rtems/testsuites/tools/generic/configure
> --disable-option-checking
> '--prefix=/home/thd/development/rtems/install_path'
> '--host=x86_64-pc-linux-gnu' '--build=x86_64-pc-linux-gnu'
> '--enable-tests=samples' '--enable-rtemsbsp=erc32'
> '--target=sparc-rtems4.12' 'build_alias=x86_64-pc-linux-gnu'
> 'host_alias=x86_64-pc-linux-gnu' 'target_alias=sparc-rtems4.12'
> --cache-file=/dev/null
> --srcdir=../../../../../rtems/testsuites/tools/generic
> checking for gmake... no
> checking for make... make
> checking for RTEMS Version... 4.11.99.0
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> checking target system type... sparc-unknown-rtems4.12
> checking rtems target cpu... sparc
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for bash... /bin/bash
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating difftest
> config.status: creating sorttimes
> configure: configuring in sparc-rtems4.12/c
> configure: running /bin/sh '../../../../rtems/c/configure'
> '--prefix=/home/thd/development/rtems/install_path' '--host=sparc-rtems4.12'
> '--build=x86_64-pc-linux-gnu' '--target=sparc-rtems4.12'
> '--enable-tests=samples' '--enable-rtemsbsp=erc32'
> '--with-target-subdir=sparc-rtems4.12'
> '--exec-prefix=/home/thd/development/rtems/install_path/sparc-rtems4.12'
> '--includedir=/home/thd/development/rtems/install_path/sparc-rtems4.12/include'
> '--cache-file=/dev/null' '--srcdir=../../../../rtems/c'
> checking for gmake... no
> checking for make... make
> checking for RTEMS Version... 4.11.99.0
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... sparc-unknown-rtems4.12
> checking target system type... sparc-unknown-rtems4.12
> checking rtems target cpu... sparc
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for sparc-rtems4.12-strip... sparc-rtems4.12-strip
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking that generated files are newer than configure... done
> configure: creating ./config.status
> config.status: creating Makefile
>
> target architecture: sparc.
> available BSPs: erc32.
> 'make all' will build the following BSPs: erc32.
> other BSPs can be built with 'make RTEMS_BSP="bsp1 bsp2 ..."'
>
> config.status: creating Makefile
>



More information about the devel mailing list