Bug 193654 - graphics/libosmesa: flex: unknown flag '-'.
Summary: graphics/libosmesa: flex: unknown flag '-'.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Pietro Cerutti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-15 12:57 UTC by O. Hartmann
Modified: 2014-09-16 10:21 UTC (History)
0 users

See Also:
ohartmann: maintainer-feedback? (gahr)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2014-09-15 12:57:30 UTC
On FreeBSD 9.3-STABLE,
FreeBSD 9.3-STABLE #0 r271571: Sun Sep 14 10:58:31 CEST 2014 amd64,

installation/updating of port graphics/libosmesa fails with the following obscure errro:

[...]
gmake[3]: Entering directory `/usr/ports/graphics/libosmesa/work/Mesa-10.2.7'
gmake[3]: Leaving directory `/usr/ports/graphics/libosmesa/work/Mesa-10.2.7'
  GEN      main/get_hash.h
updating main/git_sha1.h
  GEN      program/program_parse.tab.c
  GEN      program/lex.yy.c
flex: unknown flag '-'.  For usage, try
        flex --help
gmake[2]: *** [program/lex.yy.c] Error 1
gmake[2]: Leaving directory `/usr/ports/graphics/libosmesa/work/Mesa-10.2.7/src/mesa'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/libosmesa/work/Mesa-10.2.7/src'
gmake: *** [all-recursive] Error 1
*** [do-build] Error code 1
[...]

Operating system and ports get compiled using CLANG via settings in /etc/src.conf:

[...]
#
CPUTYPE?=               native
CFLAGS+=                -O3 -pipe
COPTFLAGS+=             -O3 -pipe
CXXFLAGS+=              -std=c++11
CXXFLAGS+=              -stdlib=libc++
WITH_CLANG=             YES
WITH_CLANG_FULL=        YES
WITH_CLANG_EXTRAS=      YES


The box' hardware is as follows:

Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.3-STABLE #0 r271571: Sun Sep 14 10:58:31 CEST 2014
    root@thusnelda.geoinf.fu-berlin.de:/usr/obj/usr/src/sys/THUSNELDA amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
CPU: Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz (2493.80-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x10676  Family = 0x6  Model = 0x17  Stepping = 6
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xce3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 16518033408 (15752 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <DELL   PE_SC3  >
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 2 package(s) x 4 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
 cpu4 (AP): APIC ID:  4
 cpu5 (AP): APIC ID:  5
 cpu6 (AP): APIC ID:  6
 cpu7 (AP): APIC ID:  7
Comment 1 Bugzilla Automation freebsd_committer 2014-09-15 12:57:30 UTC
Auto-assigned to maintainer gahr@FreeBSD.org
Comment 2 commit-hook freebsd_committer 2014-09-16 10:20:17 UTC
A commit references this bug:

Author: gahr
Date: Tue Sep 16 10:19:41 UTC 2014
New revision: 368300
URL: http://svnweb.freebsd.org/changeset/ports/368300

Log:
  - Use flex and bison from ports
  - Bump PORTREVISION

  PR:		193654
  Submitted by:	ohartman@zedat.fu-berlin.de

Changes:
  head/graphics/libosmesa/Makefile