Advertisement
Guest User

libantrl3c - compile error

a guest
May 16th, 2021
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.33 KB | None | 0 0
  1. robot@ev3dev:~/.smt_solvers/cvc4/cvc5-391ab9df6c3fd9a3771864900c1718534c1e4666/contrib$ ./get-antlr-3.4
  2. --2021-05-16 09:32:35-- http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  3. Resolving git.savannah.gnu.org (git.savannah.gnu.org)... 209.51.188.201
  4. Connecting to git.savannah.gnu.org (git.savannah.gnu.org)|209.51.188.201|:80... connected.
  5. HTTP request sent, awaiting response... 200 OK
  6. Length: unspecified [text/plain]
  7. Saving to: ‘antlr-3.4/config.guess’
  8.  
  9. antlr-3.4/config.guess [ <=> ] 48.44K 206KB/s in 0.2s
  10.  
  11. 2021-05-16 09:32:36 (206 KB/s) - ‘antlr-3.4/config.guess’ saved [49598]
  12.  
  13. + mkdir -p antlr-3.4/share/java
  14. + mkdir -p antlr-3.4/bin
  15. + mkdir -p antlr-3.4/src
  16. + cd antlr-3.4
  17. + webget https://www.antlr3.org/download/antlr-3.4-complete.jar share/java/antlr-3.4-complete.jar
  18. + which wget
  19. + wget -c -O share/java/antlr-3.4-complete.jar https://www.antlr3.org/download/antlr-3.4-complete.jar
  20. --2021-05-16 09:32:41-- https://www.antlr3.org/download/antlr-3.4-complete.jar
  21. Resolving www.antlr3.org (www.antlr3.org)... 185.199.109.153, 185.199.108.153, 185.199.111.153, ...
  22. Connecting to www.antlr3.org (www.antlr3.org)|185.199.109.153|:443... connected.
  23. HTTP request sent, awaiting response... 200 OK
  24. Length: 2388361 (2.3M) [application/java-archive]
  25. Saving to: ‘share/java/antlr-3.4-complete.jar’
  26.  
  27. share/java/antlr-3.4-complete.jar 100%[=================================================================================================================================================================================================>] 2.28M 656KB/s in 3.8s
  28.  
  29. 2021-05-16 09:32:47 (619 KB/s) - ‘share/java/antlr-3.4-complete.jar’ saved [2388361/2388361]
  30.  
  31. + webget https://www.antlr3.org/download/C/libantlr3c-3.4.tar.gz src/libantlr3c-3.4.tar.gz
  32. + which wget
  33. + wget -c -O src/libantlr3c-3.4.tar.gz https://www.antlr3.org/download/C/libantlr3c-3.4.tar.gz
  34. --2021-05-16 09:32:47-- https://www.antlr3.org/download/C/libantlr3c-3.4.tar.gz
  35. Resolving www.antlr3.org (www.antlr3.org)... 185.199.109.153, 185.199.110.153, 185.199.111.153, ...
  36. Connecting to www.antlr3.org (www.antlr3.org)|185.199.109.153|:443... connected.
  37. HTTP request sent, awaiting response... 200 OK
  38. Length: 546039 (533K) [application/gzip]
  39. Saving to: ‘src/libantlr3c-3.4.tar.gz’
  40.  
  41. src/libantlr3c-3.4.tar.gz 100%[=================================================================================================================================================================================================>] 533.24K 491KB/s in 1.1s
  42.  
  43. 2021-05-16 09:32:50 (491 KB/s) - ‘src/libantlr3c-3.4.tar.gz’ saved [546039/546039]
  44.  
  45. + tee bin/antlr3
  46. ++ pwd
  47. #!/bin/bash
  48. export CLASSPATH=/home/robot/.smt_solvers/cvc4/cvc5-391ab9df6c3fd9a3771864900c1718534c1e4666/antlr-3.4/share/java/antlr-3.4-complete.jar:$CLASSPATH
  49. exec java org.antlr.Tool "$@"
  50. + chmod a+x bin/antlr3
  51. + cd src
  52. + gunzip -f libantlr3c-3.4.tar.gz
  53. + tar xfv libantlr3c-3.4.tar
  54. libantlr3c-3.4/
  55. libantlr3c-3.4/depcomp
  56. libantlr3c-3.4/doxygen/
  57. libantlr3c-3.4/doxygen/using.dox
  58. libantlr3c-3.4/doxygen/mainpage.dox
  59. libantlr3c-3.4/doxygen/atsections.dox
  60. libantlr3c-3.4/doxygen/knownissues.dox
  61. libantlr3c-3.4/doxygen/doxygengroups.dox
  62. libantlr3c-3.4/doxygen/changes31.dox
  63. libantlr3c-3.4/doxygen/runtime.dox
  64. libantlr3c-3.4/doxygen/interop.dox
  65. libantlr3c-3.4/doxygen/generate.dox
  66. libantlr3c-3.4/doxygen/build.dox
  67. libantlr3c-3.4/doxygen/buildrec.dox
  68. libantlr3c-3.4/COPYING
  69. libantlr3c-3.4/C.vcproj.vspscc
  70. libantlr3c-3.4/aclocal.m4
  71. libantlr3c-3.4/C.vssscc
  72. libantlr3c-3.4/Makefile.am
  73. libantlr3c-3.4/include/
  74. libantlr3c-3.4/include/antlr3cyclicdfa.h
  75. libantlr3c-3.4/include/antlr3commontoken.h
  76. libantlr3c-3.4/include/antlr3.h
  77. libantlr3c-3.4/include/antlr3basetree.h
  78. libantlr3c-3.4/include/antlr3defs.h
  79. libantlr3c-3.4/include/antlr3commontree.h
  80. libantlr3c-3.4/include/antlr3recognizersharedstate.h
  81. libantlr3c-3.4/include/antlr3filestream.h
  82. libantlr3c-3.4/include/antlr3parsetree.h
  83. libantlr3c-3.4/include/antlr3commontreeadaptor.h
  84. libantlr3c-3.4/include/antlr3treeparser.h
  85. libantlr3c-3.4/include/antlr3baserecognizer.h
  86. libantlr3c-3.4/include/antlr3memory.h
  87. libantlr3c-3.4/include/antlr3interfaces.h
  88. libantlr3c-3.4/include/antlr3input.h
  89. libantlr3c-3.4/include/antlr3encodings.h
  90. libantlr3c-3.4/include/antlr3errors.h
  91. libantlr3c-3.4/include/antlr3string.h
  92. libantlr3c-3.4/include/antlr3basetreeadaptor.h
  93. libantlr3c-3.4/include/antlr3debugeventlistener.h
  94. libantlr3c-3.4/include/antlr3commontreenodestream.h
  95. libantlr3c-3.4/include/antlr3bitset.h
  96. libantlr3c-3.4/include/antlr3parser.h
  97. libantlr3c-3.4/include/antlr3lexer.h
  98. libantlr3c-3.4/include/antlr3rewritestreams.h
  99. libantlr3c-3.4/include/antlr3tokenstream.h
  100. libantlr3c-3.4/include/antlr3convertutf.h
  101. libantlr3c-3.4/include/antlr3collections.h
  102. libantlr3c-3.4/include/antlr3intstream.h
  103. libantlr3c-3.4/include/antlr3exception.h
  104. libantlr3c-3.4/C.sln
  105. libantlr3c-3.4/INSTALL
  106. libantlr3c-3.4/install-sh
  107. libantlr3c-3.4/ltmain.sh
  108. libantlr3c-3.4/config.sub
  109. libantlr3c-3.4/AUTHORS
  110. libantlr3c-3.4/missing
  111. libantlr3c-3.4/config.guess
  112. libantlr3c-3.4/m4/
  113. libantlr3c-3.4/m4/ltoptions.m4
  114. libantlr3c-3.4/m4/libtool.m4
  115. libantlr3c-3.4/m4/ltversion.m4
  116. libantlr3c-3.4/m4/ltsugar.m4
  117. libantlr3c-3.4/m4/lt~obsolete.m4
  118. libantlr3c-3.4/Makefile.in
  119. libantlr3c-3.4/README
  120. libantlr3c-3.4/vsrulefiles/
  121. libantlr3c-3.4/vsrulefiles/antlr3treeparser.rules
  122. libantlr3c-3.4/vsrulefiles/antlr3lexer.rules
  123. libantlr3c-3.4/vsrulefiles/antlr3parser.rules
  124. libantlr3c-3.4/vsrulefiles/antlr3lexerandparser.rules
  125. libantlr3c-3.4/antlr3config.h.in
  126. libantlr3c-3.4/src/
  127. libantlr3c-3.4/src/antlr3cyclicdfa.c
  128. libantlr3c-3.4/src/antlr3basetreeadaptor.c
  129. libantlr3c-3.4/src/antlr3filestream.c
  130. libantlr3c-3.4/src/antlr3intstream.c
  131. libantlr3c-3.4/src/antlr3convertutf.c
  132. libantlr3c-3.4/src/antlr3basetree.c
  133. libantlr3c-3.4/src/antlr3rewritestreams.c
  134. libantlr3c-3.4/src/antlr3baserecognizer.c
  135. libantlr3c-3.4/src/antlr3commontreenodestream.c
  136. libantlr3c-3.4/src/antlr3collections.c
  137. libantlr3c-3.4/src/antlr3commontoken.c
  138. libantlr3c-3.4/src/antlr3parser.c
  139. libantlr3c-3.4/src/antlr3bitset.c
  140. libantlr3c-3.4/src/antlr3inputstream.c
  141. libantlr3c-3.4/src/antlr3string.c
  142. libantlr3c-3.4/src/antlr3tokenstream.c
  143. libantlr3c-3.4/src/antlr3commontree.c
  144. libantlr3c-3.4/src/antlr3lexer.c
  145. libantlr3c-3.4/src/antlr3exception.c
  146. libantlr3c-3.4/src/antlr3treeparser.c
  147. libantlr3c-3.4/src/antlr3encodings.c
  148. libantlr3c-3.4/src/antlr3debughandlers.c
  149. libantlr3c-3.4/src/antlr3commontreeadaptor.c
  150. libantlr3c-3.4/antlr3config.h
  151. libantlr3c-3.4/C.vcproj
  152. libantlr3c-3.4/configure.ac
  153. libantlr3c-3.4/doxyfile
  154. libantlr3c-3.4/ChangeLog
  155. libantlr3c-3.4/NEWS
  156. libantlr3c-3.4/configure
  157. + cd libantlr3c-3.4
  158. +++ pwd
  159. ++ realpath /home/robot/.smt_solvers/cvc4/cvc5-391ab9df6c3fd9a3771864900c1718534c1e4666/antlr-3.4/src/libantlr3c-3.4/../..
  160. + PREFIX=/home/robot/.smt_solvers/cvc4/cvc5-391ab9df6c3fd9a3771864900c1718534c1e4666/antlr-3.4
  161. + rm -rf src/antlr3debughandlers.c
  162. + touch src/antlr3debughandlers.c
  163. + '[' armv5tejl == x86_64 ']'
  164. + ./configure --disable-antlrdebug --prefix=/home/robot/.smt_solvers/cvc4/cvc5-391ab9df6c3fd9a3771864900c1718534c1e4666/antlr-3.4 --disable-shared --enable-static
  165. checking for a BSD-compatible install... /usr/bin/install -c
  166. checking whether build environment is sane... yes
  167. checking for a thread-safe mkdir -p... /bin/mkdir -p
  168. checking for gawk... no
  169. checking for mawk... mawk
  170. checking whether make sets $(MAKE)... yes
  171. checking for xlc... no
  172. checking for aCC... no
  173. checking for gcc... gcc
  174. checking whether the C compiler works... yes
  175. checking for C compiler default output file name... a.out
  176. checking for suffix of executables...
  177. checking whether we are cross compiling... no
  178. checking for suffix of object files... o
  179. checking whether we are using the GNU C compiler... yes
  180. checking whether gcc accepts -g... yes
  181. checking for gcc option to accept ISO C89... none needed
  182. checking for style of include used by make... GNU
  183. checking dependency style of gcc... gcc3
  184. checking whether to enable maintainer-specific portions of Makefiles... no
  185. checking build system type... armv5tejl-unknown-linux-gnueabi
  186. checking host system type... armv5tejl-unknown-linux-gnueabi
  187. checking how to print strings... printf
  188. checking for a sed that does not truncate output... /bin/sed
  189. checking for grep that handles long lines and -e... /bin/grep
  190. checking for egrep... /bin/grep -E
  191. checking for fgrep... /bin/grep -F
  192. checking for ld used by gcc... /usr/bin/ld
  193. checking if the linker (/usr/bin/ld) is GNU ld... yes
  194. checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  195. checking the name lister (/usr/bin/nm -B) interface... BSD nm
  196. checking whether ln -s works... yes
  197. checking the maximum length of command line arguments... 1572864
  198. checking whether the shell understands some XSI constructs... yes
  199. checking whether the shell understands "+="... yes
  200. checking for /usr/bin/ld option to reload object files... -r
  201. checking for objdump... objdump
  202. checking how to recognize dependent libraries... pass_all
  203. checking for ar... ar
  204. checking for strip... strip
  205. checking for ranlib... ranlib
  206. checking command to parse /usr/bin/nm -B output from gcc object... ok
  207. checking how to run the C preprocessor... gcc -E
  208. checking for ANSI C header files... yes
  209. checking for sys/types.h... yes
  210. checking for sys/stat.h... yes
  211. checking for stdlib.h... yes
  212. checking for string.h... yes
  213. checking for memory.h... yes
  214. checking for strings.h... yes
  215. checking for inttypes.h... yes
  216. checking for stdint.h... yes
  217. checking for unistd.h... yes
  218. checking for dlfcn.h... yes
  219. checking for objdir... .libs
  220. checking if gcc supports -fno-rtti -fno-exceptions... no
  221. checking for gcc option to produce PIC... -fPIC -DPIC
  222. checking if gcc PIC flag -fPIC -DPIC works... yes
  223. checking if gcc static flag -static works... yes
  224. checking if gcc supports -c -o file.o... yes
  225. checking if gcc supports -c -o file.o... (cached) yes
  226. checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
  227. checking dynamic linker characteristics... GNU/Linux ld.so
  228. checking how to hardcode library paths into programs... immediate
  229. checking whether stripping libraries is possible... yes
  230. checking if libtool supports shared libraries... yes
  231. checking whether to build shared libraries... no
  232. checking whether to build static libraries... yes
  233. checking compiler flags required for compiling ANTLR with gcc C compiler on host armv5tejl-unknown-linux-gnueabi... -m32 -O2 -Wall
  234. checking whether ln -s works... yes
  235. checking whether make sets $(MAKE)... (cached) yes
  236. ./configure: line 10723: #include: command not found
  237. checking for sys/types.h... (cached) yes
  238. checking for netinet/in.h... no
  239. checking for arpa/nameser.h... no
  240. checking for netdb.h... no
  241. checking for resolv.h... no
  242. checking for sys/malloc.h... no
  243. checking for malloc.h... no
  244. checking for stdarg.h... no
  245. checking for sys/stat.h... (cached) yes
  246. checking for ctype.h... no
  247. checking for netinet/tcp.h... no
  248. checking for sys/socket.h... no
  249. checking for socket.h... no
  250. checking for an ANSI C-conforming const... no
  251. checking for size_t... no
  252. checking for int8_t... no
  253. checking for int16_t... no
  254. checking for int32_t... no
  255. checking for int64_t... no
  256. checking for intptr_t... no
  257. checking for uint8_t... no
  258. checking for uint16_t... no
  259. checking for uint32_t... no
  260. checking for uint64_t... no
  261. checking for uintptr_t... no
  262. checking for inline... no
  263. checking for memmove... no
  264. checking for memset... no
  265. checking for strdup... no
  266. checking for accept... no
  267. configure: creating ./config.status
  268. config.status: creating Makefile
  269. config.status: creating antlr3config.h
  270. config.status: executing depfiles commands
  271. config.status: executing libtool commands
  272. + cp Makefile Makefile.orig
  273. + sed 's,^\(CFLAGS = .*\),\1 -fexceptions,' Makefile.orig
  274. + make CFLAGS= CXXFLAGS= LDFLAGS=
  275. make all-am
  276. make[1]: Entering directory '/home/robot/.smt_solvers/cvc4/cvc5-391ab9df6c3fd9a3771864900c1718534c1e4666/antlr-3.4/src/libantlr3c-3.4'
  277. /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Iinclude -MT antlr3baserecognizer.lo -MD -MP -MF .deps/antlr3baserecognizer.Tpo -c -o antlr3baserecognizer.lo `test -f 'src/antlr3baserecognizer.c' || echo './'`src/antlr3baserecognizer.c
  278. libtool: compile: gcc -DHAVE_CONFIG_H -I. -Iinclude -MT antlr3baserecognizer.lo -MD -MP -MF .deps/antlr3baserecognizer.Tpo -c src/antlr3baserecognizer.c -o antlr3baserecognizer.o
  279. In file included from include/antlr3defs.h:246:0,
  280. from include/antlr3baserecognizer.h:39,
  281. from src/antlr3baserecognizer.c:9:
  282. ./antlr3config.h:167:16: error: duplicate 'unsigned'
  283. #define size_t unsigned int
  284. ^
  285. ./antlr3config.h:167:25: error: two or more data types in declaration specifiers
  286. #define size_t unsigned int
  287. ^
  288. Makefile:449: recipe for target 'antlr3baserecognizer.lo' failed
  289. make[1]: *** [antlr3baserecognizer.lo] Error 1
  290. make[1]: Leaving directory '/home/robot/.smt_solvers/cvc4/cvc5-391ab9df6c3fd9a3771864900c1718534c1e4666/antlr-3.4/src/libantlr3c-3.4'
  291. Makefile:308: recipe for target 'all' failed
  292. make: *** [all] Error 2
  293.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement