Re: [fpc-pascal] FPC v.3.0 roadmap
Am 11.01.2015 04:05 schrieb "Bee" : > > Hi, > > This morning I saw FPC's SVN was already marked for v.3.0. There must be some reasons why it's not marked for v.2.8 (as successor for currently v.2.6). May I ask... what are the targets and roadmap for FPC v.3.0? > > When I looked at the bugtracker, I can't see anything useful, at least to me. When I searched the wiki, I only see the roadmap for Lazarus. CMIIW. We don't have "targets" or a "roadmap" for FPC as we simply take what's there and prepare it for release. It was decided that the changes the compiler experienced since 2.6 are big enough to increase the major version from 2 to 3. Btw: the successor of 2.8 would not necessarily be 3.0, but can also be 2.10. (the FPC_FULLVERSION define would support this as it uses leading zeros for values < 10). Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] fpc2.6.4 compilation problem
Hello, I have some difficulties to compile my PASCAL code with external subroutine in FORTRAN on MAC OS X Yosemite 10.10.1 using fpc 2.6.4. The problem is the following: I need to run the program in Pascal containing the external procedure in FORTRAN which uses the standard CERNLIB packages such as libpacklib. In the attached please find the code in PASCAL (as an example) with external procedure on FORTRAN which I’m training to compile. The names of these two programs are: “exmppas.p” and “exmpfrt.f”, and for compilation I'm using the following commands: $ gfortran -c exmpfrt.f$ fpc exmppas.p -Fl/sw/lib/gcc4.9/lib where with the -Fl/sw/lib/gcc4.9/lib I link the required libraries which I use in my code. But I get the following error: Free Pascal Compiler version 2.6.4 [2015/01/09] for x86_64Copyright (c) 1993-2014 by Florian Klaempfl and othersTarget OS: Darwin for x86_64Compiling exmppas.pAssembling (pipe) exmppas.sLinking exemptsUndefined symbols for architecture x86_64: "___powisf2", referenced from: _hbin_ in libpacklib.a(hbin.o)ld: symbol(s) not found for architecture x86_64An error occurred while linking exmppas.p(15) Error: Error while linkingexmppas.p(15) Fatal: There were 1 errors compiling module, stoppingFatal: Compilation abortedError: /sw/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled) I'm using fpc 2.4.6.Please note I have tried the same things on MAC OS X Maverick 10.9.5 using fpc 2.4.0 and it works without any problems . I cannot figure out what is the problem. My be in this new version for linking libraries I should use another command or I have done mistake somewhere else?Can someone help to solve the problems? Thank you in advance.Best regards,Vahe exmppas.p Description: Binary data exmpfrt.f Description: Binary data ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc2.6.4 compilation problem
On 10/01/15 17:48, Vahe Sahakyan wrote: > In the attached please find the code in PASCAL (as an example) with > external procedure on FORTRAN which I’m training to compile. The names > of these two programs are: “exmppas.p” and “exmpfrt.f”, and for > compilation I'm using the following commands: Your external declaration in Pascal is missing "cdecl;". Adding that will not solve the linker error, but not having it means that you're using the wrong calling convention and depending on the platform/parameter types it can cause crashes or corrupt values. > Linking exempts > Undefined symbols for architecture x86_64: > "___powisf2", referenced from: > _hbin_ in libpacklib.a(hbin.o) > ld: symbol(s) not found for architecture x86_64 > An error occurred while linking > exmppas.p(15) Error: Error while linking > exmppas.p(15) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > Error: /sw/bin/ppcx64 returned an error exitcode (normal if you did not > specify a source file to be compiled) > > I'm using fpc 2.4.6. > Please note I have tried the same things on MAC OS X Maverick 10.9.5 > using fpc 2.4.0 and it works without any problems . This has nothing to do with FPC 2.4 vs 2.6.4. It's about the version of gfortran you use. Apparently the new versions's libpacklib.a references a symbol that's not in any of the libraries you are linking in. Google suggests it's in libgcc, so add {$linklib gcc} or {$linklib gcc_s} (I don't know whether fink's gcc contains the default or shared version). If libgcc.a/libgcc_s.dylib is not in /sw/lib/gcc4.9/lib, you will also have to add the directory where it is located via another -Fl parameter to FPC. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc2.6.4 compilation problem
Hi Vahe Am 11.01.2015 um 12:00 schrieb fpc-pascal-requ...@lists.freepascal.org: > Message: 4 > Date: Sat, 10 Jan 2015 16:48:52 + (UTC) > From: Vahe Sahakyan > To: "fpc-pascal@lists.freepascal.org" > > Subject: [fpc-pascal] fpc2.6.4 compilation problem > Message-ID: > > <238177706.217828.1420908532346.javamail.ya...@jws10688.mail.bf1.yahoo.com> > > Content-Type: text/plain; charset="utf-8" > > Hello, > I have some difficulties to compile my PASCAL code with external?subroutine > in FORTRAN on MAC OS X Yosemite 10.10.1 using fpc 2.6.4. > The problem is the following: I need to run the program in Pascal?containing > the external procedure in FORTRAN which uses the standard?CERNLIB packages > such as libpacklib. ? > In the attached please find the code in PASCAL (as an example) with?external > procedure on FORTRAN which I?m training to compile. The names?of these two > programs are: ?exmppas.p? ?and ?exmpfrt.f?, and for?compilation I'm using the > following commands: > $ gfortran -c exmpfrt.f$ fpc exmppas.p -Fl/sw/lib/gcc4.9/lib > where with the -Fl/sw/lib/gcc4.9/lib I link the required libraries which?I > use in my code. But I get the following error:?Free Pascal Compiler version > 2.6.4 [2015/01/09] for x86_64Copyright (c) 1993-2014 by Florian Klaempfl and > othersTarget OS: Darwin for x86_64Compiling exmppas.pAssembling (pipe) > exmppas.sLinking exemptsUndefined symbols for architecture x86_64:? > "___powisf2", referenced from:? ? ? _hbin_ in libpacklib.a(hbin.o)ld: > symbol(s) not found for architecture x86_64An error occurred while > linking?exmppas.p(15) Error: Error while linkingexmppas.p(15) Fatal: There > were 1 errors compiling module, stoppingFatal: Compilation abortedError: > /sw/bin/ppcx64 returned an error exitcode (normal if you did not specify a > source file to be compiled) > I'm using fpc 2.4.6.Please note I have tried the same things on MAC OS X > Maverick 10.9.5?using fpc 2.4.0 and it works without any problems . > I cannot figure out what is the problem. My be in this new version > for?linking libraries I should use another command or I have done > mistake?somewhere else?Can someone help to solve the problems? > Thank you in advance.Best regards,Vahe As much as I know, the missing symbol ___powisf2 is part of the fortran library, libgfortran, which should be in /sw/lib/gcc4.9/lib/. Maybe check, whether this is really the case. Secondly, how does the linker get the information to link libgfortran? Through a linklib directive? If not, you may have to use the fpc options "-k -lgfortran" to pass the information to the linker. Passing -vt or even -va will give you further (in case of -va a huge amount) of information building your program. I do not expect any difference between 2.4.0 and 2.6.*. I am using 2.6.4 on 10.9 in combination with gfortran and it works well. Michael. P.S. can you somehow achieve, to send a plain text email. The way you did it results in a very hard to read output. signature.asc Description: Message signed with OpenPGP using GPGMail ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpc2.6.4 compilation problem
On Sun, January 11, 2015 12:43, Schindler Karl-Michael wrote: Hello Michael, The original poster is apparently not subscribed to the list (although he forgot to mention this fact in his post) - adding him. In Cc: now so that he could see your response). Tomas > Am 11.01.2015 um 12:00 schrieb fpc-pascal-requ...@lists.freepascal.org: > >> Message: 4 >> Date: Sat, 10 Jan 2015 16:48:52 + (UTC) >> From: Vahe Sahakyan >> To: "fpc-pascal@lists.freepascal.org" >> >> Subject: [fpc-pascal] fpc2.6.4 compilation problem >> Message-ID: >> >> <238177706.217828.1420908532346.javamail.ya...@jws10688.mail.bf1.yahoo.com> >> >> Content-Type: text/plain; charset="utf-8" >> >> Hello, >> I have some difficulties to compile my PASCAL code with >> external?subroutine in FORTRAN on MAC OS X Yosemite 10.10.1 using fpc >> 2.6.4. >> The problem is the following: I need to run the program in >> Pascal?containing the external procedure in FORTRAN which uses the >> standard?CERNLIB packages such as libpacklib. ? >> In the attached please find the code in PASCAL (as an example) >> with?external procedure on FORTRAN which I?m training to compile. The >> names?of these two programs are: ?exmppas.p? ?and ?exmpfrt.f?, and >> for?compilation I'm using the following commands: >> $ gfortran -c exmpfrt.f$ fpc exmppas.p -Fl/sw/lib/gcc4.9/lib >> where with the -Fl/sw/lib/gcc4.9/lib I link the required libraries >> which?I use in my code. But I get the following error:?Free Pascal >> Compiler version 2.6.4 [2015/01/09] for x86_64Copyright (c) 1993-2014 by >> Florian Klaempfl and othersTarget OS: Darwin for x86_64Compiling >> exmppas.pAssembling (pipe) exmppas.sLinking exemptsUndefined symbols for >> architecture x86_64:? "___powisf2", referenced from:? ? ? _hbin_ in >> libpacklib.a(hbin.o)ld: symbol(s) not found for architecture x86_64An >> error occurred while linking?exmppas.p(15) Error: Error while >> linkingexmppas.p(15) Fatal: There were 1 errors compiling module, >> stoppingFatal: Compilation abortedError: /sw/bin/ppcx64 returned an >> error exitcode (normal if you did not specify a source file to be >> compiled) >> I'm using fpc 2.4.6.Please note I have tried the same things on MAC OS X >> Maverick 10.9.5?using fpc 2.4.0 and it works without any problems . >> I cannot figure out what is the problem. My be in this new version >> for?linking libraries I should use another command or I have done >> mistake?somewhere else?Can someone help to solve the problems? >> Thank you in advance.Best regards,Vahe > > As much as I know, the missing symbol ___powisf2 is part of the fortran > library, libgfortran, which should be in /sw/lib/gcc4.9/lib/. Maybe check, > whether this is really the case. > Secondly, how does the linker get the information to link libgfortran? > Through a linklib directive? If not, you may have to use the fpc options > "-k -lgfortran" to pass the information to the linker. > > Passing -vt or even -va will give you further (in case of -va a huge > amount) of information building your program. I do not expect any > difference between 2.4.0 and 2.6.*. I am using 2.6.4 on 10.9 in > combination with gfortran and it works well. > > Michael. > > P.S. can you somehow achieve, to send a plain text email. The way you did > it results in a very hard to read output. > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] MIPS32 support
Am 06.01.2015 23:46, schrieb Graeme Geldenhuys: > Hi, > > Anybody know the status of MIPS32 support with Free Pascal? > > To be used on something like this board: > > http://shop.imgtec.com/uk/product/mips-creator-ci20/ > Regression tests show that mipsel is working reasonably with linux: http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi?os=1&cpu=12&version=0&date=&submitter=&machine=&comment=&cond=&Category=3 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC v.3.0 roadmap
I see. So FPC development has no planned innovation and no vision what it will become. It just takes whatever available. Alright. Thank you. :) On Sun, Jan 11, 2015 at 3:30 PM, Sven Barth wrote: > Am 11.01.2015 04:05 schrieb "Bee" : > > > > Hi, > > > > This morning I saw FPC's SVN was already marked for v.3.0. There must be > some reasons why it's not marked for v.2.8 (as successor for currently > v.2.6). May I ask... what are the targets and roadmap for FPC v.3.0? > > > > When I looked at the bugtracker, I can't see anything useful, at least > to me. When I searched the wiki, I only see the roadmap for Lazarus. CMIIW. > > We don't have "targets" or a "roadmap" for FPC as we simply take what's > there and prepare it for release. > It was decided that the changes the compiler experienced since 2.6 are big > enough to increase the major version from 2 to 3. Btw: the successor of 2.8 > would not necessarily be 3.0, but can also be 2.10. (the FPC_FULLVERSION > define would support this as it uses leading zeros for values < 10). > > Regards, > Sven > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > -- -Bee- ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Linker script doesn't search in /usr/lib32 when cross compiling from x86_64 to i386
> The weird thing is that the linker only looks at /lib and /usr/lib, but not /usr/lib32, which should be the location of 32-bit libraries on 64-bit system. Using -Cn, I can see that link.res doesn't contain path to /usr/lib32, and manually changing it makes the linking success. OK, this one can be solved by explicitly stating /usr/lib32 via -Fl in fpc.cfg (but even then the linker script still adds /lib and /usr/lib to the SEARCH_DIR). The actual problem that makes the linking fail is the two inputs: /lib/crti.o /lib/crtn.o This is because /lib is a symlink to /usr/lib in 64-bit systems. Changing the symlink to /usr/lib32 makes the linking works, but obviously not an elegant solution. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Linker-script-doesn-t-search-in-usr-lib32-when-cross-compiling-from-x86-64-to-i386-tp5720749p5720757.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal