Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931786 - media-gfx/asymptote-2.89 fails to compile
Summary: media-gfx/asymptote-2.89 fails to compile
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-12 07:44 UTC by Eugene Shalygin
Modified: 2024-06-03 05:00 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log.zst,4.63 KB, application/zstd)
2024-05-12 07:47 UTC, Eugene Shalygin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shalygin 2024-05-12 07:44:45 UTC
/usr/include/GL/osmesa.h does not define the APIENTRY macro, and asymtote does not include any other header which define said macro. This results in an error for each declaration in osmesa.h. For example:

/usr/include/GL/osmesa.h:125:1: error: expected initializer before ‘OSMesaCreateContext’

Reproducible: Always




emerge --info media-gfx/asymptote
Portage 3.0.64 (python 3.12.3-final-0, default/linux/amd64/23.0/desktop/plasma/systemd, gcc-14, glibc-2.39-r5, 6.8.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.8.9-gentoo-x86_64-AMD_Ryzen_9_5900HX_with_Radeon_Graphics-with-glibc2.39
KiB Mem:    65271036 total,  42915824 free
KiB Swap:  100663292 total, 100663292 free
Timestamp of repository gentoo: Sun, 12 May 2024 06:48:51 +0000
Head commit of repository gentoo: c3eae5447ad3ee1e4b5d909b483f0afba0640cad

Timestamp of repository brother-overlay: Sat, 13 Apr 2024 18:48:19 +0000
Head commit of repository brother-overlay: 3244b30b0469b918e4545f641f28a521990e91b4

Timestamp of repository dwosky: Sun, 12 May 2024 05:07:16 +0000
Head commit of repository dwosky: 79cbcf2effcf11d8edf55bb96a3c27ee57e2af72

Timestamp of repository mv: Sun, 12 May 2024 05:07:03 +0000
Head commit of repository mv: 164215e9834a33a0b975ca5219f29eeecd55be31

Timestamp of repository nest: Sun, 12 May 2024 05:07:14 +0000
Head commit of repository nest: f8b487255f82849a8b87570c07ba427fabd51154

Timestamp of repository waffle-builds: Sun, 12 May 2024 05:07:23 +0000
Head commit of repository waffle-builds: c3ec67a9cdcc7f87fcc53e4df8fcdd8bb5970c8a

Head commit of repository zeule: 31274dc2bf2e09ab39018f3211f907246a280471

Head commit of repository 4nykey: 8bd07b3906062db8fa1f58526da044fd9cbf9e66

Head commit of repository bobwya: a8496a14aee3c337b0e547b97b546b08607242a8

Head commit of repository cg: ea79281967f2bd82388d118d31d9b933b410df25

Head commit of repository gamerlay: 4900137dde22ca34250c4de54fb1d2ec3e569170

Head commit of repository guru: f278b280e4dad877b178fbf65bbcb3e0f9b6b57f

Head commit of repository haarp: 7f71626ad149ae23eab8079b2605bb1d831e67f1

Head commit of repository interactive-fiction: 31b83c15417dfbee38ad1ca05908ee6696953b18

Head commit of repository kde: 25eef33a7e7c4e797e192d32a68853e2ce427971

Head commit of repository qt: 4c1194330dae68bae1c8ba032bcf7178597ddb45

Head commit of repository science: cf57569632902eee502e85ac0b8e3b81323f2e4c

Head commit of repository steam-overlay: fc142da83eb4eb440c787e9f1befe5945b09f485

Head commit of repository x11: 00109758b71fe651b0c367b3eeb9bcbac24dc533

sh bash 5.2_p26-r3
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r3::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r5::gentoo
dev-lang/python:           3.10.14_p1::gentoo, 3.11.9::gentoo, 3.12.3::gentoo, 3.13.0_beta1::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.6::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.5::gentoo
sys-devel/gcc:             14.1.0-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.5::gentoo
sys-kernel/linux-headers:  6.8-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: False

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/brother-overlay.git
    masters: gentoo
    volatile: False

dwosky
    location: /var/db/repos/dwosky
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/dwosky.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo
    volatile: False

nest
    location: /var/db/repos/nest
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/nest.git
    masters: gentoo
    volatile: False

waffle-builds
    location: /var/db/repos/waffle-builds
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/waffle-builds.git
    masters: gentoo
    volatile: False

zeule
    location: /var/db/repos/zeule
    sync-type: git
    sync-uri: https://github.com/zeule/gentoo-zeule.git
    masters: gentoo qt kde guru mv lto-overlay brother-overlay
    volatile: False

4nykey
    location: /var/db/repos/4nykey
    sync-type: git
    sync-uri: https://github.com/4nykey/4nykey.git
    masters: gentoo
    priority: 50
    volatile: False

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/bobwya/miscellaneous_ebuilds.git
    masters: gentoo
    priority: 50
    volatile: False

cg
    location: /var/db/repos/cg
    sync-type: git
    sync-uri: https://github.com/brothermechanic/cg.git
    masters: gentoo
    priority: 50
    volatile: False

gamerlay
    location: /var/db/repos/gamerlay
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/gamerlay.git
    masters: gentoo
    priority: 50
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50
    volatile: False

haarp
    location: /var/db/repos/haarp
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/haarp.git
    masters: gentoo
    priority: 50
    volatile: False

interactive-fiction
    location: /var/db/repos/interactive-fiction
    sync-type: git
    sync-uri: git://repo.or.cz/gentoo-interactive-fiction.git
    masters: gentoo
    priority: 50
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50
    volatile: False

qt
    location: /var/db/repos/qt
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50
    volatile: False

science
    location: /var/db/repos/science
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo
    priority: 50
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

x11
    location: /var/db/repos/x11
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50
    volatile: False

xanf
    location: /home/eugene/develop/xanf/distribution/Gentoo/repository
    masters: gentoo
    priority: 80
    volatile: True

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @FREE @EULA 2dboy-EULA xv CC-Sampling-Plus-1.0 GPL2 as-is ValveSteamLicense unRAR bakoma fairuse Skype-TOS Zarf CDF android szip freedist MPEG-4 intel-ucode AVASYS linux-fw-redistributable no-source-code bh-luxi free-noncomm MSttfEULA NVIDIA-r1 GPL LPPL CC-BY-NC-4.0 OSGi-Specification-2.0 sun-jsr67 JasPer2.0 Amazon-EULA all-rights-reserved MS-vscode-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3 --load-average 6.0 --quiet-build --keep-going"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://ftp.gwdg.de/pub/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -Wl,--hash-style=gnu"
LEX="flex"
LINGUAS=" en en_GB eo de uk"
MAKEOPTS="-j6"
PKGDIR="/var/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--quiet"
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="/tmp"
PYTHONPATH="/usr/share/gdb/python"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi activities alsa amd64 amr apng attica avahi bash-completion bluetooth branding bs2b btrfs bzip2 cairo canberra caps cdda cdr cet chromaprint crypt css cups dbus declarative designer dirac djvu dri dts dv dvd dvdnav dvdr efi egl elfutils emacs encode exif faac ffmpeg flac fontconfig fuse gdbm geoip gif git gmp gnuplot gnutls gold gpm gsm gstreamer gtk gui harfbuzz iconv icu idn imagemagick inotify io-uring iproute2 ipv6 jemalloc jit jpeg jpeg2k jpegxl kde kerberos kf6 kf6compat kipi kwallet lame lapack latex lcms libass libinput libnotify libsamplerate libsecret libtirpc live lm-sensors logitech lto luajit luatex lzma mad metalink mng mp3 mp4 mpeg mpi mpris mtp multicall multilib ncurses netlink network networkmanager nfs nftables nls numa ogg openexr opengl openmp openssl pam pango pch pcre pdf pipewire pkcs11 plasma png policykit postscript ppds pulseaudio qml qrcode qt5 qt6 quicktime quvi radio readline romio rss rtmp samba scanner screencast sctp sdl seccomp semantic-desktop slp smp sound speex spell sqlite ssl startup-notification svg symlink system-icu system-png system-sqlite systemd taglib test-rust theora threads thumbnail tiff truetype udev udisks unicode upnp upower usb v4l v4l2 vaapi vdpau vim-syntax vorbis vpx vulkan wayland webengine webp widgets wifi x264 x265 xattr xcb xcomposite xft xinerama xml xmp xrandr xv xvid yv12 zeroconf zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt gpsclock timing" INPUT_DEVICES="libinput evdev libinput" KERNEL="linux" L10N="en en-GB eo de uk" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="nlpsolver" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31" SANE_BACKENDS="net" VIDEO_CARDS="v4l radeon amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

media-gfx/asymptote-2.86::gentoo was built with the following:
USE="X boehm-gc doc emacs examples fftw gsl imagemagick latex offscreen opengl python svg vim-syntax -context -curl -lsp -sigsegv -test" ABI_X86="(64)" PYTHON_TARGETS="python3_11 -python3_10"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=6 -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=6 -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
FEATURES="merge-sync preserve-libs cgroup buildpkg-live collision-protect ebuild-locks sandbox userfetch warn-on-large-env ipc-sandbox unknown-features-warn usersync strict-keepdir usersandbox binpkg-docompress binpkg-multi-instance userpriv network-sandbox compressdebug assume-digests distlocks sfperms news strict unmerge-logs binpkg-dostrip unmerge-orphans protect-owned qa-unresolved-soname-deps fixlafiles config-protect-if-modified pid-sandbox splitdebug binpkg-logs xattr multilib-strict parallel-fetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--hash-style=gnu -march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=6 -fuse-linker-plugin -pipe"
Comment 1 Eugene Shalygin 2024-05-12 07:47:39 UTC
Created attachment 892753 [details]
build log
Comment 2 July Tikhonov 2024-06-03 05:00:32 UTC
I have encountered the same problem.

This upstream issue seems relevant:
https://github.com/vectorgraphics/asymptote/issues/433

The developer suggests disabling offscreen rendering. Indeed, in my case compilation has succeeded with USE=-offscreen. I can't say that I fully understand the implications of disabling this option, though.