Subject Compile Firebird-2.5.3 with Ptxdist for ARM
Author Mathias Stucki

Hello,

 

I am trying to compile Firebird-2.5.3 with ptxdist-2014.09.0, using OSELAS.Toolchain-2013.12.2.

 

Unfortunately I’m getting a lot of compile errors:

 

 

------------------------

target: firebird.compile

------------------------

 

make[1]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3'

make -C gen firebird

make[2]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

(cd ..; ./src/misc/writeBuildNum.sh rebuildHeader)

make boot_phase1_build

make -j1 -f ../gen/Makefile.libfbstatic libfbstatic

make -f ../gen/Makefile.static.createdb

files are identical

make -f ../gen/Makefile.refDatabases empty_db

make[3]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make -j1 -f ../gen/Makefile.boot.gpre gpre_boot

make -j1 -f ../gen/Makefile.static.gbak

make -j1 -f ../gen/Makefile.libfbstatic libfbstatic

make[3]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make -j1 -f ../gen/Makefile.static.isql

make[3]: warning: -jN forced in submake: disabling jobserver mode.

make[2]: *** No rule to make target `../gen/firebird/bin/gbak_static', needed by `ref_databases'.  Stop.

make[2]: *** Waiting for unfinished jobs....

make[3]: warning: -jN forced in submake: disabling jobserver mode.

make[3]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[3]: *** No rule to make target `../gen/firebird/lib/libfbstatic.a', needed by `../gen/firebird/bin/create_db'.  Stop.

make[3]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[3]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[2]: *** [create_db] Error 2

make[3]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[3]: *** No rule to make target `../gen/firebird/bin/create_db', needed by `empty.fdb'.  Stop.

make[3]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[2]: *** [empty_db] Error 2

make[4]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[4]: warning: -jN forced in submake: disabling jobserver mode.

make[3]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[3]: warning: -jN forced in submake: disabling jobserver mode.

../gen/firebird/bin/gpre_current -r -m -z -n ../src/isql/extract.epp ../temp/boot/isql/extract.cpp

make -j1 -f ../gen/Makefile.static.gpre gpre_static

../gen/firebird/bin/gpre_current -r -m -z -n ../src/burp/backup.epp ../temp/boot/burp/backup.cpp

../gen/firebird/bin/gpre_current: 1: ../gen/firebird/bin/gpre_current: Syntax error: word unexpected (expecting ")")

make[3]: *** [../temp/boot/isql/extract.cpp] Error 2

make[3]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[2]: *** [isql_static] Error 2

make[4]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[4]: warning: -jN forced in submake: disabling jobserver mode.

make[4]: Nothing to be done for `gpre_boot'.

make[4]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[4]: Entering directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[4]: warning: -jN forced in submake: disabling jobserver mode.

../gen/firebird/bin/gpre_current: 1: ../gen/firebird/bin/gpre_current: Syntax error: word unexpected (expecting ")")

make[3]: *** [../temp/boot/burp/backup.cpp] Error 2

make[3]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[2]: *** [gbak_static] Error 2

../gen/firebird/bin/gpre_boot -lang_internal -r -m -z -n ../src/gpre/gpre_meta.epp ../src/gpre/gpre_meta.cpp

../extern/btyacc/btyacc -l -d -S ../src/dsql/btyacc_fb.ske ../src/dsql/parse.y

../gen/firebird/bin/gpre_boot: 1: ../gen/firebird/bin/gpre_boot: Syntax error: word unexpected (expecting ")")

make[4]: *** [../src/gpre/gpre_meta.cpp] Error 2

make[4]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[3]: *** [gpre_static] Error 2

make[3]: *** Waiting for unfinished jobs....

../extern/btyacc/btyacc -l -d -S ../src/dsql/btyacc_fb.ske ../src/dsql/parse.y

../extern/btyacc/btyacc: 11 shift/reduce conflicts, 5 reduce/reduce conflicts.

../extern/btyacc/btyacc: 11 shift/reduce conflicts, 5 reduce/reduce conflicts.

YYTABLESIZE: 70861

mv -f ../gen/y_tab.c ../src/dsql/parse.cpp

mv -f ../gen/y_tab.h ../src/dsql/dsql.tab.h

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/alt.cpp -o

../temp/boot/jrd/alt.o

YYTABLESIZE: 70861

mv -f ../gen/y_tab.c ../src/dsql/parse.cpp

mv: cannot stat '../gen/y_tab.c': No such file or directory

make[4]: *** [../src/dsql/parse.cpp] Error 1

make[4]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[3]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[3]: *** [libfbstatic] Error 2

make[2]: *** [../gen/firebird/bin/gpre_static] Error 2

../src/jrd/alt.cpp: In function 'ISC_STATUS gds__ddl(ISC_STATUS*, void**, void**, SSHORT, const SCHAR*)':

../src/jrd/alt.cpp:600:9: warning: 'ISC_STATUS isc_ddl(ISC_STATUS*, void**, void**, short int, const char*)' is deprecated (declared at ../src/jrd/../jrd/ibase.h:707) [-Wdeprecated-declarations]

  return isc_ddl(status_vector, db_handle, tra_handle, ddl_length, ddl);

         ^

../src/jrd/alt.cpp:600:70: warning: 'ISC_STATUS isc_ddl(ISC_STATUS*, void**, void**, short int, const char*)' is deprecated (declared at ../src/jrd/../jrd/ibase.h:707) [-Wdeprecated-declarations]

  return isc_ddl(status_vector, db_handle, tra_handle, ddl_length, ddl);

                                                                      ^

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/db_alias.cpp -o

../temp/boot/jrd/db_alias.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/enc.cpp -o

../temp/boot/jrd/enc.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/isc_file.cpp -o

../temp/boot/jrd/isc_file.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/os/posix/isc_ipc.cpp -o

../temp/boot/jrd/isc_ipc.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/perf.cpp -o

../temp/boot/jrd/perf.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/sdl.cpp -o

../temp/boot/jrd/sdl.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/status.cpp -o

../temp/boot/jrd/status.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/ThreadData.cpp -o

../temp/boot/jrd/ThreadData.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/ThreadStart.cpp -o

../temp/boot/jrd/ThreadStart.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/utl.cpp -o

../temp/boot/jrd/utl.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/why.cpp -o

../temp/boot/jrd/why.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/blob_filter.cpp -o

../temp/boot/jrd/blob_filter.o

arm-cortexa8-linux-gnueabi-g++ -DBOOT_BUILD -I../src/include/gen -I../src/include -I../src/vulcan -DNAMESPACE=Vulcan -O3 -DNDEBUG -DLINUX -DARM -pipe -p -MMD -fPIC -fsigned-char -fmessage-length=0 -pthread   -c ../src/jrd/cvt.cpp -o

../temp/boot/jrd/cvt.o

../gen/firebird/bin/gpre_current -n -z -gds_cxx -raw -ids ../src/jrd/dpm.epp ../temp/boot/jrd/dpm.cpp

../gen/firebird/bin/gpre_current: 1: ../gen/firebird/bin/gpre_current: Syntax error: word unexpected (expecting ")")

make[3]: *** [../temp/boot/jrd/dpm.cpp] Error 2

make[3]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[2]: *** [libfbstatic] Error 2

make[2]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3/gen'

make[1]: *** [firebird] Error 2

make[1]: Leaving directory `/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/build-target/Firebird-2.5.3'

make: *** [/media/EmbeddedLinux/FCS_Base/project/phyCORE-AM335x-PD13.1.2/platform-FCS-Base/state/firebird.compile] Error 2

 

 

Can anyone help me with these errors?

 

Kind regards

 

Mathias