Created attachment 159051 [details] tcc.diff - Add amd64 support - Fix shebang in texi2pod.pl - Fix pkg-plist - Bump PORTVERSION
Just as record, it builds fine, but it fails to work properly since FreeBSD 9.1/i386-RELEASE. Currently, a bug [1] is opened to solve the following issue: # tcc -o hello hello.c In file included from hello.c:1: /usr/include/stdio.h:63: error: ';' expected (got "va_list") From /usr/include/stdio.h #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE #ifndef _VA_LIST_DECLARED typedef __va_list va_list; #define _VA_LIST_DECLARED #endif #endif [1] https://lists.gnu.org/archive/html/tinycc-devel/2015-07/msg00020.html
Created attachment 159052 [details] tcc build log on amd64
Created attachment 159055 [details] tcc build log on i386
A commit references this bug: Author: pi Date: Fri Jul 24 04:28:43 UTC 2015 New revision: 392768 URL: https://svnweb.freebsd.org/changeset/ports/392768 Log: lang/tcc: add amd64 support - Add amd64 support - Fix shebang in texi2pod.pl - Fix pkg-plist - Bump PORTVERSION PR: 201749 Submitted by: Carlos Jacobo Puga Medina <cpm@fbsd.es> (maintainer) Changes: head/lang/tcc/Makefile head/lang/tcc/files/ head/lang/tcc/files/patch-lib_Makefile head/lang/tcc/files/patch-texi2pod.pl head/lang/tcc/pkg-plist
Test-build on 10.1a, 9.3a, 10.1i went fine. Committed, thanks.
A commit references this bug: Author: jkim Date: Tue Aug 4 00:11:40 UTC 2015 New revision: 286265 URL: https://svnweb.freebsd.org/changeset/base/286265 Log: Always define __va_list for amd64 and restore pre-r232261 behavior for i386. Note it allows exotic compilers, e.g., TCC, to build with our stdio.h, etc. PR: 201749 MFC after: 1 week Changes: head/sys/x86/include/_types.h