You are not logged in.

#1 2008-02-04 17:53:54

fettouhi
Member
Registered: 2007-05-07
Posts: 745

Unable to build gcc3-g77

I'm trying to build gcc3-g77 package from AUR

http://aur.archlinux.org/packages.php?d … s=0&SeB=nd

but everytime I get the following error during compilation

checking for perl... perl
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ar... ar
checking for ranlib... ranlib
checking for gcc... /tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build/gcc/xgcc -B/tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build/gcc/ -B/opt/gcc3/i686-pc-linux-gnu/bin/ -B/opt/gcc3/i686-pc-linux-gnu/lib/ -isystem /opt/gcc3/i686-pc-linux-gnu/include
checking whether we are using GNU C... yes
checking whether /tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build/gcc/xgcc -B/tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build/gcc/ -B/opt/gcc3/i686-pc-linux-gnu/bin/ -B/opt/gcc3/i686-pc-linux-gnu/lib/ -isystem /opt/gcc3/i686-pc-linux-gnu/include accepts -g... yes
checking whether /tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build/gcc/xgcc -B/tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build/gcc/ -B/opt/gcc3/i686-pc-linux-gnu/bin/ -B/opt/gcc3/i686-pc-linux-gnu/lib/ -isystem /opt/gcc3/i686-pc-linux-gnu/include and cc understand -c and -o together... yes
checking for POSIXized ISC... no
checking for working const... no
checking for inline... no
checking for a BSD compatible install... /bin/sh /tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-3.3.6/install-sh -c
Appending ../../../gcc-3.3.6/libiberty/../config/mh-x86pic to xhost-mkfrag
checking how to run the C preprocessor... /tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build/gcc/xgcc -B/tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build/gcc/ -B/opt/gcc3/i686-pc-linux-gnu/bin/ -B/opt/gcc3/i686-pc-linux-gnu/lib/ -isystem /opt/gcc3/i686-pc-linux-gnu/include -E
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for malloc.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... yes
checking for sys/stat.h... yes
checking for sys/mman.h... yes
checking for fcntl.h... yes
checking for alloca.h... yes
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... yes
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... yes
checking for sys/systemcfg.h... no
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether time.h and sys/time.h may both be included... no
checking whether errno must be declared... yes
checking for ANSI C header files... no
checking for uintptr_t... no
checking for pid_t... yes
checking whether the C compiler (/tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build/gcc/xgcc -B/tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build/gcc/ -B/opt/gcc3/i686-pc-linux-gnu/bin/ -B/opt/gcc3/i686-pc-linux-gnu/lib/ -isystem /opt/gcc3/i686-pc-linux-gnu/include -O2 -march=i686 -mtune=generic -O2 -pipe ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make[1]: *** [configure-target-libiberty] Fejl 1
make[1]: Forlader katalog '/tmp/yaourt-tmp-af/aur-gcc3-g77/gcc3-g77/src/gcc-build'
make: *** [bootstrap] Fejl 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build gcc3-g77 package.

Has anybody been able to build package lately?

Regards

André

Offline

#2 2008-02-07 16:23:58

hrsvan
Member
Registered: 2007-11-11
Posts: 25

Re: Unable to build gcc3-g77

I've just tried to build the package -- with the same result...

Offline

#3 2008-02-08 08:09:16

fettouhi
Member
Registered: 2007-05-07
Posts: 745

Re: Unable to build gcc3-g77

OK, thanks that's good that I'm not the only one. I've tried to use the original gcc3 package and just add the g77 but that fails too. But I noticed that the PKGBUILD file for gcc3 is missing. One gets linked to an old gcc34 PKGBUILD file in the cvs repo.

Regards

André

Offline

#4 2008-02-09 00:39:38

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Unable to build gcc3-g77

You need to strip -mtune=generic from the CFLAGS and CXXFLAGS, gcc 3.x doesn't support that flag.

Offline

#5 2008-02-09 09:42:58

fettouhi
Member
Registered: 2007-05-07
Posts: 745

Re: Unable to build gcc3-g77

-mtune=generic? I don't see that option anywhere in the PKGBUILD file.

Regards

André

Offline

#6 2008-02-10 22:12:21

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Unable to build gcc3-g77

Hi, I get the same problem. I was also wondering what the difference is between g77 and gfortran.

The new version of core/gcc has the configure option --enable-languages=c,c++,objc,f77 and it results in a package with gfortran.

The gcc3-g77 packages also has --enable-languages=f77 but it is supposed to result in a package with g77.

I am trying to compile a 1980 program written in Fortran 77 just for fun. It assumes you have the original f77 for Unix, which I don't. I tried symlinking /usr/bin/f77 to f2c, gfortran and ifort and they all failed to compile it. So I'm hoping that g77 is different from gfortran and more similar to the original f77. If I could just compile this package I might be able to find out.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#7 2008-02-11 14:19:10

fettouhi
Member
Registered: 2007-05-07
Posts: 745

Re: Unable to build gcc3-g77

Since the latest of the gcc package now includes gfortran I was hoping that the same packing structure might be reansfered to the gcc3 and gcc34 packages hence that g77 is included.

Regards

André

Offline

#8 2008-02-11 20:33:14

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Unable to build gcc3-g77

So are g77 and gfortran really the same program? And they just changed the name when they came out with gcc4?


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#9 2008-02-11 22:08:53

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Unable to build gcc3-g77

fettouhi wrote:

-mtune=generic? I don't see that option anywhere in the PKGBUILD file.

Regards

André

That option is set in /etc/makepkg.conf

Offline

#10 2008-02-11 22:10:48

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Unable to build gcc3-g77

ConnorBehan wrote:

So are g77 and gfortran really the same program? And they just changed the name when they came out with gcc4?

AFAIK, yes. They renamed it and gfortran can also compile fortran 90 and 95 code.

What error message are you getting when using gfortran to compile your app?

Offline

#11 2008-02-12 03:54:53

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Unable to build gcc3-g77

The program I was trying to build was OMNITAB 80 from http://www.itl.nist.gov/div898/software/omnitab.html

I was getting so many errors about not referring to variables and missing libraries and improper options, I can't even remember, so I thought that was because the compiler I was using was just too obscure and that I needed one that was more like f77.  (kind of like compiling the Linux kernel in MS Visual C instead of gcc... it should be remotely possible but incredibly hard)

So I thought g77 was what I needed, but since you said gfortran and g77 are the same program, that made me try one last time. So I just spent the last 4 hours editing the source code, commenting stuff out, declaring things and making the .f files more gfortran friendly (completely winging it of course, a programming guru could have done it in minutes) and now finally omnitab will compile and run on my machine.

I'll go back and find all the changes I made with patch and diff and then release a PKGBUILD for anyone who wants to run a 1980s console spreadsheet.

Note: There are two optional parts of the program. One is calcomp support which I didn't compile because I don't have a calcomp. If I were to download the xf86-input-calcomp package, despite not having the device, I suppose I would be able to compile this feature but not test it. The other is X11 support. I really wanted to get this working but I need help. All of the source files are Fortran except x11src.c. I was getting errors about there being no "main" function so I just put everything after the include and define lines in one big function called main. It still wouldn't compile and talked about static and non static declarations, so I commented out some declarations and changed the order in which some functions were defined. Eventually compiling it into object code worked, but when the makefile went back and put all the object files together to make the executable it once again gave me tons of errors related to x11src.o. If anyone wants to help that would be great. If not, I'll try using a different C compiler that might not be as picky.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#12 2008-02-12 04:19:51

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: Unable to build gcc3-g77

I once filed a bugreport on this which has been closed as fixed without really fixing it. As the package to prove this (elmer) was rather big I realised this to late and my energy to keep on fiddling around with elmer wasn't enough to keep me going. Hope you have more luck!


Haven't been here in a while. Still rocking Arch. smile

Offline

#13 2008-02-12 20:41:31

fettouhi
Member
Registered: 2007-05-07
Posts: 745

Re: Unable to build gcc3-g77

Snowman wrote:
fettouhi wrote:

-mtune=generic? I don't see that option anywhere in the PKGBUILD file.

Regards

André

That option is set in /etc/makepkg.conf

Cool, thanks! I removed it and recompiled the whole gcc3 package and added g77 (changed the PKGBUILD file) and now I can compile my old fortran programs. I still have to redo the blas package because it's linked to the gcc-gfortran package (now just gcc).

Regards

André

Offline

Board footer

Powered by FluxBB