Snort mailing list archives

Re: Bug compiling snort++ b244 on Ubunut 14 x86 (http_module.h:112:39: error: unrecognizable insn:)


From: Russ via Snort-devel <snort-devel () lists snort org>
Date: Thu, 22 Mar 2018 09:55:54 -0400

Hi Noah,

Thanks for reporting the issue.  You seem to be hitting an older compiler bug / limitation like this one:

    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46250

Looks like you have 4.8.X.  What does g++ --version show?  You should try updating the compiler.

Thanks
Russ

On 3/22/18 9:25 AM, Noah Dietrich wrote:
Hello,

I have encountered a bug when trying to compile Snort++ Build 244 on Ubuntu 14 x86 (but i do not get this error on Ubuntu 14 x64, or on Ubuntu 16 or 17, x86 or x64).

Snort Version:  Git clone build 244
cmake version 3.10.3 (compiled from source on Ubuntu 14)

Commands run:
cd ~/snort_src
git clone git://github.com/snortadmin/snort3.git <http://github.com/snortadmin/snort3.git>
cd snort3
./configure_cmake.sh --prefix=/usr/local
cd build
make

Error seen (reproduced twice, exact same output, but only on Ubuntu 14 x86, no others):
...
[ 36%] Building CXX object src/service_inspectors/http_inspect/CMakeFiles/http_inspect.dir/http_flow_data.cc.o In file included from /home/noah/snort_src/snort3/src/service_inspectors/http_inspect/http_flow_data.cc:28:0: /home/noah/snort_src/snort3/src/service_inspectors/http_inspect/http_module.h: In static member function ‘static PegCount HttpModule::get_peg_counts(HttpEnums::PEG_COUNT)’: /home/noah/snort_src/snort3/src/service_inspectors/http_inspect/http_module.h:112:39: error: unrecognizable insn:
         { return peg_counts[counter]; }
                                       ^
(insn 20 6 21 2 (set (reg:SI 1 dx [ D.116869+4 ])
        (plus:SI (plus:SI (mult:SI (reg:SI 1 dx [orig:59 counter.4 ] [59])
                    (const_int 8 [0x8]))
                (unspec:SI [
                        (const_int 0 [0])
                    ] UNSPEC_TP))
            (reg:SI 0 ax [62]))) /home/noah/snort_src/snort3/src/service_inspectors/http_inspect/http_module.h:112 -1
     (nil))
/home/noah/snort_src/snort3/src/service_inspectors/http_inspect/http_module.h:112:39: internal compiler error: in extract_insn, at recog.c:2154
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccWD92kQ.out file, please attach this to your bugreport. make[2]: *** [src/service_inspectors/http_inspect/CMakeFiles/http_inspect.dir/http_flow_data.cc.o] Error 1 make[1]: *** [src/service_inspectors/http_inspect/CMakeFiles/http_inspect.dir/all] Error 2
make: *** [all] Error 2



Let me know if you need any other information.
thanks
noah



_______________________________________________
Snort-devel mailing list
Snort-devel () lists snort org
https://lists.snort.org/mailman/listinfo/snort-devel

Please visit http://blog.snort.org for the latest news about Snort!

_______________________________________________
Snort-devel mailing list
Snort-devel () lists snort org
https://lists.snort.org/mailman/listinfo/snort-devel

Please visit http://blog.snort.org for the latest news about Snort!

Current thread: