[MBT] new ticket for pkg fpc "don't like long PATH ;)"
bugs at pld.org.pl
bugs at pld.org.pl
Fri May 16 21:46:55 CEST 2003
Date: 2003-05-16 21:46:54+02 Author: Andrzej 'The Undefined' Dopierała (undefine) <undefine at pld.org.pl>
Title: don't like long PATH ;)
Ticket ID: #664
Ticket URL: http://bugs.pld.org.pl/?bug=664
Package: fpc-1.0.4-3
Distribution:
Category: doesn't work as it should
Current state: opened
Text:
I have pPATH:
[undefine at atos undefine]$ echo $PATH
/home/staff/undefine/GNUstep/Tools:/home/staff/undefine/GNUstep/Tools/ix86/linux-gnu/gnu-gnu-gnu:/home/staff/undefine/GNUstep/Tools/ix86/linux-gnu:/usr/lib/GNUstep/Local/Tools:/usr/lib/GNUstep/Local/Tools/ix86/linux-gnu/gnu-gnu-gnu:/usr/lib/GNUstep/Local/Tools/ix86/linux-gnu:/usr/lib/GNUstep/Network/Tools:/usr/lib/GNUstep/Network/Tools/ix86/linux-gnu/gnu-gnu-gnu:/usr/lib/GNUstep/Network/Tools/ix86/linux-gnu:/usr/lib/GNUstep/System/Tools:/usr/lib/GNUstep/System/Tools/ix86/linux-gnu/gnu-gnu-gnu:/usr/lib/GNUstep/System/Tools/ix86/linux-gnu:/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/X11R6/sbin:/home/staff/undefine/bin
and try compile simple program using fpc:
[undefine at atos undefine]$ cat >a.pas
begin
writeln('dupa');
end.
[undefine at atos undefine]$ ppc386 a.pas
Free Pascal Compiler version 1.0.4 [2002/11/21] for i386
Copyright (c) 1993-2000 by Florian Klaempfl
Target OS: Linux for i386
Compiling a.pas
Assembling program
a.pas(4) Warning: Assembler as not found, switching to external assembling
a.pas(4) Warning: Object a.o not found, Linking may fail !
Linking a
a.pas(4) Warning: Util ld not found, switching to external linking
Closing script ppas.sh
3 Lines compiled, 0.3 sec
[undefine at atos undefine]$
why? :) strace help us:
stat("as", 0xbfffd8fc) = -1 ENOENT (No such file or directory)
stat("as", 0xbfffd8fc) = -1 ENOENT (No such file or directory)
stat("/home/staff/undefine/GNUstep/Tools/as", 0xbfffd8fc) = -1 ENOENT (No such file or directory)
stat("/home/staff/undefine/GNUstep/Tools/ix86/linux-gnu/gnu-gnu-gnu/as", 0xbfffd8fc) = -1 ENOENT (No such file or directory)
stat("/home/staff/undefine/GNUstep/Tools/ix86/linux-gnu/as", 0xbfffd8fc) = -1 ENOENT (No such file or directory)
stat("/usr/lib/GNUstep/Local/Tools/as", 0xbfffd8fc) = -1 ENOENT (No such file or directory)
stat("/usr/lib/GNUstep/Local/Tools/ix86/linux-gnu/gnu-gnu-gnu/as", 0xbfffd8fc) = -1 ENOENT (No such file or directory)
stat("/usr/lib/GNUstep/Loc/as", 0xbfffd8fc) = -1 ENOENT (No such file or directory)
write(1, "a.pas(4) Warning: Assembler as n"..., 75a.pas(4) Warning: Assembler as not found, switching to external assembling) = 75
:))
when PATH is set to:
[undefine at atos undefine]$ export PATH=/usr/bin:$PATH
everything works fine.
[undefine at atos undefine]$ ppc386 a.pas
Free Pascal Compiler version 1.0.4 [2002/11/21] for i386
Copyright (c) 1993-2000 by Florian Klaempfl
Target OS: Linux for i386
Compiling a.pas
Assembling program
Linking a
3 Lines compiled, 0.4 sec
More information about the pld-bugs
mailing list