* [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC.
@ 2012-12-04 13:47 Peter Feigl
2012-12-04 14:38 ` Austin Clements
2012-12-06 21:21 ` David Bremner
0 siblings, 2 replies; 3+ messages in thread
From: Peter Feigl @ 2012-12-04 13:47 UTC (permalink / raw)
To: notmuch
Without this change, GCC complains as follows:
gcc test/random-corpus.o test/database-test.o notmuch-config.o command-line-arguments.o lib/libnotmuch.a util/libutil.a parse-time-string/libparse-time-string.a -o test/random-corpus -lgmime-2.6 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -Wl,-rpath,/usr/lib -ltalloc -lxapian
/usr/bin/ld: lib/libnotmuch.a(database.o): undefined reference to symbol '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4'
/usr/bin/ld: note: '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line
/usr/lib/libstdc++.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [test/random-corpus] Error 1
---
test/Makefile.local | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/Makefile.local b/test/Makefile.local
index 6a9f15e..2ec6595 100644
--- a/test/Makefile.local
+++ b/test/Makefile.local
@@ -22,7 +22,7 @@ random_corpus_deps = $(dir)/random-corpus.o $(dir)/database-test.o \
parse-time-string/libparse-time-string.a
$(dir)/random-corpus: $(random_corpus_deps)
- $(call quiet,CC) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
+ $(call quiet,CXX) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
$(dir)/smtp-dummy: $(smtp_dummy_modules)
$(call quiet,CC) $^ -o $@
--
1.8.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC.
2012-12-04 13:47 [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC Peter Feigl
@ 2012-12-04 14:38 ` Austin Clements
2012-12-06 21:21 ` David Bremner
1 sibling, 0 replies; 3+ messages in thread
From: Austin Clements @ 2012-12-04 14:38 UTC (permalink / raw)
To: Peter Feigl; +Cc: notmuch
LGTM. I think we build the main notmuch binary with g++ for the same
reason.
Quoth Peter Feigl on Dec 04 at 2:47 pm:
> Without this change, GCC complains as follows:
> gcc test/random-corpus.o test/database-test.o notmuch-config.o command-line-arguments.o lib/libnotmuch.a util/libutil.a parse-time-string/libparse-time-string.a -o test/random-corpus -lgmime-2.6 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -Wl,-rpath,/usr/lib -ltalloc -lxapian
> /usr/bin/ld: lib/libnotmuch.a(database.o): undefined reference to symbol '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4'
> /usr/bin/ld: note: '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line
> /usr/lib/libstdc++.so.6: could not read symbols: Invalid operation
> collect2: error: ld returned 1 exit status
> make: *** [test/random-corpus] Error 1
> ---
> test/Makefile.local | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/Makefile.local b/test/Makefile.local
> index 6a9f15e..2ec6595 100644
> --- a/test/Makefile.local
> +++ b/test/Makefile.local
> @@ -22,7 +22,7 @@ random_corpus_deps = $(dir)/random-corpus.o $(dir)/database-test.o \
> parse-time-string/libparse-time-string.a
>
> $(dir)/random-corpus: $(random_corpus_deps)
> - $(call quiet,CC) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
> + $(call quiet,CXX) $(CFLAGS_FINAL) $^ -o $@ $(CONFIGURE_LDFLAGS)
>
> $(dir)/smtp-dummy: $(smtp_dummy_modules)
> $(call quiet,CC) $^ -o $@
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC.
2012-12-04 13:47 [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC Peter Feigl
2012-12-04 14:38 ` Austin Clements
@ 2012-12-06 21:21 ` David Bremner
1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2012-12-06 21:21 UTC (permalink / raw)
To: Peter Feigl, notmuch
Peter Feigl <craven@gmx.net> writes:
> /usr/bin/ld: note: '_ZNSs4_Rep10_M_destroyERKSaIcE@@GLIBCXX_3.4' is defined in DSO /usr/lib/libstdc++.so.6 so try adding it to the linker command line
pushed,
d
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-06 21:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04 13:47 [PATCH 1/1] Changing build tool for test/random-corpus to CXX instead of CC Peter Feigl
2012-12-04 14:38 ` Austin Clements
2012-12-06 21:21 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).