Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2012 18:15:32 GMT
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173912: editors/pdfedit: /usr/local/bin/ar: invalid option -- G
Message-ID:  <201211251815.qAPIFWid053606@red.freebsd.org>
Resent-Message-ID: <201211251820.qAPIK0Hp063910@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173912
>Category:       ports
>Synopsis:       editors/pdfedit:  /usr/local/bin/ar: invalid option -- G
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 25 18:20:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     O. Hartmann
>Release:        FreeBSD 10.0-CURRENT/amd64
>Organization:
FU Berlin
>Environment:
FreeBSD 10.0-CURRENT #1 r243502M: Sat Nov 24 20:55:35 CET 2012 amd64
>Description:
Port editors/pdfedit fails building with either gcc46 or gcc47 due to problems with deve/binutils (/usr/local/bin/ar in specific):

GString.cc:72:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
g++47 -c -O3 -pipe -fno-strict-aliasing -march=native -march=native -Wl,-rpath=/usr/local/lib/gcc47 -Wl,-rpath=/usr/local/lib/gcc47   -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions     -I. -I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src -I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/xpdf/  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/include -o gmem.o gmem.cc
g++47 -c -O3 -pipe -fno-strict-aliasing -march=native -march=native -Wl,-rpath=/usr/local/lib/gcc47 -Wl,-rpath=/usr/local/lib/gcc47   -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions     -I. -I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src -I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/xpdf/  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/include -o gmempp.o gmempp.cc
g++47 -c -O3 -pipe -fno-strict-aliasing -march=native -march=native -Wl,-rpath=/usr/local/lib/gcc47 -Wl,-rpath=/usr/local/lib/gcc47   -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions     -I. -I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src -I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/xpdf/  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/include -o gfile.o gfile.cc
g++47 -c -O3 -pipe -fno-strict-aliasing -march=native -march=native -Wl,-rpath=/usr/local/lib/gcc47 -Wl,-rpath=/usr/local/lib/gcc47   -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions     -I. -I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src -I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/xpdf/  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/include -o FixedPoint.o FixedPoint.cc
gcc47 -c -O3 -pipe -fno-strict-aliasing -march=native -march=native -Wl,-rpath=/usr/local/lib/gcc47   -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing     -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing     -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing     -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing    -I. -I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src -I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/xpdf/  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/include -o parseargs.o parseargs.c
rm -f libGoo.a
/usr/local/bin/ar libGoo.a GHash.o GList.o GString.o gmem.o gmempp.o gfile.o FixedPoint.o parseargs.o
/usr/local/bin/ar: invalid option -- G
Usage: /usr/local/bin/ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file...
       /usr/local/bin/ar -M [<mri-script]
 commands:
  d            - delete file(s) from the archive
  m[ab]        - move file(s) in the archive
  p            - print file(s) found in the archive
  q[f]         - quick append file(s) to the archive
  r[ab][f][u]  - replace existing or insert new file(s) into the archive
  s            - act as ranlib
  t            - display contents of archive
  x[o]         - extract file(s) from the archive
 command specific modifiers:
  [a]          - put file(s) after [member-name]
  [b]          - put file(s) before [member-name] (same as [i])
  [D]          - use zero for timestamps and uids/gids
  [N]          - use instance [count] of name
  [f]          - truncate inserted file names
  [P]          - use full path names when matching
  [o]          - preserve original dates
  [u]          - only replace files that are newer than current archive contents
 generic modifiers:
  [c]          - do not warn if the library had to be created
  [s]          - create an archive index (cf. ranlib)
  [S]          - do not build a symbol table
  [T]          - make a thin archive
  [v]          - be verbose
  [V]          - display the version number
  @<file>      - read options from <file>
  --target=BFDNAME - specify the target object format as BFDNAME
 optional:
  --plugin <p> - load the specified plugin
 emulation options: 
  No emulation specific options
/usr/local/bin/ar: supported targets: elf64-x86-64-freebsd elf32-i386-freebsd coff-i386 pei-i386 pei-x86-64 elf32-i386 elf64-x86-64 elf64-l1om elf64-l1om-freebsd elf64-k1om elf64-k1om-freebsd elf64-little elf64-big elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
gmake[3]: *** [libGoo.a] Error 1
gmake[3]: Leaving directory `/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/xpdf/goo'
gmake[2]: *** [libxpdf] Error 2
gmake[2]: Leaving directory `/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/xpdf'
gmake[1]: *** [xpdf] Error 2
gmake[1]: Leaving directory `/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src'
gmake: *** [source] Error 2
*** [do-build] Error code 1

>How-To-Repeat:
Try to install or update editors/pdfedit on FreeBSD 10.0-CURRENT/amd64 buildworld with CLANG and port editors/pdfedit to be build with gcc46 or gcc47.

The port doesn't build with CLANG.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211251815.qAPIFWid053606>