unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Cyprien Nicolas <cyprien@nicolas.tf>
To: 36338@debbugs.gnu.org
Subject: bug#36338: guile-2.2.5 fails to build with -ffast-math
Date: Sun, 23 Jun 2019 11:00:23 +0200	[thread overview]
Message-ID: <c706f0a4-a2ac-87be-baa5-9991a6526e66@nicolas.tf> (raw)

Hello,

I apologize if the issue was already reported, but I didn't find a
previous record.

At Gentoo, users build packages themselves, and have the freedom to
choose the CFLAGS they want.

We had several reports [1,2] from users unable to build guile with
-Ofast. Adding -fno-fast-math make the build pass.

Compiling with -O0 -ffast-math also fails.

I'm not sure if you can solve this. On our side, we will append
-fno-fast-math to compiler's flags.



GUILE_AUTO_COMPILE=0			\
../meta/build-env				\
guild compile --target="x86_64-pc-linux-gnu"                \
            -O1              \
   -L "/var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5/module"
                        \
   -L
"/var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5/guile-readline"	
	\
   -o "language/cps/types.go" "../module/language/cps/types.scm"
make[2]: *** [Makefile:1931: language/cps/types.go] Aborted
make[2]: Leaving directory
'/var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5/bootstrap'
make[1]: *** [Makefile:1857: all-recursive] Error 1
make[1]: Leaving directory
'/var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5'
make: *** [Makefile:1743: all] Error 2



omega /var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5 #
./build-aux/config.guess
x86_64-pc-linux-gnu


omega /var/tmp/portage/dev-scheme/guile-2.2.5/work/guile-2.2.5 #
./config.status --config
'--prefix=/usr' '--build=x86_64-pc-linux-gnu'
'--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc'
'--localstatedir=/var/lib' '--disable-dependency-tracking'
'--disable-silent-rules' '--docdir=/usr/share/doc/guile-2.2.5'
'--htmldir=/usr/share/doc/guile-2.2.5/html' '--with-sysroot=/'
'--libdir=/usr/lib64' '--program-suffix=-2.2'
'--infodir=/usr/share/info/guile-2.2' '--disable-error-on-warning'
'--disable-rpath' '--disable-static' '--enable-posix'
'--without-libgmp-prefix' '--without-libiconv-prefix'
'--without-libintl-prefix' '--without-libltdl-prefix'
'--without-libreadline-prefix' '--without-libunistring-prefix'
'--disable-guile-debug' '--disable-debug-malloc' '--enable-deprecated'
'--enable-networking' '--disable-nls' '--enable-regex' '--with-threads'
'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu'
'CFLAGS=-Ofast -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CPPFLAGS='
'PKG_CONFIG_PATH=/usr/lib64/pkgconfig'

1. in 2003 https://forums.gentoo.org/viewtopic-t-72916-start-0.html
2. in 2016 https://bugs.gentoo.org/598986

Thanks,

Cyprien





             reply	other threads:[~2019-06-23  9:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-23  9:00 Cyprien Nicolas [this message]
2019-06-27  2:57 ` bug#36338: guile-2.2.5 fails to build with -ffast-math Mark H Weaver
2019-07-07 13:03   ` Cyprien Nicolas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c706f0a4-a2ac-87be-baa5-9991a6526e66@nicolas.tf \
    --to=cyprien@nicolas.tf \
    --cc=36338@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).