From owner-freebsd-ports@freebsd.org Thu Apr 14 08:58:20 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 A45C5B0FD3F for ; Thu, 14 Apr 2016 08:58:20 +0000 (UTC) (envelope-from ben.wiederhake@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 82B451DB9 for ; Thu, 14 Apr 2016 08:58:20 +0000 (UTC) (envelope-from ben.wiederhake@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 7E29DB0FD3E; Thu, 14 Apr 2016 08:58:20 +0000 (UTC) Delivered-To: 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 7DCA2B0FD3D for ; Thu, 14 Apr 2016 08:58:20 +0000 (UTC) (envelope-from ben.wiederhake@gmail.com) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 14CF91DB7 for ; Thu, 14 Apr 2016 08:58:20 +0000 (UTC) (envelope-from ben.wiederhake@gmail.com) Received: by mail-wm0-x242.google.com with SMTP id y144so20789744wmd.0 for ; Thu, 14 Apr 2016 01:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=XIM85HECF21zF7gsHdN4SbZqnmD2QqmXGtUgjjXaFF8=; b=pGNFbsop/XKU3jWEZOnhZgTmOQ0pZu7w052EMTm0lZZuVFWigNh3ZKHrJZx1ZtJEWY rAydOkia6nihaTagGItdxsBlp89E3Onpc0OvkP98VEnLGaf8zfcvuTP6U80CDlVHdZRb /VpOkgb+wx05V/xWkIw2gpE+l9JShZuTM2oYztgdf3vRWUpbqf0SOqbU1tTyIliGHscP CGXpbKE2T1rHDLD4HDpFJSMsLv4kLOS2QN080z4fIpfsVJoazlaTLGVn3LDOpL2tlURO JN15fbywSrkdGaY5bjUAN+lMcmrofDKIUAP78n7H+0SnxTKefAjD1C+U3jCJzdnsECcz jvpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=XIM85HECF21zF7gsHdN4SbZqnmD2QqmXGtUgjjXaFF8=; b=kJkhArzAc163+61K5a+zeTnQgCQFKmVjIQ9KS6XpgJEqxc2FsZV3hVpNq71glwlwLS arQPdUmfXQKOzXkdfqI9zxWxsx1+tyf0tI0KZ1nmHC2JnV/5f56yJB6/sQhvdrHI6hF3 Cg76lZ1Yp3LMb7JRAnXyj4123qazjWQwAsTZh8ajp8cYuLu1xkwVhXO7l9twpEVxGT4c 4tqqFRURau18youECDPFsFOVCy5/Nk04SYqGXATtuq2gd+8D6xShVXprtME5ufSyvzi+ 7710xNXVcgQ0QCMFUOxUbx2IiqsKVtJfmNBwDjX/yA/Rd/XPeGCqETDqu+uWegQK9TNu vT9g== X-Gm-Message-State: AOPr4FVfQu0IUUU7rVU68dq4kPfC2Jfd7T3hyvmkCRYl7Lx0ZN/nsMLZmXFxIQq+J2EdoA== X-Received: by 10.194.62.110 with SMTP id x14mr16219224wjr.68.1460624298348; Thu, 14 Apr 2016 01:58:18 -0700 (PDT) Received: from [192.168.2.198] (dslb-094-219-003-026.094.219.pools.vodafone-ip.de. [94.219.3.26]) by smtp.googlemail.com with ESMTPSA id 7sm5419134wmn.7.2016.04.14.01.58.17 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Apr 2016 01:58:17 -0700 (PDT) From: Ben Wiederhake X-Google-Original-From: Ben Wiederhake Subject: Re: FreeBSD Port: tcc-0.9.26_3 To: Waitman Gobble References: <570EE298.401@gmail.com> Cc: cpm@fbsd.es, "freebsd-ports@freebsd.org" Message-ID: <570F5BA8.1020504@gmail.com> Date: Thu, 14 Apr 2016 10:58:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2016 08:58:20 -0000 Hello, >> "#include " seems to be impossible with tcc on FreeBSD. >> >> Steps to reproduce: >> Try to compile the following program: >> """ >> #include >> #include >> int main(void){printf("Hello world\n");} >> """ >> >> Excepted results: >> Compilation finishes with no errors. >> >> Actual results: >> """ >> In file included from foo.c:1: >> In file included from /usr/include/stdint.h:33: >> In file included from /usr/include/sys/_types.h:33: >> In file included from /usr/include/machine/_types.h:6: >> /usr/include/x86/_types.h:161: error: too many basic types >> """ >> And compilation fails. > You want to be using the headers provided with tcc? > > # tcc -run -I/usr/local/lib/tcc/include test.c > Hello world Doesn't work either; it fails with the exact same error in the exact same spot. Maybe that's because: - tcc's 'include' are already on the search path by default (see 'man tcc') - there's no 'stdio.h' nor 'stdint.h' among tcc's provided headers. Again: on Debian, it works, and the provided headers are the same files (slightly different content, but that shouldn't matter). Does it work on your machine? If so, what could I have done wrong? Regards, Ben Wiederhake