Opened 10 years ago

Closed 6 years ago

#43276 closed defect (fixed)

LibreCAD: Build failure due to muparser

Reported by: mf2k (Frank Schima) Owned by: librecad@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: dongxuli2011@…, anddam (Andrea D'Amore)
Port: LibreCAD

Description

Due to r118673 LibreCAD no longer builds on the buildbots because it cannot find muparser:

https://build.macports.org/builders/buildports-mavericks-x86_64/builds/2599/steps/compile/logs/stdio

/usr/bin/clang++ -arch x86_64 -c -pipe -std=c++11 -g -mmacosx-version-min=10.8 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.9 -Wall -W -fPIC -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_SHARED -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I../../generated/lib/jwwlib/moc -I/opt/local/Library/Frameworks/QtSvg.framework/Versions/4/Headers -I/opt/local/Library/Frameworks/QtSvg.framework/Versions/4/Headers -I/opt/local/include -o ../../generated/lib/jwwlib/obj/jwwdoc.o src/jwwdoc.cpp
cd libdxfrw/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile all
make[2]: Entering directory `/opt/local/var/macports/build/_opt_mports_dports_cad_LibreCAD/LibreCAD/work/LibreCAD-2.0.3/libraries/libdxfrw'
/usr/bin/clang++ -arch x86_64 -c -pipe -g -mmacosx-version-min=10.8 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.9 -Wall -W -fPIC -DQT_NO_DEBUG -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I../../generated/lib/libdxfrw/moc -I/opt/local/include -o ../../generated/lib/libdxfrw/obj/libdxfrw.o src/libdxfrw.cpp
/usr/bin/clang++ -arch x86_64 -c -pipe -g -mmacosx-version-min=10.8 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.9 -Wall -W -fPIC -DQT_NO_DEBUG -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I../../generated/lib/libdxfrw/moc -I/opt/local/include -o ../../generated/lib/libdxfrw/obj/drw_entities.o src/drw_entities.cpp
/usr/bin/clang++ -arch x86_64 -c -pipe -g -mmacosx-version-min=10.8 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.9 -Wall -W -fPIC -DQT_NO_DEBUG -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I../../generated/lib/libdxfrw/moc -I/opt/local/include -o ../../generated/lib/libdxfrw/obj/drw_objects.o src/drw_objects.cpp
/usr/bin/clang++ -arch x86_64 -c -pipe -g -mmacosx-version-min=10.8 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.9 -Wall -W -fPIC -DQT_NO_DEBUG -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I../../generated/lib/libdxfrw/moc -I/opt/local/include -o ../../generated/lib/libdxfrw/obj/drw_textcodec.o src/intern/drw_textcodec.cpp
/usr/bin/clang++ -arch x86_64 -c -pipe -g -mmacosx-version-min=10.8 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.9 -Wall -W -fPIC -DQT_NO_DEBUG -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I../../generated/lib/libdxfrw/moc -I/opt/local/include -o ../../generated/lib/libdxfrw/obj/dxfreader.o src/intern/dxfreader.cpp
In file included from src/dl_writer_ascii.cpp:34:
src/dl_exception.h:51:9: warning: private field 'groupCode' is not used [-Wunused-private-field]
    int groupCode;
        ^
/usr/bin/clang++ -arch x86_64 -c -pipe -g -mmacosx-version-min=10.8 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.9 -Wall -W -fPIC -DQT_NO_DEBUG -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I../../generated/lib/libdxfrw/moc -I/opt/local/include -o ../../generated/lib/libdxfrw/obj/dxfwriter.o src/intern/dxfwriter.cpp
1 warning generated.
rm -f libjwwlib.a
ar cq libjwwlib.a ../../generated/lib/jwwlib/obj/dl_writer_ascii.o ../../generated/lib/jwwlib/obj/dl_jww.o ../../generated/lib/jwwlib/obj/jwwdoc.o
ranlib -s libjwwlib.a
rm -f ../../generated/lib/libjwwlib.a
mv -f libjwwlib.a ../../generated/lib/
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_cad_LibreCAD/LibreCAD/work/LibreCAD-2.0.3/libraries/jwwlib'
rm -f libdxfrw.a
ar cq libdxfrw.a ../../generated/lib/libdxfrw/obj/libdxfrw.o ../../generated/lib/libdxfrw/obj/drw_entities.o ../../generated/lib/libdxfrw/obj/drw_objects.o ../../generated/lib/libdxfrw/obj/drw_textcodec.o ../../generated/lib/libdxfrw/obj/dxfreader.o ../../generated/lib/libdxfrw/obj/dxfwriter.o
ranlib -s libdxfrw.a
rm -f ../../generated/lib/libdxfrw.a
mv -f libdxfrw.a ../../generated/lib/
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_cad_LibreCAD/LibreCAD/work/LibreCAD-2.0.3/libraries/libdxfrw'
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_cad_LibreCAD/LibreCAD/work/LibreCAD-2.0.3/libraries'
cd librecad/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile all
make[1]: Entering directory `/opt/local/var/macports/build/_opt_mports_dports_cad_LibreCAD/LibreCAD/work/LibreCAD-2.0.3/librecad'
cd src/ && /opt/local/bin/qmake /opt/local/var/macports/build/_opt_mports_dports_cad_LibreCAD/LibreCAD/work/LibreCAD-2.0.3/librecad/src/src.pro PREFIX=/opt/local QMAKE_CC=/usr/bin/clang QMAKE_CXX=/usr/bin/clang++ QMAKE_OBJC=/usr/bin/clang CFLAGS=-Os\ -arch\ x86_64 CONFIG+=build_muparser -o Makefile
Project MESSAGE: We will be using CPP11 features
Project MESSAGE: Found Boost in /opt/local
Project MESSAGE: Using Boost includes from /opt/local/include
Project MESSAGE: qtAddLibrary: found framework QtHelp in directory /opt/local/Library/Frameworks
Project MESSAGE: qtAddLibrary: found framework QtSvg in directory /opt/local/Library/Frameworks
Project MESSAGE: qtAddLibrary: found framework QtSql in directory /opt/local/Library/Frameworks
Project MESSAGE: qtAddLibrary: found framework QtGui in directory /opt/local/Library/Frameworks
Project MESSAGE: qtAddLibrary: found framework QtCore in directory /opt/local/Library/Frameworks
Project ERROR: Package muparser not found
make[1]: *** [src/Makefile] Error 2

Attachments (2)

buildbot_log.txt (9.7 MB) - added by mf2k (Frank Schima) 10 years ago.
main.log (52.4 KB) - added by mf2k (Frank Schima) 10 years ago.
Latest main.log

Change History (5)

Changed 10 years ago by mf2k (Frank Schima)

Attachment: buildbot_log.txt added

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Using your patch from here, it still fails when the muparser port is not installed.

:info:build cd src/ && /opt/local/bin/qmake /opt/local/var/macports/build/_opt_mports_trunk_dports_cad_LibreCAD/LibreCAD/work/LibreCAD-2.0.3/librecad/src/src.pro PREFIX=/opt/local QMAKE_CC=/usr/bin/clang QMAKE_CXX=/usr/bin/clang++ QMAKE_OBJC=/usr/bin/clang CFLAGS=-Os\ -arch\ x86_64 CONFIG+=build_muparser=true -o Makefile
:info:build Project MESSAGE: We will be using CPP11 features
:info:build Project MESSAGE: Found Boost in /opt/local
:info:build Project MESSAGE: Using Boost includes from /opt/local/include
:info:build Project MESSAGE: qtAddLibrary: found framework QtHelp in directory /opt/local/Library/Frameworks
:info:build Project MESSAGE: qtAddLibrary: found framework QtSvg in directory /opt/local/Library/Frameworks
:info:build Project MESSAGE: qtAddLibrary: found framework QtSql in directory /opt/local/Library/Frameworks
:info:build Project MESSAGE: qtAddLibrary: found framework QtGui in directory /opt/local/Library/Frameworks
:info:build Project MESSAGE: qtAddLibrary: found framework QtCore in directory /opt/local/Library/Frameworks
:info:build Project ERROR: Package muparser not found
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 10 years ago by mf2k (Frank Schima)

Attachment: main.log added

Latest main.log

comment:2 Changed 8 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

I'm still getting this error on 10.11 with LibreCAD @2.0.8_0 with boost (see #42555) and muparser ports installed.

I see the port is building its own muparser library (build_muparser=true at config phase) but then qmake cannot find the related package. Is it possible to switch to the macports provided muparser?

It's advisable anyway and the mp-installed packages are correctly being found.

Here's an excerpt of the missing muparser:

	Project MESSAGE: We will be using CPP11 features
	Project ERROR: Boost installation not found.
	Project ERROR: does not contain a Boost installation
	Project MESSAGE: Using bundled muparser
	Project MESSAGE: Emulating C99 math features.
	Project MESSAGE: qtAddLibrary: found framework QtHelp in directory /opt/local/libexec/qt4/Library/Frameworks
	Project MESSAGE: Warning: unknown QT: help
	Project MESSAGE: qtAddLibrary: found framework QtSvg in directory /opt/local/libexec/qt4/Library/Frameworks
	Project MESSAGE: qtAddLibrary: found framework QtSql in directory /opt/local/libexec/qt4/Library/Frameworks
	Project MESSAGE: qtAddLibrary: found framework QtGui in directory /opt/local/libexec/qt4/Library/Frameworks
	Project MESSAGE: qtAddLibrary: found framework QtCore in directory /opt/local/libexec/qt4/Library/Frameworks/opt/local/libexec/qt4/share/mkspecs/features/qt_functions.prf(240): Function 'system' is not implemented
	Project ERROR: Package muparser not found
	Updating '/opt/local/var/macports/build/_opt_macports_trunk_dports_cad_LibreCAD/LibreCAD/work/LibreCAD-2.0.8/librecad/src/../ts/librecad_ar.qm'...

See my log attachment:and.damore-main.log:ticket:42555.

Version 3, edited 8 years ago by anddam (Andrea D'Amore) (previous) (next) (diff)

comment:3 Changed 6 years ago by ken-cunningham-webuse

Resolution: fixed
Status: newclosed

In 9bc787f838942a25557b91f8dfc67b4e19a1b0d5/macports-ports (master):

LibreCAD: update to 2.1.3

LibreCAD-devel: new port
change both to qt5
add cxx11 1.1 PG
simplify Portfile structure

closes: #43276
closes: #48806
closes: #54722
closes: #55834
closes: #56024

Note: See TracTickets for help on using tickets.