#56539 closed defect (worksforme)
gnuplot 5.2.3_0 does not build on a 32-bit PPC
Reported by: | josephsacco | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.4 |
Keywords: | powerpc | Cc: | mojca (Mojca Miklavec) |
Port: | gnuplot |
Description
See attached log file.
-Joseph
Attachments (2)
Change History (13)
Changed 6 years ago by josephsacco
comment:1 Changed 6 years ago by kencu (Ken)
688 :info:build In file included from /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0/wx/string.h:46, 689 :info:build from /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0/wx/memory.h:15, 690 :info:build from /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0/wx/object.h:19, 691 :info:build from /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0/wx/wx.h:15, 692 :info:build from wxterminal/wxt_gui.h:77, 693 :info:build from wxterminal/wxt_gui.cpp:97: 694 :info:build /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0/wx/strvararg.h:25:27: error: type_traits: No such file or directory
looks like it wants a newer compiler.
comment:2 Changed 6 years ago by josephsacco
Maybe... With a little "persuasion". The makefiles generated by configure, include the line:
CFLAGS = -pipe -Os -F/opt/local/library/Frameworks -m32 -ObjC
The last piece in CFLAGS, "-ObjC" causes gcc-7 to barf.
Hmmm... Wonder what happens if I modify configure?
Stay tuned...
-Joseph
Changed 6 years ago by josephsacco
Attachment: | main_gcc-7_patched.log added |
---|
build log: gcc-7 , configure patched to eliminate "-ObjC"
comment:3 Changed 6 years ago by josephsacco
It would appear that gcc-7 is very unhappy with the OS X 10.5.8 Foundation framework.
-Joseph
comment:4 Changed 6 years ago by josephsacco
Using the "hammer and tongs" approach:
- Use gcc-7
- eliminate AquaTerm
gnuplot actually builds.
However... "make check" fails with malloc error "Non-aligned pointer being freed"
Sigh...
-Joseph
comment:5 Changed 6 years ago by kencu (Ken)
mmm. It just installed without any trouble for me:
$ port -v installed gnuplot The following ports are currently installed: gnuplot @5.0.6_1+aquaterm+luaterm+pangocairo+wxwidgets+x11 platform='darwin 9' archs='ppc' date='2017-07-05T16:03:05-0700' gnuplot @5.2.0_0+aquaterm+luaterm+pangocairo+wxwidgets+x11 platform='darwin 9' archs='ppc' date='2017-09-20T15:29:30-0700' gnuplot @5.2.1_0+aquaterm+luaterm+pangocairo+wxwidgets+x11 platform='darwin 9' archs='ppc' date='2017-11-05T16:50:30-0800' gnuplot @5.2.2_0+aquaterm+luaterm+pangocairo+wxwidgets+x11 platform='darwin 9' archs='ppc' date='2017-11-17T19:26:46-0800' gnuplot @5.2.3_0+aquaterm+luaterm+pangocairo+wxwidgets+x11 (active) platform='darwin 9' archs='ppc' date='2018-05-26T19:16:57-0700'
Dunno. I will try "make check" and see what that gives us...
comment:6 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | gnu plot 5.2.3_0 does not build on a 32-bit PPC → gnuplot @5.2.3_0 does not build on a 32-bit PPC |
---|
comment:7 Changed 6 years ago by kencu (Ken)
Summary: | gnuplot @5.2.3_0 does not build on a 32-bit PPC → gnu plot 5.2.3_0 does not build on a 32-bit PPC |
---|
well I can't easily do "make check" as there's no test phase in the port just now, but gnuplot runs on 10.5 PPC without crashing for me...
comment:8 Changed 6 years ago by kencu (Ken)
Here are your variants
gnuplot-5.2.3_0+aquaterm+luaterm+pangocairo+wxwidgets+x11
and they look identical to the defaults:
gnuplot @5.2.3_0+aquaterm+luaterm+pangocairo+wxwidgets+x11
Why don't you uninstall it, clean, and try the install again?
comment:9 Changed 6 years ago by josephsacco
Ken,
You are correct.
I first uninstalled and then reinstalled one of the "suspect" build dependencies, wxWidgets-3.0, which thankfully was available pre-compiled from packages.macports.org. I then cleaned gnuplot-5.2.3_0 and installed it in "keep mode", to have access to the build tree. Once the install completed, I then ran "sudo make check" in the build directory. The rather extensive, visually stunning test suite ran without incident. "We" are pleased.
One of the difficulties of developing software on an ancient PPC-based MAC is the amount of random-J cruft that has accumulated over the years. There was clearly something amiss with the version of wxWidgets-3.0 I had installed back in March of this year.
Kindly mark this ticket as "pilot error".
Onwards,
-Joseph
comment:10 Changed 6 years ago by kencu (Ken)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Excellent.
comment:11 Changed 6 years ago by mf2k (Frank Schima)
Summary: | gnu plot 5.2.3_0 does not build on a 32-bit PPC → gnuplot 5.2.3_0 does not build on a 32-bit PPC |
---|
build log