Make is seg faulting
Problem:
Make seg faults on
ptypes.cc is a generated piece of code during compile. Because it somehow segs out, it never finishes writing the file. On subsequent makes, I get Error 1, due to the incomplete file not being able to generate the *.o file.
Semi-Fix:
The problem was because I uncommented #ifdef MIT_uAMPS in packet.h to bypass a compile error, and it ended up seg faulting. Man. A day wasted. See next post for real problem
Problem:
Make seg faults on
g++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_8 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/usr/X11R6/include -I/home/chungw1/ns-allinone-2.27/tclcl-1.15 -I/home/chungw1/ns-allinone-2.27/otcl-1.8 -I/home/chungw1/ns-allinone-2.27/include -I/home/chungw1/ns-allinone-2.27/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./mit/rcs -I./mit/uAMPS -o common/ptypes2tcl.o common/ptypes2tcl.cc
g++ -o common/ptypes2tcl common/ptypes2tcl.o
./common/ptypes2tcl > gen/ptypes.cc
Signal 11
make: *** [gen/ptypes.cc] Error 139
ptypes.cc is a generated piece of code during compile. Because it somehow segs out, it never finishes writing the file. On subsequent makes, I get Error 1, due to the incomplete file not being able to generate the *.o file.
- first search for #ifndef instead of #ifdef...no problems.
- replacing changed files with original 2.27 files and recompile...success.
- put back changed files without defining MIT_uAMPS and added $(OBJ_MIT) to the end of $(OBJ) in Makefile.in and recompile...success
- ./validate wireless-test...success
- complete recompile...success
- #define MIT_uAMPS and recompile...failed
Semi-Fix:
The problem was because I uncommented #ifdef MIT_uAMPS in packet.h to bypass a compile error, and it ended up seg faulting. Man. A day wasted. See next post for real problem
0 Comments:
Post a Comment
<< Home