public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* crosstool-ng error on i686-nptl-linux-gnu target
@ 2009-07-31  9:53 Maróy Ákos
  2009-07-31 14:12 ` Bart van der Meulen
  0 siblings, 1 reply; 2+ messages in thread
From: Maróy Ákos @ 2009-07-31  9:53 UTC (permalink / raw)
  To: crossgcc

Hi,

I'm trying to build a i686-nptl-linux-gnu target on an x86_64 ubuntu 
box, and I'm getting the following error:

[ALL  ]     gcc -shared  .libs/assert.o .libs/errno.o .libs/memory.o 
.libs/mp_bpl.o .libs/mp_clz_tab.o .libs/mp_dv_tab.o .libs/mp_minv_tab.o 
.libs/mp_get_fns.o .libs/mp_set_fns.o .libs/tal-reent.o 
mpbsd/.libs/add.o mpbsd/.libs/tdiv_qr.o mpbsd/.libs/set.o 
mpbsd/.libs/powm.o mpbsd/.libs/sub.o mpbsd/.libs/cmp.o 
mpbsd/.libs/mfree.o mpbsd/.libs/mtox.o mpbsd/.libs/realloc.o 
mpbsd/.libs/gcd.o mpbsd/.libs/itom.o mpbsd/.libs/min.o mpbsd/.libs/mul.o 
mpbsd/.libs/mout.o mpbsd/.libs/rpow.o mpbsd/.libs/sdiv.o 
mpbsd/.libs/sqrtrem.o mpbsd/.libs/xtom.o mpn/.libs/fib_table.o 
mpn/.libs/mp_bases.o mpn/.libs/add.o mpn/.libs/add_1.o mpn/.libs/add_n.o 
mpn/.libs/sub.o mpn/.libs/sub_1.o mpn/.libs/sub_n.o mpn/.libs/mul_1.o 
mpn/.libs/addmul_1.o mpn/.libs/submul_1.o mpn/.libs/lshift.o 
mpn/.libs/rshift.o mpn/.libs/dive_1.o mpn/.libs/diveby3.o 
mpn/.libs/divis.o mpn/.libs/divrem.o mpn/.libs/divrem_1.o 
mpn/.libs/divrem_2.o mpn/.libs/fib2_ui.o mpn/.libs/mod_1.o 
mpn/.libs/mod_34lsub1.o mpn/.libs/mode1o.o mpn/.libs/pre_divrem_1.o 
mpn/.libs/pre_mod_1.o mpn/.libs/dump.o mpn/.libs/mul.o 
mpn/.libs/mul_fft.o mpn/.libs/mul_n.o mpn/.libs/mul_basecase.o 
mpn/.libs/sqr_basecase.o mpn/.libs/pow_1.o mpn/.libs/rootrem.o 
mpn/.libs/sqrtrem.o mpn/.libs/get_str.o mpn/.libs/set_str.o 
mpn/.libs/scan0.o mpn/.libs/scan1.o mpn/.libs/popcount.o 
mpn/.libs/hamdist.o mpn/.libs/cmp.o mpn/.libs/perfsqr.o 
mpn/.libs/bdivmod.o mpn/.libs/gcd_1.o mpn/.libs/gcd.o mpn/.libs/gcdext.o 
mpn/.libs/tdiv_qr.o mpn/.libs/dc_divrem_n.o mpn/.libs/sb_divrem_mn.o 
mpn/.libs/jacbase.o mpn/.libs/get_d.o mpn/.libs/mullow_n.o 
mpn/.libs/mullow_basecase.o mpn/.libs/addsub_n.o mpz/.libs/add.o 
mpz/.libs/gcdext.o mpz/.libs/invert.o mpz/.libs/mul.o 
mpz/.libs/n_pow_ui.o mpz/.libs/realloc.o mpz/.libs/set.o 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

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: crosstool-ng error on i686-nptl-linux-gnu target
  2009-07-31  9:53 crosstool-ng error on i686-nptl-linux-gnu target Maróy Ákos
@ 2009-07-31 14:12 ` Bart van der Meulen
  0 siblings, 0 replies; 2+ messages in thread
From: Bart van der Meulen @ 2009-07-31 14:12 UTC (permalink / raw)
  To: Maróy Ákos; +Cc: crossgcc

[-- Attachment #1: Type: text/plain, Size: 945 bytes --]

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

[-- Attachment #2: add-config-to-overrule-shell.patch --]
[-- Type: text/x-diff, Size: 1476 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 71 bytes --]

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-31 14:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-31  9:53 crosstool-ng error on i686-nptl-linux-gnu target Maróy Ákos
2009-07-31 14:12 ` Bart van der Meulen

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).