Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654244 - dev-lang/j - f2.c:115:4: error: non-floating-point argument in call to function ‘__builtin_isnan’
Summary: dev-lang/j - f2.c:115:4: error: non-floating-point argument in call to functi...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords: PATCH, PMASKED
Depends on:
Blocks:
 
Reported: 2018-04-28 11:32 UTC by Robert Spillner
Modified: 2020-11-23 23:38 UTC (History)
2 users (show)

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


Attachments
slightly changed ebuild (j-701-r2.ebuild,1.08 KB, text/plain)
2020-10-03 14:38 UTC, harry broeken
Details
euse patch (isnan.patch,591 bytes, patch)
2020-10-03 14:39 UTC, harry broeken
Details | Diff
euse patch (isnan.patch,646 bytes, patch)
2020-10-27 04:38 UTC, harry broeken
Details | Diff
slightly changed ebuild (j-701-r2.ebuild,1.13 KB, text/plain)
2020-10-27 04:42 UTC, harry broeken
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Spillner 2018-04-28 11:32:57 UTC
emerging J yields a compilation error in the process that does not
interrupt the emerge action. This results in an incomplete non working
installation.

>> emerge -v1 dev-lang/j

[...]

D_UNIX64  -fPIC -O3 -fno-strict-aliasing -DNOASM     -c -o dsusp.o dsusp.c
cc  -D_UNIX64  -fPIC -O3 -fno-strict-aliasing -DNOASM     -c -o dtoa.o dtoa.c
cc  -D_UNIX64  -fPIC -O3 -fno-strict-aliasing -DNOASM     -c -o f.o f.c
cc  -D_UNIX64  -fPIC -O3 -fno-strict-aliasing -DNOASM     -c -o f2.o f2.c
f2.c: In function ‘jtfmt1’:
f2.c:115:4: error: non-floating-point argument in call to function ‘__builtin_isnan’
    else if(_isnan(*wv)          )strcpy(jt->th2buf,e?"  _.":' '==*s?" _.":"_.");
    ^~~~
make: *** [<builtin>: f2.o] Error 1
(strip make.txt to errors and important warnings) > esum.txt
cat: make.txt: No such file or directory
failed: libj.so NOT created
cc  -D_UNIX64  -fPIC -O3 -fno-strict-aliasing -DNOASM     -c -o jconsole.o jconsole.c
cc  -D_UNIX64  -fPIC -O3 -fno-strict-aliasing -DNOASM     -c -o jeload.o jeload.c
jeload.c: In function ‘jepath’:
jeload.c:96:4: warning: implicit declaration of function ‘readlink’ [-Wimplicit-function-declaration]
  n=readlink("/proc/self/exe",arg2,sizeof(arg2));
    ^~~~~~~~
jeload.c:108:3: warning: implicit declaration of function ‘getcwd’ [-Wimplicit-function-declaration]
   getcwd(path,sizeof(path));
   ^~~~~~
cc  jconsole.o jeload.o    -ldl -o jconsole
success: jconsole created and copied to j/bin
>>> Source compiled.
>>> Test phase [not enabled]: dev-lang/j-701-r2
[...]
>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.


emerge --info

Portage 2.3.24 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r11, 4.15.6-gentoo x86_64)
=================================================================
System uname: Linux-4.15.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-7700K_CPU_@_4.20GHz-with-gentoo-2.4.1
KiB Mem:    16407212 total,  10626724 free
KiB Swap:    1228796 total,   1228796 free
Timestamp of repository gentoo: Fri, 27 Apr 2018 22:00:01 +0000
Head commit of repository gentoo: 4cd1030f9b7ffa504f213037e8001c153e8e9ad4
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no                                                                  
                                                                                                        
kde                                                                                                     
    location: /var/lib/layman/kde                                                                       
    masters: gentoo
    priority: 0

Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @FSF-APPROVED dlj-1.1 AdobeFlash-11.x Oracle-BCLA-JavaSE FraunhoferFDK google-chrome TeamViewer RAR"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/qmail/alias /var/qmail/control"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB de de_DE"
MAKEOPTS="-j8"
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="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit crypt cups cxx dbus declarative dri dts dvb dvd dvdr dvdread emacs emboss encode exif fam flac fortran gdbm gif glamor gnome gpm gtk iconv ipv6 jpeg kipi kwallet lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon png policykit ppds qml qt3support qt5 readline sdl seccomp semantic-desktop spell sse sse2 sse3 ssl startup-notification svg tcpd tetex tiff truetype udev udisks unicode upower usb vdpau vorbis wayland widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64 32" 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" L10N="en_GB de de_DE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="x86_64 arm" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby22 ruby23" SANE_BACKENDS="epson2 net" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 harry broeken 2020-10-03 14:38:16 UTC
Created attachment 663604 [details]
slightly changed ebuild

