UCLA-VAST / AutoSA

AutoSA: Polyhedral-Based Systolic Array Compiler
MIT License
191 stars 31 forks source link

Cannot create docker image using the dockerfile #10

Closed hecmay closed 3 years ago

hecmay commented 3 years ago

Hi,

I want to create a docker image with a stable commit of AutoSA (i.e. this one: https://github.com/UCLA-VAST/AutoSA/commit/15c877b9fbb206f1a15b58e71428eea58998d889). However, I ran into this error when building the image

Makefile.am:67: but option 'subdir-objects' is disabledMakefile.am:59: warning: source file '$(poly_src)/testlib.c' is in a subdirectory,
Makefile.am:59: but option 'subdir-objects' is disabled
Makefile.am:68: warning: source file '$(poly_src)/verif_ehrhart.c' is in a subdirectory,
Makefile.am:68: but option 'subdir-objects' is disabled
Makefile.am: installing '../depcomp'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:9: installing 'build-aux/compile'
configure.ac:12: installing 'build-aux/config.guess'
configure.ac:12: installing 'build-aux/config.sub'
configure.ac:4: installing 'build-aux/install-sh'
configure.ac:4: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
configure
./install.sh: 16: ./configure: not found
make
make: *** No targets specified and no makefile found.  Stop.
Removing intermediate container b13cdb4058b4
 ---> 84c4cdc9fc6b
Successfully built 84c4cdc9fc6b
Successfully tagged autosa:latest

Cloud you please kindly create a docker image of that old commit with a different tag?

whbldhwj commented 3 years ago

It looks like the GNU Autotools fails and didn't generate the correct Makefile. I just updated the source files and fixed several bugs. Can you test if the latest version fixed the bugs mentioned in #9 ? And try again for generating the Docker image?

hecmay commented 3 years ago

Thanks! I will have a try.

hecmay commented 3 years ago

The docker image still cannot be built. Got the same error (maybe I have different settings when building the image). I just replaced the last few commands into the following commands. Not sure why it happened.

RUN cd /usr/src && \
    git config --global http.sslVerify false && \
    git clone https://github.com/UCLA-VAST/AutoSA.git docker_autosa && \
    cd /usr/src/docker_autosa && \
    ./install.sh 

Also unfortunately, the issue #9 is still there with the latest fix. Is it possible to create a docker image based on 15c877b? Debugging through this is kind of painful to me 😂