* python2_7: running distutils-r1_run_phase distutils-r1_python_compile python2.7 setup.py build running build running build_py copying gdal.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib copying ogr.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib copying osr.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib copying gdalconst.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib copying gdalnumeric.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib creating /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib/osgeo copying osgeo/gnm.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib/osgeo copying osgeo/osr.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib/osgeo copying osgeo/ogr.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib/osgeo copying osgeo/gdal.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib/osgeo copying osgeo/gdalnumeric.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib/osgeo copying osgeo/gdalconst.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib/osgeo copying osgeo/gdal_array.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib/osgeo copying osgeo/__init__.py -> /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/lib/osgeo warning: build_py: byte-compiling is disabled, skipping. running build_ext x86_64-pc-linux-gnu-g++ -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/include/python2.7 -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o building 'osgeo._gdal' extension creating /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/temp.linux-x86_64-2.7 creating /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/temp.linux-x86_64-2.7/extensions x86_64-pc-linux-gnu-g++ -march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden -std=c++14 -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/usr/include/python2.7 -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1/include -c extensions/gdal_wrap.cpp -o /var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1-python2_7/temp.linux-x86_64-2.7/extensions/gdal_wrap.o -I/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1/port -I/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1/gcore -I/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1/alg -I/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1/ogr -I/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1/ogr/ogrsf_frmts -I/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1/frmts/vrt -I/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1/apps extensions/gdal_wrap.cpp: In function ‘PyObject* _wrap_VirtualMem_GetAddr(PyObject*, PyObject*)’: extensions/gdal_wrap.cpp:14986:33: error: ‘obj0’ was not declared in this scope; did you mean ‘j0’? 14986 | if (PyBuffer_FillInfo(buf, obj0, *(arg2), *(arg3), *(arg5), PyBUF_ND)) { | ^~~~ | j0 error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1 * ERROR: sci-libs/gdal-2.4.1::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 6805: Called distutils-r1_src_compile * environment, line 1583: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile' * environment, line 624: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 6225: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 4867: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 4865: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 971: Called distutils-r1_run_phase 'distutils-r1_python_compile' * environment, line 1574: Called distutils-r1_python_compile * environment, line 1444: Called esetup.py 'build' * environment, line 2422: Called die * The specific snippet of code: * "${@}" || die "${die_args[@]}"; * * If you need support, post the output of `emerge --info '=sci-libs/gdal-2.4.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-libs/gdal-2.4.1::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM=openjdk-8 CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-8" JAVACFLAGS="-source 1.7 -target 1.7" COMPILER="" and of course, the output of emerge --info =gdal-2.4.1 * The complete build log is located at '/var/tmp/portage/sci-libs/gdal-2.4.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-libs/gdal-2.4.1/temp/environment'. * Working directory: '/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1/swig/python' * S: '/var/tmp/portage/sci-libs/gdal-2.4.1/work/gdal-2.4.1'
Created attachment 581708 [details] build.log.zip
Portage 2.3.68 (python 3.7.3-final-0, default/linux/amd64/17.1/desktop, gcc-9.1.0, glibc-2.29-r2, 5.1.15-gentoo x86_64) ================================================================= System uname: Linux-5.1.15-gentoo-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-gentoo-2.6 KiB Mem: 32645112 total, 11314892 free KiB Swap: 17301500 total, 17301500 free Timestamp of repository gentoo: Mon, 01 Jul 2019 00:45:01 +0000 Head commit of repository gentoo: f4ec2290fbd19606061cdaa667dd20df65335c36 sh bash 5.0_p7 ld GNU ld (Gentoo 2.32 p2) 2.32.0 distcc 3.3.2 x86_64-pc-linux-gnu [disabled] ccache version 3.7.1 [enabled] app-shells/bash: 5.0_p7::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.0::gentoo dev-lang/python: 2.7.16::gentoo, 3.6.8::gentoo, 3.7.3::gentoo dev-util/ccache: 3.7.1::gentoo dev-util/cmake: 3.14.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.17::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 9.1.0-r1::gentoo sys-devel/gcc-config: 2.0::gentoo sys-devel/libtool: 2.4.6-r5::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 crossdev location: /usr/local/crossdev masters: gentoo serenity location: /usr/local/portage masters: gentoo sattvik location: /var/lib/layman/sattvik sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/user/sattvik.git masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay sync-type: laymansync sync-uri: https://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 tlp location: /var/lib/layman/tlp sync-type: laymansync sync-uri: git://github.com/dywisor/tlp-portage.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/vmware-installer" CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -frecord-gcc-switches -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-frecord-gcc-switches" GENTOO_MIRRORS="https://mirror.netcologne.de/gentoo/" INSTALL_MASK="/etc/systemd/* /etc/xinetd.d/* /usr/lib/systemd/*" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-z,now" LINGUAS="de de_DE" MAKEOPTS="-j5 -l4" PKGDIR="/var/cache/binpkgs" PORTAGE_BUNZIP2_COMMAND="pbunzip2" PORTAGE_BZIP2_COMMAND="pbzip2" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-9e" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aalib acl adns alsa amd64 berkdb bidi bluetooth bzip2 cairo calendar caps cdda cddb cgi cjk cracklib crypt cups curl cvs cxx dbus dga djvu dri dts dv dvb dvd eds encode exif fbcon ffmpeg fftw flac fontconfig fortran ftp gd gdbm geolocation gif git gmp gnome-keyring gnutls gphoto2 gpm graphviz gsm gstreamer gtk iconv icu idn ieee1394 imagemagick imap imlib inotify introspection ipv6 java javascript jbig jemalloc jit joystick jpeg jpeg2k lame latex lcms ldap libass libcaca libnotify libsamplerate lm_sensors lua luajit lzma lzo mad maildir matroska mhash mikmod milter mmap mms mng modplug mono mp3 mpeg mplayer mtp musepack mysql mysqli ncurses networkmanager nls nntp nptl nsplugin offensive ogg openal openexr opengl openmp opus orc oss pam pcre pdf perl pie png policykit posix postscript pulseaudio python qt5 quicktime raw rdp readline rtmp samba sasl scanner sctp sdl seccomp session slang slp smartcard sndfile snmp soap sockets sound sox speex spell sqlite ssl startup-notification subversion suid svg symlink syslog taglib tcpd theora threads tiff truetype udev udisks unicode upnp usb v4l vaapi vcd vdpau vim-syntax vnc vorbis vpx wavpack wayland webkit webp wifi wmf wxwidgets x264 xattr xcb xcomposite xface xft xinetd xml xmp xpm xscreensaver xv xvid zeroconf zip zlib zsh-completion zstd" ABI_X86="32 64" COLLECTD_PLUGINS="apcups battery cgroups conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec fhcount filecount hddtemp hugepages interface ipc ipmi iptables irq load lvm java mcelog md memory mysql netlink nfs nginx ntpd openldap openvpn ping postgresql processes protocols rrdcached sensors serial smart snmp swap syslog tcpconns thermal turbostat unixsock uptime users" CPU_FLAGS_X86="aes avx avx2 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LCD_DEVICES="cfontzpacket crystalfontz glcd2usb hd44780 lcd2usb" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" NGINX_MODULES_HTTP="access auth_basic autoindex brotli browser charset fancyindex fastcgi geo geoip geoip2 gunzip gzip gzip_static headers_more image_filter javascript limit_conn limit_req map metrics proxy realip referer rewrite secure_link sticky stub_status upload_progress upstream_keepalive vhost_traffic_status xslt" NGINX_MODULES_MAIL="imap pop3 smtp" NGINX_MODULES_STREAM="access geo geoip geoip2 javascript limit_conn map realip return ssl_preread" PHP_TARGETS="php7-3" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby26" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="i965 intel iris" Unset: CC, CPPFLAGS, CTARGET, CXX, PORTAGE_BINHOST
Comment on attachment 581708 [details] build.log.zip Why would you put a single file in a ZIP archive?
(In reply to Jeroen Roovers from comment #3) > Comment on attachment 581708 [details] > build.log.zip > > Why would you put a single file in a ZIP archive? I am only allowed for max 1mb upload. Log is 6-7mb.
I can confirm the bug. Same error output happens here.
Same error here. Try compiling with USE="-python". That worked for me. Just disabling python2.7 (USE="-python_targets_python2_7") just moved the error to the python3_5 plugin compilation. Here are my USE flags for the successful merge: # eix -e gdal [I] sci-libs/gdal Available versions: 2.4.1(0/2.3) {armadillo +aux_xml curl debug doc fits geos gif gml hdf5 java jpeg jpeg2k lzma mdb mysql netcdf odbc ogdi opencl oracle pdf perl png postgres python spatialite sqlite threads webp xls zstd ELIBC="FreeBSD" PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7"} Installed versions: 2.4.1(0/2.3)(11:51:37 AM 07/03/2019)(armadillo aux_xml curl geos gif hdf5 java jpeg lzma opencl pdf perl png postgres sqlite threads -debug -doc -fits -gml -jpeg2k -mdb -mysql -netcdf -odbc -ogdi -oracle -python -spatialite -webp -xls -zstd ELIBC="-FreeBSD" PYTHON_TARGETS="python3_5 python3_6 python3_7 -python2_7") Homepage: https://gdal.org/ Description: Translator library for raster geospatial data formats (includes OGR support)
Same here. Wanted to insapp qmapshack but was unable to to so due to gdal not compiling
This looks like a fix: https://github.com/OSGeo/gdal/commit/7a2c9f9348e1bf6bd95033d0b4da09a243fd9e6d#diff-3ef44370ca1420628aeefb098b432e1cR15241
(In reply to peteru from comment #8) > This looks like a fix: > https://github.com/OSGeo/gdal/commit/ > 7a2c9f9348e1bf6bd95033d0b4da09a243fd9e6d#diff- > 3ef44370ca1420628aeefb098b432e1cR15241 Thanks, seems to work for me.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd8c4c7ef1317f981fd118b9177de1d1aa31dcae commit dd8c4c7ef1317f981fd118b9177de1d1aa31dcae Author: Conrad Kostecki <conrad@kostecki.com> AuthorDate: 2019-07-13 19:06:25 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-07-15 05:36:15 +0000 sci-libs/gdal: fix build with enabled python use flag Closes: https://bugs.gentoo.org/689110 Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Conrad Kostecki <conrad@kostecki.com> Closes: https://github.com/gentoo/gentoo/pull/12441 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> sci-libs/gdal/files/gdal-2.4.1-swig-4.patch | 115 ++++++++++ sci-libs/gdal/gdal-2.4.1-r1.ebuild | 321 ++++++++++++++++++++++++++++ 2 files changed, 436 insertions(+)