This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
2009/7/31 Maróy Ákos <akos@maroy.hu>: > mpz/.libs/sub.o mpz/.libs/tdiv_q.o ? -Wl,-soname -Wl,libmp.so.3 > -Wl,-version-script -Wl,.libs/libmp.ver -o .libs/libmp.so.3.1.13 > [ALL ?] ? ?/usr/bin/ld:.libs/libmp.ver:2: ignoring invalid character `001' > in script > [ALL ?] ? ?/usr/bin/ld:.libs/libmp.ver:2: syntax error in VERSION script > [ALL ?] ? ?collect2: ld returned 1 exit status > [ERROR] ? ?make[3]: *** [libmp.la] Error 1 > > > > what am I doing wrong? > > > Akos > > -- Hi, You're building on ubuntu where the default shell equals dash. The functionality that the gmp library is trying to use does not work is dash, but bash is needed I was preparing a patch for ct-ng so that you could override the shells used in the config scripts this, haven't had time to publish it to the mailing list yet, I attached it to this mail for now, will publish it to the mailing list when I have more time this weekend
diff -r 14be505d99f7 config/global/build-behave.in
--- a/config/global/build-behave.in Thu Jul 23 13:35:53 2009 +0200
+++ b/config/global/build-behave.in Thu Jul 23 16:30:11 2009 +0200
@@ -56,4 +56,13 @@
Saying 'y' here should be safe enough, but some components may not
accept using a shell other than bash (this is most probably true for
- old versions). If you have trouble, say 'n' here and see if it fixes it.
+
+config CONFIG_SHELL_OVERRIDE
+ string
+ prompt "Use alternative as CONFIG_SHELL"
+ help
+ Enter the path for the shell to be used by ./configure scripts.
+
+ ./configure scripts make intensive use of calling a sub-shells, where
+ bash is needed.
+
diff -r 14be505d99f7 scripts/crosstool-NG.sh.in
--- a/scripts/crosstool-NG.sh.in Thu Jul 23 13:35:53 2009 +0200
+++ b/scripts/crosstool-NG.sh.in Thu Jul 23 16:30:11 2009 +0200
@@ -62,10 +62,10 @@
# What's our shell?
# Will be plain /bin/sh on most systems, except if we have /bin/ash and we
-# _explictly_ required using it
+# _explictly_ required using it or shell is overriden
CT_SHELL="/bin/sh"
[ "${CT_CONFIG_SHELL_ASH}" = "y" -a -x "/bin/ash" ] && CT_SHELL="/bin/ash"
-
+[ "${CT_CONFIG_SHELL_OVERRIDE}" != "" -a "${CT_CONFIG_SHELL_OVERRIDE}" ] && CT_SHELL="${CT_CONFIG_SHELL_OVERRIDE}"
# Create the bin-overide early
# Contains symlinks to the tools found by ./configure
# Note: CT_DoLog and CT_DoExecLog do not use any of those tool, so
-- For unsubscribe information see http://sourceware.org/lists.html#faq
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |