gtree.pp doesn't work on Linux x86_64
Original Reporter info from Mantis: leonardorame
-
Reporter name: Leonardo M. Ramé
Original Reporter info from Mantis: leonardorame
- Reporter name: Leonardo M. Ramé
Description:
fcl-stl/tests/gtreetest.pp should return this:
Free Pascal Compiler version 2.7.1 [2013/02/17] for i386
Copyright (c) 1993-2013 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling gtreetest.pp
Linking gtreetest
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
50 lines compiled, 0.1 sec
➜ tests ./gtreetest
Depth first:
8 10 9 4 7 6 5 0 3 2 1
Breadth first:
8 4 9 10 0 5 6 7 1 2 3
As you can see, it works on Linux (and Windows) i386, but on x86_64 the results are this:
Free Pascal Compiler version 2.7.1 [2013/02/17] for x86_64
Copyright (c) 1993-2013 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling gtreetest.pp
Linking gtreetest
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
50 lines compiled, 0.1 sec
➜ tests ./gtreetest
Depth first:
8
Breadth first:
8
Steps to reproduce:
Just generate a new compiler, and go to packages/fcl-stl/tests and do "fpc gtreetest.pp", then ./gtreetest.
Mantis conversion info:
- Mantis ID: 23909
- OS: Linux
- OS Build: Ubuntu 12.04
- Build: Rev. 23624
- Platform: x86_64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 23645 (#c21b34da)