Bug 236757 - graphics/cairo: configure failure: Unknown float word ordering.
Summary: graphics/cairo: configure failure: Unknown float word ordering.
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-24 10:26 UTC by O. Hartmann
Modified: 2021-10-01 02:02 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2019-03-24 10:26:37 UTC
In poudriere on a recent CURRENT with recent CURRENT jail (host FreeBSD 13.0-CURRENT #304 r345414: Fri Mar 22 16:54:50 CET 2019 amd64, poudriere jail at r345414), building port graphics/cairo fails with a configure error as shown below.

build started at Sun Mar 24 09:39:19 UTC 2019
port directory: /usr/ports/graphics/cairo
package name: cairo-1.16.0,2
maintained by: gnome@FreeBSD.org
Makefile ident:      $FreeBSD: head/graphics/cairo/Makefile 496632 2019-03-23 10:06:21Z kwm $
Poudriere version: 3.3.2
Host OSVERSION: 1300017
Jail OSVERSION: 1300017
Job Id: 01

[...]

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1300017
UNAME_v=FreeBSD 13.0-CURRENT 1300017
UNAME_r=13.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.2
MAKEOBJDIRPREFIX=/pool/sources/CURRENT/obj/
MASTERMNT=/pool/poudriere/data/.m/head-amd64-head-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=xterm
PWD=/pool/poudriere/data/.m/head-amd64-head-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=head-amd64-head-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/pool/poudriere/data/.m/head-amd64-head-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for cairo-1.16.0,2:
     DOCS=on: Build and/or install documentation
     GLIB=on: Enable GObject Functions Feature
     OPENGL=on: 2D/3D rendering support via OpenGL
     X11=on: X11 (graphics) support
     XCB=on: Enable XCB (X C-language Binding) Support
===> Use 'make config' to modify these settings
---End OPTIONS List---


[...]
checking whether cc supports -Wp,-D_FORTIFY_SOURCE=2... yes
checking whether cc supports -Wunused-but-set-variable -Wno-unused-but-set-variable... no
checking which warning flags were supported...  -Wall -Wextra -Wmissing-declarations -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2
checking how to enable unused result warnings... __attribute__((__warn_unused_result__))
checking how to allow undefined symbols in shared libraries used by test suite... -Wl,--allow-shlib-undefined
checking whether byte ordering is bigendian... no
checking whether float word ordering is bigendian... unknown
configure: error: 

Unknown float word ordering. You need to manually preset
ax_cv_c_float_words_bigendian=no (or yes) according to your system.

    
===>  Script "configure" failed unexpectedly.
Please report the problem to gnome@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/graphics/cairo/work/cairo-1.16.0/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1
Comment 1 Martin MATO 2019-04-05 07:04:43 UTC
Greetings

I have the same bug with a machine in CURRENT(r345379), but no jails.
I'm using a custom kernel, i have to say, but only removed devices that are not present on my system.



The config.log show this:

------snip------
configure:19537: checking whether byte ordering is bigendian
configure:19552: cc -c -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing   conftest.c >&5
conftest.c:31:9: error: unknown type name 'not'
               not a universal capable compiler
               ^
conftest.c:31:14: error: expected ';' after top level declarator
               not a universal capable compiler
                    ^
                    ;
2 errors generated.
configure:19552: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cairo"
| #define PACKAGE_TARNAME "cairo"
| #define PACKAGE_VERSION "1.16.0"
| #define PACKAGE_STRING "cairo 1.16.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=cairo"
| #define PACKAGE_URL "https://cairographics.org/"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_TYPEOF 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
| /* end confdefs.h.  */
| #ifndef __APPLE_CC__
|              not a universal capable compiler
|            #endif
|            typedef int dummy;
|
configure:19597: cc -c -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing   conftest.c >&5
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_TYPEOF 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
| /* end confdefs.h.  */
| #ifndef __APPLE_CC__
|              not a universal capable compiler
|            #endif
|            typedef int dummy;
|
configure:19597: cc -c -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing   conftest.c >&5
configure:19597: $? = 0
configure:19615: cc -c -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing   conftest.c >&5
conftest.c:37:4: error: use of undeclared identifier 'not'
                 not big endian
                 ^
1 error generated.
configure:19615: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cairo"
| #define PACKAGE_TARNAME "cairo"
| #define PACKAGE_VERSION "1.16.0"
| #define PACKAGE_STRING "cairo 1.16.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=cairo"
| #define PACKAGE_URL "https://cairographics.org/"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_TYPEOF 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
| /* end confdefs.h.  */
| #include <sys/types.h>
|               #include <sys/param.h>
|
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
|                not big endian
|               #endif
|
|   ;
|   return 0;
| }
configure:19743: result: no
configure:19761: checking whether float word ordering is bigendian
configure:19789: cc -o conftest -O2 -pipe -march=bdver3  -fstack-protector -fno-strict-aliasing    -fstack-protector  conftest.c  >&5
configure:19789: $? = 0
configure:19808: result: unknown
configure:19824: error:

Unknown float word ordering. You need to manually preset
ax_cv_c_float_words_bigendian=no (or yes) according to your system.
------snip------

Best regards

Martin
Comment 2 Martin MATO 2019-04-09 18:22:13 UTC
Greetings

for the record
in my case, upgrading CURRENT kernel and userland at revision r346039 made me able to compile cairo without trouble.

hope this helps

Have a nice day.
Comment 3 Walter Schwarzenfeld freebsd_triage 2019-08-03 19:49:38 UTC
(In reply to O. Hartmann from comment #0)
Does the problem still exist?