Tina-Linux icon indicating copy to clipboard operation
Tina-Linux copied to clipboard

Does not compile

Open octachrome opened this issue 3 years ago • 7 comments

I followed the instructions in a Ubuntu Docker image, chose option 1, "d1_mq_pro-tina", and it hits a compilation error. Has anything changed since these instructions were written?

The error:

gcc  -I.   -I/home/build/Tina-Linux/out/host/include -I/home/build/Tina-Linux/out/host/usr/include   -O2 -I/home/build/Tina-Linux/out/host/include -I/home/build/Tina-Linux/out/host/usr/include  -MT c-stack.o -MD -MP -MF $depbase.Tpo -c -o c-stack.o c-stack.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/signal.h:328,
                 from ./signal.h:52,
                 from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
   55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
      |                          ^~~~~~~~
make[7]: *** [Makefile:1910: c-stack.o] Error 1
make[7]: Leaving directory '/home/build/Tina-Linux/out/d1-mq_pro/compile_dir/host/m4-1.4.18/lib'
make[6]: *** [Makefile:1674: all] Error 2

My Dockerfile:

FROM ubuntu
RUN apt update && apt install -y build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lib32z1 lib32z1-dev lib32stdc++6 libstdc++6 libmpc-dev libgmp-dev python2 file wget
RUN useradd -ms /bin/bash build
USER build
RUN cd /home/build && git clone https://github.com/mangopi-sbc/Tina-Linux.git
WORKDIR /home/build/Tina-Linux
RUN git submodule update --init --recursive
COPY prebuilt.tar.gz dl.tar ./
COPY riscv64-linux-x86_64-20200528.tar.xz lichee/brandy-2.0/tools/toolchain/
COPY gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi.tar.xz lichee/brandy-2.0/tools/toolchain/
USER root
RUN chown build prebuilt.tar.gz dl.tar lichee/brandy-2.0/tools/toolchain/*.tar.xz
USER build
RUN tar xf prebuilt.tar.gz && tar xf dl.tar

octachrome avatar Sep 11 '22 19:09 octachrome

I have the same problem with option 7. t113_mq_r-tina:

In file included from /usr/include/signal.h:328, from ./signal.h:52, from c-stack.c:49: c-stack.c:55:26: error: missing binary operator before token "(" 55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384

ArthurMurata avatar Oct 12 '22 03:10 ArthurMurata

compile in docker ?

mangobuge avatar Oct 12 '22 08:10 mangobuge

@mangobuge What do you mean? I am compiling in Docker, I included the Dockerfile I am using in my first post. Does it look correct?

octachrome avatar Oct 12 '22 08:10 octachrome

@octachrome This tina environment only supports real Ubuntu16.04, 18.04, not docker compilation.

mangobuge avatar Oct 12 '22 09:10 mangobuge

I using real Ubuntu 22.04.1 LTS 64-bit ... This Tina environment does not support ?

ArthurMurata avatar Oct 12 '22 12:10 ArthurMurata

Tina env not support above ubuntu20.04 :(

mangobuge avatar Oct 12 '22 13:10 mangobuge

Thanks @mangobuge , compilation successful with Ubuntu 18.04 ... But when enable SSH in "menuconfig" the build is failed ... Someone try enable SSH in menuconfig with success ?

ArthurMurata avatar Oct 13 '22 18:10 ArthurMurata