Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED] Sdev-java/swt failed during compile phase

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
abduct
Apprentice
Apprentice
Posts: 222
Joined: Thu Mar 19, 2015 6:51 am

[SOLVED] Sdev-java/swt failed during compile phase

  • Quote

Post by abduct » Thu Jun 18, 2020 7:29 pm

I am trying to install openjfx which requires swt. I would like to also transition to openjdk rather than openjdk-bin so I can use the "javafx" useflag, which the openjdk-bin doesn't have. I am not quite sure why it is failing when trying to link the library. Any help is appriciated.

Thanks

Code: Select all

/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: os_structs.o:(.bss+0xa48): multiple definition of `cached_jvm'; os.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: os_custom.o:(.bss+0x0): multiple definition of `cached_jvm'; os.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [make_linux.mak:138: libswt-pi3-gtk-4922r32.so] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: dev-java/swt-4.10::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-java/swt-4.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/swt-4.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/swt-4.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/swt-4.10/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/swt-4.10/work'
 * S: '/var/tmp/portage/dev-java/swt-4.10/work'
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-11  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-11.0.7_p10"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =swt-4.10

Code: Select all

emerge --info '=dev-java/swt-4.10::gentoo'
Portage 2.3.99 (python 3.6.10-final-0, default/linux/amd64/17.0, gcc-10.1.0, glibc-2.31-r3, 5.6.13-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.6.13-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-3317U_CPU_@_1.70GHz-with-gentoo-2.7
KiB Mem:     8038296 total,   2442780 free
KiB Swap:   10751996 total,  10558928 free
Timestamp of repository gentoo: Thu, 18 Jun 2020 19:00:01 +0000
Head commit of repository gentoo: 4a296af6c55387f762e27516759724a053fa5a32
sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p1) 2.34.0
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo
dev-util/cmake:           3.17.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            10.1.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

0x4d4c
    location: /var/lib/layman/0x4d4c
    sync-type: laymansync
    sync-uri: https://github.com/0x4d4c/gentoo-overlay.git
    masters: gentoo
    priority: 50

mva
    location: /var/lib/layman/mva
    sync-type: laymansync
    sync-uri: https://github.com/msva/mva-overlay
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    sync-type: laymansync
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    sync-type: laymansync
    sync-uri: https://github.com/MeisterP/torbrowser-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=ivybridge -O2 -pipe -fstack-protector-strong"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=1.5"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="256-color X acl aio alsa alsa-plugin amd64 apng autotype berkdb blink bluetooth bluray brain browser bzip2 cairo cli context corefonts crypt cups dbus dri egl eglfs elogind fading-colors ffmpegthumbnailer flac fontconfig fortran gallium gdbm gentoo-vm gles gnutls graph graphite gtk gui iconv icu ipv6 javafx jpeg jpeg2k lame lapack libass librtmp libtirpc lz4 lzma lzo minizip mp3 multilib ncat ncurses ndiff network nls nptl opengl openmp openssl pam pango pcre pcre16 perl pixbuf png postproc pulseaudio python readline rtmp rubberband sdl sdl2 seccomp secure-delete socks5 split-usr sqlite squashfs srt ssh ssl static-libs sync-plugin-portage tcpd text threads truetype unicode unicode3 v4l vaapi webp widgets x264 x265 xattr xcb xft xkb xmlrpc xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="ARM AVR Mips AMDGPU BPF NVPTX" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby25 ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Code: Select all

cat /var/tmp/portage/dev-java/swt-4.10/temp/build.log
 * Package:    dev-java/swt-4.10
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        abi_x86_64 amd64 cairo elibc_glibc kernel_linux opengl userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Using: openjdk-bin-11
>>> Unpacking source...
>>> Unpacking ./src.zip to /var/tmp/portage/dev-java/swt-4.10/work
>>> Source unpacked in /var/tmp/portage/dev-java/swt-4.10/work
>>> Preparing source in /var/tmp/portage/dev-java/swt-4.10/work ...
 * Applying swt-4.10-as-needed-and-flag-fixes.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/swt-4.10/work ...
Rewriting attributes
Rewriting ./build.xml
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/swt-4.10/work ...
 * Building AWT library
make -j5 -s -f make_linux.mak NO_STRIP=y CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ make_awt 'AWT_LIBS=-L$(AWT_LIB_PATH) -Wl,-rpath,$(AWT_LIB_PATH) -ljawt `pkg-config --libs x11`' 
 * Building SWT library
