[Bug 145] New: Comilation on Solaris 10 with gcc 3.4.3 fails
https://bugzilla.balabit.com/show_bug.cgi?id=145 Summary: Comilation on Solaris 10 with gcc 3.4.3 fails Product: syslog-ng Version: 3.3.x Platform: Other OS/Version: Solaris Status: NEW Severity: normal Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: andyh@nominet.org.uk Type of the Report: bug Estimated Hours: 0.0 Hi, Trying to compile 3.3.3 from source on Solaris 10 with gcc 3.4.4 and get this: libtool: compile: /usr/sfw/bin/gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -I../lib/include -I../lib/include -I../lib -I../modules/include -Wall -m64 -mcpu=v9 -D_REENTRANT -D_POSIX_C_SOURCE=199506L -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -MT iv_event.lo -MD -MP -MF .deps/iv_event.Tpo -c iv_event.c -fPIC -DPIC -o iv_event.o iv_event.c: In function `iv_event_run_pending_events': iv_event.c:74: error: unrecognizable insn: (insn 80 79 81 2 (set (reg:DI 139) (lo_sum:DI (reg:DI 139) (unspec:DI [ (symbol_ref:DI ("__tls") [flags 0xa] <var_decl fefbb480 __tls>) ] 0))) -1 (nil) (nil)) iv_event.c:74: internal compiler error: in extract_insn, at recog.c:2083 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. It appears (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21613) that there may be a workaround, but I'm not a developer and can't understand hwo to apply the workaround -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=145 --- Comment #1 from Andy Holdaway <andyh@nominet.org.uk> 2011-11-21 17:47:54 --- syslog-ng Open Source Edition 3.3.3 configured Compiler options: compiler : /usr/sfw/bin/gcc -std=gnu99 compiler options : -m64 -mcpu=v9 -Wall -pthread -D_REENTRANT -D_PTHREADS -I/opt/glib/include/glib-2.0 -I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog -I/opt/pcre/include -I/opt/openssl/include -I$(top_srcdir)/lib/ivykis/lib/include -I$(top_builddir)/lib/ivykis/lib/include -I$(top_srcdir)/lib/ivykis/modules/include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 linker flags : -s -m64 -lpthread prefix : /opt/syslog-ng linking mode : dynamic __thread keyword : yes Submodules: ivykis : internal libmongo-client : internal Features: Debug symbols : no GCC profiling : no Memtrace : no IPV6 support : yes spoof-source support : no tcp-wrapper support : no Linux capability support : no PCRE support : yes Env wrapper support : no systemd support : no (unit dir: none) Modules: Module search path : /opt/syslog-ng/lib/syslog-ng Default module list : affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat,afstreams Sun STREAMS support (module): yes SSL support (module) : yes SQL support (module) : no PACCT module (EXPERIMENTAL) : no MongoDB destination (module): yes JSON support (module) : no (using no) -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=145 --- Comment #2 from Balazs Scheidler <bazsi@balabit.hu> 2011-11-21 21:24:02 --- this is a gcc bug, and 3.4 is ancient. I'm not sure if it is thread-local-storage related or not. can you try a newer gcc? -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=145 --- Comment #3 from Andy Holdaway <andyh@nominet.org.uk> 2011-11-22 09:44:27 --- Hi, Sadly I cannot change the compiler as it's forced on us. The link contained a coding workaround example. Can this be incorporated into the syslog-ng code? -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=145 --- Comment #4 from Balazs Scheidler <bazsi@balabit.hu> 2011-11-29 16:03:10 --- The workaround doesn't seem to apply to that code, as the workaround references a function pointer dereference whereas the code at the indicated location has nothing similar. I'd guess that it is more likely related to thread-local-storage (TLS) support, can you perhaps disable that by editing config.h and lib/ivykis/config.h? -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla@bugzilla.balabit.com