Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcc make failed #11

Open
freedom195 opened this issue Dec 9, 2020 · 1 comment
Open

tcc make failed #11

freedom195 opened this issue Dec 9, 2020 · 1 comment

Comments

@freedom195
Copy link

Hi , I am wonderful with this project using k210 with linux.

But when I make the tcc compiler
`root@ubuntu:/k210/linux/k210-linux-nommu/tinycc# make
make[1]: Entering directory '/k210/linux/k210-linux-nommu/tinycc/lib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/k210/linux/k210-linux-nommu/tinycc/lib'
makeinfo --no-split --html --number-sections -o tcc-doc.html tcc-doc.texi || true
/bin/sh: 1: makeinfo: not found
makeinfo tcc-doc.texi || true
/bin/sh: 1: makeinfo: not found

root@ubuntu:/k210/linux/k210-linux-nommu/tinycc# make DESTDIR=../rootfs_k210 install
mkdir -p "../rootfs_k210/usr/bin" && install -m755 tcc "../rootfs_k210/usr/bin"
mkdir -p "../rootfs_k210/usr/lib/tcc" && install -m644 libtcc1.a bt-exe.o bt-log.o "../rootfs_k210/usr/lib/tcc"
mkdir -p "../rootfs_k210/usr/lib/tcc/include" && install -m644 ./include/*.h ./tcclib.h "../rootfs_k210/usr/lib/tcc/include"
mkdir -p "../rootfs_k210/usr/lib" && install -m644 libtcc.a "../rootfs_k210/usr/lib"
mkdir -p "../rootfs_k210/usr/include" && install -m644 ./libtcc.h "../rootfs_k210/usr/include"
mkdir -p "../rootfs_k210/usr/share/man/man1" && install -m644 tcc.1 "../rootfs_k210/usr/share/man/man1"
`
I think it's wrong and I don't know how to do with it .

And I need to removed the -lpthread , but I don't know which file I should to modify ,sorry ,I am wonderful with it and I am a linux beginner .

@vowstar
Copy link
Owner

vowstar commented Dec 10, 2020

Please make sure

DEBIAN_FRONTEND=noninteractive apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq \
    build-essential \
    device-tree-compiler \
    bison \
    flex \
    file \
    git \
    curl \
    wget \
    cpio \
    python \
    unzip \
    rsync \
    bc

If your ubuntu is very old, you may also need

sudo apt-get install texinfo

or, upgrade ubuntu to at latest 20.04

have been installed correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants