Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- beam-3.6.1/bin/beam_configure --c gcc -will create compiler_c_config.tcl
- vi compiler_c_config.tcl and add this under include section
- lappend beam::compiler::c::system_include_path {/usr/include/i386-linux-gnu/}
- run beam like this output is in BEAM-complaints file m32 is for 32 bit
- ./beam-3.6.1/bin/beam_compile --beam::compiler=/home/adlai/beam/compiler_c_config.tcl --beam::complaint_file=path/BEAM-complaints -m32 -c bug.c
- in Makefile do:
- -----------------
- BEAM_OPTIONS = --beam::complaint_file=/home/adlai/BEAM-complaints --beam::compiler=/home/adlai/beam/compiler_c_config.tcl
- beam:
- /home/adlai/beam/beam-3.6.1/bin/beam_compile $(CFLAGS) $(INCFLAGS) $(BEAM_OPTIONS) api.c db.c gen_pfc.c gen_bpf.c bpf_helper.c
- -----------------
Add Comment
Please, Sign In to add comment