Package Details: tcc-git 0.9.27.r791.gda11cf6-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: 19
Popularity: 0.52
First Submitted: 2009-01-26 19:25
Last Updated: 2021-12-01 20:02

Dependencies (2)

Required by (8)

Sources (1)

Latest Comments

1 2 Next › Last »

jonathon commented on 2021-12-02 12:48

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

dujemiha commented on 2021-12-02 08:31

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

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

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

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