[LLVMdev] llvm-gfortran gives errors on AMD64-Ubuntu

Jun Li jun.li.mcgill at gmail.com
Thu Nov 6 17:57:59 PST 2008

Hi Duncan,

Thanks for your answers. Compiling .s file is OK after adding the -lgfortran

I replace my Ubuntu 8.04 and by Ubuntu 8.10. And I checked all new packages
installed by 'apt-get' are amd64 version. However after compiling the
llvm-gfortran, I got the same error.

Here is my configure arguments
$ ../llvm-gcc4.2-2.3.source/configure --prefix=`pwd`/../install
--program-prefix=llvm- \
	--disable-shared --disable-multilib \
	--enable-llvm=/llvm/llvm-obj --enable-languages=c,c++,fortran

Without any one of --disable-shared, --disable-multilib, the make will fail.

Could you give me the arguments you used for the 'configure', and the output
of the 'configure'? I want to check whether my OS misses some packages that
needed by llvm-gcc. I feel the libgfortran built in my OS may incorrect, due
to different configure settings.

BTW, I check the libgfortran.a in my system: 
After make, the new generated libgfortran.a:
-rw-r--r-- 1 jli127 jli127 1513500 2008-11-06 19:17
-rw-r--r-- 1 jli127 jli127 1513500 2008-11-06 19:16

It's different to the system original libgfortran.a: 
-rw-r--r-- 1 root   root   1854562 2008-10-25 01:40

If replace it by system 'libgfortran.a', the error became:
hello.o: In function `MAIN__':
(.text+0x1e): undefined reference to `_gfortran_set_std'
collect2: ld returned 1 exit status

View this message in context: http://www.nabble.com/llvm-gfortran-gives-errors-on-AMD64-Ubuntu-tp20280697p20373363.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.

More information about the llvm-dev mailing list