make -j5 -s -f make_linux.mak NO_STRIP=y CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ make_swt 
In file included from os.h:437,
                 from os_structs.h:19,
                 from os.c:20:
os_custom.h:1: warning: "g_thread_supported" redefined
    1 | #define g_thread_supported() 1
      | 
In file included from /usr/include/glib-2.0/glib.h:111,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from os.h:30,
                 from os_structs.h:19,
                 from os.c:20:
/usr/include/glib-2.0/glib/deprecated/gthread.h:270: note: this is the location of the previous definition
  270 | #define g_thread_supported()     (1) GLIB_DEPRECATED_MACRO_IN_2_32
      | 
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GDK__1gdk_1window_1set_1background_1pattern’:
os.c:2724:2: warning: ‘gdk_window_set_background_pattern’ is deprecated [-Wdeprecated-declarations]
 2724 |  gdk_window_set_background_pattern((GdkWindow *)arg0, (cairo_pattern_t *)arg1);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkseat.h:28,
                 from /usr/include/gtk-3.0/gdk/gdkdisplay.h:33,
                 from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from os.h:30,
                 from os_structs.h:19,
                 from os.c:20:
/usr/include/gtk-3.0/gdk/gdkwindow.h:790:12: note: declared here
  790 | void       gdk_window_set_background_pattern (GdkWindow  *window,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GDK_gdk_1threads_1leave’:
os.c:3004:2: warning: ‘gdk_threads_leave’ is deprecated [-Wdeprecated-declarations]
 3004 |  gdk_threads_leave();
      |  ^~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:61,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from os.h:30,
                 from os_structs.h:19,
                 from os.c:20:
/usr/include/gtk-3.0/gdk/gdkthreads.h:48:10: note: declared here
   48 | void     gdk_threads_leave                    (void);
      |          ^~~~~~~~~~~~~~~~~
In file included from os.h:437,
                 from os_structs.h:19,
                 from os_structs.c:20:
os_custom.h:1: warning: "g_thread_supported" redefined
    1 | #define g_thread_supported() 1
      | 
In file included from /usr/include/glib-2.0/glib.h:111,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from os.h:30,
                 from os_structs.h:19,
                 from os_structs.c:20:
/usr/include/glib-2.0/glib/deprecated/gthread.h:270: note: this is the location of the previous definition
  270 | #define g_thread_supported()     (1) GLIB_DEPRECATED_MACRO_IN_2_32
      | 
In file included from os.h:437,
                 from os_structs.h:19,
                 from os_custom.c:17:
os_custom.h:1: warning: "g_thread_supported" redefined
    1 | #define g_thread_supported() 1
      | 
In file included from /usr/include/glib-2.0/glib.h:111,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from os.h:30,
                 from os_structs.h:19,
                 from os_custom.c:17:
/usr/include/glib-2.0/glib/deprecated/gthread.h:270: note: this is the location of the previous definition
  270 | #define g_thread_supported()     (1) GLIB_DEPRECATED_MACRO_IN_2_32
      | 
os_custom.c: In function ‘swt_fixed_class_init’:
os_custom.c:344:2: warning: ‘g_type_class_add_private’ is deprecated [-Wdeprecated-declarations]
  344 |  g_type_class_add_private (class, sizeof (SwtFixedPrivate));
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from os.h:30,
                 from os_structs.h:19,
                 from os_custom.c:17:
/usr/include/glib-2.0/gobject/gtype.h:1308:10: note: declared here
 1308 | void     g_type_class_add_private       (gpointer                    g_class,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
os_custom.c: In function ‘swt_fixed_init’:
os_custom.c:397:13: warning: Deprecated pre-processor symbol, replace with 
  397 |  priv = widget->priv = G_TYPE_INSTANCE_GET_PRIVATE (widget, SWT_TYPE_FIXED, SwtFixedPrivate);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
os_custom.c: In function ‘swt_fixed_realize’:
os_custom.c:499:3: warning: ‘gtk_style_context_set_background’ is deprecated: Use 'gtk_render_background' instead [-Wdeprecated-declarations]
  499 |   gtk_style_context_set_background (gtk_widget_get_style_context (widget), window);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkicontheme.h:27,
                 from /usr/include/gtk-3.0/gtk/gtk.h:127,
                 from os.h:30,
                 from os_structs.h:19,
                 from os_custom.c:17:
/usr/include/gtk-3.0/gtk/gtkstylecontext.h:1232:6: note: declared here
 1232 | void gtk_style_context_set_background       (GtkStyleContext *context,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1get_1geometry’:
os_custom.c: In function ‘swt_fixed_accessible_init’:
os_custom.c:1195:13: warning: Deprecated pre-processor symbol, replace with 
 1195 |  accessible->priv = G_TYPE_INSTANCE_GET_PRIVATE (accessible, SWT_TYPE_FIXED_ACCESSIBLE, SwtFixedAccessiblePrivate);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
os_custom.c: In function ‘swt_fixed_accessible_class_init’:
os_custom.c:1217:2: warning: ‘g_type_class_add_private’ is deprecated [-Wdeprecated-declarations]
 1217 |  g_type_class_add_private (klass, sizeof (SwtFixedAccessiblePrivate));
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from os.h:30,
                 from os_structs.h:19,
                 from os_custom.c:17:
/usr/include/glib-2.0/gobject/gtype.h:1308:10: note: declared here
 1308 | void     g_type_class_add_private       (gpointer                    g_class,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
os.c:8965:2: warning: ‘gtk_status_icon_get_geometry’ is deprecated [-Wdeprecated-declarations]
 8965 |  rc = (jboolean)gtk_status_icon_get_geometry((GtkStatusIcon*)arg0, (GdkScreen**)arg1, (GdkRectangle*)lparg2, (GtkOrientation*)arg3);
      |  ^~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
                 from os.h:30,
                 from os_structs.h:19,
                 from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:166:23: note: declared here
  166 | gboolean              gtk_status_icon_get_geometry       (GtkStatusIcon      *status_icon,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1get_1visible’:
os.c:8979:2: warning: ‘gtk_status_icon_get_visible’ is deprecated [-Wdeprecated-declarations]
 8979 |  rc = (jboolean)gtk_status_icon_get_visible((GtkStatusIcon*)arg0);
      |  ^~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
                 from os.h:30,
                 from os_structs.h:19,
                 from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:154:23: note: declared here
  154 | gboolean              gtk_status_icon_get_visible        (GtkStatusIcon      *status_icon);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1new’:
os.c:8991:2: warning: ‘gtk_status_icon_new’ is deprecated [-Wdeprecated-declarations]
 8991 |  rc = (jintLong)gtk_status_icon_new();
      |  ^~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
                 from os.h:30,
                 from os_structs.h:19,
                 from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:84:23: note: declared here
   84 | GtkStatusIcon        *gtk_status_icon_new                (void);
      |                       ^~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1set_1from_1pixbuf’:
os.c:9014:2: warning: ‘gtk_status_icon_set_from_pixbuf’ is deprecated [-Wdeprecated-declarations]
 9014 |  gtk_status_icon_set_from_pixbuf((GtkStatusIcon*)arg0, (GdkPixbuf*)arg1);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
                 from os.h:30,
                 from os_structs.h:19,
                 from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:97:23: note: declared here
   97 | void                  gtk_status_icon_set_from_pixbuf    (GtkStatusIcon      *status_icon,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1set_1tooltip_1text’:
os.c:9026:2: warning: ‘gtk_status_icon_set_tooltip_text’ is deprecated [-Wdeprecated-declarations]
 9026 |  gtk_status_icon_set_tooltip_text((GtkStatusIcon *)arg0, (const gchar *)lparg1);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
                 from os.h:30,
                 from os_structs.h:19,
                 from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:137:23: note: declared here
  137 | void                  gtk_status_icon_set_tooltip_text   (GtkStatusIcon      *status_icon,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
os.c: In function ‘Java_org_eclipse_swt_internal_gtk_GTK__1gtk_1status_1icon_1set_1visible’:
os.c:9038:2: warning: ‘gtk_status_icon_set_visible’ is deprecated [-Wdeprecated-declarations]
 9038 |  gtk_status_icon_set_visible((GtkStatusIcon*)arg0, (gboolean)arg1);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:275,
                 from os.h:30,
                 from os_structs.h:19,
                 from os.c:20:
/usr/include/gtk-3.0/gtk/deprecated/gtkstatusicon.h:151:23: note: declared here
  151 | void                  gtk_status_icon_set_visible        (GtkStatusIcon      *status_icon,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: os_structs.o:(.bss+0xa48): multiple definition of `cached_jvm'; os.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: os_custom.o:(.bss+0x0): multiple definition of `cached_jvm'; os.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [make_linux.mak:138: libswt-pi3-gtk-4922r32.so] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: dev-java/swt-4.10::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-java/swt-4.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/swt-4.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/swt-4.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/swt-4.10/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/swt-4.10/work'
 * S: '/var/tmp/portage/dev-java/swt-4.10/work'
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-11  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-11.0.7_p10"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =swt-4.10
Last edited by abduct on Thu Jun 18, 2020 10:49 pm, edited 1 time in total.
Top
abduct
Apprentice
Apprentice
Posts: 222
Joined: Thu Mar 19, 2015 6:51 am

  • Quote

Post by abduct » Thu Jun 18, 2020 7:39 pm

swt-4.2-r4 seems to install successfully. So it seems something specific to the 4.10 package. The only problem is openjfx needs swt-4.10 as it pulls it in...

A diff between the ebuilds:

Code: Select all

 # diff /usr/portage/dev-java/swt/swt-4.10.ebuild /usr/portage/dev-java/swt/swt-4.2-r4.ebuild 
4c4
< EAPI=6
---
> EAPI="5"
9c9
< MY_DMF="http://download.eclipse.org/eclipse/downloads/drops4/R-${MY_PV}-201812060815"
---
> MY_DMF="http://archive.eclipse.org/eclipse/downloads/drops4/R-${MY_PV}-201206081400"
16c16,19
< 	ppc64? ( ${MY_DMF}/${MY_P}-gtk-linux-ppc64le.zip )"
---
> 	ppc? ( ${MY_DMF}/${MY_P}-gtk-linux-x86.zip )
> 	ppc64? ( ${MY_DMF}/${MY_P}-gtk-linux-ppc64.zip )
> 	x86? ( ${MY_DMF}/${MY_P}-gtk-linux-x86.zip )
> 	x86-fbsd? ( ${MY_DMF}/${MY_P}-gtk-linux-x86.zip )"
19,21c22,24
< SLOT="4.10"
< KEYWORDS="~amd64 ~ppc64"
< IUSE="cairo opengl webkit"
---
> SLOT="4.2"
> KEYWORDS="~amd64 ~ppc64 ~x86"
> IUSE="cairo opengl"
23c26
< COMMON_DEP="
---
> COMMON_DEPEND="
32,34d34
< 	)
< 	webkit? (
< 		net-libs/webkit-gtk:4
36,37c36
< DEPEND="${COMMON_DEP}
< 	>=virtual/jdk-1.8
---
> DEPEND="${COMMON_DEPEND}
38a38
> 	virtual/jdk:1.8
45,46c45,46
< RDEPEND="${COMMON_DEP}
< 	>=virtual/jre-1.8"
---
> RDEPEND="${COMMON_DEPEND}
> 	>=virtual/jre-1.4"
51,55c51
< QA_SONAME='usr/lib[^/]*/libswt-[^/]+.so'
< 
< PATCHES=(
< 	"${FILESDIR}"/${P}-as-needed-and-flag-fixes.patch
< )
---
> QA_SONAME="usr/$(get_libdir)/libswt-.*.so"
59c55
< 	unzip -jq "${DISTDIR}"/${DISTFILE} swt.jar src.zip || die "Unable to extract distfile"
---
> 	unzip -jq "${DISTDIR}"/${DISTFILE} "*src.zip" || die "Unable to extract distfile"
66c62
< src_prepare() {
---
> java_prepare() {
71,75c67,68
< 	# Apply patches
< 	default
< 
< 	# Define missing g_thread_supported() to be already started.
< 	sed -i '1s/^/#define g_thread_supported() 1\n\n/' "${S}"/os_custom.h || die
---
> 	# Fix Makefiles to respect flags and work with --as-needed
> 	epatch "${FILESDIR}"/${P}-as-needed-and-flag-fixes.patch
77,79c70,71
< 	# Webext is also in the library directory
< 	sed -i 's|findResource([^,]\+|findResource("swt"|' \
< 		"${S}"/src/org/eclipse/swt/browser/WebKit.java || die
---
> 	# Define missing g_thread_supported() to be 0.
> 	sed -i '1s/^/#define g_thread_supported() 0\n\n/' "${S}"/os_custom.h || die
88c80,84
< 	if [[ $(tc-arch) == 'ppc64' ]] ; then
---
> 	if [[ $(tc-arch) == 'x86' ]] ; then
> 		AWT_ARCH="i386"
> 	elif [[ $(tc-arch) == 'ppc' ]] ; then
> 		AWT_ARCH="ppc"
> 	elif [[ $(tc-arch) == 'ppc64' ]] ; then
99,100d94
< 	elif [[ -f "${JAVA_HOME}/lib/${JAWTSO}" ]] ; then
< 		export AWT_LIB_PATH="${JAVA_HOME}/lib"
107c101,105
< 	export SWT_PTR_CFLAGS=-DJNI64
---
> 	[[ ${ARCH} == "amd64" || ${ARCH} == "ppc64" ]] && export SWT_PTR_CFLAGS=-DJNI64
> 
> 	local platform="linux"
> 
> 	use elibc_FreeBSD && platform="freebsd"
112c110
< 	local make="emake -f make_linux.mak NO_STRIP=y CC=$(tc-getCC) CXX=$(tc-getCXX)"
---
> 	local make="emake -f make_${platform}.mak NO_STRIP=y CC=$(tc-getCC) CXX=$(tc-getCXX)"
115c113
< 	${make} make_awt AWT_LIBS="-L\$(AWT_LIB_PATH) -Wl,-rpath,\$(AWT_LIB_PATH) -ljawt \`pkg-config --libs x11\`"
---
> 	${make} make_awt
133,137d130
< 	if use webkit ; then
< 		einfo "Building WebKit component"
< 		${make} make_webkit make_webkit2extension
< 	fi
< 
142c135
< 	cp -i "${S}/version.txt" "${S}/build/version.txt" || die
---
> 	cp -i "${S}/version.txt" "${S}/build/version.txt"
145d137
< 	unzip swt.jar 'org/eclipse/swt/internal/gtk/*.css' -d build || die
152c144
< 	local swtArch=${ARCH}
---
> 	swtArch=${ARCH}
153a146
> 	use x86-fbsd && swtArch=x86
156,162c149,152
< 	remove_from_manifest() {
< 		local subpkg=$1
< 		sed -i -e "/ org.eclipse.swt.internal.$subpkg; x-internal:=true,/d" "MANIFEST_TMP.MF" || die
< 	}
< 	use cairo || remove_from_manifest cairo
< 	use opengl || remove_from_manifest opengl.glx
< 	use webkit || remove_from_manifest webkit
---
> 	use cairo || sed -i -e "/ org.eclipse.swt.internal.cairo; x-internal:=true,/d" "MANIFEST_TMP.MF"
> 	sed -i -e "/ org.eclipse.swt.internal.gnome; x-internal:=true,/d" "MANIFEST_TMP.MF"
> 	use opengl || sed -i -e "/ org.eclipse.swt.internal.opengl.glx; x-internal:=true,/d" "MANIFEST_TMP.MF"
> 	sed -i -e "/ org.eclipse.swt.internal.webkit; x-internal:=true,/d" "MANIFEST_TMP.MF"
165c155
< 	java-pkg_sointo "/usr/$(get_libdir)/swt"
---
> 	java-pkg_sointo /usr/$(get_libdir)
168c158
< 	dodoc about.html
---
> 	dohtml about.html
Only thing obvious to me is the setting of g_threads between ebuilds.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu Jun 18, 2020 7:51 pm

gcc-10 -fno-common problem
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
abduct
Apprentice
Apprentice
Posts: 222
Joined: Thu Mar 19, 2015 6:51 am

  • Quote

Post by abduct » Thu Jun 18, 2020 7:58 pm

I managed to find that as well, but I can't seem to find a proposed fix or patch. Is there a proposed fix for this besides the obvious of attempting to downgrade gcc? Or a way to let openjfx use swt-4.2?

Edit: I changed all occurrences of swt-4.10 to swt-4.2 in the openjfx ebuild and it seems to be working. I'll see if my app runs with this library installed.
Edit2: Openjfx was installed fine, pulling in openjdk now and setting it has my system vm via java-config
Top
abduct
Apprentice
Apprentice
Posts: 222
Joined: Thu Mar 19, 2015 6:51 am

  • Quote

Post by abduct » Thu Jun 18, 2020 9:11 pm

So the changed made in the previous post worked ad openjdk and openjfx are installed. Problem now is that java-config does not list the openjdk vm, only the binary version:

Code: Select all

# java-config -L
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
*)	AdoptOpenJDK 11.0.7_p10 [openjdk-bin-11]
Is there something I have to run to get it to pickup the new VM?

Edit: It seems I can't figure out how to enable the gentoo-vm use flag. I've tried setting it on the cli via USE="gentoo-vm" as well as in make.conf and package.uses/ but no luck.

Managed to figure it out. I had to unmask the use flag in /etc/portage/profile/package.use.mask/

We shall see if this fixes all my issues...

Edit: After updating filebot to latest beta and installing the openjfx and openjdk 11 I am able to use the applocation.

Seems like the issue was multiple compund problems between the version of filebot i was testing with was for JDK8 as well as my installs misisng javafx.

All is good now.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic