Package Details: tcc-git 0.9.27.r797.g4e0e9b8-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: yurikoles
Last Packager: jonathon
Votes: 22
Popularity: 0.005322
First Submitted: 2009-01-26 19:25 (UTC)
Last Updated: 2022-01-18 12:54 (UTC)

Dependencies (2)

Required by (9)

Sources (1)

Latest Comments

1 2 Next › Last »

jonathon commented on 2021-12-02 12:48 (UTC)

The mob branch is the default, nothing needs to be changed in the PKGBUILD.

dujemiha commented on 2021-12-02 08:31 (UTC)

source should be changed from 'git+https://repo.or.cz/tinycc.git' to 'git+https://repo.or.cz/tinycc.git#branch=mob', as development seems to have moved to the branch mob since the release of 0.9.27 three years ago.

defty commented on 2021-12-01 04:56 (UTC)

In addition to what @tee said, docdir needs to be set on install because the default is incorrect. One way would be to change the install function to

package() {
  cd tinycc
  make DESTDIR="$pkgdir" docdir="$pkgdir"/usr/share/doc/tcc install
}

tee commented on 2021-09-08 12:25 (UTC)

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
  make
}

andreas_baumann commented on 2020-01-30 15:53 (UTC) (edited on 2020-01-30 15:54 (UTC) by andreas_baumann)

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 (UTC) (edited on 2017-05-09 19:55 (UTC) by jonathon)

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 (UTC)

Thanks Earnest, I've updated the PKGBUILD.

Earnest commented on 2016-05-06 16:04 (UTC) (edited on 2016-05-06 16:05 (UTC) by Earnest)

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 (UTC)

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