Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#44605 closed defect (fixed)

gpsim @0.26.1_1: addition of default argument on redeclaration makes this constructor a default constructor

Reported by: silverdr@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: alexgrach, ryandesign (Ryan Carsten Schmidt), Ionic (Mihai Moldovan)
Port: gpsim

Description

OSX 10.9.4 Xcode 5.1.1

:info:build libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -pipe -Os -arch x86_64 -stdlib=libc++ -MT led.lo -MD -MP -MF .deps/led.Tpo -c led.cc -o led.o >/dev/null 2>&1
:info:build 1 warning generated.
:info:build libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -pipe -Os -arch x86_64 -stdlib=libc++ -MT usart.lo -MD -MP -MF .deps/usart.Tpo -c usart.cc -o usart.o >/dev/null 2>&1
:info:build mv -f .deps/push_button.Tpo .deps/push_button.Plo
:info:build mv -f .deps/encoder.Tpo .deps/encoder.Plo
:info:build mv -f .deps/resistor.Tpo .deps/resistor.Plo
:info:build mv -f .deps/gpsim_modules.Tpo .deps/gpsim_modules.Plo
:info:build mv -f .deps/logic.Tpo .deps/logic.Plo
:info:build mv -f .deps/led.Tpo .deps/led.Plo
:info:build mv -f .deps/usart.Tpo .deps/usart.Plo
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gpsim/gpsim/work/gpsim-0.26.1/modules'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gpsim/gpsim/work/gpsim-0.26.1'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gpsim/gpsim/work/gpsim-0.26.1'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gpsim/gpsim/work/gpsim-0.26.1" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port gpsim returned: command execution failed
:debug:build Error code: CHILDSTATUS 70292 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for gpsim: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port gpsim for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gpsim/gpsim/main.log

Attachments (3)

main.log (577.7 KB) - added by silverdr@… 10 years ago.
Full log file as requested
patch-ChangeLog-modules_switch.cc-modules_switch.h-gui_gui_stopwatch.cc-fix-clang-compile-errors.diff (3.4 KB) - added by Ionic (Mihai Moldovan) 10 years ago.
fix clang compile errors.
Portfile-gpsim.diff (455 bytes) - added by Ionic (Mihai Moldovan) 10 years ago.
Add new patchfile to Portfile.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Please attach the complete main.log file; I don't see a specific error in the portion you pasted.

Changed 10 years ago by silverdr@…

Attachment: main.log added

Full log file as requested

comment:2 in reply to:  1 Changed 10 years ago by silverdr@…

Replying to ryandesign@…:

Please attach the complete main.log file; I don't see a specific error in the portion you pasted.

I am sorry - I only now noticed that I cut too few lines. I thought the error was there..

Anyway - full log attached.

Last edited 10 years ago by silverdr@… (previous) (diff)

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Summary: gpsim @0.26.1_1 - build failuregpsim @0.26.1_1: addition of default argument on redeclaration makes this constructor a default constructor

The log shows this error:

:info:build switch.cc:585:30: error: addition of default argument on redeclaration makes this constructor a default constructor
:info:build   Switch::Switch(const char *_new_name=0)
:info:build                              ^         ~
:info:build ./switch.h:91:5: note: previous declaration is here
:info:build     Switch(const char *_name);
:info:build     ^
:info:build 1 error generated.

That's the same error I get, and which I reported to the developers, and which they say is already fixed in their sources, though they have not yet released a new version containing that fix and they didn't tell me what specific revision in their repository would fix it. It might be this change.

Changed 10 years ago by Ionic (Mihai Moldovan)

fix clang compile errors.

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: Portfile-gpsim.diff added

Add new patchfile to Portfile.

comment:4 Changed 10 years ago by Ionic (Mihai Moldovan)

Cc: ionic@… added

Proposed patches. WORKSFORME. I need gpsim to build. The maintainer doesn't seem to interested in this.

comment:5 Changed 10 years ago by Ionic (Mihai Moldovan)

Ping?

comment:6 Changed 10 years ago by Ionic (Mihai Moldovan)

OK. I'll just go ahead and commit this.

comment:7 Changed 10 years ago by silverdr@…

I just noticed and I can't say I fully understand what happened here in the last days. Do we have a working patch? Is the maintainer not interested in maintaining the port?

comment:8 Changed 10 years ago by Ionic (Mihai Moldovan)

The patch I submitted works.

The maintainer didn't answer (as of now) and I will use maintainer timeout to push the patches myself.

comment:9 Changed 10 years ago by Ionic (Mihai Moldovan)

Resolution: fixed
Status: newclosed

Committed in r131983.

comment:10 Changed 10 years ago by silverdr@…

OK - thanks.

Note: See TracTickets for help on using tickets.