Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get libgfortran.so.1.0.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Mon Jul 22, 2013 2:20 pm    Post subject: How to get libgfortran.so.1.0.0 Reply with quote

Hi
We have a software which apparently requires libgfortran.so.1.0.0
As far as i could find out, this used to be installed with gcc-4.1.2

But when i try to emerge gcc-4.1.2 this fails with
Code:

/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/config/i386/crtfastmath.c:1: error: bad value (native) for -march= switch
/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/gcc/config/i386/crtfastmath.c:1: error: bad value (native) for -mtune= switch

(i have gcc-4.7.1 as active compiler)

Indeed, my make.conf contains "native"
Code:

CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"

What should i use for CFLAGS to make gcc-4.1.2 compile?
After emerging gcc-4.1.2, can i go back to the original value of the CFLAGS?

Or is there another way to get libgfortran?

Thank You
Jody
Back to top
View user's profile Send private message
megabaks
Apprentice
Apprentice


Joined: 22 Jan 2012
Posts: 253
Location: Russia && Saint-Petersburg

PostPosted: Mon Jul 22, 2013 2:30 pm    Post subject: Reply with quote

Code:
echo "int main() { return 0; }" |LANG=en gcc -march=native -v -Q -x c - 2>&1 | tr " " "\n" | grep -m1 "^-march"
?
_________________
sorry my bad english
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Mon Jul 22, 2013 2:34 pm    Post subject: Reply with quote

Quote:
Code:
echo "int main() { return 0; }" |LANG=en gcc -march=native -v -Q -x c - 2>&1 | tr " " "\n" | grep -m1 "^-march"

This returns
Code:
-march=corei7
Back to top
View user's profile Send private message
megabaks
Apprentice
Apprentice


Joined: 22 Jan 2012
Posts: 253
Location: Russia && Saint-Petersburg

PostPosted: Mon Jul 22, 2013 2:41 pm    Post subject: Reply with quote

4.1 don't support so new cpu...
you can use one of
Quote:
i386
Original Intel's i386 CPU.
i486
Intel's i486 CPU. (No scheduling is implemented for this chip.)
i586, pentium
Intel Pentium CPU with no MMX support.
pentium-mmx
Intel PentiumMMX CPU based on Pentium core with MMX instruction set support.
i686, pentiumpro
Intel PentiumPro CPU.
pentium2
Intel Pentium2 CPU based on PentiumPro core with MMX instruction set support.
pentium3, pentium3m
Intel Pentium3 CPU based on PentiumPro core with MMX and SSE instruction set support.
pentium-m
Low power version of Intel Pentium3 CPU with MMX, SSE and SSE2 instruction set support. Used by Centrino notebooks.
pentium4, pentium4m
Intel Pentium4 CPU with MMX, SSE and SSE2 instruction set support.
prescott
Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support.
nocona
Improved version of Intel Pentium4 CPU with 64-bit extensions, MMX, SSE, SSE2 and SSE3 instruction set support.
http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
i686, i think..
_________________
sorry my bad english
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Mon Jul 22, 2013 2:47 pm    Post subject: Reply with quote

Thank You for the information.

Is there perhaps another way to get libgfortran.so.1.0.0?

Jody
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum