Hello everyone, I followed the documentation here https://docs.rtems.org/releases/rtemsdocs-4.10.2/share/rtems/pdf/started.pdf and started building RTEMS (4.10.2) for target architecture: i386 and BSP: pc386. The configure seemed to be fine after entering the following command: "../configure --target=i386-rtems --disable-posix --enable-cxx --enable-rtemsbsp=pc386 --enable-tests=samples --prefix=/home/development/rtems-4.10.2"
However, the make failed with the following error: checking for i386-rtems-gcc... no "configure: error: no acceptable cc found in $PATH Makefile:712: recipe for target 'pc386' failed make[2]: *** [pc386] Error 1 make[2]: Leaving directory '/home/mritunjay/development/rtems-4.10.2/pc386/i386-rtems/c' Makefile:257: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/mritunjay/development/rtems-4.10.2/pc386/i386-rtems/c' Makefile:275: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1" I checked that gcc is already installed in /usr/bin/gcc. So I am not able to figure out what exactly is causing the error. Please help to figure out what is causing this and how it can be resolved. I have attached the config log as well. Thanks Mritunjay On Wed, Jul 1, 2020 at 12:27 AM Mritunjay Sharma < mritunjaysharma...@gmail.com> wrote: > > I mistakenly forgot to cc my other mentors. > > This is what I responded : > > Hello Heinz, >> >> Pardon the mistake I did in haste, >> as I advised by you I am now building it for RTEMS 4.10 and then I will >> be reporting here shortly as the build completes. >> >> Thanks >> Mritunjay. >> > > I am shortly sending the email for the progress I made after working on > above. > Thanks > Mritunjay > > > > On Wed, Jul 1, 2020 at 12:11 AM Heinz Junkes <jun...@fhi-berlin.mpg.de> > wrote: > >> Hello, Mritunjay, >> >> the epics-base version in github does not work with RTEMS5 It needs my >> extensions for this. >> Therefore I suggested that you first build epics7 for e.g. RTEMS 4.10. >> Then the easiest way is to build epics7 for RTEMS-pc386-qemu. This is >> fully supported. >> So you learn how to build EPics and then you can develop a first rsb-set >> for it. >> If this works, we will work on RTEMS5 and xilinx-Zynq. >> Heinz >> >> > On 30. Jun 2020, at 20:10, Mritunjay Sharma < >> mritunjaysharma...@gmail.com> wrote: >> > >> > >> > Hello everyone, >> > >> > While yesterday, I completed the blog for the progress >> > till date, today I started the coding part. >> > >> > The tutorial that Heinz sent me yesterday guided >> > me to make the following changes: >> > >> > 1) epics-base/configure/CONFIG_SITE: >> > # Which target architectures to cross-compile for. >> > # Definitions in configure/os/CONFIG_SITE.<host>.Common >> > # may override this setting. >> > -CROSS_COMPILER_TARGET_ARCHS= >> > - #CROSS_COMPILER_TARGET_ARCHS=vxWorks-ppc32 >> > + CROSS_COMPILER_TARGET_ARCHS=pc386 >> > +#CROSS_COMPILER_TARGET_ARCHS=RTEMS-xilinx_zynq_a9_qemu >> > >> > I did not use xilinx_zynq_a9_qemu for now because I could >> > not locate CONFIG.Common.RTEMS-xilinx_zynq_a9_qemu >> > as of now in epics-base/configure/os. >> > >> > 2) configure/os/CONFIG_SITE.Common.RTEMS : >> > >> > # Where to find RTEMS >> > # >> > # APS: >> > -RTEMS_VERSION = 4.10.2 >> > -RTEMS_BASE = /usr/local/vw/rtems/rtems-$(RTEMS_VERSION) >> > #RTEMS_VERSION = 4.10.2 >> > #RTEMS_BASE = /usr/local/vw/rtems/rtems-$(RTEMS_VERSION) >> > >> > +# FHI: >> > +RTEMS_SERIES = 5 >> > +RTEMS_VERSION = 5 >> > +RTEMS_BASE = /home/mritunjay/development/rtems/5 >> > >> > I thought to straightaway move with building it with RTEMS 5 >> > because I have done it earlier for beatnik. >> > >> > After this as an experiment, I tried the make command which, >> > as expected, generated the following error: >> > >> > "make[4]: *** No rule to make target '../O.Common/osiFileName.h', >> needed by 'inc'. Stop. >> > make[4]: Leaving directory >> '/home/mritunjay/development/EPICS/epics-base/modules/libcom/src/O.pc386' >> > ../../../configure/RULES_ARCHS:58: recipe for target 'install.pc386' >> failed >> > make[3]: *** [install.pc386] Error 2 >> > make[3]: Leaving directory >> '/home/mritunjay/development/EPICS/epics-base/modules/libcom/src' >> > ../../configure/RULES_DIRS:85: recipe for target 'src.install' failed >> > make[2]: *** [src.install] Error 2 >> > make[2]: Leaving directory >> '/home/mritunjay/development/EPICS/epics-base/modules/libcom' >> > ../configure/RULES_DIRS:85: recipe for target 'libcom.install' failed >> > make[1]: *** [libcom.install] Error 2 >> > make[1]: Leaving directory >> '/home/mritunjay/development/EPICS/epics-base/modules' >> > configure/RULES_DIRS:85: recipe for target 'modules.install' failed >> > make: *** [modules.install] Error 2 >> > " >> > I then re-visited to what I did with beatnik and made the following >> changes to >> > start with adding support for RTEMS 5: >> > >> > diff --git a/configure/CONFIG_COMMON b/configure/CONFIG_COMMON >> > index 6c0e11e0d..d56802968 100644 >> > --- a/configure/CONFIG_COMMON >> > +++ b/configure/CONFIG_COMMON >> > @@ -142,9 +142,10 @@ BUILDLIB_SUFFIX = >> $(BUILDLIB_SUFFIX_$(SHARED_LIBRARIES)) >> > #-------------------------------------------------- >> > # vpath directories >> > POSIX_YES = os/posix >> > +OS_IMPL_DIRS = $(if $(OS_API),os/$(OS_CLASS)-$(OS_API),) os/$(OS_CLASS) >> > GENERIC_SRC_DIRS = .. $(SRC_DIRS) >> > OS_SRC_DIRS += . $(foreach dir, .. $(SRC_DIRS), \ >> > - $(addprefix $(dir)/, os/$(OS_CLASS) $(POSIX_$(POSIX)) >> os/default )) >> > + $(addprefix $(dir)/, $(OS_IMPL_DIRS) $(POSIX_$(POSIX)) >> os/default )) >> > CMPLR_SRC_DIRS += . $(foreach dir, .. $(SRC_DIRS), \ >> > $(addprefix $(dir)/, compiler/$(CMPLR_CLASS) compiler/default )) >> > ALL_SRC_DIRS = $(CMPLR_SRC_DIRS) $(OS_SRC_DIRS) $(GENERIC_SRC_DIRS) >> > diff --git a/configure/CONFIG_SITE b/configure/CONFIG_SITE >> > index 09b4c1525..f3aa4b3f7 100644 >> > --- a/configure/CONFIG_SITE >> > +++ b/configure/CONFIG_SITE >> > @@ -161,7 +161,7 @@ USE_POSIX_THREAD_PRIORITY_SCHEDULING = YES >> > >> > # Site version number, if set will append '-' and this string to the >> > # EPICS version number string that is reported by many tools. >> > -EPICS_SITE_VERSION = >> > +EPICS_SITE_VERSION = >> > >> > # For GNU compiler, use pipes rather than temporary files for >> > # communication between the various stages of compilation. >> > diff --git a/configure/os/CONFIG.Common.RTEMS >> b/configure/os/CONFIG.Common.RTEMS >> > index 8425e6ef9..929510d61 100644 >> > --- a/configure/os/CONFIG.Common.RTEMS >> > +++ b/configure/os/CONFIG.Common.RTEMS >> > @@ -94,16 +94,28 @@ MODEXT=.obj >> > # operating system class (include/os/<os_class>) >> > OS_CLASS = RTEMS >> > >> > +#-------------------------------------------------- >> > +# operating system API (src/os/<os_class>-<os-api>) >> > +OS_API_4.7 = kernel >> > +OS_API_4.8 = kernel >> > +OS_API_4.9 = kernel >> > +OS_API_4.10 = kernel >> > +OS_API = $(firstword $(OS_API_$(RTEMS_SERIES)) posix) >> > + >> > #-------------------------------------------------- >> > # Operating system flags >> > -OP_SYS_LDLIBS += -lrtemsCom -lc -lrtemscpu -lCom -lnfs -lm >> > -OP_SYS_LDFLAGS += $(CPU_CFLAGS) -u Init \ >> > +OP_SYS_LDLIBS += -lrtemsCom -lc -lrtemscpu -lCom -lnfs -lm >> > +# newest Rtems > 2019 needs this -ltftpfs >> > + >> > +OP_SYS_LDFLAGS_posix += -u POSIX_Init >> > +OP_SYS_LDFLAGS_kernel += $(CPU_CFLAGS) -u Init \ >> > $(PROJECT_RELEASE)/lib/no-dpmem.rel \ >> > $(PROJECT_RELEASE)/lib/no-mp.rel \ >> > $(PROJECT_RELEASE)/lib/no-part.rel \ >> > $(PROJECT_RELEASE)/lib/no-signal.rel \ >> > $(PROJECT_RELEASE)/lib/no-rtmon.rel >> > >> > +OP_SYS_LDFLAGS += $(CPU_FLAGS) $(OP_SYS_LDFLAGS_$(OS_API)) >> > MOD_SYS_LDFLAGS += $(CPU_CFLAGS) -Wl,-r -nostdlib >> > >> > # Do not link against libraries which are part of the Generic Image >> > diff --git a/modules/libcom/RTEMS/Makefile >> b/modules/libcom/RTEMS/Makefile >> > index b46889db1..cb1a63b97 100644 >> > --- a/modules/libcom/RTEMS/Makefile >> > +++ b/modules/libcom/RTEMS/Makefile >> > @@ -11,6 +11,9 @@ TOP = ../../.. >> > include $(TOP)/configure/CONFIG >> > include $(TOP)/configure/CONFIG_LIBCOM_VERSION >> > >> > +#for checking >> > +SRC_DIRS += ../$(OS_API) >> > + >> > PERL_SCRIPTS += epicsMakeMemFs.pl >> > >> > INC += epicsRtemsInitHooks.h >> > (END) >> > >> > I will start with further changes tomorrow. Please find the changes >> pushed >> > here: >> https://github.com/epics-base/epics-base/compare/7.0...mritunjaysharma394:GSoC_pc-386 >> > >> > I will be pleased to have the feedback and if I am on the correct >> course now. >> > >> > I will also like to inform that I have filled the GSoC Phase 1 >> Evaluation form and I >> > will request all my mentors to please feel free to fill the form before >> the deadline >> > and I hope that from now I will not disappoint with my progress. >> > >> > It is my bad that I still have not been able to reach out to one more >> > mentor Pavel Pisa. Please if possible share the email id of Pavel and >> cc >> > Pavel in the replies to the email so that Pavel s aware of the progress >> and I >> > can apologise for my inability to connect with Pavel earlier. >> > >> > Thanks, >> > Mritunjay. >> > >> > >> > >> > >> > >> > >> >>
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by rtems configure 4.10.2, which was generated by GNU Autoconf 2.68. Invocation command line was $ ../configure --target=i386-rtems --disable-posix --enable-rtemsbsp=pc386 --enable-tests=samples --prefix=/home/development/rtems-4.10.2 ## --------- ## ## Platform. ## ## --------- ## hostname = mritunjay-XPS-15-9570 uname -m = x86_64 uname -r = 5.3.0-59-generic uname -s = Linux uname -v = #53~18.04.1-Ubuntu SMP Thu Jun 4 14:58:26 UTC 2020 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/mritunjay/development/rtems/4.10.2/bin PATH: /home/development/rtems-4.10.2/bin PATH: /home/development/rtems-4.10/bin PATH: /home/mritunjay/.local/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games PATH: /snap/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1829: checking for gmake configure:1859: result: no configure:1829: checking for make configure:1845: found /usr/bin/make configure:1856: result: make configure:1881: checking for RTEMS Version configure:1883: result: 4.10.2 configure:1901: checking build system type configure:1915: result: x86_64-unknown-linux-gnu configure:1935: checking host system type configure:1948: result: x86_64-unknown-linux-gnu configure:1968: checking target system type configure:1981: result: i386-pc-rtems configure:2023: checking for a BSD-compatible install configure:2091: result: /usr/bin/install -c configure:2102: checking whether build environment is sane configure:2152: result: yes configure:2293: checking for a thread-safe mkdir -p configure:2332: result: /bin/mkdir -p configure:2345: checking for gawk configure:2375: result: no configure:2345: checking for mawk configure:2361: found /usr/bin/mawk configure:2372: result: mawk configure:2383: checking whether make sets $(MAKE) configure:2405: result: yes configure:2477: checking whether to enable maintainer-specific portions of Makefiles configure:2486: result: no configure:3205: creating ./config.status configure:4242: configuring in ./tools/build configure:4329: running /bin/bash '../../../tools/build/configure' '--prefix=/home/development/rtems-4.10.2' '--host=x86_64-unknown-linux-gnu' '--build=x86_64-unknown-linux-gnu' '--disable-posix' '--enable-rtemsbsp=pc386' '--enable-tests=samples' '--target=i386-rtems' '--cache-file=/dev/null' '--srcdir=../../../tools/build' configure:4242: configuring in ./tools/cpu configure:4329: running /bin/bash '../../../tools/cpu/configure' '--prefix=/home/development/rtems-4.10.2' '--host=x86_64-unknown-linux-gnu' '--build=x86_64-unknown-linux-gnu' '--disable-posix' '--enable-rtemsbsp=pc386' '--enable-tests=samples' '--target=i386-rtems' '--cache-file=/dev/null' '--srcdir=../../../tools/cpu' configure:4242: configuring in ./testsuites/tools configure:4329: running /bin/bash '../../../testsuites/tools/configure' '--prefix=/home/development/rtems-4.10.2' '--host=x86_64-unknown-linux-gnu' '--build=x86_64-unknown-linux-gnu' '--disable-posix' '--enable-rtemsbsp=pc386' '--enable-tests=samples' '--target=i386-rtems' '--cache-file=/dev/null' '--srcdir=../../../testsuites/tools' configure:4500: configuring in i386-rtems/c configure:4587: running /bin/bash '../../../c/configure' '--prefix=/home/development/rtems-4.10.2' '--host=i386-rtems' '--build=x86_64-unknown-linux-gnu' '--target=i386-rtems' '--disable-posix' '--enable-rtemsbsp=pc386' '--enable-tests=samples' '--with-target-subdir=i386-rtems' '--exec-prefix=/home/development/rtems-4.10.2/i386-rtems' '--includedir=/home/development/rtems-4.10.2/i386-rtems/include' '--cache-file=/dev/null' '--srcdir=../../../c' ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by rtems config.status 4.10.2, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on mritunjay-XPS-15-9570 config.status:788: creating Makefile config.status:788: creating make/Makefile ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-unknown-linux-gnu ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=i386-rtems ac_cv_host=x86_64-unknown-linux-gnu ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=mawk ac_cv_prog_MAKE=make ac_cv_prog_make_make_set=yes ac_cv_target=i386-pc-rtems ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /home/mritunjay/development/rtems-4.10.2/missing --run aclocal-1.11' AMTAR='${SHELL} /home/mritunjay/development/rtems-4.10.2/missing --run tar' AUTOCONF='${SHELL} /home/mritunjay/development/rtems-4.10.2/missing --run autoconf' AUTOHEADER='${SHELL} /home/mritunjay/development/rtems-4.10.2/missing --run autoheader' AUTOMAKE='${SHELL} /home/mritunjay/development/rtems-4.10.2/missing --run automake-1.11' AWK='mawk' CYGPATH_W='echo' DEFS='-DPACKAGE_NAME=\"rtems\" -DPACKAGE_TARNAME=\"rtems\" -DPACKAGE_VERSION=\"4.10.2\" -DPACKAGE_STRING=\"rtems\ 4.10.2\" -DPACKAGE_BUGREPORT=\"http://www.rtems.org/bugzilla\" -DPACKAGE_URL=\"\"' ECHO_C='' ECHO_N='-n' ECHO_T='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LIBOBJS='' LIBS='' LTLIBOBJS='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKE='make' MAKEINFO='${SHELL} /home/mritunjay/development/rtems-4.10.2/missing --run makeinfo' MKDIR_P='/bin/mkdir -p' MULTILIB_FALSE='' MULTILIB_TRUE='#' PACKAGE='rtems' PACKAGE_BUGREPORT='http://www.rtems.org/bugzilla' PACKAGE_NAME='rtems' PACKAGE_STRING='rtems 4.10.2' PACKAGE_TARNAME='rtems' PACKAGE_URL='' PACKAGE_VERSION='4.10.2' PATH_SEPARATOR=':' PROJECT_ROOT='./$(top_builddir)' PROJECT_TOPdir='./$(top_builddir)' RTEMS_HAS_NETWORKING='yes' RTEMS_HAS_POSIX_API='no' RTEMS_TOPdir='.' SET_MAKE='' SHELL='/bin/bash' STRIP='' VERSION='4.10.2' am__isrc=' -I$(srcdir)' am__leading_dot='.' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build='x86_64-unknown-linux-gnu' build_SUBDIRS=' tools/build tools/cpu testsuites/tools' build_alias='' build_configdirs=' tools/build tools/cpu testsuites/tools' build_cpu='x86_64' build_os='linux-gnu' build_subdir='.' build_vendor='unknown' buildargs=''\''--host=x86_64-unknown-linux-gnu'\'' '\''--build=x86_64-unknown-linux-gnu'\'' '\''--disable-posix'\'' '\''--enable-rtemsbsp=pc386'\'' '\''--enable-tests=samples'\'' '\''--target=i386-rtems'\''' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='${prefix}' host='x86_64-unknown-linux-gnu' host_SUBDIRS='' host_alias='' host_configdirs='' host_cpu='x86_64' host_os='linux-gnu' host_subdir='' host_vendor='unknown' hostargs=''\''--host=x86_64-unknown-linux-gnu'\'' '\''--build=x86_64-unknown-linux-gnu'\'' '\''--target=i386-rtems'\'' '\''--disable-posix'\'' '\''--enable-rtemsbsp=pc386'\'' '\''--enable-tests=samples'\''' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/mritunjay/development/rtems-4.10.2/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='/bin/mkdir -p' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/home/development/rtems-4.10.2' program_transform_name='s&^&i386-rtems-&' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target='i386-pc-rtems' target_SUBDIRS=' i386-rtems/c' target_alias='i386-rtems' target_configdirs=' c' target_cpu='i386' target_os='rtems' target_subdir='i386-rtems' target_vendor='pc' targetargs=''\''--host=i386-rtems'\'' '\''--build=x86_64-unknown-linux-gnu'\'' '\''--target=i386-rtems'\'' '\''--disable-posix'\'' '\''--enable-rtemsbsp=pc386'\'' '\''--enable-tests=samples'\''' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "rtems" #define PACKAGE_TARNAME "rtems" #define PACKAGE_VERSION "4.10.2" #define PACKAGE_STRING "rtems 4.10.2" #define PACKAGE_BUGREPORT "http://www.rtems.org/bugzilla" #define PACKAGE_URL "" configure: exit 0
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel