<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi, I’m having some problems getting RTEMS to go together.<div><br></div><div>I’m using a Mac using MacOS 10.9.3 (Mavericks). After a few false starts, I reloaded my tools using source-builder, figured out that cvs was missing, had to load Xcode 5 to get the tools that were compatible with Mavericks, got cvs sorted. Then had to reload the RTEMS source from the git repository. So, basically, everything is fresh and squeaky clean.</div><div><br></div><div>My BSP is for an ST32F373, based heavily on the ST32F4 BSP (all I want to do for now is stitch it in and get it to compile). I have my BSP stored in a folder, I blow out the old BSP, copy new BSP into place, bootstrap, move into my testing build folder, configure and make thus:</div><div><br></div><div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">rm -r rtems/rtems/c/src/lib/libbsp/arm/stm32f37x</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">cp -R ~andreichichak/BSP/stm32f37x/ rtems/rtems/c/src/lib/libbsp/arm/stm32f37x</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">cd rtems/rtems</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">./bootstrap -c</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">./bootstrap -p</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">./bootstrap</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">cd ../..</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><br></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">rm -r rtems/stm32f37x</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mkdir -p rtems/stm32f37x</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">cd rtems/stm32f37x</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">../rtems/configure --target=arm-rtems4.11 --disable-posix --disable-networking --disable-cxx --enable-bsp=stm32f37x --prefix=/Users/andreichichak/development/rtems/4.11 --disable-samples --enable-maintainer-mode </div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">make RTEMS_BSP=stm32f37x install</div><div><br></div>
I know that there are going to be some crufty flags in these commands, and would gladly take your input or a pointer to the official best practice commands, but I’m getting this:</div><div><br></div><div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">. . .</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">automake: warning: possible forward-incompatibility.</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">automake: At least a source file is in a subdirectory, but the 'subdir-objects'</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">automake: automake option hasn't been enabled. For now, the corresponding output</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">automake: object file(s) will be placed in the top-level directory. However,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">automake: this behaviour will change in future Automake versions: they will</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">automake: unconditionally cause object files to be placed in the same subdirectory</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">automake: of the corresponding sources.</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">automake: You are advised to start using 'subdir-objects' option throughout your</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">automake: project, to avoid future incompatibilities.</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mptests/mp01/node2/Makefile.am:9: warning: source file '../../../support/init.c' is in a subdirectory,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mptests/mp01/node2/Makefile.am:9: but option 'subdir-objects' is disabled</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mptests/mp02/node1/Makefile.am:9: warning: source file '../../../support/init.c' is in a subdirectory,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mptests/mp02/node1/Makefile.am:9: but option 'subdir-objects' is disabled</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mptests/mp02/node2/Makefile.am:9: warning: source file '../../../support/init.c' is in a subdirectory,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mptests/mp02/node2/Makefile.am:9: but option 'subdir-objects' is disabled</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mptests/mp03/node1/Makefile.am:9: warning: source file '../../../support/init.c' is in a subdirectory,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mptests/mp03/node1/Makefile.am:9: but option 'subdir-objects' is disabled</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mptests/mp03/node2/Makefile.am:9: warning: source file '../../../support/init.c' is in a subdirectory,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">mptests/mp03/node2/Makefile.am:9: but option ‘subdir-objects' is disabled</div></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">. . .</div><div><br></div><div>times a bazillion. My guess, automake has been updated and my configure.ac files need the subdir-objects option thrown in.</div><div><br></div><div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">automake (GNU automake) 1.14.1</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">Copyright (C) 2013 Free Software Foundation, Inc.</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">License GPLv2+: GNU GPL version 2 or later <<a href="http://gnu.org/licenses/gpl-2.0.html">http://gnu.org/licenses/gpl-2.0.html</a>></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">This is free software: you are free to change and redistribute it.</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">There is NO WARRANTY, to the extent permitted by law.</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; min-height: 14px;"><br></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">Written by Tom Tromey <<a href="mailto:tromey@redhat.com">tromey@redhat.com</a>></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"> and Alexandre Duret-Lutz <<a href="mailto:adl@gnu.org">adl@gnu.org</a>>.</div></div><div><br></div><div>The eventual result is a problem where I get:</div><div><br></div><div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">tm29/Makefile.am:3: warning: source file '../../support/src/tmtests_empty_function.c' is in a subdirectory,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">tm29/Makefile.am:3: but option 'subdir-objects' is disabled</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">tm30/Makefile.am:3: warning: source file '../../support/src/tmtests_empty_function.c' is in a subdirectory,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">tm30/Makefile.am:3: but option 'subdir-objects' is disabled</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">tm30/Makefile.am:3: warning: source file '../../support/src/tmtests_support.c' is in a subdirectory,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">tm30/Makefile.am:3: but option 'subdir-objects' is disabled</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">tmck/Makefile.am:3: warning: source file '../../support/src/tmtests_empty_function.c' is in a subdirectory,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">tmck/Makefile.am:3: but option 'subdir-objects' is disabled</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">tmoverhd/Makefile.am:3: warning: source file '../../support/src/tmtests_empty_function.c' is in a subdirectory,</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">tmoverhd/Makefile.am:3: but option 'subdir-objects' is disabled</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">../../../rtems/tools/build/binpatch.c:42:15: warning: implicit declaration of function 'getopt' is invalid in C99 [-Wimplicit-function-declaration]</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"> while ((c = getopt(argc, argv, "h")) >= 0)</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"> ^</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">1 warning generated.</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">configure: WARNING: no configuration information is in lib/libbsp/arm</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">make[7]: *** No rule to make target `preinstall'. Stop.</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">make[6]: *** [preinstall-recursive] Error 1</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">make[5]: *** [preinstall-recursive] Error 1</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">make[4]: *** [preinstall-recursive] Error 1</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">make[3]: *** [preinstall-stamp] Error 2</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">make[2]: *** [install-recursive] Error 1</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">make[1]: *** [install-recursive] Error 1</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;">make: *** [install-recursive] Error 1</div></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><br></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><br></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"><div style="font-family: Sabon; font-size: 12px;">Could it be that “preinstall” isn’t being generated because automaker isn’t recursing properly?</div><div style="font-family: Sabon; font-size: 12px;"><br></div><div style="font-family: Sabon; font-size: 12px;"><br></div><div style="font-family: Sabon; font-size: 12px;">Thanks, I’m clueless (I just wish that I could do one BSP on my own some day),</div><div style="font-family: Sabon; font-size: 12px;"><br></div><div style="font-family: Sabon; font-size: 12px;">Andrei</div><div><br></div><div><br></div></div></body></html>