Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Sep 2011 21:23:00 GMT
From:      Hartmann@FreeBSD.org, "O." <ohartman@zedat.fu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/160408: graphics/gdal: error: command '/bin/sh' failed with exit status 1. Does not compile with CLANG
Message-ID:  <201109022123.p82LN0xn050713@red.freebsd.org>
Resent-Message-ID: <201109022130.p82LUDQA040213@freefall.freebsd.org>

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

>Number:         160408
>Category:       ports
>Synopsis:       graphics/gdal: error: command '/bin/sh' failed with exit status 1. Does not compile with CLANG
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 02 21:30:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Hartmann, O.
>Release:        FreeBSD 9.0-BETA2/amd64
>Organization:
FU Berlin
>Environment:
>Description:
Compiling port graphics/gdal results in the follwoing error:

running build_ext
building 'osgeo._gdal' extension
creating temp.freebsd-9.0-BETA2-amd64-2.7
creating temp.freebsd-9.0-BETA2-amd64-2.7/extensions
/bin/sh /usr/local/bin/libtool --mode=compile --tag=CC clang -DNDEBUG -O2 -fno-strict-aliasing -pipe -mtune=native -march=native -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -O3 -fno-strict-aliasing -pipe -march=native -Wall -Wdeclaration-after-statement -DOGR_ENABLED -I/usr/local/include -I/usr/ports/graphics/gdal/work/gdal-1.8.1/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr -I/usr/include -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/local/include/python2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/ports/graphics/gdal/work/gdal-1.8.1/include -c extensions/gdal_wrap.cpp -o temp.freebsd-9.0-BETA2-amd64-2.7/extensions/gdal_wrap.o
libtool: compile:  clang -DNDEBUG -O2 -fno-strict-aliasing -pipe -mtune=native -march=native -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x100000 -O3 -fno-strict-aliasing -pipe -march=native -Wall -Wdeclaration-after-statement -DOGR_ENABLED -I/usr/local/include -I/usr/ports/graphics/gdal/work/gdal-1.8.1/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr -I/usr/include -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/local/include/python2.7 -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/ports/graphics/gdal/work/gdal-1.8.1/include -c extensions/gdal_wrap.cpp  -fPIC -DPIC -o temp.freebsd-9.0-BETA2-amd64-2.7/extensions/.libs/gdal_wrap.o
In file included from extensions/gdal_wrap.cpp:149:
In file included from /usr/local/include/python2.7/Python.h:33:
In file included from /usr/include/stdio.h:41:
/usr/include/sys/_types.h:90:21: error: cannot combine with previous 'type-name' declaration specifier
typedef __ct_rune_t     __wchar_t;      /* wchar_t (see above) */
                        ^
<command line>:2:19: note: expanded from:
#define __wchar_t wchar_t
                  ^
extensions/gdal_wrap.cpp:2226:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                    res = SWIG_AddCast(res);
                    ~~~ ^              ~~~
extensions/gdal_wrap.cpp:2229:11: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                    res = SWIG_AddCast(res);                
                    ~~~ ^              ~~~
extensions/gdal_wrap.cpp:6701:31: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated-writable-strings]
        PyObject *item_list = PyMapping_Items( obj1 );
                              ^
/usr/local/include/python2.7/abstract.h:1354:50: note: expanded from:
#define PyMapping_Items(O) PyObject_CallMethod(O,"items",NULL)
                                                 ^
extensions/gdal_wrap.cpp:20858:14: warning: explicitly assigning a variable of type 'void *' to itself [-Wself-assign]
  clientdata = clientdata;
  ~~~~~~~~~~ ^ ~~~~~~~~~~
4 warnings and 1 error generated.
error: command '/bin/sh' failed with exit status 1
gmake[2]: *** [build] Error 1
gmake[2]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.8.1/swig/python'
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.8.1/swig'
gmake: *** [swig-modules] Error 2
*** Error code 1

Stop in /usr/ports/graphics/gdal.
*** Error code 1

Stop in /usr/ports/graphics/gdal.

>How-To-Repeat:

>Fix:


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



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