Hello,
Not use -ld for linking. Check if you not provide LD environment variable (not do export LD=arm-openstlinux_weston-linux-gnueabi-ld).
'-Wl,-O1' options is for gcc in linker mode. You can force use gcc as ld by 'export LD=arm-openstlinux_weston-linux-gnueabi-gcc'.
сб, 2 нояб. 2019 г. в 21:41, lindev <develine@xxxxxxx>:
Hello,
I'm trying to cross-compile pjproject-2.9 for arm STM32MP1 (
./configure --host=arm-elf-linux ) and I get this error .
>>arm-openstlinux_weston-linux-gnueabi-ld: unrecognized option '-Wl,-O1'
How can remove -Wl and -O1 options ?
Thanks. ( below the output...)
Felix.
ps:
make[1] : on entre dans le répertoire
« /local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjlib/build »
make -f
/local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/build/rules.mak
APP=PJLIB app=pjlib ../lib/libpj-arm-elf-linux-gnu.a
make[2] : on entre dans le répertoire
« /local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjlib/build »
make[2]: « ../lib/libpj-arm-elf-linux-gnu.a » est à jour.
make[2] : on quitte le répertoire
« /local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjlib/build »
make -f
/local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/build/rules.mak
APP=TEST app=pjlib-test ../bin/pjlib-test-arm-elf-linux-gnu
make[2] : on entre dans le répertoire
« /local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjlib/build »
if test ! -d ../bin; then mkdir -p ../bin; fi
arm-openstlinux_weston-linux-gnueabi-ld
--sysroot=/local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi
-o ../bin/pjlib-test-arm-elf-linux-gnu \
output/pjlib-test-arm-elf-linux-gnu/main.o
output/pjlib-test-arm-elf-linux-gnu/activesock.o
output/pjlib-test-arm-elf-linux-gnu/atomic.o
output/pjlib-test-arm-elf-linux-gnu/echo_clt.o
output/pjlib-test-arm-elf-linux-gnu/errno.o
output/pjlib-test-arm-elf-linux-gnu/exception.o
output/pjlib-test-arm-elf-linux-gnu/fifobuf.o
output/pjlib-test-arm-elf-linux-gnu/file.o
output/pjlib-test-arm-elf-linux-gnu/hash_test.o
output/pjlib-test-arm-elf-linux-gnu/ioq_perf.o
output/pjlib-test-arm-elf-linux-gnu/ioq_udp.o
output/pjlib-test-arm-elf-linux-gnu/ioq_unreg.o
output/pjlib-test-arm-elf-linux-gnu/ioq_tcp.o
output/pjlib-test-arm-elf-linux-gnu/list.o
output/pjlib-test-arm-elf-linux-gnu/mutex.o
output/pjlib-test-arm-elf-linux-gnu/os.o
output/pjlib-test-arm-elf-linux-gnu/pool.o
output/pjlib-test-arm-elf-linux-gnu/pool_perf.o
output/pjlib-test-arm-elf-linux-gnu/rand.o
output/pjlib-test-arm-elf-linux-gnu/rbtree.o
output/pjlib-test-arm-elf-linux-gnu/select.o
output/pjlib-test-arm-elf-linux-gnu/sleep.o
output/pjlib-test-arm-elf-linux-gnu/sock.o
output/pjlib-test-arm-elf-linux-gnu/sock_perf.o
output/pjlib-test-arm-elf-linux-gnu/ssl_sock.o
output/pjlib-test-arm-elf-linux-gnu/string.o
output/pjlib-test-arm-elf-linux-gnu/test.o
output/pjlib-test-arm-elf-linux-gnu/thread.o
output/pjlib-test-arm-elf-linux-gnu/timer.o
output/pjlib-test-arm-elf-linux-gnu/timestamp.o
output/pjlib-test-arm-elf-linux-gnu/udp_echo_srv_sync.o
output/pjlib-test-arm-elf-linux-gnu/udp_echo_srv_ioqueue.o
output/pjlib-test-arm-elf-linux-gnu/util.o -lpj-arm-elf-linux-gnu -luuid
-lm -lrt -lpthread -lasound -lv4l2
-L/local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjlib/lib
-L/local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjlib-util/lib
-L/local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjnath/lib
-L/local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjmedia/lib
-L/local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjsip/lib
-L/local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/third_party/lib
-lv4l2 -lv4l2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
arm-openstlinux_weston-linux-gnueabi-ld: unrecognized option '-Wl,-O1'
arm-openstlinux_weston-linux-gnueabi-ld: use the --help option for usage
information
/local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/build/rules.mak:124:
recipe for target '../bin/pjlib-test-arm-elf-linux-gnu' failed
make[2]: *** [../bin/pjlib-test-arm-elf-linux-gnu] Error 1
make[2] : on quitte le répertoire
« /local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjlib/build »
Makefile:115: recipe for target 'pjlib-test-arm-elf-linux-gnu' failed
make[1]: *** [pjlib-test-arm-elf-linux-gnu] Error 2
make[1] : on quitte le répertoire
« /local/STM32MP15-Ecosystem-v1.0.0/Developer-Package/Lab-DeveloperPackage/pjproject-2.9/pjlib/build »
Makefile:14: recipe for target 'all' failed
make: *** [all] Error 1
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org