slightly changed ebuild
Comment 2 harry broeken 2020-10-03 14:39:14 UTC
Created attachment 663607 [details, diff]
euse patch

euse patch
Comment 3 harry broeken 2020-10-03 14:42:16 UTC
slightly changed ebuild
euse patch

To use these you should make a private repository and know how to use euse patches.

These are the "works for me" changes I made to get J compiled.
In the hope it is useful for someone.

>>greetings<<
  Harry
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-03 17:41:13 UTC
(In reply to harry broeken from comment #3)
> slightly changed ebuild
> euse patch
> 
> To use these you should make a private repository and know how to use euse
> patches.
> 
> These are the "works for me" changes I made to get J compiled.
> In the hope it is useful for someone.
> 
> >>greetings<<
>   Harry

Could you include the GCO sign off for these so we can use them?
Comment 5 harry broeken 2020-10-03 20:52:35 UTC
(In reply to Sam James from comment #4)
> (In reply to harry broeken from comment #3)
> > slightly changed ebuild
> > euse patch
> > 
> > To use these you should make a private repository and know how to use euse
> > patches.
> > 
> > These are the "works for me" changes I made to get J compiled.
> > In the hope it is useful for someone.
> > 
> > >>greetings<<
> >   Harry
> 
> Could you include the GCO sign off for these so we can use them?

Can you tell me how to do that; especially in this case, because I used euse patch.

>>greetings<<
  Harry
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-25 19:50:05 UTC
(In reply to harry broeken from comment #5)
> Can you tell me how to do that; especially in this case, because I used euse
> patch.
> 

Just comment:
Signed-off-by: Real Name <email>

as per GLEP 76 (https://www.gentoo.org/glep/glep-0076.html#certificate-of-origin).
Comment 7 Larry the Git Cow gentoo-dev 2020-10-25 23:41:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77cb4f9d790e01e65f010e0ef62ade1abdfcb7f0

commit 77cb4f9d790e01e65f010e0ef62ade1abdfcb7f0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-10-25 23:40:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-25 23:40:58 +0000

    profiles/package.mask: last-rite dev-lang/j
    
    Bug: https://bugs.gentoo.org/723060
    Bug: https://bugs.gentoo.org/726912
    Bug: https://bugs.gentoo.org/740952
    Bug: https://bugs.gentoo.org/654244
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 8 harry broeken 2020-10-27 04:38:09 UTC
Created attachment 668762 [details, diff]
euse patch

patch with sign-off
Comment 9 harry broeken 2020-10-27 04:42:11 UTC
Created attachment 668765 [details]
slightly changed ebuild

added sign-off
Comment 10 Larry the Git Cow gentoo-dev 2020-11-23 23:37:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c9da7f640f36039022ef17c87012b3e0d3e4258

commit 7c9da7f640f36039022ef17c87012b3e0d3e4258
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-11-23 23:35:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-11-23 23:36:59 +0000

    dev-lang/j: remote last-rited package
    
    Bug: https://bugs.gentoo.org/723060
    Bug: https://bugs.gentoo.org/726912
    Bug: https://bugs.gentoo.org/740952
    Bug: https://bugs.gentoo.org/654244
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/j/Manifest        |  1 -
 dev-lang/j/j-701-r2.ebuild | 44 --------------------------------------------
 dev-lang/j/metadata.xml    |  8 --------
 profiles/package.mask      |  6 ------
 4 files changed, 59 deletions(-)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-23 23:38:29 UTC
(In reply to harry broeken from comment #9)
> Created attachment 668765 [details]
> slightly changed ebuild
> 
> added sign-off

Unfortunately the package had a variety of other issues so it's been removed for now but we can restore it if you could make a bug with a brand new ebuild and CC me.