[Coco] Segmentation fault compiling cmoc
Jason M
oleribus at gmail.com
Tue Mar 1 22:44:16 EST 2016
Has anyone seen the below error when trying to compile cmoc ?
I'm on Windows 7 Pro 64 bit - running MSys2 64 bit - cmoc 0.1.19
mv -f .deps/cmoc-main.Tpo .deps/cmoc-main.Po
g++ -DPKGDATADIR=\"/usr/local/share/cmoc\"
-DLOCALEDIR=\"/usr/local/share/locale
\" -DHAVE_AS6809=\"no\"
-DHAVE_LWASM=\"yes\" -I../intl -I../intl -g -O2 -W -Wall
-o
cmoc.exe cmoc-TypeDesc.o cmoc-TypeManager.o cmoc-DeclarationSpecifierList.
o cmoc-util.o cmoc-Tree.o cmoc-ASMText.o cmoc-parser.o cmoc-lexer.o
cmoc-Declara
tor.o cmoc-DeclarationSequence.o cmoc-Declaration.o
cmoc-BinaryOpExpr.o cmoc-Una
ryOpExpr.o cmoc-CastExpr.o
cmoc-IfStmt.o cmoc-SwitchStmt.o cmoc-LabeledStmt.o cm
oc-WhileStmt.o cmoc-ForStmt.o cmoc-JumpStmt.o cmoc-StringLiteralExpr.o
cmoc-Scop
e.o cmoc-FunctionDef.o cmoc-ExpressionTypeSetter.o
cmoc-TranslationUnit.o cmoc-T
reeSequence.o cmoc-FunctionCallExpr.o
cmoc-IdentifierExpr.o cmoc-VariableExpr.o
cmoc-WordConstantExpr.o
cmoc-CodeStatus.o cmoc-FormalParameter.o cmoc-AssemblerS
tmt.o
cmoc-ObjectMemberExpr.o cmoc-ClassDef.o cmoc-FuncAddrExpr.o cmoc-Condition
alExpr.o cmoc-ScopeCreator.o cmoc-Pragma.o cmoc-main.o
g++ -DPACKAGE_NAME=\"cmoc\" -DPACKAGE_TARNAME=\"cmoc\"
-DPACKAGE_VERSION=\"0.1.1
9\" -DPACKAGE_STRING=\"cmoc\ 0.1.19\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\
" -DPACKAGE=\"cmoc\"
-DVERSION=\"0.1.19\" -I. -DLOCALEDIR=\"/usr/local/share/
locale\" -I../intl -I../intl -g -O2 -W -Wall -MT
writecocofile-writecocofile.o -
MD -MP -MF
.deps/writecocofile-writecocofile.Tpo -c -o writecocofile-writecocofi
le.o `test -f 'writecocofile.cpp' || echo './'`writecocofile.cpp
writecocofile.cpp:986:25: internal compiler error: Segmentation fault
<< setprecision(3) << 100.0 * numFreeGranules /
CoCoDis
k::MAX_GRANULES << "%)\n";
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Makefile:1284: recipe for target 'writecocofile-writecocofile.o' failed
make[2]: *** [writecocofile-writecocofile.o] Error 1
make[2]: Leaving directory '/home/jmarcantonio/cmoc-0.1.19/src'
Makefile:1324: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/jmarcantonio/cmoc-0.1.19/src'
Makefile:421: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
I had this working on the loaner computer I just returned to work :(
Here's what I did to setup MSys:
Install MSYS2 from http://msys2.github.io/
shell commands:
update-core
pacman -Su
pacman -S make base-devel
pacman -Su gcc
windows folder copy and paste for lwtools ... then back in shell:
make
mv lwasm.exe /usr/bin
windows folder copy and paste for cmoc download ...then back in shell:
./configure ; make ; make install
More information about the Coco
mailing list