multimedia/gstreamer1-libav building via system-clang on powerpc64 broken: cc: error: unknown argument: '-mminimal-toc'

Mark Millard marklmi at yahoo.com
Fri Oct 12 12:07:41 UTC 2018


[I experiment with using modern compilers on
powerpc64, here buildworld buildkernel was
via devel/powerpc64-xtoolchain-gcc but included
building clang and having clang as cc. clang's
problems are tied to aspects of buildworld
buildkernel but is otherwise usable.]

/usr/ports is at -r480180 for the below.

The poudriere-devel error log reported:

checking whether the C compiler works... no
configure: error: in `/wrkdirs/usr/ports/multimedia/gstreamer1-libav/work/gst-libav-1.12.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
===>  Script "configure" failed unexpectedly.
Please report the problem to multimedia at FreeBSD.org [maintainer] and attach
the
"/wrkdirs/usr/ports/multimedia/gstreamer1-libav/work/gst-libav-1.12.3/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

Stop.
make: stopped in /usr/ports/multimedia/gstreamer1-libav
=>> Cleaning up wrkdir
===>  Cleaning for gstreamer1-libav-1.12.3_2
build of multimedia/gstreamer1-libav | gstreamer1-libav-1.12.3_2 ended at Fri Oct 12 03:49:50 PDT 2018
build time: 00:02:10
!!! build failure encountered !!!



And config.log reported something very simple: use
of a command line option that does not exist for
clang.

configure:4016: checking whether the C compiler works
configure:4038: cc -O2 -pipe  -g -isystem /usr/local/include -fno-strict-aliasing -mminimal-toc -isystem /usr/local/include   conftest.c -L/usr/local/lib >&5
cc: error: unknown argument: '-mminimal-toc'
configure:4042: $? = 1
configure:4080: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GStreamer libav"
| #define PACKAGE_TARNAME "gst-libav"
| #define PACKAGE_VERSION "1.12.3"
| #define PACKAGE_STRING "GStreamer libav 1.12.3"
| #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer"
| #define PACKAGE_URL ""
| #define PACKAGE "gst-libav"
| #define VERSION "1.12.3"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4085: error: in `/wrkdirs/usr/ports/multimedia/gstreamer1-libav/work/gst-libav-1.12.3':
configure:4088: error: C compiler cannot create executables
See `config.log' for more details



For reference:

[19:06:38] [01] [00:02:24] Saved multimedia/gstreamer1-libav | gstreamer1-libav-1.12.3_2 wrkdir to: /usr/local/poudriere/data/wrkdirs/FBSDpowerpc64-default/default/gstreamer1-libav-1.12.3_2.tbz
[19:06:38] [01] [00:02:24] Finished multimedia/gstreamer1-libav | gstreamer1-libav-1.12.3_2: Failed: configure
[19:06:39] [01] [00:02:25] Skipping multimedia/gstreamer1-plugins-core | gstreamer1-plugins-core-1.12: Dependent port multimedia/gstreamer1-libav | gstreamer1-libav-1.12.3_2 failed



===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-multimedia mailing list