blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

SQLite demo fails to build on Linux #130

Closed Pharmhaus-2 closed 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: jondecker76

`Mx2cc version 1.1.15

Making app '/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.monkey2' (linux release x64 gcc)

Parsing... Semanting... Translating... Compiling... Linking /home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.products/Linux/Sqlitetest... Build error: System command failed:

g++ -s -O3 -o "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.products/Linux/Sqlitetest" "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.buildv1.1.15/linux_release/build/r5b58089e.cpp_r.o" "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.buildv1.1.15/linux_release/build/r73a64ed5.cpp_r.o" "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.buildv1.1.15/linux_release/build/r4d8c9f55.cpp_r.o" "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.buildv1.1.15/linux_release/build/r897528f5.cpp_r.o" "/home/viavacavi/Dropbox/monkey2/bananas/sqlitetest/sqlitetest.buildv1.1.15/linux_release/build/sqlitetestb4f98a14.cpp.o" "/home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a" "/home/viavacavi/Dropbox/monkey2/modules/libc/libc.buildv1.1.15/linux_release/libc.a" "/home/viavacavi/Dropbox/monkey2/modules/monkey/monkey.buildv1.1.15/linux_release/monkey.a"

/usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function pthreadMutexTry': sqlite3.c:(.text+0x44c5): undefined reference topthread_mutex_trylock' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function vdbeIncrFree': sqlite3.c:(.text+0xb908): undefined reference topthread_join' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function vdbePmaReaderNext': sqlite3.c:(.text+0xecca): undefined reference topthread_join' /usr/bin/ld: sqlite3.c:(.text+0xece8): undefined reference to pthread_create' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in functionpthreadMutexAlloc': sqlite3.c:(.text+0x120b7): undefined reference to pthread_mutexattr_init' /usr/bin/ld: sqlite3.c:(.text+0x120c4): undefined reference topthread_mutexattr_settype' /usr/bin/ld: sqlite3.c:(.text+0x120d7): undefined reference to pthread_mutexattr_destroy' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in functionvdbeSorterFlushPMA': sqlite3.c:(.text+0x13be4): undefined reference to pthread_join' /usr/bin/ld: sqlite3.c:(.text+0x13d18): undefined reference topthread_create' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function sqlite3VdbeSorterReset': sqlite3.c:(.text+0x164ea): undefined reference topthread_join' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function vdbeMergeEngineInit': sqlite3.c:(.text+0x1d3a8): undefined reference topthread_create' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function unixDlError': sqlite3.c:(.text+0x29d8f): undefined reference todlerror' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in function sqlite3VdbeExec': sqlite3.c:(.text+0x84e97): undefined reference topthread_join' /usr/bin/ld: sqlite3.c:(.text+0x89da2): undefined reference to pthread_create' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in functionunixDlClose': sqlite3.c:(.text+0x4a24): undefined reference to dlclose' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in functionunixDlSym': sqlite3.c:(.text+0x4a37): undefined reference to dlsym' /usr/bin/ld: /home/viavacavi/Dropbox/monkey2/modules/sqlite/sqlite.buildv1.1.15/linux_release/sqlite.a(sqlite3e31ba218.c.o): in functionunixDlOpen': sqlite3.c:(.text+0x4a49): undefined reference to `dlopen' collect2: error: ld returned 1 exit status

Fatal mx2cc error

Internal mx2cc build error `

Pharmhaus-2 commented 5 years ago

@jondecker76 which distro are you using? Any custom env_linux.txt configuration?

jondecker76 commented 5 years ago

This has been fixed in a recent update!

On Sun, Apr 14, 2019, 12:36 PM Pharmhaus.Net notifications@github.com wrote:

@jondecker76 https://github.com/jondecker76 which distro are you using? Any custom env_linux.txt configuration?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/blitz-foundation/monkey2/issues/130#issuecomment-483012875, or mute the thread https://github.com/notifications/unsubscribe-auth/AGc_m_wzdCjlf5N8JeawsoBgdwxia35tks5vg1kggaJpZM4cunBU .