Sign in Join

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

Mailing lists / fpc-devel / 2014-03

Build packages 2.6.4 on arm/linux failed

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Marc Weustink

Hi, I was playing with GNUroot/debian on my android pad and installed fpc 2.6.0 since 2.6.4 was not available. After that I tried to build 2.6.4 from svn. However make all stopped when building fastcgi:

/usr/bin/make -C fastcgi all
make[1]: Entering directory `/home/fpc-2.6.4/packages/fastcgi' /usr/bin/ppcarm fpmake.pp -n -Fu../../rtl/units/arm-linux -Fu../../packages/hash/units/arm-linux -Fu../../packages/paszlib/units/arm-linux -Fu../../packages/fcl-process/units/arm-linux -Fu../../packages/fpmkunit/units/arm-linux /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/fpc-2.6.4/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi': (.text+0x88): undefined reference to `_fini'
/home/fpc-2.6.4/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi': (.text+0x90): undefined reference to `_init'
fpmake.pp(30,38) Error: Error while linking
fpmake.pp(30,38) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[1]: *** [fpmake] Error 1
make[1]: Leaving directory `/home/fpc-2.6.4/packages/fastcgi' make: *** [fastcgi_all] Error 2

uname -a :

Linux localhost 3.1.10-gb1a9af5 #1 SMP PREEMPT Thu Aug 1 16:15:28 CST 2013 armv7l GNU/Linux

Marc

Reply by email

Florian Klaempfl
to Marc Weustink
Marc Weustink wrote 18 lines
Hi, I was playing with GNUroot/debian on my android pad and installed fpc 2.6.0 since 2.6.4 was not available. After that I tried to build 2.6.4 from svn. However make all stopped when building fastcgi: /usr/bin/make -C fastcgi all make[1]: Entering directory `/home/fpc-2.6.4/packages/fastcgi' /usr/bin/ppcarm fpmake.pp -n -Fu../../rtl/units/arm-linux -Fu../../packages/hash/units/arm-linux -Fu../../packages/paszlib/units/arm-linux -Fu../../packages/fcl-process/units/arm-linux -Fu../../packages/fpmkunit/units/arm-linux /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/fpc-2.6.4/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi': (.text+0x88): undefined reference to `_fini' /home/fpc-2.6.4/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi': (.text+0x90): undefined reference to `_init' fpmake.pp(30,38) Error: Error while linking fpmake.pp(30,38) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[1]: *** [fpmake] Error 1 make[1]: Leaving directory `/home/fpc-2.6.4/packages/fastcgi' make: *** [fastcgi_all] Error 2

2.6.x does not warn if it misses init files: debian recently changed the locations of the init files.

So fixes probably misses r22004, r22416 and r23892.

Please try to compiled with OPT=-Fl/usr/lib/arm-linux-gnueabi

Reply by email

Marc Weustink

The funny thing is that when I ignore fastcgi (and 1 or 2 other packages) every thing compiles fine. Even compiling and running lazarus. So i wondered wat is so special with fastcgi. I‘ll try OPT

Sent from my ASUS Pad

Florian Klaempfl wrote 29 lines
Am 28.03.2014 21:36, schrieb Marc Weustink: > > Hi, I was playing with GNUroot/debian on my android pad and installed fpc 2.6.0 since 2.6.4 was not available. > After that I tried to build 2.6.4 from svn. However make all stopped when building fastcgi: > > /usr/bin/make -C fastcgi all > make[1]: Entering directory `/home/fpc-2.6.4/packages/fastcgi' > /usr/bin/ppcarm fpmake.pp -n -Fu../../rtl/units/arm-linux -Fu../../packages/hash/units/arm-linux -Fu../../packages/paszlib/units/arm-linux -Fu../../packages/fcl-process/units/arm-linux -Fu../../packages/fpmkunit/units/arm-linux > /usr/bin/ld: warning: link.res contains output sections; did you forget -T? > /home/fpc-2.6.4/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi': > (.text+0x88): undefined reference to `_fini' > /home/fpc-2.6.4/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi': > (.text+0x90): undefined reference to `_init' > fpmake.pp(30,38) Error: Error while linking > fpmake.pp(30,38) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > make[1]: *** [fpmake] Error 1 > make[1]: Leaving directory `/home/fpc-2.6.4/packages/fastcgi' > make: *** [fastcgi_all] Error 2 2.6.x does not warn if it misses init files: debian recently changed the locations of the init files. So fixes probably misses r22004, r22416 and r23892. Please try to compiled with OPT=-Fl/usr/lib/arm-linux-gnueabi _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Marco van de Voort
to Marc Weustink

In our previous episode, Marc Weustink said:

