Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while compiling c-semantics #21

Closed
dongbiao830415 opened this issue Jul 15, 2017 · 0 comments
Closed

Error while compiling c-semantics #21

dongbiao830415 opened this issue Jul 15, 2017 · 0 comments

Comments

@dongbiao830415
Copy link

dongbiao830415 commented Jul 15, 2017

Centos6.9
gcc version 7.1.0 (GCC)
When using K after commit 0c6be56 , it fails to build the newest c-semantics (0c6be5696ee8c522ac42eab9a09c95d8b111df2b). Output:

[root@localhost src]# export CC=gcc
[root@localhost src]# cd /root/src/c-semantics/c-semantics/x86-gcc-limited-libc/src && /root/src/c-semantics/c-semantics/dist/kcc -nodefaultlibs -Xbuiltins -fno-native-compilation -shared -o /root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/lib/libc.so *.c  -I .
Can't exec "rv-ifdefclear": No such file or directory at /root/src/c-semantics/c-semantics/dist/kcc line 4002.
Can't exec "rv-ifdefclear": No such file or directory at /root/src/c-semantics/c-semantics/dist/kcc line 4002.
Can't exec "rv-ifdefclear": No such file or directory at /root/src/c-semantics/c-semantics/dist/kcc line 4002.
Can't exec "rv-ifdefclear": No such file or directory at /root/src/c-semantics/c-semantics/dist/kcc line 4002.
Can't exec "rv-ifdefclear": No such file or directory at /root/src/c-semantics/c-semantics/dist/kcc line 4002.
substr outside of string at /root/src/c-semantics/c-semantics/dist/kcc line 3940.
Use of uninitialized value $thisObj in concatenation (.) or string at /root/src/c-semantics/c-semantics/dist/kcc line 3942.
substr outside of string at /root/src/c-semantics/c-semantics/dist/kcc line 3940.
Use of uninitialized value $thisObj in concatenation (.) or string at /root/src/c-semantics/c-semantics/dist/kcc line 3942.
substr outside of string at /root/src/c-semantics/c-semantics/dist/kcc line 3940.
Use of uninitialized value $thisObj in concatenation (.) or string at /root/src/c-semantics/c-semantics/dist/kcc line 3942.
substr outside of string at /root/src/c-semantics/c-semantics/dist/kcc line 3940.
Use of uninitialized value $thisObj in concatenation (.) or string at /root/src/c-semantics/c-semantics/dist/kcc line 3942.
substr outside of string at /root/src/c-semantics/c-semantics/dist/kcc line 3940.
Use of uninitialized value $thisObj in concatenation (.) or string at /root/src/c-semantics/c-semantics/dist/kcc line 3942.
[Error] Internal: Uncaught exception thrown of type NoSuchElementException.
Please rerun your program with the --debug flag to generate a stack trace, and
file a bug report at https://github.com/kframework/k/issues (null)
Error: Could not find or load main class org.kframework.main.BinaryToText
Translation failed (config dumped). Run kcc -d -nodefaultlibs -Xbuiltins -fno-native-compilation -shared -o /root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/lib/libc.so builtintypes.c ctype.c math.c stdlib.c string.c -I . to see commands run.

The output of running kcc -d is following:

