Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-08

Help! Beginner cvs or compiling WOES

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael A. Hess
to Chris Bordeman: Greetings to all of the fpc/fcl/lazarus team, My name is Chris Bordeman. I have been…
Chris Bordeman wrote 24 lines
Here is a directory listing up to that point: ---------------------------------------- compiler (cvs dir) demo (cvs dir) gtk (cvs dir) makefile.fpc (I copied out of base) cvs_init (HOW-TO script) docs (cvs dir) lazarus (cvs dir) new_ppc (HOW-TO script) base (cvs dir) cvs_update (HOW-TO script) fcl (cvs_dir) libgcc.a (not sure how that got there) ppc386.release (copied from installed executable) units (units/linux self-created dir) ----------------------------------------- make: *** ../rtl/Free: No such file or directory. Stop. make: *** [cycle] Error 2 mv: *.ppu: No such file or directory cp: compiler/ppc386: No such file or directory

As the error indicates it can't find the rtl (run time library) directory. As you listing above indicates you don't have that directory so you must have failed to checkit out of CVS. Do everything you did before just be sure to get the rtl as well. Copy everything from base to the /opt/fpc directory as you figured out and then try the new_ppc script again. I think this should do it for you. :-)

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Chris Bordeman

Greetings to all of the fpc/fcl/lazarus team,

My name is Chris Bordeman. I have been following the list for a few months and using linux for a few years. I wanted to start helping out w/ the FCL, and, having mostly followed the directions in the linux HOW-TO, I have gotten stuck cycling the compiler. I currently have these set up these in my ~/.bashrc:

export FPCDIR=/opt/fpc
export PPC_GCCLIB_PATH=/usr/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/libgcc.a export CVSROOT=''

In the beginning, per the HOW-TO I logged into cvs and did a:

cvs -z3 checkout base compiler rtl fcl docs gtk lazarus

which over my 49333 kbps connection took 5-10 min. to complete.

I then created the 3 scripts in the HOW-TO (minus the export CVSROOT which was in ~./bashrc) and executed cvs_update which seemed to go ok.

I got the release ppc386 compiler and used its install.sh script, accepting defaults and when asked, pointing it at /opt/fpc which contained a libgcc.a. I copied the executable to /opt/fpc/ and created /opt/fpc/units/linux like the HOW-TO said.

I ran the HOW-TO script new_ppc to update/compile the compiler and got this:

====================================
makefile.fpc not found!
Check the FPCMAKE and FPCDIR environment variables. make clean
make[1]: Entering directory `/opt/fpc/compiler'
makefile.fpc not found!
Check the FPCMAKE and FPCDIR environment variables. ppc386
ppc386 [options] <inputfile> [options]
+ switch option on, - off
-a the compiler doesn''t delete the generated assembler file -B+ build
-C code generation options
...
====================================

I could find no makefile.fpc ANYWHERE under /opt/fpc, so I deleted all the cvs directories and did the 'cvs checkout ' line again. Now I suddenly have a base/makefile.cvs, so I inspected the Makefile, which had a reference to ../makefile.fpc so I copied base/makefile.fpc to /opt/fpc.

Here is a directory listing up to that point:

----------------------------------------
compiler (cvs dir)
demo (cvs dir)
gtk (cvs dir)
makefile.fpc (I copied out of base)
cvs_init (HOW-TO script)
docs (cvs dir)
lazarus (cvs dir)
new_ppc (HOW-TO script)
base (cvs dir)
cvs_update (HOW-TO script)
fcl (cvs_dir)
libgcc.a (not sure how that got there)
ppc386.release (copied from installed executable)
units (units/linux self-created dir)
-----------------------------------------

then I tried the new_ppc again, and got this:

make clean
make[1]: Entering directory `/opt/fpc/compiler'
rm -f ppc386
rm -f *.o *.ppu *.s *.a *.so *.ppl
rm -rf *.sl
make[1]: Leaving directory `/opt/fpc/compiler'
make -C ../rtl/Free Pascal Compiler version 0.99.5 lf> This program comes under the GNU General Public Licence For more information read COPYING lf> Report bugs,suggestions etc to:
libsclean
make: *** ../rtl/Free: No such file or directory. Stop. make: *** [cycle] Error 2
mv: *.ppu: No such file or directory
cp: compiler/ppc386: No such file or directory

Now I am lost. Is CVS just not giving me all the @#$%%& files or what???

I am running kernel 2.0.35-1 and CVS 1.9.

I apologize for the length, but I think someone should be able to help me w/all this info!

Thanks and Semper Fidelis,

Chris Bordeman

BTW, I am going to delete all my CVS dirs again and get them again, NOT do an update, set FPCMAKE to /opt/fpc/base and retry new_ppc again. If that fails, I'll retry w/no compression in the checkout.

____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

Reply by email

Pascal Dutilleul
--- Chris Bordeman wrote 8 lines
export FPCDIR=/opt/fpc export ..... ==================================== makefile.fpc not found! Check the FPCMAKE and FPCDIR environment variables.

You should also have added to your script :

export FPCMAKE=/opt/fpc/base/makefile.fpc

then it should work.

Show quoted text 5 lines
Now I suddenly have a base/makefile.cvs, so I inspected the Makefile, which had a reference to ../makefile.fpc so I copied base/makefile.fpc to /opt/fpc.

If you've set FPCMAKE, then you don't have to copy the makefile.fpc. Just leave it in .../base/

Show quoted text 8 lines
BTW, I am going to delete all my CVS dirs again and get them again, NOT do an update, set FPCMAKE to /opt/fpc/base and retry new_ppc again. If that fails, I'll retry w/no compression in the checkout.

I get all the stuff right from CVS, with compression, so it should also work for you I guess.

I think I also had to adjust or add the line
PROCINC=../rtl/i386
in the file /opt/fpc/fcl/Makefile

Pascal

_____________________________________________________________ Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

Reply by email