Guest User

Untitled

a guest
Jun 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. beam-3.6.1/bin/beam_configure --c gcc -will create compiler_c_config.tcl
  2.  
  3. vi compiler_c_config.tcl and add this under include section
  4. lappend beam::compiler::c::system_include_path {/usr/include/i386-linux-gnu/}
  5.  
  6. run beam like this output is in BEAM-complaints file m32 is for 32 bit
  7. ./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
  8.  
  9. in Makefile do:
  10. -----------------
  11. BEAM_OPTIONS = --beam::complaint_file=/home/adlai/BEAM-complaints --beam::compiler=/home/adlai/beam/compiler_c_config.tcl
  12.  
  13. beam:
  14. /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
  15. -----------------
Add Comment
Please, Sign In to add comment