This is the mail archive of the 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]

Re: crosstool-ng error on i686-nptl-linux-gnu target

2009/7/31 Maróy Ákos <>:
> mpz/.libs/sub.o mpz/.libs/tdiv_q.o ? -Wl,-soname -Wl,
> -Wl,-version-script -Wl,.libs/libmp.ver -o .libs/
> [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]: *** [] Error 1
> what am I doing wrong?
> Akos
> --


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/
--- a/config/global/	Thu Jul 23 13:35:53 2009 +0200
+++ b/config/global/	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.
+    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/
--- a/scripts/	Thu Jul 23 13:35:53 2009 +0200
+++ b/scripts/	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_CONFIG_SHELL_ASH}" = "y" -a -x "/bin/ash" ] && CT_SHELL="/bin/ash"
 # 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]