The funny thing is that when I ignore fastcgi (and 1 or 2 other packages) every thing compiles fine. Even compiling and running lazarus. So i wondered wat is so special with fastcgi. I?ll try OPT

fastcgi and fcl-web use fpmake. fpmake is the only binary that links to libc (since it is threaded) and thus needs those files.

Reply by email

marc
to Florian Klaempfl: 2.6.x does not warn if it misses init files: debian recently changed the locations of the…
Florian Klaempfl wrote 35 lines
Am 28.03.2014 21:36, schrieb Marc Weustink: > > Hi, I was playing with GNUroot/debian on my android pad and installed > fpc 2.6.0 since 2.6.4 was not available. > After that I tried to build 2.6.4 from svn. However make all stopped > when building fastcgi: > > /usr/bin/make -C fastcgi all > make[1]: Entering directory `/home/fpc-2.6.4/packages/fastcgi' > /usr/bin/ppcarm fpmake.pp -n -Fu../../rtl/units/arm-linux > -Fu../../packages/hash/units/arm-linux > -Fu../../packages/paszlib/units/arm-linux > -Fu../../packages/fcl-process/units/arm-linux > -Fu../../packages/fpmkunit/units/arm-linux > /usr/bin/ld: warning: link.res contains output sections; did you > forget -T? > /home/fpc-2.6.4/rtl/units/arm-linux/cprt0.o: In function > `_haltproc_eabi': > (.text+0x88): undefined reference to `_fini' > /home/fpc-2.6.4/rtl/units/arm-linux/cprt0.o: In function > `_haltproc_eabi': > (.text+0x90): undefined reference to `_init' > fpmake.pp(30,38) Error: Error while linking > fpmake.pp(30,38) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > make[1]: *** [fpmake] Error 1 > make[1]: Leaving directory `/home/fpc-2.6.4/packages/fastcgi' > make: *** [fastcgi_all] Error 2 2.6.x does not warn if it misses init files: debian recently changed the locations of the init files. So fixes probably misses r22004, r22416 and r23892. Please try to compiled with OPT=-Fl/usr/lib/arm-linux-gnueabi

I tried, and with other packages I see this passed to ppcarm (and also -Fl/usr/lib/arm-linux-gnueabi/4.6)

But I see neither of the 2 passed when compiling fpmake.pp

Marc

Reply by email

marc
to marc
marc wrote 43 lines
On 29-03-2014 12:52, Florian Klaempfl wrote: > Am 28.03.2014 21:36, schrieb Marc Weustink: >> >> Hi, I was playing with GNUroot/debian on my android pad and installed >> fpc 2.6.0 since 2.6.4 was not available. >> After that I tried to build 2.6.4 from svn. However make all stopped >> when building fastcgi: >> >> /usr/bin/make -C fastcgi all >> make[1]: Entering directory `/home/fpc-2.6.4/packages/fastcgi' >> /usr/bin/ppcarm fpmake.pp -n -Fu../../rtl/units/arm-linux >> -Fu../../packages/hash/units/arm-linux >> -Fu../../packages/paszlib/units/arm-linux >> -Fu../../packages/fcl-process/units/arm-linux >> -Fu../../packages/fpmkunit/units/arm-linux >> /usr/bin/ld: warning: link.res contains output sections; did you >> forget -T? >> /home/fpc-2.6.4/rtl/units/arm-linux/cprt0.o: In function >> `_haltproc_eabi': >> (.text+0x88): undefined reference to `_fini' >> /home/fpc-2.6.4/rtl/units/arm-linux/cprt0.o: In function >> `_haltproc_eabi': >> (.text+0x90): undefined reference to `_init' >> fpmake.pp(30,38) Error: Error while linking >> fpmake.pp(30,38) Fatal: There were 1 errors compiling module, >> stopping >> Fatal: Compilation aborted >> make[1]: *** [fpmake] Error 1 >> make[1]: Leaving directory `/home/fpc-2.6.4/packages/fastcgi' >> make: *** [fastcgi_all] Error 2 > > 2.6.x does not warn if it misses init files: debian recently changed > the locations of the init files. > > So fixes probably misses r22004, r22416 and r23892. > > Please try to compiled with OPT=-Fl/usr/lib/arm-linux-gnueabi I tried, and with other packages I see this passed to ppcarm (and also -Fl/usr/lib/arm-linux-gnueabi/4.6) But I see neither of the 2 passed when compiling fpmake.pp

Ok, there is no option passed to the compiler
when building fpmake.pp

So I tried it by passing FPMAKE_SKIP_CONFIG="-n
-Fl/usr/lib/arm-linux-gnueabi"
This worked :)

Marc

Reply by email