[strace/strace] Compiling with tcc (TinyC Compiler) (#132)

James Mills notifications at github.com
Mon Apr 20 05:15:39 UTC 2020


> Sorry, the error message ```tcc: erro``` is too cryptic.

I think this was a bad copy/paste :/ -- Actually the `./configure` script doesn't even handle setting the `CC` env var very well :/

```#!sh
checking for gcc... tcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether tcc accepts -g... yes
checking for tcc option to accept ISO C89... none needed
checking whether tcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of tcc... tcc
checking for tcc option to accept ISO C99... none needed
checking for tcc option to accept ISO Standard C... (cached) none needed
checking how to run the C preprocessor... tcc -E
checking whether tcc handles -Werror -Wunknown-warning-option... yes
checking whether tcc handles -Wall... yes
checking whether tcc handles -Wempty-body... yes
checking whether tcc handles -Wformat-security... yes
checking whether tcc handles -Wignored-qualifiers... yes
checking whether tcc handles -Wimplicit-fallthrough=5... yes
checking whether tcc handles -Winit-self... yes
checking whether tcc handles -Winitializer-overrides... yes
checking whether tcc handles -Wlogical-op... yes
checking whether tcc handles -Wmissing-parameter-type... yes
checking whether tcc handles -Wnested-externs... yes
checking whether tcc handles -Wold-style-declaration... yes
checking whether tcc handles -Wold-style-definition... yes
checking whether tcc handles -Woverride-init... yes
checking whether tcc handles -Wsign-compare... yes
checking whether tcc handles -Wtype-limits... yes
checking whether tcc handles -Wwrite-strings... yes
configure: looking for a C compiler that generates native executables
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/strace/build/src/strace-5.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
#
```

This is a bit strange; most other software respects the `CC` env var.

This is the `Pkgfile`:

```
#!/bin/sh
# shellcheck disable=SC2034

# Description: ...
# URL:         ...
# Maintainer:  ...

name=strace
version=5.4
release=1
source="https://github.com/strace/strace/releases/download/v$version/$name-$version.tar.xz"

build() {
  cd $name-$version

  ./configure \
    --prefix=/usr \
    --enable-mpers=no

  make -j "$(nproc)"

  make DESTDIR="$PKG" install
}
```



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/issues/132#issuecomment-616314636
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20200419/29afb7c2/attachment.html>


More information about the Strace-devel mailing list