Hello,

when trying to build gcc on gcc119.fsffrance.org, I'm getting the
following errors:

  /home/jamborm/gcc/mine/src/gcc/c/Make-lang.in:85: recipe for target 'cc1' 
failed
  make[2]: *** [cc1] Error 1
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_import
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_com
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_sizeinbase
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_export
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_cmp
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_set
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_clear
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_add
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_set_ui
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init_set
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fdiv_q
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_swap
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_sub
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_add_ui
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_sub_ui
  ld: 0711-317 ERROR: Undefined symbol: .__gmpz_out_str
  ld: 0711-317 ERROR: Undefined symbol: __gmp_version
  ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
  collect2: error: ld returned 8 exit status
  /home/jamborm/gcc/mine/src/gcc/cp/Make-lang.in:113: recipe for target 
'cc1plus' failed

I have configured gcc with:

  /home/jamborm/gcc/mine/src//configure --prefix=/scratch/jamborm/mine/inst 
--enable-languages=c,c++,fortran --enable-checking=yes --disable-bootstrap 
--disable-libsanitizer --with-gmp=/opt/cfarm/gmp-latest 
--with-mpfr=/opt/cfarm/mpfr-latest --with-mpc=/opt/cfarm/mpc-latest

  and I haver also added /opt/freeware/bin/ to PATH (otherwise he
  default make was not happy about gcc Makefiles)

Since the reported problematic symbols appears to be from GMP, I
thought I would download it with ./contrib/download_prerequisites
instead of relying on the /opt/cfarm bits, but my first attempt ended
with:

  ./contrib/download_prerequisites[185]: sha512sum:  not found.
  error: Cannot verify integrity of possibly corrupted file gmp-6.1.0.tar.bz2

which I thought I'd fix with that with
./contrib/download_prerequisites --no-verify but I did not get too
far:

  tar: 0511-169 A directory checksum error on media; 0 not equal to 64754.
  error: Cannot extract package from gmp-6.1.0.tar.bz2

I really do not know what to try next, the machine seems really
hostile to all my attempts to use it (although the /scratch ramdisk is
nice and fast!) and half of all commands I try ends with some kind of
error (even emacs and yes, also pretty much all invocations of tar).
I have found page https://gna.org/support/?3396 where some people
suggested they managed to compile gcc on gcc119.  How?

Thanks,

Martin

_______________________________________________
Gcc-cfarm-users mailing list
Gcc-cfarm-users@gna.org
https://mail.gna.org/listinfo/gcc-cfarm-users

Reply via email to