Bug 201749 - [MAINTAINER] lang/tcc: add amd64 support
Summary: [MAINTAINER] lang/tcc: add amd64 support
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 22:31 UTC by Carlos J Puga Medina
Modified: 2015-08-04 00:12 UTC (History)
1 user (show)

See Also:


Attachments
tcc.diff (3.00 KB, patch)
2015-07-21 22:31 UTC, Carlos J Puga Medina
no flags Details | Diff
tcc build log on amd64 (76.76 KB, text/x-log)
2015-07-21 22:57 UTC, Carlos J Puga Medina
no flags Details
tcc build log on i386 (6.12 KB, text/x-log)
2015-07-22 00:55 UTC, Carlos J Puga Medina
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos J Puga Medina 2015-07-21 22:31:12 UTC
Created attachment 159051 [details]
tcc.diff

- Add amd64 support
- Fix shebang in texi2pod.pl
- Fix pkg-plist
- Bump PORTVERSION
Comment 1 Carlos J Puga Medina 2015-07-21 22:39:41 UTC
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
Comment 2 Carlos J Puga Medina 2015-07-21 22:57:26 UTC
Created attachment 159052 [details]
tcc build log on amd64
Comment 3 Carlos J Puga Medina 2015-07-22 00:55:37 UTC
Created attachment 159055 [details]
tcc build log on i386
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-07-24 04:28:56 UTC
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
Comment 5 Kurt Jaeger freebsd_committer freebsd_triage 2015-07-24 04:31:18 UTC
Test-build on 10.1a, 9.3a, 10.1i went fine.

Committed, thanks.
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-08-04 00:12:27 UTC
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