Package Details: tcc-git 0.9.27.r210.gf420259-1

Git Clone URL: (read-only, click to copy)
Package Base: tcc-git
Description: Tiny C Compiler
Upstream URL:
Licenses: LGPL2.1
Conflicts: tcc
Provides: tcc
Submitter: dw0rek
Maintainer: jonathon
Last Packager: jonathon
Votes: 19
Popularity: 1.42
First Submitted: 2009-01-26 19:25
Last Updated: 2019-11-05 21:03

Dependencies (2)

Required by (8)

Sources (1)

Latest Comments

tee commented on 2021-09-08 12:25

build() needs to changed to unset CFLAGS, otherwise custom CFLAGS will trip up the build.

build() {
  cd tinycc
  unset CFLAGS
  unset LDFLAGS
  ./configure --prefix=/usr

andreas_baumann commented on 2020-01-30 15:53

on IA32 I get:

gcc -o tcctest.gcc tcctest.c -DTCC_TARGET_I386 -march=pentium4 -mtune=generic -pipe -fno-plt -fvar-tracking-assignments -fdebug-prefix-map=/media/sd/INSTALL/tcc-git/src=/usr/src/debug -fno-strict-aliasing -I.. -I.. -fno-PIC -fno-PIE -w -O0 -std=gnu99 -fno-omit-frame-pointer -lc    
/usr/bin/ld: /tmp/ccJOOJrZ.o: direct GOT relocation R_386_GOT32X against `printf@@GLIBC_2.0' without base register can not be used when making a shared object
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status

Disabling PIC is not possible as the inlinined assembly relies on PIC code.

Anybody else experiencing that issue?

tcc itself seems to run fine though without testing.

jonathon commented on 2017-04-30 14:54

Edit: looks to have been fixed upstream.

After a commit [1] enabling MUSL as a toolchain (?), tests fail with multiple "relocation error: ... referenced symbol not found" probably because "Bound checking is not supported yet."

Either removing the associated line from the Makefile:

prepare() {
cd tinycc
sed -i '80d' Makefile

or disabling tests will allow package creation to complete.

I'm also not sure if options=('staticlibs') is necessary any more... `tcc` compiles and runs without error for me without that override.


trengrj commented on 2016-11-11 13:13

Thanks Earnest, I've updated the PKGBUILD.

Earnest commented on 2016-05-06 16:04

Added pkgver(), removed unnecessary prepare().
Added check() to run the tests.


tee commented on 2014-06-20 12:47

You need to add
to override !staticlibs in makepkg.conf
otherwise tcc produces the following error:
tcc: error: file '/usr/local/lib/tcc/libtcc1.a' not found

untitled commented on 2012-11-16 14:52

Sorry for the late response. I received an out-of-date notice today, so didn't know about the issue.

Thanks for your PKGBUILD, the AUR package has been updated.


SbIR commented on 2011-10-26 16:47

New version of texi2html does not have --number option. So tcc documentation fails to build.
Here is my version of PKGBUILD: