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

Linking fails with /usr/bin/ld: libqscintilla2_qt5.so: undefined reference to __cxa_throw_bad_array_new_length@Qt_5'`. #25

Open
dreirund opened this issue Jan 25, 2024 · 2 comments

Comments

@dreirund
Copy link

dreirund commented Jan 25, 2024

I am building "Xiasl", release version 1.1.67, on Artix GNU/Linux (rolling release) using this recipe.

When doing qmake and then make, I get the following error:

[...]
g++ -no-pie -Wl,-rpath,'$ORIGIN/lib' -Wl,-rpath,'$ORIGIN' -Wl,-rpath,'$ORIGIN/platforms' -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -pipe -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -std=gnu++11 -flto=16 -fno-fat-lto-objects -fuse-linker-plugin -Wl,-rpath,\$ORIGIN -fPIC -o bin/release/Xiasl MyTabBar.o MyTabPage.o MyTabPopup.o MyTabWidget.o autoupdatedialog.o dlgdecompile.o dlgpreferences.o filesystemwatcher.o main.o mainwindow.o methods.o minidialog.o myapp.o recentfiles.o qrc_my.o moc_MyTabBar.o moc_MyTabPage.o moc_MyTabPopup.o moc_qsciabstractapis.o moc_qsciapis.o moc_qscilexer.o moc_qscilexeravs.o moc_qscilexerbash.o moc_qscilexerbatch.o moc_qscilexercmake.o moc_qscilexercoffeescript.o moc_qscilexercpp.o moc_qscilexercsharp.o moc_qscilexercss.o moc_qscilexercustom.o moc_qscilexerd.o moc_qscilexerdiff.o moc_qscilexeredifact.o moc_qscilexerfortran.o moc_qscilexerfortran77.o moc_qscilexerhtml.o moc_qscilexeridl.o moc_qscilexerjava.o moc_qscilexerjavascript.o moc_qscilexerjson.o moc_qscilexerlua.o moc_qscilexermakefile.o moc_qscilexermarkdown.o moc_qscilexermatlab.o moc_qscilexeroctave.o moc_qscilexerpascal.o moc_qscilexerperl.o moc_qscilexerpo.o moc_qscilexerpostscript.o moc_qscilexerpov.o moc_qscilexerproperties.o moc_qscilexerpython.o moc_qscilexerruby.o moc_qscilexerspice.o moc_qscilexersql.o moc_qscilexertcl.o moc_qscilexertex.o moc_qscilexerverilog.o moc_qscilexervhdl.o moc_qscilexerxml.o moc_qscilexeryaml.o moc_qscimacro.o moc_qsciscintilla.o moc_qsciscintillabase.o moc_autoupdatedialog.o moc_dlgdecompile.o moc_dlgpreferences.o moc_filesystemwatcher.o moc_mainwindow.o moc_methods.o moc_minidialog.o moc_mytabwidget.o moc_recentfiles.o   -LWD libqscintilla2_qt5.so /usr/lib/libQt5Widgets.so /usr/lib/libQt5Gui.so /usr/lib/libQt5Network.so /usr/lib/libQt5Core.so -lGL -lpthread   
/usr/bin/ld: libqscintilla2_qt5.so: undefined reference to `__cxa_throw_bad_array_new_length@Qt_5'
  • GCC version is 13.2.1,
  • ld version is 2.41.0 (GNU binutils),
  • qscintilla-qt5 is version 2.14.1.

Regards!

@SergeySlice
Copy link

Update your Qt5 installation and get new dylib
In my case "sudo port install qt5" =>
/opt/local/libexec/qt5/lib/libqscintilla2_qt5.15.1.1.dylib
which is good for the project compilation and run.

@dreirund
Copy link
Author

dreirund commented Feb 17, 2024 via email

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