<br><br><div class="gmail_quote">2009/10/2 Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div style=""><br><div><div class="im"><div>On Oct 1, 2009, at 7:34 PM, András Murányi wrote:</div><br><blockquote type="cite"><br><br><div class="gmail_quote">2009/10/1 IOhannes m zmoelnig <span dir="ltr">&lt;<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div>András Murányi wrote:<br> &gt; Thanks! Without root i&#39;m still getting those access denied errors, as root<br>

 <br> <br> </div>most likely because you checked out as root, which results in files<br> being owned by root and not you.<br> simple fix is:<br> % cd /home/muranyia/Download/0.41/<br> % chown -R muranyia .<br> <br> imho, you should do this before anything else and then continue to work<br>

 as user.<br> <div><br></div></blockquote><div><br>I didn&#39;t check out as root but it seems a previous &#39;sudo make install&#39; messed up the build directory. Chown didn&#39;t help, so i deleted the whole source and checked it out again - problem gone.<br>

</div></div></blockquote><div><br></div><div><br></div></div><div>Never run any builds as root, its a good way to mess things up.  :)</div><div class="im"><div><br></div></div></div></div></blockquote><div><br>Of course we don&#39;t. Only if things don&#39;t work, and the target is called &#39;install&#39;, we might have the false impression that we need root.<br>

 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div><div class="im"><div></div><blockquote type="cite"><div class="gmail_quote">

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br>&gt; it goes as far as this:<br> &gt;<br> &gt; gcc -o ../bin/accum.pd_linux -Wall -W -Wstrict-prototypes -Wno-unused<br>

 &gt;&gt; -Wno-parentheses -Wno-switch -O2 -funroll-loops -fomit-frame-pointer -DUNIX<br> &gt;&gt; -I . -I ../../../pd/src -I ../shared -export_dynamic  -shared hammer/accum.o<br> &gt;&gt;<br> &gt;&gt; /usr/bin/ld: hammer/accum.o: relocation R_X86_64_32 against `a local<br>

 &gt;&gt; symbol&#39; can not be used when making a shared object; recompile with -fPIC<br> &gt;&gt; hammer/accum.o: could not read symbols: Bad value<br> <br> </div>like the others and the error message have said: recompile with -fPIC.<br>

 you will have to clean the build first (make clean), in order to make<br> the added &quot;-fPIC&quot; copiler flag have any affect on the created object files.<br> <br> </blockquote><div><br>Make clean got into and endless loop, had to delete source again :o/<br>

<br>I also took a look at this doc:<br><cite><a href="http://support.amd.com/us/Processor_TechDocs/32035.pdf" target="_blank">http://support.amd.com/us/Processor_TechDocs/32035.pdf</a></cite><br> ...and decided to add this to the Makefile:<br>

</div></div></blockquote><div><br></div><div><br></div></div><div>Which Makefile?  It should be 0.41/packages/linux_make/Makefile</div></div></div></blockquote><div><br>Yes <br></div><div><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div style=""><div><div></div><div>When you run &#39;uname -m&#39;  what does it tell you?</div></div></div></blockquote><div><br>x86_64. I also tried it without if/endif, cyclone still ignored it.<br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div style=""><div><div class="im"><blockquote type="cite"><div class="gmail_quote"><div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><font size="1"># AMD64</font><br>

<font size="1">ifeq ($(TARGET_PLATFORM),x86_64)</font><br> <font size="1">OPT_CFLAGS += -march=k8 -fPIC </font><br><font size="1">OPT_CFLAGS += -O3 -ffast-math</font><br><font size="1">endif</font><br></blockquote><br>...which concluded at this:<br>

<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> <font size="1">make[3]: Entering directory `/home/muranyia/Download/0.41/externals/miXed/cyclone&#39;</font><br>

<font size="1">gcc -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -O2 -funroll-loops -fomit-frame-pointer -DUNIX -I . -I ../../../pd/src -I ../shared   -c -o hammer/accum.o hammer/accum.c</font><br>

 <font size="1">gcc -o ../bin/accum.pd_linux -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -O2 -funroll-loops -fomit-frame-pointer -DUNIX -I . -I ../../../pd/src -I ../shared -export_dynamic  -shared hammer/accum.o </font><br>

 <font size="1">/usr/bin/ld: hammer/accum.o: relocation R_X86_64_32 against `a local symbol&#39; can not be used when making a shared object; recompile with -fPIC</font><br><font size="1">hammer/accum.o: could not read symbols: Bad value</font><br>

 <font size="1">collect2: ld returned 1 exit status</font><br><font size="1">make[3]: *** [../bin/accum.pd_linux] Error 1</font><br><font size="1">make[3]: Leaving directory `/home/muranyia/Download/0.41/externals/miXed/cyclone&#39;</font><br>

 <font size="1">make[2]: *** [cyclone] Error 2</font><br><font size="1">make[2]: Leaving directory `/home/muranyia/Download/0.41/externals&#39;</font><br><font size="1">make[1]: *** [externals_install] Error 2</font><br>
<font size="1">make[1]: Leaving directory `/home/muranyia/Download/0.41/packages&#39;</font><br>
 <font size="1">make: *** [install] Error 2</font><br></blockquote><br></div></div>Sadly i don&#39;t have the skills to dive into this by myself, so again i&#39;m hoping for your advice.<br></blockquote><div><br></div></div>

</div><div><span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">

<span style="font-size: medium;">For whatever reason, the OPT_FLAGS didn&#39;t get set for cyclone again, since its the same error.  Let&#39;s find that reason (see above questions).</span></div><div style=""><span style="font-size: medium;"><br>

</span></div><div style=""><span style="font-size: medium;">.hc<br></span><br></div></span></div></div></blockquote><div><br>Thanks! Andras<br></div></div><br clear="all"><br>