Welcome, Guest
Username: Password: Remember me

TOPIC: Mascaret v7p2 on Ubuntu 13.10

Mascaret v7p2 on Ubuntu 13.10 10 years 5 months ago #13245

  • elopez
  • elopez's Avatar
Dears, I am trying to compile mascaret v7p2 on a ubuntu 13.10 64bits.
I downloaded from opentelemac.org/index.php/binaries/summa...es/186-mascaret-v7p2

I am following the README.txt instructions:

cd ./src/Fox
make clean
./configure
make
cd ..
make clean
make

I have succesfully done all the steps, but the last one shows me the following error:

/usr/bin/ld: ./Fox/objs/lib/libFoX_sax.a(m_sax_operate.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
./Fox/objs/lib/libFoX_sax.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [mascaret.so] Error 1

I was searching on the web but I didn't find any possible solution. Could you help me, please?

Thanks in advance.
Emiliano
The administrator has disabled public write access.

Mascaret v7p2 on Ubuntu 13.10 10 years 5 months ago #13247

  • fzao
  • fzao's Avatar
  • OFFLINE
  • Moderator
  • Posts: 64
  • Thank you received: 20
Hello elopez,

in the FoX directory, open the 'arch.make' and '-fPIC' option for the flag FFLAGS in order to have 'FFLAGS=-g -O2 -fPIC'. Then do 'make clean;make' in the terminal to recompile the FoX library.

This issue is for GNU/Linux 64 bits only when compiling a dynamic library. It should be fixed next time.

Regards
The administrator has disabled public write access.

Mascaret v7p2 on Ubuntu 13.10 10 years 5 months ago #13257

  • elopez
  • elopez's Avatar
Thanks fzao, but it didn't work.

Could you explain the stepts one by one, please?
I did:
1- inside src/Fox modified make.arch as you said.
2- inside src/Fox make clean, make
3- insede src make clean, make and the following error appeared:


/usr/bin/ld: apimascaret.o: relocation R_X86_64_PC32 against symbol `create_mascaret_' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [mascaret.so] Error 1

I am not sure the if have I to do ./configure?
Thanks in advance.
Emiliano
The administrator has disabled public write access.

Mascaret v7p2 on Ubuntu 13.10 10 years 5 months ago #13258

  • fzao
  • fzao's Avatar
  • OFFLINE
  • Moderator
  • Posts: 64
  • Thank you received: 20
Hello,

what you have done is good. I just forgot to tell you to also change the Makefile in 'src' directory in order to compile the C sources with the '-fPIC' option. Add a CFLAGS option with the same values that the FFLAGS option or use the attached Makefile.

fzao
Attachments:
The administrator has disabled public write access.

Mascaret v7p2 on Ubuntu 13.10 10 years 5 months ago #13266

  • elopez
  • elopez's Avatar
Thanks fzao, now all is working fine.
I was successfully installing FUDA-MASCARET 3.3 too.

Please, one more question: Does telemac-mascaret v7p2 a new version of the v6p3?

I am not sure if I am on the correct way and I didn't find a documentation which explain that. I would like to use the last version. Could you guide me, please?

Thanks in advance.
Emiliano
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.