Sign in Join

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

Mailing lists / fpc-devel / 2002-08

Linux troubles

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Michail A.Baikov

1. /etc/ppc386.cfg don't exists. Only fpc.cfg
2. I try next:

fpc ./linderdm.pas -vat

Free Pascal Compiler version 1.0.6 [2002/05/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Compiler: /usr/lib/fpc/1.0.6/ppc386
Target OS: Linux for i386
Using executable path: /usr/lib/fpc/1.0.6/
Using unit path: ./
Using unit path: ./HEAP/
Using unit path: ./MATH/
Using unit path: ./VM/
Using unit path: ./VFS/
Using unit path: ./TERRAIN/
Using unit path: ./GUI/
Using unit path: ./RENDERER/
Using unit path: ./PLUGINS/
Using unit path: ./PHYSICS/
Using unit path: ./OPENGL/
Using unit path: ./LOADERS/Shaders/
Using unit path: ./LOADERS/Physics/
Using unit path: ./LOADERS/Meshes/
Using unit path: ./LOADERS/Bitmaps/
Using unit path: ./LOADERS/
Using unit path: ./HEADERS/
Using unit path: ./CORE/
Using unit path: ./COMMON/
Using unit path: ./NETWORK/
Using unit path: ./AUDIO/Temp/
Using unit path: ./AUDIO/Plugins/
Using unit path: ./AUDIO/Output/
Using unit path: ./AUDIO/
Using unit path: /usr/lib/fpc/1.0.6/units/linux/rtl/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/zlib/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/x11/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/utmp/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/unzip/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/uncgi/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/syslog/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/svgalib/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/regexpr/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/postgres/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/paszlib/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/oracle/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/opengl/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/ncurses/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/mysql/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/libpng/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/libgd/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/libasync/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/inet/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/ibase/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/gtk/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/ggi/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/gdbm/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/gdbint/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/fpasync/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/forms/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/fcl/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/cmem/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/bfd/ Using unit path: /usr/lib/fpc/1.0.6/units/linux/
Using unit path: /usr/lib/fpc/1.0.6/
Using include path: ./INCLUDE/

THIS INCLUDE!!

Using library path: /lib/
Using library path: /usr/lib/
Using library path: /usr/X11R6/lib/
Using library path: /usr/local/lib/
Using library path: ./
Using library path: ./HEAP/
Using library path: ./MATH/
Using library path: ./VM/
Using library path: ./VFS/
Using library path: ./TERRAIN/
Using library path: ./GUI/
Using library path: ./RENDERER/
Using library path: ./PLUGINS/
Using library path: ./PHYSICS/
Using library path: ./OPENGL/
Using library path: ./LOADERS/Shaders/
Using library path: ./LOADERS/Physics/
Using library path: ./LOADERS/Meshes/
Using library path: ./LOADERS/Bitmaps/
Using library path: ./LOADERS/
Using library path: ./HEADERS/
Using library path: ./CORE/
Using library path: ./COMMON/
Using library path: ./NETWORK/
Using library path: ./AUDIO/Temp/
Using library path: ./AUDIO/Plugins/
Using library path: ./AUDIO/Output/
Using library path: ./AUDIO/
Using library path: /usr/lib/fpc/1.0.6/units/linux/rtl/ Using library path: /usr/lib/fpc/1.0.6/units/linux/zlib/ Using library path: /usr/lib/fpc/1.0.6/units/linux/x11/ Using library path: /usr/lib/fpc/1.0.6/units/linux/utmp/ Using library path: /usr/lib/fpc/1.0.6/units/linux/unzip/ Using library path: /usr/lib/fpc/1.0.6/units/linux/uncgi/ Using library path: /usr/lib/fpc/1.0.6/units/linux/syslog/ Using library path: /usr/lib/fpc/1.0.6/units/linux/svgalib/ Using library path: /usr/lib/fpc/1.0.6/units/linux/regexpr/ Using library path: /usr/lib/fpc/1.0.6/units/linux/postgres/ Using library path: /usr/lib/fpc/1.0.6/units/linux/paszlib/ Using library path: /usr/lib/fpc/1.0.6/units/linux/oracle/ Using library path: /usr/lib/fpc/1.0.6/units/linux/opengl/ Using library path: /usr/lib/fpc/1.0.6/units/linux/ncurses/ Using library path: /usr/lib/fpc/1.0.6/units/linux/mysql/ Using library path: /usr/lib/fpc/1.0.6/units/linux/libpng/ Using library path: /usr/lib/fpc/1.0.6/units/linux/libgd/ Using library path: /usr/lib/fpc/1.0.6/units/linux/libasync/ Using library path: /usr/lib/fpc/1.0.6/units/linux/inet/ Using library path: /usr/lib/fpc/1.0.6/units/linux/ibase/ Using library path: /usr/lib/fpc/1.0.6/units/linux/gtk/ Using library path: /usr/lib/fpc/1.0.6/units/linux/ggi/ Using library path: /usr/lib/fpc/1.0.6/units/linux/gdbm/ Using library path: /usr/lib/fpc/1.0.6/units/linux/gdbint/ Using library path: /usr/lib/fpc/1.0.6/units/linux/fpasync/ Using library path: /usr/lib/fpc/1.0.6/units/linux/forms/ Using library path: /usr/lib/fpc/1.0.6/units/linux/fcl/ Using library path: /usr/lib/fpc/1.0.6/units/linux/cmem/ Using library path: /usr/lib/fpc/1.0.6/units/linux/bfd/ Using library path: /usr/lib/fpc/1.0.6/units/linux/ Using library path: /usr/lib/fpc/1.0.6/
Using object path: ./
Using object path: ./HEAP/
Using object path: ./MATH/
Using object path: ./VM/
Using object path: ./VFS/
Using object path: ./TERRAIN/
Using object path: ./GUI/
Using object path: ./RENDERER/
Using object path: ./PLUGINS/
Using object path: ./PHYSICS/
Using object path: ./OPENGL/
Using object path: ./LOADERS/Shaders/
Using object path: ./LOADERS/Physics/
Using object path: ./LOADERS/Meshes/
Using object path: ./LOADERS/Bitmaps/
Using object path: ./LOADERS/
Using object path: ./HEADERS/
Using object path: ./CORE/
Using object path: ./COMMON/
Using object path: ./NETWORK/
Using object path: ./AUDIO/Temp/
Using object path: ./AUDIO/Plugins/
Using object path: ./AUDIO/Output/
Using object path: ./AUDIO/
Using object path: /usr/lib/fpc/1.0.6/units/linux/rtl/ Using object path: /usr/lib/fpc/1.0.6/units/linux/zlib/ Using object path: /usr/lib/fpc/1.0.6/units/linux/x11/ Using object path: /usr/lib/fpc/1.0.6/units/linux/utmp/ Using object path: /usr/lib/fpc/1.0.6/units/linux/unzip/ Using object path: /usr/lib/fpc/1.0.6/units/linux/uncgi/ Using object path: /usr/lib/fpc/1.0.6/units/linux/syslog/ Using object path: /usr/lib/fpc/1.0.6/units/linux/svgalib/ Using object path: /usr/lib/fpc/1.0.6/units/linux/regexpr/ Using object path: /usr/lib/fpc/1.0.6/units/linux/postgres/ Using object path: /usr/lib/fpc/1.0.6/units/linux/paszlib/ Using object path: /usr/lib/fpc/1.0.6/units/linux/oracle/ Using object path: /usr/lib/fpc/1.0.6/units/linux/opengl/ Using object path: /usr/lib/fpc/1.0.6/units/linux/ncurses/ Using object path: /usr/lib/fpc/1.0.6/units/linux/mysql/ Using object path: /usr/lib/fpc/1.0.6/units/linux/libpng/ Using object path: /usr/lib/fpc/1.0.6/units/linux/libgd/ Using object path: /usr/lib/fpc/1.0.6/units/linux/libasync/ Using object path: /usr/lib/fpc/1.0.6/units/linux/inet/ Using object path: /usr/lib/fpc/1.0.6/units/linux/ibase/ Using object path: /usr/lib/fpc/1.0.6/units/linux/gtk/ Using object path: /usr/lib/fpc/1.0.6/units/linux/ggi/ Using object path: /usr/lib/fpc/1.0.6/units/linux/gdbm/ Using object path: /usr/lib/fpc/1.0.6/units/linux/gdbint/ Using object path: /usr/lib/fpc/1.0.6/units/linux/fpasync/ Using object path: /usr/lib/fpc/1.0.6/units/linux/forms/ Using object path: /usr/lib/fpc/1.0.6/units/linux/fcl/ Using object path: /usr/lib/fpc/1.0.6/units/linux/cmem/ Using object path: /usr/lib/fpc/1.0.6/units/linux/bfd/ Using object path: /usr/lib/fpc/1.0.6/units/linux/ Using object path: /usr/lib/fpc/1.0.6/
Compiling ./linderdm.pas
linderdm.pas(1,2) Fatal: Can't open include file defs.inc

My Dirs:

SRC]$ ls -la
????? 124
drwxr-xr-x 22 baikov users 4096 ??? 20 11:29 .
drwxr-xr-x 3 baikov users 4096 ??? 20 11:29 ..
-rwxrwxrwx 1 baikov users 7830 ??? 21 01:29 11
drwxrwxrwx 2 baikov users 4096 ??? 18 23:55 archive -rwxrwxrwx 1 baikov users 1027 ??? 23 18:42 a_review.txt drwxrwxrwx 5 baikov users 4096 ??? 1 00:32 AUDIO
-rwxrwxrwx 1 baikov users 808 ??? 22 23:47 bugs.txt drwxrwxrwx 3 baikov users 4096 ??? 1 22:36 COMMON
drwxrwxrwx 2 baikov users 4096 ??? 9 23:08 CORE
-rwxrwxrwx 1 baikov users 1096 ??? 22 17:49 ENGINE.ASM drwxrwxrwx 2 baikov users 4096 ??? 9 23:08 GUI
drwxrwxrwx 2 baikov users 4096 ??? 9 23:08 HEADERS drwxrwxrwx 2 baikov users 4096 ??? 1 22:38 HEAP
drwxrwxrwx 2 baikov users 4096 ??? 20 11:35 INCLUDE

THIS INCLUDE DIR!!

-rwxrwxrwx 1 baikov users 339 ??? 27 00:02 linderdm.pas drwxrwxrwx 6 baikov users 4096 ??? 9 23:09 LOADERS drwxrwxrwx 2 baikov users 4096 ??? 9 23:09 MATH
drwxrwxrwx 3 baikov users 4096 ??? 9 23:10 MORGUE
drwxrwxrwx 2 baikov users 4096 ??? 1 22:39 NETWORK drwxrwxrwx 2 baikov users 4096 ??? 1 22:39 OPENGL
drwxrwxrwx 2 baikov users 4096 ??? 9 23:10 PHYSICS -rwxrwxrwx 1 baikov users 1982 ??? 5 00:26 plan.txt drwxrwxrwx 2 baikov users 4096 ??? 1 22:40 PLUGINS -rwxrwxrwx 1 baikov users 1007 ??? 1 19:04 readme.txt drwxrwxrwx 2 baikov users 4096 ??? 9 23:10 RENDERER drwxrwxrwx 2 baikov users 4096 ??? 9 23:10 TERRAIN drwxrwxrwx 5 baikov users 4096 ??? 18 20:44 Tests
-rwxrwxrwx 1 baikov users 3163 ??? 8 19:38 todo.txt drwxrwxrwx 2 baikov users 4096 ??? 1 22:40 VFS
drwxrwxrwx 2 baikov users 4096 ??? 1 22:40 VM

What's wrong?

Reply by email

Michael Van Canneyt
to Michail A.Baikov
Michail A.Baikov wrote 5 lines
1. /etc/ppc386.cfg don't exists. Only fpc.cfg 2. I try next: fpc ./linderdm.pas -vat

[cut]

Compiling ./linderdm.pas linderdm.pas(1,2) Fatal: Can't open include file defs.inc

You left out the most important part of the log. -vut will show where the compiler looks when the file defs.inc is searched. Try again, and send me the output in a private email. Secondly, don't use fpc, but use ppc386 to do the following:

strace ppc386 linderdm.pas -vut

this will produce A LOT of output on standard error, please send me that as well.

Also, it may be that the search for uppercase files is only enabled in delphi mode, but I'm not sure.

Michael.

Reply by email

Michail A.Baikov
to Michael Van Canneyt
Michael Van Canneyt wrote 37 lines
On Wed, 21 Aug 2002, Michail A.Baikov wrote: >1. /etc/ppc386.cfg don't exists. Only fpc.cfg >2. I try next: > >fpc ./linderdm.pas -vat > > > [cut] >Compiling ./linderdm.pas >linderdm.pas(1,2) Fatal: Can't open include file defs.inc > > > You left out the most important part of the log. -vut will show where the compiler looks when the file defs.inc is searched. Try again, and send me the output in a private email. Secondly, don't use fpc, but use ppc386 to do the following: strace ppc386 linderdm.pas -vut this will produce A LOT of output on standard error, please send me that as well. Also, it may be that the search for uppercase files is only enabled in delphi mode, but I'm not sure. Michael.

Hmm, His trying find defs.inc, not DEFS.INC. I should rename all files to lowercase? ~1000 files ... :(

Reply by email

Peter Vreman
Hmm, His trying find defs.inc, not DEFS.INC. I should rename all files to lowercase? ~1000 files ... :(

You can write a small pascal program to do it ;)

Reply by email

Holger Schurig
to Peter Vreman
> Hmm, His trying find defs.inc, not DEFS.INC. I should rename all files > to lowercase? ~1000 files ... :( You can write a small pascal program to do it ;)

for i in [A-Z]*; do mv $i `echo $i | tr A-Z a-z`; done

Reply by email

Yet Another Geek
for i in [A-Z]*; do mv $i `echo $i | tr A-Z a-z`;

done

Careful -
if you already have files named
"IMPORTANT.FILE" and "important.file"
then the existing "important.file"
will get clobbered!

(You may want to use the -i option to mv)

Or you can do it recursively:

#!/bin/bash
for OLD in `find -type f -name '*[A-Z]*'`
do
DIR=`dirname $OLD`
NEW=`basename $OLD | tr A-Z a-z`
echo $OLD $DIR/$NEW # <- Just testing
# uncomment for the real thing:
# mv -i $OLD $DIR/$NEW
done

... will rename all files in all directories
under the current directory - BE CAREFUL!!!

I really don't think you need to rename all
your files, however, you just need to make
sure the case matches exactly in all your
search path, etc.

Another option:

The include directive can also contain an
absolute or relative path to the file,
for example:

{$INCLUDE /home/baikov/projects/INCLUDE/defs.inc}

... or whatever the correct path would be.

This is certainly not an elegant or portable solution, but it might help to find the problem.

__________________________________________________ Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

Reply by email

Michail A.Baikov
to Yet Another Geek

Thanks.

Kind Regards,
Michail.
_________________________________
Michail A.Baikov,
Linderdaum Team
http://www.gamedot.ru
http://linderdaum.gamedot.ru

Earlier message 64 lines
----- Original Message ----- From: "Yet Another Geek" To: Sent: Thursday, August 22, 2002 11:06 AM Subject: Re: [fpc-devel]Linux troubles > > for i in [A-Z]*; do mv $i `echo $i | tr A-Z a-z`; > done > > Careful - > if you already have files named > "IMPORTANT.FILE" and "important.file" > then the existing "important.file" > will get clobbered! > > (You may want to use the -i option to mv) > > > Or you can do it recursively: > > #!/bin/bash > for OLD in `find -type f -name '*[A-Z]*'` > do > DIR=`dirname $OLD` > NEW=`basename $OLD | tr A-Z a-z` > echo $OLD $DIR/$NEW # <- Just testing > # uncomment for the real thing: > # mv -i $OLD $DIR/$NEW > done > > > ... will rename all files in all directories > under the current directory - BE CAREFUL!!! > > > I really don't think you need to rename all > your files, however, you just need to make > sure the case matches exactly in all your > search path, etc. > > Another option: > > The include directive can also contain an > absolute or relative path to the file, > for example: > > {$INCLUDE /home/baikov/projects/INCLUDE/defs.inc} > > ... or whatever the correct path would be. > > This is certainly not an elegant or portable solution, > but it might help to find the problem. > > > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com > > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-devel >

Reply by email