<div dir="ltr"><div><div><div><div>Either try to use a native compilation (like Czanik P recommended), or let&#39;s troubleshoot the toolchain issue.<br></div><div><br></div>The error messages up there seems to indicate some problem in the assembly output generated by gcc. You could check that by asking gcc to output an assembly file (and not use a temporary) using the -S switch to gcc.<br><br></div>Basically you should get the gcc command line that fails using:<br><br></div>$ make V=1<br><br><br></div><div>This will enable verbose logging, and all commands will be printed by make. Copy-paste the command line and<br>1) supply an additional -S option, and <br>2) locate and change the -o option to specify a output file name that you can investigate (e.g. -o foobar.s)<br><br></div><div>Then locate the lines 260 and 269, which cause the assembler to fail. You should be able to reproduce the problem by reassembling the same file:<br><br></div><div>$ as &lt;filename&gt;.s<br></div><div> <br></div><div>Just by googling the error message I&#39;ve found:<br><br><a href="https://mail-index.netbsd.org/netbsd-bugs/2014/05/28/msg036820.html">https://mail-index.netbsd.org/netbsd-bugs/2014/05/28/msg036820.html</a><br><br></div><div>Which is a netbsd error report, but nevertheless probably a genuine bug in gcc 4.8.3<br><br></div><div>And also a syslog-ng specific workaround here:<br><br><a href="https://git.congatec.com/yocto/meta-openembedded/commit/c0ce7599526c4dce6d889fc4a5aa007f445e6d76">https://git.congatec.com/yocto/meta-openembedded/commit/c0ce7599526c4dce6d889fc4a5aa007f445e6d76</a><br><br></div><div>The 2nd seems to indicate that although the __thread keyword exists, it doesn&#39;t work. The patch in the 2nd link is not the best one, but if you are willing to test patches, I can work in improving it.<br><br></div><div>Hope this helps,<br></div><div>Bazsi<br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">-- <br>Bazsi<br></div></div></div>
<br><div class="gmail_quote">On Sun, Feb 14, 2016 at 10:34 AM, Girish Kumar <span dir="ltr">&lt;<a href="mailto:girish.kumar@al-enterprise.com" target="_blank">girish.kumar@al-enterprise.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Peter.<br>
I started using syslog-ng 3.7.2.<br>
<br>
Armv7 hardware is BCM56340(Helix4) from broadcom<br>
My requirement is sending syslog messages over TLS to remote server.<br>
My compilation went fine for power pc architecture.<br>
But  for ARMv7 I am having problem as I  mentioned earlier.<br>
<br>
Following is the error. As other community friends suggested to I tried setting magic CFLAGS and LDFLAGS. But could not succeed.<br>
Could you please share your experience.<br>
<br>
  CC     lib/lib_libsyslog_ng_la-mainloop-call.lo<br>
/tmp/ccChQOWy.s: Assembler messages:<br>
/tmp/ccChQOWy.s:260: Error: invalid operands (.text and *UND* sections) for `-&#39;<br>
/tmp/ccChQOWy.s:269: Error: invalid operands (.text and *UND* sections) for `-&#39;<br>
make[4]: *** [lib/lib_libsyslog_ng_la-mainloop-call.lo] Error 1<br>
make[3]: *** [all-recursive] Error 1<br>
make[2]: *** [all] Error 2<br>
make[2]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/objs/46/7.X.X.R01/armv7/syslog-ng&#39;<br>
make[2]: Entering directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/objs/46/7.X.X.R01/armv7/syslog-ng&#39;<br>
make --no-print-directory install-recursive<br>
  CC     lib/lib_libsyslog_ng_la-mainloop-call.lo<br>
