Menu

#17 localize.sh does not work

v1.0_(example)
pending
None
5
2014-10-19
2014-10-15
StrPt
No

./localize.sh
Free Pascal Compiler version 2.6.2 [2013/07/07] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling updatepofiles.pas
Linking updatepofiles.exe
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
446 lines compiled, 0.4 sec
Free Pascal Compiler version 2.6.2 [2013/07/07] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling generateincfiles.pas
Linking generateincfiles.exe
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
546 lines compiled, 0.4 sec
../languages/fpgui.po
An unhandled exception occurred at $0806B0A1 :
EConvertError : "" is an invalid integer
$0806B0A1
$0804841A
$0804A6D9

Discussion

  • Graeme Geldenhuys

    • assigned_to: Graeme Geldenhuys
     
  • Graeme Geldenhuys

    I cannot reproduce the issue. I've just tested on my main development system: FreeBSD 64-bit with FPC 2.6.4 using the latest 'develop' branch.

    [tools (develop)]$ ./build_tools.bat
    Free Pascal Compiler version 2.6.4 [2014/04/12] for x86_64
    Copyright (c) 1993-2014 by Florian Klaempfl and others
    Target OS: FreeBSD for x86-64
    Compiling updatepofiles.pas
    Linking updatepofiles.exe
    446 lines compiled, 0.4 sec
    Free Pascal Compiler version 2.6.4 [2014/04/12] for x86_64
    Copyright (c) 1993-2014 by Florian Klaempfl and others
    Target OS: FreeBSD for x86-64
    Compiling generateincfiles.pas
    Linking generateincfiles.exe
    546 lines compiled, 0.2 sec
    [tools (develop)]$ ./localize.sh
    find: ../units: No such file or directory
    ../languages/fpgui.po
    Loading ../languages/fpgui.po ...
    Updating ../languages/fpgui.pt.po
    Updating ../languages/fpgui.de.po
    Updating ../languages/fpgui.es.po
    Updating ../languages/fpgui.it.po
    Updating ../languages/fpgui.ru.po
    Updating ../languages/fpgui.fr.po
    Updating ../languages/fpgui.en.po
    Updating ../languages/fpgui.af.po
    Loading ../languages/fpgui.pt.po ...
    Loading ../languages/fpgui.de.po ...
    Loading ../languages/fpgui.es.po ...
    Loading ../languages/fpgui.it.po ...
    Loading ../languages/fpgui.ru.po ...
    Loading ../languages/fpgui.fr.po ...
    Loading ../languages/fpgui.en.po ...
    Loading ../languages/fpgui.af.po ...
    [tools (develop)]$

    A few suggestions. Manually run 'build_tools.bat' to make sure you have the latest executables built. Maybe upgrade to FPC 2.6.4 (as 2.6.2 is rather old now).

    If you still have problems, I'll do some more testing on other systems.

     
  • Graeme Geldenhuys

    • status: open --> pending
     
  • StrPt

    StrPt - 2014-10-19

    For fpc-2.6.4:

    [user@localhost tools]$ ./build_tools.bat
    Free Pascal Compiler version 2.6.4 [2014/10/01] for i386
    Copyright (c) 1993-2014 by Florian Klaempfl and others
    Target OS: Linux for i386
    Compiling updatepofiles.pas
    Linking updatepofiles.exe
    /usr/bin/ld: warning: link.res contains output sections; did you forget -T?
    446 lines compiled, 2.0 sec
    Free Pascal Compiler version 2.6.4 [2014/10/01] for i386
    Copyright (c) 1993-2014 by Florian Klaempfl and others
    Target OS: Linux for i386
    Compiling generateincfiles.pas
    Linking generateincfiles.exe
    /usr/bin/ld: warning: link.res contains output sections; did you forget -T?
    546 lines compiled, 0.4 sec
    [user@localhost tools]$ ./localize.sh
    find: `../units': No such file or directory
    ../languages/fpgui.po
    An unhandled exception occurred at $08069971 :
    EConvertError : "" is an invalid integer
    $08069971
    $080483DA
    $0804A699

    Reprodused in Fedora, Mageia.

     
  • StrPt

    StrPt - 2014-10-19

    There is new version for localize.sh in attachment.

     
  • Graeme Geldenhuys

    Now I get the following error:

    [tools (develop)]$ ./localize.sh
    ./localize.sh: line 38: [: too many arguments
    Error: Missing fpg_constants.rst

    I'll take a closer look at the original issue and test on some Linux VM's I have.

     

Log in to post a comment.