emojicode / emojicode

😀😜🔂 World’s only programming language that’s bursting with emojis

Home Page:https://emojicode.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build fails: Assertion failed: (V[i]->getType() == Ty->getElementType() && "Wrong type in array element initializer")

yurivict opened this issue · comments

cd /usr/ports/lang/emojicode/work/.build/s && /usr/ports/lang/emojicode/work/.build/Compiler/emojicodec -p s -o s.o -i interface.emojii --color /usr/ports/lang/emojicode/work/emojicode-0.7/s/s.emojic -O -c
Assertion failed: (V[i]->getType() == Ty->getElementType() && "Wrong type in array element initializer"), function getImpl, file /wrkdirs/usr/ports/devel/llvm60/work/llvm-6.0.1.src/lib/IR/Constants.cpp, line 900.

FreeBSD 11.2 amd64
llvm60-6.0.1

commented

Please provide details on what commands you ran to compile Emojicode. Thanks.

Configure command:

cd /usr/ports/lang/emojicode/work/.build; /usr/bin/env XDG_DATA_HOME=/usr/ports/lang/emojicode/work  XDG_CONFIG_HOME=/usr/ports/lang/emojicode/work  HOME=/usr/ports/lang/emojicode/work PATH=/usr/ports/lang/emojicode/work/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh /usr/local/bin/cmake -DCMAKE_C_COMPILER:STRING="cc"  -DCMAKE_CXX_COMPILER:STRING="c++"  -DCMAKE_C_FLAGS:STRING="-O2 -pipe -fno-omit-frame-pointer  -fstack-protector -fno-strict-aliasing "  -DCMAKE_C_FLAGS_DEBUG:STRING="-O2 -pipe -fno-omit-frame-pointer  -fstack-protector -fno-strict-aliasing "  -DCMAKE_C_FLAGS_RELEASE:STRING="-O2 -pipe -fno-omit-frame-pointer  -fstack-protector -fno-strict-aliasing "  -DCMAKE_CXX_FLAGS:STRING="-O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer  "  -DCMAKE_CXX_FLAGS_DEBUG:STRING="-O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer  "  -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer  "  -DCMAKE_EXE_LINKER_FLAGS:STRING=" -fstack-protector "  -DCMAKE_MODULE_LINKER_FLAGS:STRING=" -fstack-protector "  -DCMAKE_SHARED_LINKER_FLAGS:STRING=" -fstack-protector "  -DCMAKE_INSTALL_PREFIX:PATH="/usr/local"  -DCMAKE_BUILD_TYPE:STRING="Release"  -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES  -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES  -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON /usr/ports/lang/emojicode/work/emojicode-0.7```

Build command:
```(cd /usr/ports/lang/emojicode/work/.build; if ! /usr/bin/env XDG_DATA_HOME=/usr/ports/lang/emojicode/work  XDG_CONFIG_HOME=/usr/ports/lang/emojicode/work  HOME=/usr/ports/lang/emojicode/work PATH=/usr/ports/lang/emojicode/work/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe -fno-omit-frame-pointer  -fstack-protector -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-fno-omit-frame-pointer"  LDFLAGS=" -fstack-protector " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer  "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444" /usr/bin/make -f Makefile -j8  all; then  if [ -n "Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer." ] ; then  echo "===> Compilation failed unexpectedly.";  (echo "Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer.") | /usr/bin/fmt 75 79 ;  fi;  false;  fi)```
commented

Have you used any package manager? Or how did you come up with this configuration?

I am trying to create the FreeBSD port. The port framework builds cmake-based projects this way.

Is it compatible with some other llvm version? Or, otherwise, what's the problem here?

commented

I guess, it has something to do with your configuration. Please try if our build instructions work for you.

My build follows instructions. This llvm error is due to the wrong llvm code created by the project.