<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Building a GCC-based project from the command line</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8609/building-a-gcc-based-project-from-the-command-line</link><description>I&amp;#39;m compiling my project successfully in Eclipse, but trying to build it from the command line (cygwin) fails near the end with this error (make, make all, make nrf51422_xxac_s110 all result in this): 
 make: *** No rule to make target &amp;#39;_build/gcc_startup_nrf51</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Aug 2015 13:36:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8609/building-a-gcc-based-project-from-the-command-line" /><item><title>RE: Building a GCC-based project from the command line</title><link>https://devzone.nordicsemi.com/thread/31508?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 13:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5861518-33d5-4cd7-91a8-9a9db2e2697c</guid><dc:creator>andrey</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what exactly was the solution to my problem as I&amp;#39;ve done several things, but my bet is on the confusion with .s / .S&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a GCC-based project from the command line</title><link>https://devzone.nordicsemi.com/thread/31506?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 07:30:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ac40234-a3d5-48c8-aec8-651545dd6e0b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@andrey: Have you tried to follow RK &amp;#39;s suggestion ? I suspect that the path to or the file name to gcc_startup_nrf51.s was not correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building a GCC-based project from the command line</title><link>https://devzone.nordicsemi.com/thread/31507?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2015 13:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b18fba5c-0326-41ae-8f68-09efe6e4be7b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;makefile looks right to me. The rule is&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# Assemble files
$(OBJECT_DIRECTORY)/%.o: %.s
    @echo Compiling file: $(notdir $&amp;lt;)
    $(NO_ECHO)$(CC) $(ASMFLAGS) $(INC_PATHS) -c -o $@ $&amp;lt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;which tells make how to compile a .o from a .s file. You have the .s file listed in the ASM_SOURCE_FILES and clearly that&amp;#39;s being properly turned into a dependent object file because the link fails and the .o appears in the list. ASM_PATHS looks right, the vpath is right.&lt;/p&gt;
&lt;p&gt;you could try writing a target which just echos all those variables, ASM_OBJECTS, ASM_PATHS, all that stuff, see if you can see anything wrong. The ASM_OBJECTS should just be the one startup file, the ASM_PATHS should be the prefix to it. Failing that you compile what you can and then run make in the most verbose mode possible to see if you can figure out what rules it&amp;#39;s trying.&lt;/p&gt;
&lt;p&gt;also check file exists and is .s not .S&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>