I have a similar problem while compiling imx-libs-1.1.0 for my iMX6 platform, with ptxdist. It won't help you at all, but maybe it can guide to the resolution of the problem.
-----------------------
target: imx-lib.compile
-----------------------
make[1]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0'
make -C sim all
make -C vpu all
make -C pxp all
make -C rng all
make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/sim'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/sim'
make -C ipu all
make -C sahara2 all
make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/vpu'
arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -Wall -O2 -fPIC -c vpu_io.c -o vpu_io.o
make -C screenlayer all
make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/pxp'
arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -Wall -O2 -fPIC -c pxp_lib.c -o pxp_lib.o
arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -Wall -O2 -fPIC -c vpu_util.c -o vpu_util.o
arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -Wall -O2 -fPIC -c vpu_lib.c -o vpu_lib.o
make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/rng'
arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -c -o fsl_shw_rand.o fsl_shw_rand.c
make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/ipu'
arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -Wall -O2 -fPIC -c mxc_ipu_hl_lib_dummy.c -o mxc_ipu_hl_lib_dummy.o
arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -c -o fsl_shw_hash.o fsl_shw_hash.c
make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/sahara2'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/sahara2'
arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -Wall -O2 -fPIC -c vpu_gdi.c -o vpu_gdi.o
make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/screenlayer'
arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -c -o fsl_shw_sym.o fsl_shw_sym.c
arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -c -o fsl_shw_user.o fsl_shw_user.c
arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -c ../sahara2/fsl_shw_keystore.c
arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -c -o fsl_shw_auth.o fsl_shw_auth.c
arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -c -o fsl_shw_hmac.o fsl_shw_hmac.c
arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -c -o fsl_shw_wrap.o fsl_shw_wrap.c
Not support platform, will not complile
make[2]: Leaving directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/screenlayer'
vpu_io.c: In function 'IOPhyMemCheck':
vpu_io.c:596:16: warning: unused variable 'va_addr' [-Wunused-variable]
In file included from vpu_io.c:35:0:
vpu_io.c: At top level:
vpu_util.h:199:2: warning: 'EXIF_TAG' defined but not used [-Wunused-variable]
In file included from /home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include/linux/pxp_dma.h:22:0,
from pxp_lib.h:19,
from pxp_lib.c:25:
/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Wcpp]
pxp_lib.c: In function 'pxp_get_phymem':
pxp_lib.c:141:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t' [-Wformat]
In file included from vpu_gdi.c:15:0:
vpu_util.h:199:2: warning: 'EXIF_TAG' defined but not used [-Wunused-variable]
In file included from /home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include/linux/videodev2.h:66:0,
from mxc_ipu_hl_lib_dummy.c:40:
/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Wcpp]
vpu_util.c: In function 'SetParaSet':
vpu_util.c:791:11: warning: variable 'pDecInfo' set but not used [-Wunused-but-set-variable]
vpu_util.c: In function 'ParseJFIF':
vpu_util.c:2400:6: warning: unused variable 'pal' [-Wunused-variable]
In file included from vpu_util.c:20:0:
vpu_util.c: At top level:
vpu_util.h:199:2: warning: 'EXIF_TAG' defined but not used [-Wunused-variable]
arm-cortexa9-linux-gnueabihf-gcc -shared -nostartfiles -Wl,-soname,libipu.so.0 -o libipu.so.0 mxc_ipu_hl_lib_dummy.o -lpthread
vpu_lib.c: In function 'vpu_EncGetOutputInfo':
vpu_lib.c:1856:22: warning: variable 'address' set but not used [-Wunused-but-set-variable]
vpu_lib.c:1876:22: warning: variable 'address' set but not used [-Wunused-but-set-variable]
vpu_lib.c:1897:22: warning: variable 'address' set but not used [-Wunused-but-set-variable]
vpu_lib.c: In function 'vpu_EncGiveCommand':
vpu_lib.c:2114:8: warning: variable 'EncPicX' set but not used [-Wunused-but-set-variable]
vpu_lib.c: In function 'vpu_DecOpen':
vpu_lib.c:2437:15: warning: unused variable 'i' [-Wunused-variable]
vpu_lib.c: In function 'vpu_DecSetEscSeqInit':
vpu_lib.c:2712:11: warning: variable 'pDecInfo' set but not used [-Wunused-but-set-variable]
vpu_lib.c: In function 'vpu_DecUpdateBitstreamBuffer':
vpu_lib.c:3479:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'Uint32' [-Wformat]
vpu_lib.c: In function 'vpu_DecGetOutputInfo':
vpu_lib.c:4256:31: warning: variable 'address' set but not used [-Wunused-but-set-variable]
vpu_lib.c:4284:31: warning: variable 'address' set but not used [-Wunused-but-set-variable]
vpu_lib.c:4318:31: warning: variable 'address' set but not used [-Wunused-but-set-variable]
vpu_lib.c:4026:18: warning: variable 'paraBuffer' set but not used [-Wunused-but-set-variable]
vpu_lib.c: In function 'SaveGetEncodeHeader':
vpu_lib.c:4857:8: warning: variable 'n' set but not used [-Wunused-but-set-variable]
In file included from vpu_lib.c:26:0:
vpu_lib.c: At top level:
vpu_util.h:199:2: warning: 'EXIF_TAG' defined but not used [-Wunused-variable]
arm-cortexa9-linux-gnueabihf-gcc -shared -nostartfiles -Wl,-soname,libpxp.so.0 pxp_lib.o -o libpxp.so.0
arm-cortexa9-linux-gnueabihf-ar -rc libpxp.a pxp_lib.o
../sahara2/fsl_shw_keystore.c:427:1: warning: no previous prototype for 'keystore_load_slot' [-Wmissing-prototypes]
arm-cortexa9-linux-gnueabihf-gcc -shared -nostartfiles -Wl,-soname,libfsl_shw.so.0 -o libfsl_shw.so.0 fsl_shw_rand.o fsl_shw_hash.o fsl_shw_sym.o fsl_shw_user.o fsl_shw_keystore.o fsl_shw_auth.o fsl_shw_hmac.o fsl_shw_wrap.o
arm-cortexa9-linux-gnueabihf-ar libfsl_shw.a fsl_shw_rand.o fsl_shw_hash.o fsl_shw_sym.o fsl_shw_user.o fsl_shw_keystore.o fsl_shw_auth.o fsl_shw_hmac.o fsl_shw_wrap.o
arm-cortexa9-linux-gnueabihf-ar: invalid option -- '_'
Usage: arm-cortexa9-linux-gnueabihf-ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [member-name] [count] archive-file file...
arm-cortexa9-linux-gnueabihf-ar -M [<mri-script]
commands:
d - delete file(s) from the archive
m[ab] - move file(s) in the archive
p - print file(s) found in the archive
q[f] - quick append file(s) to the archive
r[ab][f][u] - replace existing or insert new file(s) into the archive
s - act as ranlib
t - display contents of archive
x[o] - extract file(s) from the archive
command specific modifiers:
[a] - put file(s) after [member-name]
[b] - put file(s) before [member-name] (same as [i])
[D] - use zero for timestamps and uids/gids
[N] - use instance [count] of name
[f] - truncate inserted file names
[P] - use full path names when matching
[o] - preserve original dates
[u] - only replace files that are newer than current archive contents
generic modifiers:
[c] - do not warn if the library had to be created
[s] - create an archive index (cf. ranlib)
[S] - do not build a symbol table
[T] - make a thin archive
[v] - be verbose
[V] - display the version number
@<file> - read options from <file>
--target=BFDNAME - specify the target object format as BFDNAME
emulation options:
No emulation specific options
arm-cortexa9-linux-gnueabihf-ar: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex
make[2]: *** [libfsl_shw.a] Error 1