Hi folks,

when fiddling with logstash and logstash-forwarder I noticed that the automatic
stripping in mGAR corrupt executables:

> root@experimental10s 
> [experimental10s]:/home/dam/mgar/pkg/logstash-forwarder/trunk/work/solaris10-sparc
>  > file pkgroot/opt/csw/bin/logstash-forwarder 
> build-isa-sparcv8plus/logstash-forwarder-0.4.0/logstash-forwarder
> pkgroot/opt/csw/bin/logstash-forwarder:       ELF 64-bit MSB executable 
> SPARCV9 Version 1, dynamically linked, stripped
> build-isa-sparcv8plus/logstash-forwarder-0.4.0/logstash-forwarder:      ELF 
> 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped


Stripped, does not work:

> root@experimental10s 
> [experimental10s]:/home/dam/mgar/pkg/logstash-forwarder/trunk/work/solaris10-sparc
>  > pkgroot/opt/csw/bin/logstash-forwarder 
> no debug info in ELF executable errno -1
> fatal error: no debug info in ELF executable
> 
> runtime stack:
> no debug info in ELF executable errno -1
> panic during panic
> zsh: 23869 exit 3     pkgroot/opt/csw/bin/logstash-forwarder

Freshly compiled with gccgo, not stripped, works:

> root@experimental10s 
> [experimental10s]:/home/dam/mgar/pkg/logstash-forwarder/trunk/work/solaris10-sparc/build-isa-sparcv8plus/logstash-forwarder-0.4.0
>  > ./logstash-forwarder
> 2015/05/16 23:41:42.699396 fatal: config file must be defined
> zsh: 23856 exit 1     ./logstash-forwarder

This was all compiled with our "broken" gcc 4.9.2.

@Maciej: Would you mind retrying with our infra-script?


Best regards

  -- Dago

Reply via email to