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