[root@localhost src]# kcc -d -nodefaultlibs -Xbuiltins -fno-native-compilation -shared -o /root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/lib/libc.so builtintypes.c ctype.c math.c stdlib.c string.c -I .
'/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/pp' '-I' '.' '-pedantic' 'builtintypes.c' '-o' 'tmp-kcc-iyvSr1L'
Can't exec "rv-ifdefclear": No such file or directory at /root/src/c-semantics/c-semantics/dist/kcc line 4002.
/root/src/c-semantics/c-semantics/dist/cparser tmp-kcc-iyvSr1L --trueName 'builtintypes.c' > tmp-kcc-ld9RIal
'krun' '--output' 'binary' '--output-file' 'tmp-kcc-tZv7NuZ' '-d' '/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/c11-translation-kompiled' '-w' 'none' '--smt' 'none' '--argv' 'dummy' '--debug' '-cOPTIONS=`_Set_`(`SetItem`(`NoLink`(.KList)), `_Set_`(`SetItem`(`XBuiltins`(.KList)), `.Set`(.KList)))' '-pOPTIONS=printf %s' '-cJSON=#token("\"{\\\"suppressions\\\"\\x3a [],\\\"message_length\\\"\\x3a 80,\\\"format\\\"\\x3a \\\"Console\\\",\\\"previous_errors\\\"\\x3a [],\\\"fatal_errors\\\"\\x3a false,\\\"rv_error\\\"\\x3a \\\"\\\"}\"", "String")' '-pJSON=printf %s' '-cOBJS=.K' '-pOBJS=printf %s' '-cPGM=tmp-kcc-ld9RIal' '-pPGM=cat'
'/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/pp' '-I' '.' '-pedantic' '-pedantic' 'ctype.c' '-o' 'tmp-kcc-hLzLQA2'
Can't exec "rv-ifdefclear": No such file or directory at /root/src/c-semantics/c-semantics/dist/kcc line 4002.
/root/src/c-semantics/c-semantics/dist/cparser tmp-kcc-hLzLQA2 --trueName 'ctype.c' > tmp-kcc-OZa6_Dk
'krun' '--output' 'binary' '--output-file' 'tmp-kcc-GxaIDlM' '-d' '/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/c11-translation-kompiled' '-w' 'none' '--smt' 'none' '--argv' 'dummy' '--debug' '-cOPTIONS=`_Set_`(`SetItem`(`NoLink`(.KList)), `.Set`(.KList))' '-pOPTIONS=printf %s' '-cJSON=#token("\"{\\\"suppressions\\\"\\x3a [],\\\"message_length\\\"\\x3a 80,\\\"format\\\"\\x3a \\\"Console\\\",\\\"previous_errors\\\"\\x3a [],\\\"fatal_errors\\\"\\x3a false,\\\"rv_error\\\"\\x3a \\\"\\\"}\"", "String")' '-pJSON=printf %s' '-cOBJS=.K' '-pOBJS=printf %s' '-cPGM=tmp-kcc-OZa6_Dk' '-pPGM=cat'
'/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/pp' '-I' '.' '-pedantic' '-pedantic' '-pedantic' 'math.c' '-o' 'tmp-kcc-klxSZ4V'
Can't exec "rv-ifdefclear": No such file or directory at /root/src/c-semantics/c-semantics/dist/kcc line 4002.
/root/src/c-semantics/c-semantics/dist/cparser tmp-kcc-klxSZ4V --trueName 'math.c' > tmp-kcc-KCS3YEy
'krun' '--output' 'binary' '--output-file' 'tmp-kcc-XLsk6YR' '-d' '/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/c11-translation-kompiled' '-w' 'none' '--smt' 'none' '--argv' 'dummy' '--debug' '-cOPTIONS=`_Set_`(`SetItem`(`NoLink`(.KList)), `.Set`(.KList))' '-pOPTIONS=printf %s' '-cJSON=#token("\"{\\\"suppressions\\\"\\x3a [],\\\"message_length\\\"\\x3a 80,\\\"format\\\"\\x3a \\\"Console\\\",\\\"previous_errors\\\"\\x3a [],\\\"fatal_errors\\\"\\x3a false,\\\"rv_error\\\"\\x3a \\\"\\\"}\"", "String")' '-pJSON=printf %s' '-cOBJS=.K' '-pOBJS=printf %s' '-cPGM=tmp-kcc-KCS3YEy' '-pPGM=cat'
'/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/pp' '-I' '.' '-pedantic' '-pedantic' '-pedantic' '-pedantic' 'stdlib.c' '-o' 'tmp-kcc-SMR00CY'
Can't exec "rv-ifdefclear": No such file or directory at /root/src/c-semantics/c-semantics/dist/kcc line 4002.
/root/src/c-semantics/c-semantics/dist/cparser tmp-kcc-SMR00CY --trueName 'stdlib.c' > tmp-kcc-2qy23T6
'krun' '--output' 'binary' '--output-file' 'tmp-kcc-Szsntkq' '-d' '/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/c11-translation-kompiled' '-w' 'none' '--smt' 'none' '--argv' 'dummy' '--debug' '-cOPTIONS=`_Set_`(`SetItem`(`NoLink`(.KList)), `.Set`(.KList))' '-pOPTIONS=printf %s' '-cJSON=#token("\"{\\\"suppressions\\\"\\x3a [],\\\"message_length\\\"\\x3a 80,\\\"format\\\"\\x3a \\\"Console\\\",\\\"previous_errors\\\"\\x3a [],\\\"fatal_errors\\\"\\x3a false,\\\"rv_error\\\"\\x3a \\\"\\\"}\"", "String")' '-pJSON=printf %s' '-cOBJS=.K' '-pOBJS=printf %s' '-cPGM=tmp-kcc-2qy23T6' '-pPGM=cat'
'/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/pp' '-I' '.' '-pedantic' '-pedantic' '-pedantic' '-pedantic' '-pedantic' 'string.c' '-o' 'tmp-kcc-S0q37gB'
Can't exec "rv-ifdefclear": No such file or directory at /root/src/c-semantics/c-semantics/dist/kcc line 4002.
/root/src/c-semantics/c-semantics/dist/cparser tmp-kcc-S0q37gB --trueName 'string.c' > tmp-kcc-CijZE9J
'krun' '--output' 'binary' '--output-file' 'tmp-kcc-zvLmw2d' '-d' '/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/c11-translation-kompiled' '-w' 'none' '--smt' 'none' '--argv' 'dummy' '--debug' '-cOPTIONS=`_Set_`(`SetItem`(`NoLink`(.KList)), `.Set`(.KList))' '-pOPTIONS=printf %s' '-cJSON=#token("\"{\\\"suppressions\\\"\\x3a [],\\\"message_length\\\"\\x3a 80,\\\"format\\\"\\x3a \\\"Console\\\",\\\"previous_errors\\\"\\x3a [],\\\"fatal_errors\\\"\\x3a false,\\\"rv_error\\\"\\x3a \\\"\\\"}\"", "String")' '-pJSON=printf %s' '-cOBJS=.K' '-pOBJS=printf %s' '-cPGM=tmp-kcc-CijZE9J' '-pPGM=cat'
substr outside of string at /root/src/c-semantics/c-semantics/dist/kcc line 3940.
Use of uninitialized value $thisObj in concatenation (.) or string at /root/src/c-semantics/c-semantics/dist/kcc line 3942.
substr outside of string at /root/src/c-semantics/c-semantics/dist/kcc line 3940.
Use of uninitialized value $thisObj in concatenation (.) or string at /root/src/c-semantics/c-semantics/dist/kcc line 3942.
substr outside of string at /root/src/c-semantics/c-semantics/dist/kcc line 3940.
Use of uninitialized value $thisObj in concatenation (.) or string at /root/src/c-semantics/c-semantics/dist/kcc line 3942.
substr outside of string at /root/src/c-semantics/c-semantics/dist/kcc line 3940.
Use of uninitialized value $thisObj in concatenation (.) or string at /root/src/c-semantics/c-semantics/dist/kcc line 3942.
substr outside of string at /root/src/c-semantics/c-semantics/dist/kcc line 3940.
Use of uninitialized value $thisObj in concatenation (.) or string at /root/src/c-semantics/c-semantics/dist/kcc line 3942.
'krun' '--output' 'binary' '--output-file' 'tmp-kcc-Lw8SIuq' '-d' '/root/src/c-semantics/c-semantics/dist/x86-gcc-limited-libc/cpp14-translation-kompiled' '-w' 'none' '--smt' 'none' '--argv' 'dummy' '--debug' '-cOPTIONS=`_Set_`(`SetItem`(`NoLink`(.KList)), `.Set`(.KList))' '-pOPTIONS=printf %s' '-cJSON=#token("\"{\\\"suppressions\\\"\\x3a [],\\\"message_length\\\"\\x3a 80,\\\"format\\\"\\x3a \\\"Console\\\",\\\"previous_errors\\\"\\x3a [],\\\"fatal_errors\\\"\\x3a false,\\\"rv_error\\\"\\x3a \\\"\\\"}\"", "String")' '-pJSON=printf %s' '-cOBJS=tmp-kcc-ALGtF4J' '-pOBJS=cat' '-cPGM=.K' '-pPGM=printf %s'
java.util.NoSuchElementException
	at java.util.ArrayDeque.removeFirst(ArrayDeque.java:280)
	at java.util.ArrayDeque.pop(ArrayDeque.java:517)
	at org.kframework.parser.binary.BinaryParser.read400(BinaryParser.java:104)
	at org.kframework.parser.binary.BinaryParser.parse(BinaryParser.java:198)
	at org.kframework.parser.binary.BinaryParser.parse(BinaryParser.java:182)
	at org.kframework.krun.KRun.externalParse(KRun.java:385)
	at org.kframework.krun.KRun.parseConfigVars(KRun.java:302)
	at org.kframework.krun.KRun.run(KRun.java:84)
	at org.kframework.krun.KRunFrontEnd.run(KRunFrontEnd.java:97)
	at org.kframework.main.FrontEnd.main(FrontEnd.java:52)
	at org.kframework.main.Main.runApplication(Main.java:113)
	at org.kframework.main.Main.runApplication(Main.java:103)
	at org.kframework.main.Main.main(Main.java:52)
