LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-28-2007, 04:24 AM   #1
aukuntin
LQ Newbie
 
Registered: Jul 2005
Location: Hong Kong
Distribution: LFS with latest software
Posts: 13

Rep: Reputation: 0
Gfortran compile error


When I tried to compile gcc with fortran enable:

make[3]: Entering directory `/data/gcc-build/i686-pc-linux-gnu/libgfortran'
if /bin/sh ./libtool --mode=compile /data/gcc-build/./gcc/xgcc -B/data/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libgfortran -I. -iquote../../../gcc/libgfortran/io -I../../../gcc/libgfortran/../gcc -I../../../gcc/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -MT unix.lo -MD -MP -MF ".deps/unix.Tpo" -c -o unix.lo `test -f 'io/unix.c' || echo '../../../gcc/libgfortran/'`io/unix.c; \
then mv -f ".deps/unix.Tpo" ".deps/unix.Plo"; else rm -f ".deps/unix.Tpo"; exit 1; fi
/data/gcc-build/./gcc/xgcc -B/data/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libgfortran -I. -iquote../../../gcc/libgfortran/io -I../../../gcc/libgfortran/../gcc -I../../../gcc/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -MT unix.lo -MD -MP -MF .deps/unix.Tpo -c ../../../gcc/libgfortran/io/unix.c -fPIC -DPIC -o .libs/unix.o
/tmp/ccxGmUIF.s: Assembler messages:
/tmp/ccxGmUIF.s:6157: Error: symbol `fstatat64' is already defined
/tmp/ccxGmUIF.s:6194: Error: symbol `fstat64' is already defined
/tmp/ccxGmUIF.s:6966: Error: symbol `lstat64' is already defined
/tmp/ccxGmUIF.s:6999: Error: symbol `stat64' is already defined
make[3]: *** [unix.lo] Error 1
make[3]: Leaving directory `/data/gcc-build/i686-pc-linux-gnu/libgfortran'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/data/gcc-build/i686-pc-linux-gnu/libgfortran'
make[1]: *** [all-target-libgfortran] Error 2
make[1]: Leaving directory `/data/gcc-build'
make: *** [all] Error 2
----------------------

Why?
 
Old 01-28-2007, 03:47 PM   #2
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
which chapter?
gcc is compiled 3 times per LFS-6.2 instructions!
 
Old 01-28-2007, 08:08 PM   #3
aukuntin
LQ Newbie
 
Registered: Jul 2005
Location: Hong Kong
Distribution: LFS with latest software
Posts: 13

Original Poster
Rep: Reputation: 0
No. I had compiled gcc before. Now I want to upgrade it (With gfortran) to the newest svn version.

Just like BLFS:

http://www.linuxfromscratch.org/blfs...neral/gcc.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined gfortran references when compiling with g77 StudMuffin Linux - Software 4 02-17-2007 06:06 AM
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 07:56 PM
gfortran makefile c.m.klaij Programming 0 01-23-2006 05:04 AM
gfortran libraries curosie Programming 1 08-26-2005 10:37 PM
gfortran and pgf90 peeInMyPantz Programming 1 08-08-2005 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration