Re: Cannot find -lf2c compilation error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 19, 2009 at 9:16 PM, Jussi Lehtola <jussi.lehtola@xxxxxx> wrote:
>> >> I am trying to compile a program which was written in C. (The Makefile
>> >> is shown below.) However, when I run the command 'make', I get the
>> >> following error:
>> >>
>> >> $ make
>> >> ... -L./f2c -lf2c -lm
>> >> /usr/bin/ld: cannot find -lf2c
>
> You don't have to modify anything. Just:
>
> $ cd bpmpd_c/src/f2c
> $ make
>
> which builds bpmpd_c's f2c library and after that you can
>
> $ cd ..
> $ make
>
> as you tried.

Thanks, Jussi. Your suggestion solve the problem, but now I am getting
a another one. Please, see below.

Any ideas?

Paul

--------------------------------

$ make
cc bpmain.o minput.o mpsinp.o convert.o mpsout.o mprnt.o timer.o
readpar.o bpmpd.o pddrv.o scale.o setlam.o symmfo.o mfillin.o
symfact.o symfact1.o refactm.o findpivs.o nfactsb3.o factsnb3.o
rngchk.o fbtran.o itrefsol.o supn6.o supn6_.o supnode.o supupdat.o
cstart.o cinf.o cstpcrt.o cstplen.o cnewpd.o cfixvar.o pdmodi.o
cdiag.o cdirpc.o cdircc.o preslv.o rowsng.o colsng.o rowact.o chepdu.o
duchek.o bndchk.o coldbl.o aggreg.o sparsr.o elimin.o pstslv.o -o
bpmpd -O -L./f2c -lf2c -lm
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/bin/ld: i386:x86-64 architecture of input file `bpmain.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `minput.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `mpsinp.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `convert.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `mpsout.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `mprnt.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `timer.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `readpar.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `bpmpd.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `pddrv.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `scale.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `setlam.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `symmfo.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `mfillin.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `symfact.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `symfact1.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `refactm.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `findpivs.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `nfactsb3.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `factsnb3.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `rngchk.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `fbtran.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `itrefsol.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `supn6.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `supn6_.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `supnode.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `supupdat.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `cstart.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `cinf.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `cstpcrt.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `cstplen.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `cnewpd.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `cfixvar.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `pdmodi.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `cdiag.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `cdirpc.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `cdircc.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `preslv.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `rowsng.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `colsng.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `rowact.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `chepdu.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `duchek.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `bndchk.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `coldbl.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `aggreg.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `sparsr.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `elimin.o' is
incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `pstslv.o' is
incompatible with i386 output
make: *** [bpmpd] Error 1
$

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux