Closed dinikolop closed 5 years ago
/cc @uilianries
Hi @dinikolop !
I can't reproduce your error when running in the docker image conanio/gcc9. I think is related to your environment.
Anyway, I've applied new compilers to libpq: https://github.com/bincrafters/conan-libpq/commit/aa77e487c8be30b79af1b5d6bcdc0f8cf6b49eb3
You need to wait our CI service to distribute the new packages: https://travis-ci.com/bincrafters/conan-libpq/builds/123286176
HI @dinikolop !
libpq is available for gcc9! please, update you local copy and try again.
I get the same error, but then under windows using the built-in msys installer. Will try later with msys installed separately as in the appveyor builds.
[settings] os=Windows os_build=Windows arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.threads=posix compiler.libcxx=libstdc++ compiler.version=8.1 compiler.exception=seh [options] [build_requires] *: cmake_installer/3.15.2@conan/stable, mingw_installer/1.0@conan/stable, msys2_installer/latest@bincrafters/stable [env]
@SSE4 for me that did not help. What did work is changing conanfile.py to run the top directory makefile instead of changing into the directories and running make there.
This means changing line 86 and onward to: autotools = self._configure_autotools() with tools.chdir(self._source_subfolder): autotools.make()
I left the install the same, but I can imagine that works too. Before I make a PR, I was wondering if you know the reason for setting it up like it was?
@mjvk I think to reduce build times - the source code archive is shared between PosgreSQL server itself and client libraries, so full build is redundant. probably, we either have to run configure
in sub-folders itself, or run full-build otherwise.
I think you are right, looking at travis with changes it takes more then double the time and then fails due to the log being too long. I'll try with the configure in each subdir.
[update] There is only one configure file...
Thank you for issuing this problem. Works now ! :+1:
for future-readers, the fix is now documented:
If you want to invoke the build from another makefile rather than manually, you must unset
MAKELEVEL
or set it to zero, for instance like this:build-postgresql: $(MAKE) -C postgresql MAKELEVEL=0 all
Failure to do that can lead to strange error messages, typically about missing header files.
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
Logs (Include/Attach if Applicable)