java.util.NoSuchElementException
	at java.util.ArrayDeque.removeFirst(ArrayDeque.java:280)
	at java.util.ArrayDeque.pop(ArrayDeque.java:517)
	at org.kframework.parser.binary.BinaryParser.read400(BinaryParser.java:104)
	at org.kframework.parser.binary.BinaryParser.parse(BinaryParser.java:198)
	at org.kframework.parser.binary.BinaryParser.parse(BinaryParser.java:182)
	at org.kframework.krun.KRun.externalParse(KRun.java:385)
	at org.kframework.krun.KRun.parseConfigVars(KRun.java:302)
	at org.kframework.krun.KRun.run(KRun.java:84)
	at org.kframework.krun.KRunFrontEnd.run(KRunFrontEnd.java:97)
	at org.kframework.main.FrontEnd.main(FrontEnd.java:52)
	at org.kframework.main.Main.runApplication(Main.java:113)
	at org.kframework.main.Main.runApplication(Main.java:103)
	at org.kframework.main.Main.main(Main.java:52)
[Error] Internal: Uncaught exception thrown of type NoSuchElementException.
Please rerun your program with the --debug flag to generate a stack trace, and
file a bug report at https://github.com/kframework/k/issues (null)
Error: Could not find or load main class org.kframework.main.BinaryToText
Translation failed (config dumped). Refer to last command run for details.

