From owner-freebsd-ports@freebsd.org Sat Nov 26 03:50:37 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC5C7C5559D for ; Sat, 26 Nov 2016 03:50:37 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pg0-x236.google.com (mail-pg0-x236.google.com [IPv6:2607:f8b0:400e:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78AD4168D for ; Sat, 26 Nov 2016 03:50:37 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pg0-x236.google.com with SMTP id x23so35291690pgx.1 for ; Fri, 25 Nov 2016 19:50:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:reply-to:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=s2B4XwNF6+k6qtQAS+ZtoalejWkE1hZmvoYI9KrAzwc=; b=Q9l325QPEKHsivUAY6TBDFWAna7tZ3075zhmUDZcsBh01U7nMw+COjtbYKUbIcAriH EAqekLrbYIYH37dRinZl4mUWSvnJl9/K8mHJpdYSsKCYV4acpw7AwfvNVsMF9LRqg/KF mSAZS4Hav43ZEsb4bHvsVLb0BVYeYn8KAfEWIGFvxtUpevbyPEAXpCP9p3oOu6rDcvGl o39StrqF49I/fD/eLUZ+hFH5yFbw75014TAZICFIpiLU9niSS0wwjcK4o+2Cjjy7SAEh yOSJrX7ZGHXxBxl/s9/+FJ7Z6jfMZ12HCq9DKM5YoYrsAoKaH0spnMURmRVwpqribhX6 NviA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:reply-to:subject:to:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=s2B4XwNF6+k6qtQAS+ZtoalejWkE1hZmvoYI9KrAzwc=; b=OMrxzSvY1IOKFar1qLWPDvx6RYXy95GSkNb4aQzwYUksO9eN/t0O0KNKmhRkLVN9Ww jjqbKBkQVyP8V9m/14FTWLx3MnqjQMNtioeA7d4v4fyXnY7CmH9fEFNaQDwR79EnIxi8 hYrQI2fJ0cMtXkItO4lGlPRkm8W/3a7iCfH21ztydZJ7AiNjqz8RqTLNj/g/exjHr+lM CKblptSfdiuxwgyKpxn938pSg18PmnwBmLQuzGObJH81WOGZh8BcslQywXOB0rxSj4w+ /SOJk+SwJFUoppbpLoaUM72ihNNpTYRK7OYmCQolSzf1Hpzk2CP8g5aKq0lWe3T4qGmF 89PA== X-Gm-Message-State: AKaTC01QvMH2WtgsskHFlck/HAtWfBrcNg9uhB+ogtsaYwXNMXSSVB9g6sAOTGtmHf5tvw== X-Received: by 10.84.209.136 with SMTP id y8mr25090306plh.114.1480132236708; Fri, 25 Nov 2016 19:50:36 -0800 (PST) Received: from ?IPv6:2001:44b8:31ae:7b01:2455:ee8a:549c:1056? (2001-44b8-31ae-7b01-2455-ee8a-549c-1056.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01:2455:ee8a:549c:1056]) by smtp.gmail.com with ESMTPSA id 140sm52892047pgg.0.2016.11.25.19.50.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 19:50:36 -0800 (PST) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: graphics/py3-cairo cannot find Python.h, but Python.h is present To: tech-lists , freebsd-ports@freebsd.org References: <30b728cd-4f5b-fb00-be41-c2f21e54eded@zyxst.net> From: Kubilay Kocak Message-ID: <0c801f97-bb8f-3219-4923-5ae6c721d8af@FreeBSD.org> Date: Sat, 26 Nov 2016 14:48:35 +1100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0a2 MIME-Version: 1.0 In-Reply-To: <30b728cd-4f5b-fb00-be41-c2f21e54eded@zyxst.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Nov 2016 03:50:37 -0000 On 26/11/2016 11:19 AM, tech-lists wrote: > Hello ports@, > > py3-cairo fails to build saying it can't find Python.h - however this > file is present. > > /storage/usr/local/include/python2.7/Python.h > /storage/usr/local/include/python3.5m/Python.h > > root@pumpkin:/root# file /storage/usr/local/include/python2.7/Python.h > /storage/usr/local/include/python2.7/Python.h: C source, ASCII text > > root@pumpkin:/root# file /storage/usr/local/include/python3.5m/Python.h > /storage/usr/local/include/python3.5m/Python.h: C source, ASCII text > > FreeBSD 11.0-STABLE #0 r308922 / ports is r427130 > > The build gives the following error: > > # make MAKE_JOBS_UNSAFE=yes > ===> Building for py35-cairo-1.10.0_3 > ./options() > Waf: Entering directory > `/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory' > ./build() > src/build() > parsing > /storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src/cairomodule.c > failed > Traceback (most recent call last): > File > "/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Tools/c_preproc.py", > line 496, in addlines > lines=filter_comments(filepath) > File > "/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Tools/c_preproc.py", > line 47, in filter_comments > code=Utils.readf(filename) > File > "/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/.waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Utils.py", > line 83, in readf > txt=f.read() > File "/usr/local/lib/python3.5/encodings/ascii.py", line 26, in decode > return codecs.ascii_decode(input, self.errors)[0] > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 54: > ordinal not in range(128) > [1/9] c: src/cairomodule.c -> build_directory/src/cairomodule.c.1.o > 00:06:50 runner ['cc', '-I/usr/local/include', '-O2', '-pipe', > '-fstack-protector', '-fno-strict-aliasing', '-fPIC', > '-fstack-protector', '-fstack-protector', '-fstack-protector', > '-fno-strict-aliasing', '-fno-strict-aliasing', > '-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory/src', > '-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src', > '-I/usr/local/include/cairo', '-I/usr/local/include/glib-2.0', > '-I/usr/local/lib/glib-2.0/include', '-I/usr/local/include', > '-I/usr/local/include/pixman-1', '-I/usr/local/include/freetype2', > '-I/usr/local/include/libdrm', '-I/usr/local/include/libpng16', > '-I/storage/storage/usr/local/include/python3.5m', '-D_THREAD_SAFE', > '-DNDEBUG', '../src/cairomodule.c', '-c', '-o', 'src/cairomodule.c.1.o'] > ../src/cairomodule.c:21:10: fatal error: 'Python.h' file not found > #include > ^ > 1 error generated. > Waf: Leaving directory > `/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory' > Build failed > -> task failed (exit status 1): > {task 34457710776: c cairomodule.c -> cairomodule.c.1.o} > ['cc', '-I/usr/local/include', '-O2', '-pipe', '-fstack-protector', > '-fno-strict-aliasing', '-fPIC', '-fstack-protector', > '-fstack-protector', '-fstack-protector', '-fno-strict-aliasing', > '-fno-strict-aliasing', > '-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory/src', > '-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src', > '-I/usr/local/include/cairo', '-I/usr/local/include/glib-2.0', > '-I/usr/local/lib/glib-2.0/include', '-I/usr/local/include', > '-I/usr/local/include/pixman-1', '-I/usr/local/include/freetype2', > '-I/usr/local/include/libdrm', '-I/usr/local/include/libpng16', > '-I/storage/storage/usr/local/include/python3.5m', '-D_THREAD_SAFE', Include path ^^ has a double '/storage/storage/' prefix: '-I/storage/storage/usr/local/include/python3.5m' What's causing it is the question. It could be that something is not PREFIX-safe. ./koobs