conan-center-index
conan-center-index copied to clipboard
swig: fix autoreconf error
Summary
Changes to recipe: swig/[*]
Motivation
Currently fails to build for me locally on Linux, possibly due to the upgrade from autoconf/2.7.1 to autoconf/2.7.2 on CCI.
configure.ac:12: installing 'Tools/config/missing'
Source/Makefile.am: installing 'Tools/config/depcomp'
configure.ac: installing 'Tools/config/ylwrap'
+ autoconf
aclocal.m4:17: warning: this file was generated for autoconf 2.72.
You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically 'autoreconf'.
configure:15698: error: possibly undefined macro: _AC_FINALIZE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
Details
Replaced the ./autogen.sh (https://github.com/swig/swig/blob/master/autogen.sh) call with the more standard autotools.autoreconf() one. This fixed the configure failure for me. Did not investigate why exactly, but it did.
- [x] Read the contributing guidelines
- [x] Checked that this PR is not a duplicate: list of PRs by recipe
- [x] Tested locally with at least one configuration using a recent version of Conan
Conan v1 pipeline :x:
Failure in build 1 (b13021552b69b7a3dcd5ae3a4a96cf9bad49d58a):
-
swig/4.1.0: Didn't run or was cancelled before finishing
-
swig/4.1.1: Didn't run or was cancelled before finishing
-
swig/4.0.2: Didn't run or was cancelled before finishing
-
swig/4.2.1: CI failed to create some packages (All logs)
Logs for packageID
3a66819f743ff90236a1b96d833196d5d6e0a0b2:[settings] arch=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=16 os=Windows[...] cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/test-suite/mzscheme/Makefile: input file is output file cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/test-suite/ocaml/Makefile: input file is output file cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/test-suite/octave/Makefile: input file is output file cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/test-suite/perl5/Makefile: input file is output file cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/test-suite/php/Makefile: input file is output file cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/test-suite/python/Makefile: input file is output file cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/test-suite/r/Makefile: input file is output file cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/test-suite/ruby/Makefile: input file is output file cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/test-suite/scilab/Makefile: input file is output file cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/test-suite/tcl/Makefile: input file is output file cat: /c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Examples/xml/Makefile: input file is output file mkdir: cannot create directory '/dev/shm': Read-only file system mkdir: cannot create directory '/dev/mqueue': Read-only file system m4.exe:C:/J/workspace/prod-v1/bsr/92321/bdeaf/s/ca4d32/1/bin/msys64/usr/share/bison/skeletons/c-skel.m4:27: cannot open `/usr/share/bison/skeletons/yacc.c': No such file or directory m4.exe:C:/J/workspace/prod-v1/bsr/92321/bdeaf/s/ca4d32/1/bin/msys64/usr/share/bison/skeletons/c-skel.m4:27: cannot open `/usr/share/bison/skeletons/yacc.c': No such file or directory m4.exe: m4_syscmd subprocess failed: No such file or directory m4.exe:stdin:1: m4.exe: m4_syscmd subprocess failedcannot run command `cat <<'_m4eof' @complain(complain@,/c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Source/CParse/parser.y:31.1@@1@,/c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Source/CParse/parser.y:31.22@@22@,%s '%s' is not used@,%define variable@,api.token.raw@)@ _m4eof ': No such file or directory: No such file or directory m4.exe:stdin:1: cannot run command `cat <<'_m4eof' @complain(complain@,/c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Source/CParse/parser.y:31.1@@1@,/c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Source/CParse/parser.y:31.22@@22@,%s '%s' is not used@,%define variable@,api.token.raw@)@ _m4eof ': No such file or directorystdin:1: error: b4_cat: cannot write to stdout stdin:1: the top level stdin:1: error: b4_cat: cannot write to stdout stdin:1: the top level m4.exe:C:/J/workspace/prod-v1/bsr/92321/bdeaf/s/ca4d32/1/bin/msys64/usr/share/bison/skeletons/c-skel.m4:27: cannot open `/usr/share/bison/skeletons/yacc.c': No such file or directory m4.exe: m4_syscmd subprocess failed: No such file or directory m4.exe:stdin:1: cannot run command `cat <<'_m4eof' @complain(complain@,/c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Source/CParse/parser.y:31.1@@1@,/c/j/workspace/prod-v1/bsr/92321/bdeaf/.conan/data/swig/4.2.1/_/_/build/3a66819f743ff90236a1b96d833196d5d6e0a0b2/src/Source/CParse/parser.y:31.22@@22@,%s '%s' is not used@,%define variable@,api.token.raw@)@ _m4eof ': No such file or directory stdin:1: error: b4_cat: cannot write to stdout stdin:1: the top level make[2]: *** [Makefile:967: CParse/cscanner.obj] Error 2 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:967: CParse/parser.obj] Error 2 make[1]: *** [Makefile:625: all] Error 2 make: *** [Makefile:36: source] Error 2 WARN: *** Conan 1 is legacy and on a deprecation path *** WARN: *** Please upgrade to Conan 2 *** swig/4.2.1: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior swig/4.2.1: ERROR: Package '3a66819f743ff90236a1b96d833196d5d6e0a0b2' build failed swig/4.2.1: WARN: Build folder C:\J\workspace\prod-v1\bsr\92321\bdeaf\.conan\data\swig\4.2.1\_\_\build\3a66819f743ff90236a1b96d833196d5d6e0a0b2\build-release ERROR: swig/4.2.1: Error in build() method, line 153 autotools.make() ConanException: Error 2 while executing make -j8 -
swig/4.0.1: Didn't run or was cancelled before finishing
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.
Conan v2 pipeline :x:
Note: Conan v2 builds are now mandatory. Please read our discussion about it.
The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.
Failure in build 1 (b13021552b69b7a3dcd5ae3a4a96cf9bad49d58a):
-
swig/4.2.1: CI failed to create some packages (All logs)
Logs for packageID
4a2478565a5e87d93aa543cfbe1d76880a8720cf:[settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=192 os=Windows [options] */*:shared=False[...] CParse\cscanner.c(396): error C2065: 'yylval': undeclared identifier CParse\cscanner.c(396): error C2224: left of '.str' must have struct/union type CParse\cscanner.c(396): error C2198: 'DohLen': too few arguments for call CParse\cscanner.c(399): error C2065: 'WCHARCONST': undeclared identifier CParse\cscanner.c(404): error C2065: 'NUM_INT': undeclared identifier CParse\cscanner.c(407): error C2065: 'NUM_UNSIGNED': undeclared identifier CParse\cscanner.c(410): error C2065: 'NUM_LONG': undeclared identifier CParse\cscanner.c(413): error C2065: 'NUM_ULONG': undeclared identifier CParse\cscanner.c(416): error C2065: 'NUM_LONGLONG': undeclared identifier CParse\cscanner.c(419): error C2065: 'NUM_ULONGLONG': undeclared identifier CParse\cscanner.c(422): error C2065: 'NUM_DOUBLE': undeclared identifier CParse\cscanner.c(425): error C2065: 'NUM_FLOAT': undeclared identifier CParse\cscanner.c(428): error C2065: 'NUM_LONGDOUBLE': undeclared identifier CParse\cscanner.c(431): error C2065: 'NUM_BOOL': undeclared identifier CParse\cscanner.c(435): error C2065: 'yylval': undeclared identifier CParse\cscanner.c(435): error C2224: left of '.id' must have struct/union type CParse\cscanner.c(436): error C2065: 'POUND': undeclared identifier CParse\cscanner.c(439): error C2065: 'yylval': undeclared identifier CParse\cscanner.c(439): error C2224: left of '.str' must have struct/union type CParse\cscanner.c(440): error C2065: 'HBLOCK': undeclared identifier CParse\cscanner.c(498): error C2065: 'yylval': undeclared identifier CParse\cscanner.c(498): error C2224: left of '.str' must have struct/union type CParse\cscanner.c(499): error C2065: 'yylval': undeclared identifier CParse\cscanner.c(499): error C2224: left of '.str' must have struct/union type CParse\cscanner.c(499): warning C4022: 'DohSetline': pointer mismatch for actual parameter 1 CParse\cscanner.c(499): error C2198: 'DohSetline': too few arguments for call CParse\cscanner.c(500): error C2065: 'yylval': undeclared identifier CParse\cscanner.c(500): error C2224: left of '.str' must have struct/union type CParse\cscanner.c(500): error C2198: 'DohSetfile': too few arguments for call CParse\cscanner.c(507): error C2065: 'yylval': undeclared identifier CParse\cscanner.c(507): error C2224: left of '.str' must have struct/union type CParse\cscanner.c(507): warning C4022: 'DohInsertitem': pointer mismatch for actual parameter 1 CParse\cscanner.c(507): warning C4047: 'function': 'int' differs in levels of indirection from 'char [2]' CParse\cscanner.c(507): warning C4024: 'DohInsertitem': different types for formal and actual parameter 2 CParse\cscanner.c(507): error C2198: 'DohInsertitem': too few arguments for call CParse\cscanner.c(509): error C2065: 'yylval': undeclared identifier CParse\cscanner.c(509): error C2224: left of '.str' must have struct/union type CParse\cscanner.c(509): fatal error C1003: error count exceeds 100; stopping compilation make[2]: *** [Makefile:967: CParse/cscanner.obj] Error 2 make[2]: Leaving directory '/c/J/workspace/prod-v2/bsr@2/82869/bfcfc/p/b/swigdd85a016548a3/b/src/Source' make[1]: *** [Makefile:625: all] Error 2 make[1]: Leaving directory '/c/J/workspace/prod-v2/bsr@2/82869/bfcfc/p/b/swigdd85a016548a3/b/src/Source' make: *** [Makefile:36: source] Error 2 swig/4.2.1: ERROR: Package '4a2478565a5e87d93aa543cfbe1d76880a8720cf' build failed swig/4.2.1: WARN: Build folder C:\J\workspace\prod-v2\bsr@2\82869\bfcfc\p\b\swigdd85a016548a3\b\build-release ERROR: swig/4.2.1: Error in build() method, line 153 autotools.make() ConanException: Error 2 while executing -
swig/4.1.1: Didn't run or was cancelled before finishing
-
swig/4.1.0: Didn't run or was cancelled before finishing
-
swig/4.0.1: Didn't run or was cancelled before finishing
-
swig/4.0.2: Didn't run or was cancelled before finishing
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.
Conan v1 pipeline :heavy_check_mark:
All green in build 2 (6dd98a3b10296f4b185d07fc8066df2bb2bbc998):
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Martin Valgur seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.