rv-jenkins added a commit that referenced this issue Oct 25, 2022
* Set Version 5.4.8

* Set Version: 5.4.9

* Set Version: 5.4.10

* Set Version: 5.4.11

* Set Version: 5.4.12

* Set Version: 5.4.13

* Set Version: 5.4.13

* Set Version: 5.4.14

* Set Version: 5.4.15

* Set Version: 5.4.16

* Set Version: 5.4.17

* Set Version: 5.4.18

* Set Version: 5.4.19

* Set Version: 5.4.20

* Set Version: 5.4.21

* Set Version: 5.4.22

* Set Version: 5.4.23

* Set Version: 5.4.24

* Set Version: 5.4.25

* Set Version: 5.4.26

* Set Version: 5.4.27

* Set Version: 5.4.28

* Set Version: 5.4.27

* Set Version: 5.4.28

* Set Version: 5.4.29

* Set Version: 5.4.30

* Set Version: 5.4.31

* Set Version: 5.4.32

* Set Version: 5.4.33

* Set Version: 5.4.34

* Set Version: 5.4.35

* Set Version: 5.4.36

* Set Version: 5.4.35

* Set Version: 5.4.36

* Set Version: 5.4.37

* Set Version: 5.4.38

* Set Version: 5.4.39

* Set Version: 5.4.40

* Set Version: 5.4.41

* Set Version: 5.4.42

* Set Version: 5.4.43

* Set Version: 5.4.44

* Set Version: 5.4.45

* Set Version: 5.4.46

* Set Version: 5.4.47

* Set Version: 5.4.48

* Set Version: 5.4.49

* Set Version: 5.4.50

* Set Version: 5.4.51

* Set Version: 5.4.52

* Set Version: 5.4.53

* Set Version: 5.4.54

* Set Version: 5.4.55

* Set Version: 5.5.0

* web/k-web-theme: 8aed71c - feat: Display code block selectors (#21)

Co-authored-by: Everett Hildenbrandt <everett.hildenbrandt@gmail.com>
Co-authored-by: devops <devops@runtimeverification.com>
Baltoli pushed a commit that referenced this issue Apr 9, 2024
Fixes #14

(This issue has already been fixed it seems.)
Baltoli pushed a commit that referenced this issue Apr 9, 2024
Fixes #14

(This issue has already been fixed it seems.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant