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

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

Dependencies (2)

Required by (8)

Sources (1)

Latest Comments

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.

[1] http://repo.or.cz/tinycc.git/commitdiff/0ac29b53dc038408b08e0f8515ae6edabc145f76

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.

PKGUBILD: https://ptpb.pw/GX1m/sh

tee commented on 2014-06-20 12:47

You need to add
options=(staticlibs)
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.

/u

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:
http://pastebin.com/a2zJmKYY