<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 2, 2009, at 1:06 PM, András Murányi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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'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't check out as root but it seems a previous 'sudo make install' messed up the build directory. Chown didn'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. &nbsp;:)</div><div class="im"><div><br></div></div></div></div></blockquote><div><br>Of course we don't. Only if things don't work, and the target is called 'install', we might have the false impression that we need root.<br> &nbsp;</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 &nbsp;-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' 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 "-fPIC" 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? &nbsp;It should be 0.41/packages/linux_make/Makefile</div></div></div></blockquote><div><br>Yes <br></div><div><br>&nbsp;</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 'uname -m' &nbsp;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></blockquote><div><br></div><div><br></div><div>Try sticking it directly in externals/miXed/Makefile.common.</div><div><br></div><div>.hc</div><div><br></div><div><br></div><div><br></div><br><blockquote type="cite"><div class="gmail_quote"><div>&nbsp;</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'</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&nbsp;&nbsp; -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&nbsp; -shared hammer/accum.o </font><br>  <font size="1">/usr/bin/ld: hammer/accum.o: relocation R_X86_64_32 against `a local symbol' 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'</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'</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'</font><br> <font size="1">make: *** [install] Error 2</font><br></blockquote><br></div></div>Sadly i don't have the skills to dive into this by myself, so again i'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't get set for cyclone again, since its the same error. &nbsp;Let'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></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; 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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; 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; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><br class="Apple-interchange-newline"><br></div><div>----------------------------------------------------------------------------</div><div><div><br></div>"Making boring techno music is really easy with modern tools," he &nbsp;</div><div>says, "but with live coding, boring techno is much harder." - Chris McCormick</div><div><br></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"> </div><br></body></html>