/tmp/cc0N5KS5.s: Assembler messages:<br>
/tmp/cc0N5KS5.s:260: Error: invalid operands (.text and *UND* sections) for `-&#39;<br>
/tmp/cc0N5KS5.s:269: Error: invalid operands (.text and *UND* sections) for `-&#39;<br>
make[4]: *** [lib/lib_libsyslog_ng_la-mainloop-call.lo] Error 1<br>
make[3]: *** [install-recursive] Error 1<br>
make[2]: *** [install] Error 2<br>
make[2]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/objs/46/7.X.X.R01/armv7/syslog-ng&#39;<br>
make[1]: *** [/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps/built/46/7.X.X.R01/armv7/sbin/syslog-ng] Error 2<br>
make[1]: Leaving directory `/home/gkuma020/PERFORCE/7.X.X.R01-gkuma020-gg/engr/sw/tps&#39;<br>
make: *** [tps-build] Error 2<br>
+ set +x<br>
<br>
<br>
Regards,<br>
Girish<br>
<div><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a> [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>] On Behalf Of Czanik, Péter<br>
Sent: Friday, February 12, 2016 12:15 PM<br>
To: Syslog-ng users&#39; and developers&#39; mailing list<br>
Subject: Re: [syslog-ng] syslog-ng 3.7.x support on armv7 architecture<br>
<br>
Hi,<br>
<br>
Starting with syslog-ng 3.7, sources are only published on github.<br>
This is the current stable version, 3.8 is the current development version, which is now git head.<br>
<br>
BTW: could you write about your use case? On which ARMv7 hardware do you use syslog-ng? How do you (plan to) use it? (I&#39;m an ARM addict, running syslog-ng on the Raspberry Pi2)<br>
<br>
Bye,<br>
Peter Czanik (CzP) &lt;<a href="mailto:peter.czanik@balabit.com">peter.czanik@balabit.com</a>&gt; Balabit / syslog-ng upstream <a href="http://czanik.blogs.balabit.com/" rel="noreferrer" target="_blank">http://czanik.blogs.balabit.com/</a> <a href="https://twitter.com/PCzanik" rel="noreferrer" target="_blank">https://twitter.com/PCzanik</a><br>
<br>
<br>
On Fri, Feb 12, 2016 at 7:31 AM, Girish Kumar &lt;<a href="mailto:girish.kumar@al-enterprise.com">girish.kumar@al-enterprise.com</a>&gt; wrote:<br>
&gt; Thank you all for the information. I will start working based on your<br>
&gt; suggestions.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Please let me know which version of syslog-ng I should use.  I<br>
&gt; downloaded both syslog-ng 3.7.2 and syslog-ng 3.6.4<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I assume syslog-ng 3.6.4 is  the stable version. Following website<br>
&gt; doesn’t have syslog-ng 3.7.2<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; <a href="https://my.balabit.com/downloads/syslog-ng/sources" rel="noreferrer" target="_blank">https://my.balabit.com/downloads/syslog-ng/sources</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Girish<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; From: <a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a><br>
&gt; [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>] On Behalf Of Scheidler,<br>
&gt; Balázs<br>
&gt; Sent: Wednesday, February 10, 2016 6:02 PM<br>
&gt; To: Syslog-ng users&#39; and developers&#39; mailing list<br>
&gt; Subject: Re: [syslog-ng] syslog-ng 3.7.x support on armv7 architecture<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi Girish,<br>
&gt;<br>
&gt; Those architectures that are listed were known to work in specific<br>
&gt; points in time and are not guaranteed to remain so. Also, syslog-ng is<br>
&gt; an application written in C and is aimed to be portable to a number of<br>
&gt; architectures, which we also demonstrated in the amount of platforms that we support.<br>
&gt;<br>
&gt; On this community mailing list, all we can do is help you if you have<br>
&gt; specific questions/issues. This may or may not match your level of<br>
&gt; expectations, but we can only guarantee that we put &quot;best effort&quot; in<br>
&gt; answering your questions and no guarantees.<br>
&gt;<br>
&gt; Back to armv7, just like Peter Czanik has answered, we know about<br>
&gt; syslog-ng being used on this architecture, so it should theoretically<br>
&gt; be possible, but it&#39;s not something that the developers use every day,<br>
&gt; or which would be a primary platform (those being Linux distributions).<br>
&gt;<br>
&gt; The toolchain and the environment matters, syslog-ng depends on a<br>
&gt; number of external libraries (glib for example, which you had an issue<br>
&gt; with in the past), and we generally assume that those are present on the system already.<br>
&gt;<br>
&gt; That being said, Balabit does provide support for various platforms<br>
&gt; and as a commercial entity has the means and willingness to do testing<br>
&gt; in a wider variety of platforms and architectures. If you would like<br>
&gt; support guarantees, Balabit can most probably give that.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The best course of action seems to be for you to:<br>
&gt;<br>
&gt; 1) continue your trial and error in compiling syslog-ng, and ask if<br>
&gt; there&#39;s a concrete issue. We will answer to the best of our ability.<br>
&gt;<br>
&gt; 2) try contacting Balabit sales if the response you get on this<br>
&gt; mailing list is not enough to get your issues resolved.<br>
&gt;<br>
&gt; I am really happy to help, just like I did in the past.<br>
&gt;<br>
&gt; Disclaimer: I am employed by Balabit (being the CTO there), however I<br>
&gt; wrote this email as a member of the open source syslog-ng community. I<br>
&gt; don&#39;t want to push anything here, the only reason I wrote this email<br>
&gt; is that I started sensing a mismatch of what the community can provide<br>
&gt; and what you can expect.<br>
&gt;<br>
&gt; I hope this helps,<br>
&gt;<br>
&gt; Bazsi<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Bazsi<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Feb 10, 2016 at 12:25 PM, Girish Kumar<br>
&gt; &lt;<a href="mailto:girish.kumar@al-enterprise.com">girish.kumar@al-enterprise.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Please let me know whether syslog-ng 3.7.x is supported on armv7<br>
&gt; architecture.<br>
&gt;<br>
&gt; I went through the  following link and found  that armv7 is not listed<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; <a href="https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-la" rel="noreferrer" target="_blank">https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-la</a><br>
&gt; test-guides/en/syslog-ng-ose-guide-admin/html/supported-platforms.html<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 1.6. Supported platforms<br>
&gt;<br>
&gt; The syslog-ng Open Source Edition application is highly portable and<br>
&gt; is known to run on a wide range of hardware architectures (x86,<br>
&gt; x86_64, SUN Sparc, PowerPC 32 and 64, Alpha)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Girish<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________<br>
</div></div>&gt; ________ Member info:<br>
<span class="">&gt; <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation:<br>
&gt; <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________<br>
</span>&gt; ________ Member info:<br>
<div class="HOEnZb"><div class="h5">&gt; <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation:<br>
&gt; <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
&gt;<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</div></div></blockquote></div><br></div>