Re: [fpc-devel] Build error, main branch, compiler/options.pas 889:33
I changed to the compiler directory and typed make all. From: fpc-devel On Behalf Of Sven Barth via fpc-devel Sent: Saturday, November 11, 2023 12:17 AM To: FPC developers' list Cc: Sven Barth ; dricha...@students.ccu.edu Subject: Re: [fpc-devel] Build error, main branch, compiler/options.pas 889:33 drichards--- via fpc-devel mailto:fpc-devel@lists.freepascal.org> > schrieb am Sa., 11. Nov. 2023, 08:22: I am getting an incorrect type error at line 889 column 33 in compiler/options.pas. This is the , following the parameter More to the function Copy. More is defined as a String. I do not understand why the function Copy would have a problem with a String as its first parameter. This is my first attempt to build the compiler. Am I making a newbie mistake here? I am building on a Raspberry Pi, Bullseye, 64-bit with 8GB of RAM and a 1T drive. How are you building the compiler? Regards, Sven ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Build error, main branch, compiler/options.pas 889:33
I just re-tested. Make all fails in the same way whether I invoke it from the top directory or the compiler directory. From: fpc-devel On Behalf Of Sven Barth via fpc-devel Sent: Saturday, November 11, 2023 12:17 AM To: FPC developers' list Cc: Sven Barth ; dricha...@students.ccu.edu Subject: Re: [fpc-devel] Build error, main branch, compiler/options.pas 889:33 drichards--- via fpc-devel mailto:fpc-devel@lists.freepascal.org> > schrieb am Sa., 11. Nov. 2023, 08:22: I am getting an incorrect type error at line 889 column 33 in compiler/options.pas. This is the , following the parameter More to the function Copy. More is defined as a String. I do not understand why the function Copy would have a problem with a String as its first parameter. This is my first attempt to build the compiler. Am I making a newbie mistake here? I am building on a Raspberry Pi, Bullseye, 64-bit with 8GB of RAM and a 1T drive. How are you building the compiler? Regards, Sven ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
[fpc-devel] Apologies, newbie question. How to make fpc use a different backend?
Hello, I have successfully built a new compiler. I installed it via make install INSTALL_PREFIX=... When I execute the new fpc command, however, it uses the system ppca64, not the built one. "Which fpc" confirms that I am using the proper fpc command. "fpc -PB" confirms that it is using the system backend, i.e. /usr/bin/ppca64. . My reading of the -XP option to fpc is that I should be able to override the default backend, but I have not been able to do so. I am clearly missing something. I generated new .cfg files using samplecfg and I know that PPC_CONFIG_PATH is correct. I can introduce an error in fpc.cfg and fpc fails, so I know I am using the proper fpc.cfg file. Nothing I do, either on the command line nor within the .cfg file seems to direct fpc to use the proper ppca64 backend. What am I missing? Thank you, kindly, Dave ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Re: [fpc-devel] Apologies, newbie question. How to make fpc use a different backend?
Never mind. I read the code and added the lib/fpc/$FPCVERSION directory to my path. -Original Message- From: fpc-devel On Behalf Of dave--- via fpc-devel Sent: Sunday, November 12, 2023 2:44 PM To: 'FPC developers' list' Cc: d...@synergy.org Subject: [fpc-devel] Apologies, newbie question. How to make fpc use a different backend? Hello, I have successfully built a new compiler. I installed it via make install INSTALL_PREFIX=... When I execute the new fpc command, however, it uses the system ppca64, not the built one. "Which fpc" confirms that I am using the proper fpc command. "fpc -PB" confirms that it is using the system backend, i.e. /usr/bin/ppca64. . My reading of the -XP option to fpc is that I should be able to override the default backend, but I have not been able to do so. I am clearly missing something. I generated new .cfg files using samplecfg and I know that PPC_CONFIG_PATH is correct. I can introduce an error in fpc.cfg and fpc fails, so I know I am using the proper fpc.cfg file. Nothing I do, either on the command line nor within the .cfg file seems to direct fpc to use the proper ppca64 backend. What am I missing? Thank you, kindly, Dave ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
[fpc-devel] Record representation clauses
Hello, I am currently working on defining records to describe memory-mapped registers on the Raspberry Pi's arm/aarch64 processor. It is painful and brittle to do this in Pascal. Recent versions of Ada/GNAT allow one to define both field location and byte-order in a record representation clause. Has there been any discussion of extending fpc to allow this? Has a syntax been discussed? I looked on the future list and did not see anything related. Thanks, Dave ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel