[Scons-users] Witzend, help welcome

Managan, Rob managan1 at llnl.gov
Thu May 1 11:27:37 EDT 2014


I could be wrong but in [1] I notice -O2 -O3 -O0 and I presume that -O0
wins since it is last. I only see -O3 in [2]

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan email managan at llnl.gov
LLNL phone: 925-423-0903
P.O. Box 808, L-095 FAX: 925-422-3389
Livermore, CA 94551-0808





On 5/1/14 3:29 AM, "Russel Winder" <russel at winder.org.uk> wrote:


>I am trying to convert an Autoconf/Automake build to SCons ­ for fairly

>obvious reasons. It is all going fairly straightforwardly exceptŠ there

>is this one file which is being recalcitrant, in a most weird way.

>

>I am using g++4.8 on Debian Sid. I am trying to get C++14 compliance

>using the -std=c++1y option.

>

>The Autoconf/Automake command line is as [1], The SCons Command is as

>[2]. [1] works fine. [2] fails with the error as at [3]. If I remove the

>-std=c++1y from [2] then it works. So there is something different

>between the two command lines that interacts with g++ c++1y parsing. I

>am at a total loss, even with how to attack this problem, except by

>brute force trialling. Hence a request for help from anyone interested.

>

>

>[1]

>

>g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -pthread

>-I/usr/include/gtkmm-2.4 -I/usr/lib/x86_64-linux-gnu/gtkmm-2.4/include

>-I/usr/include/atkmm-1.6 -I/usr/include/gtk-unix-print-2.0

>-I/usr/include/gtk-2.0 -I/usr/include/gdkmm-2.4

>-I/usr/lib/x86_64-linux-gnu/gdkmm-2.4/include -I/usr/include/pangomm-1.4

>-I/usr/lib/x86_64-linux-gnu/pangomm-1.4/include -I/usr/include/giomm-2.4

>-I/usr/lib/x86_64-linux-gnu/giomm-2.4/include -I/usr/include/glibmm-2.4

>-I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/sigc++-2.0

>-I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/gconf/2

>-I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include

>-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo

>-I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo

>-I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng12

>-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12

>-I/usr/include/pango-1.0 -I/usr/include/harfbuzz

>-I/usr/include/pango-1.0 -I/usr/include/freetype2

>-I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include

>-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include

>-I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include

>-I/usr/include/gconfmm-2.6 -I/usr/lib/gconfmm-2.6/include

>-I/usr/include/unique-1.0 -g -O2 -Wall -Wno-unused -Wextra

>-Wcast-align -Wcast-qual -Wcomment -Wformat -Wmissing-braces -Wpacked

>-Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point

>-Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch-default -Wundef

>-DPACKAGE_DATA_DIR=

>\""/home/users/russel/lib.Linux.x86_64/me-tv_1.5_debian/share"\"

>-DPACKAGE_SRC_DIR=\""."\" -std=c++1y -O3 -O0 -g -MT

>scheduled_recording_dialog.o -MD -MP

>-MF .deps/scheduled_recording_dialog.Tpo -c -o

>scheduled_recording_dialog.o scheduled_recording_dialog.cc

>

>[2]

>

>g++ -o Build/scheduled_recording_dialog.o -c -std=c++1y -O3 -W -Wall

>-Wundef -Wcast-align -Wno-unused-parameter -Wextra -Wcast-align

>-Wcast-qual -Wcomment -Wformat -Wmissing-braces -Wpacked -Wparentheses

>-Wpointer-arith -Wreturn-type -Wsequence-point -Wstrict-aliasing

>-Wstrict-aliasing=2 -Wswitch-default -Wundef -pthread -DVERSION=

>\""1.5.0-SNAPSHOT"\" -DGETTEXT_PACKAGE=\""me-tv"\" -DPACKAGE_NAME=

>\""MeTV"\" -DPACKAGE_DATA_DIR=

>\""/home/users/russel/lib.Linux.x86_64/me-tv__head/share/me-tv"\"

>-DPIXMAPDIR=

>\""/home/users/russel/lib.Linux.x86_64/me-tv__head/share/pixmaps"\"

>-DLOCALEDIR=

>\""/home/users/russel/lib.Linux.x86_64/me-tv__head/share/locale"\"

>-DHAVE_CONFIG_H -I/usr/include/gtkmm-2.4

>-I/usr/lib/x86_64-linux-gnu/gtkmm-2.4/include -I/usr/include/atkmm-1.6

>-I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0

>-I/usr/include/gdkmm-2.4 -I/usr/lib/x86_64-linux-gnu/gdkmm-2.4/include

>-I/usr/include/giomm-2.4 -I/usr/lib/x86_64-linux-gnu/giomm-2.4/include

>-I/usr/include/pangomm-1.4

>-I/usr/lib/x86_64-linux-gnu/pangomm-1.4/include

>-I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include

>-I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include

>-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0

>-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0

>-I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng12

>-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/harfbuzz

>-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include

>-I/usr/include/freetype2 -I/usr/include/cairomm-1.0

>-I/usr/lib/cairomm-1.0/include -I/usr/include/gconf/2

>-I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include

>-I/usr/include/gconfmm-2.6 -I/usr/lib/gconfmm-2.6/include

>-I/usr/include/unique-1.0 -IBuild -Isrc

>src/scheduled_recording_dialog.cc

>

>[3]

>

>In file included from src/mpeg_stream.h:36:0,

> from src/channel_stream.h:24,

> from src/frontend_thread.h:27,

> from src/stream_manager.h:24,

> from src/application.h:32,

> from src/scheduled_recording_dialog.cc:23:

>/usr/include/libintl.h:39:14: error: expected unqualified-id before

>'const'

> extern char *gettext (const char *__msgid)

> ^

>/usr/include/libintl.h:39:14: error: expected ')' before 'const'

>/usr/include/libintl.h:39:14: error: expected initializer before 'const'

>/usr/include/libintl.h:44:14: error: expected unqualified-id before

>'const'

> extern char *dgettext (const char *__domainname, const char *__msgid)

> ^

>/usr/include/libintl.h:44:14: error: expected ')' before 'const'

>/usr/include/libintl.h:44:14: error: expected initializer before 'const'

>/usr/include/libintl.h:51:14: error: expected unqualified-id before

>'const'

> extern char *dcgettext (const char *__domainname,

> ^

>/usr/include/libintl.h:51:14: error: expected ')' before 'const'

>/usr/include/libintl.h:51:14: error: expected initializer before 'const'

>/usr/include/libintl.h:61:14: error: expected unqualified-id before

>'unsigned'

> extern char *ngettext (const char *__msgid1, const char *__msgid2,

> ^

>/usr/include/libintl.h:61:14: error: expected ')' before 'unsigned'

>/usr/include/libintl.h:61:14: error: expected ')' before 'unsigned'

>/usr/include/libintl.h:61:14: error: expected initializer before

>'unsigned'

>/usr/include/libintl.h:67:14: error: expected unqualified-id before

>'unsigned'

> extern char *dngettext (const char *__domainname, const char *__msgid1,

> ^

>/usr/include/libintl.h:67:14: error: expected ')' before 'unsigned'

>/usr/include/libintl.h:67:14: error: expected ')' before 'unsigned'

>/usr/include/libintl.h:67:14: error: expected initializer before

>'unsigned'

>/usr/include/libintl.h:82:14: error: expected unqualified-id before

>'const'

> extern char *textdomain (const char *__domainname) __THROW;

> ^

>/usr/include/libintl.h:82:14: error: expected ')' before 'const'

>/usr/include/libintl.h:82:14: error: expected initializer before 'const'

>/usr/include/libintl.h:86:14: error: expected unqualified-id before

>'const'

> extern char *bindtextdomain (const char *__domainname,

> ^

>/usr/include/libintl.h:86:14: error: expected ')' before 'const'

>/usr/include/libintl.h:86:14: error: expected initializer before 'const'

>/usr/include/libintl.h:91:14: error: expected unqualified-id before

>'const'

> extern char *bind_textdomain_codeset (const char *__domainname,

> ^

>/usr/include/libintl.h:91:14: error: expected ')' before 'const'

>/usr/include/libintl.h:91:14: error: expected ')' before 'const'

>/usr/include/libintl.h:91:14: error: expected initializer before 'const'

>src/scheduled_recording_dialog.cc: In member function 'gint

>ScheduledRecordingDialog::run(Gtk::Window*, EpgEvent&)':

>src/scheduled_recording_dialog.cc:98:15: warning: unused variable

>'application' [-Wunused-variable]

> Application& application = get_application();

> ^

>scons: *** [Build/scheduled_recording_dialog.o] Error 1

>scons: building terminated because of errors.

>

>

>--

>Russel.

>==========================================================================

>===

>Dr Russel Winder t: +44 20 7585 2200 voip:

>sip:russel.winder at ekiga.net

>41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk

>London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder

>

>_______________________________________________

>Scons-users mailing list

>Scons-users at scons.org

>http://four.pairlist.net/mailman/listinfo/scons-users




More information about the Scons-users mailing list