Wind River Support Network

HomeDefectsLIN6-8497
Fixed

LIN6-8497 : Cavium 3 SDK export to Windows reports error on application build

Created: Oct 3, 2014    Updated: Dec 3, 2018
Resolved Date: Oct 21, 2014
Found In Version: 6.0.0.11
Fix Version: 6.0.0.13
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Host Tools

Description

When a cav_octeon3 win32 SDK has been created on a Linux host and imported on a Windows host, an error is encountered when trying use it to build an example application: 
...
mips-wrs-linux-gnu-gcc: error: unrecognized argument in option '-march=octeon3'
mips-wrs-linux-gnu-gcc: note: valid arguments to '-march=' are: 10000 1004kc 1004kf 1004kf1_1 1004kf2_1 10k 12000 12k 14000 14k 16000 16k 2000 20kc 24kc 24kec 24kef 24kef1_1 24kef2_1 24kefx 24kex 24kf 24kf1_1 24kf2_1 24kfx 24kx 2k 3000 34kc 34kf 34kf1_1 34kf2_1 34kfx 34kn 34kx 3900 3k 4000 4100 4111 4120 4130 4300 4400 4600 4650 4700 4k 4kc 4kec 4kem 4kep 4km 4kp 4ksc 4ksd 5000 5400 5500 5k 5kc 5kf 6000 6k 7000 74kc 74kf 74kf1_1 74kf2_1 74kf3_2 74kfx 74kx 7k 8000 8k 9000 9k from-abi loongson2e loongson2f loongson3a m4k mips1 mips2 mips3 mips32 mips32r2 mips4 mips64 mips64r2 native octeon octeon+ octeon2 orion r10000 r1004kc r1004kf r1004kf1_1 r1004kf2_1 r10k r12000 r12k r14000 r14k r16000 r16k r2000 r20kc r24kc r24kec r24kef r24kef1_1 r24kef2_1 r24kefx r24kex r24kf r24kf1_1 r24kf2_1 r24kfx r24kx r2k r3000 r34kc r34kf r34kf1_1 r34kf2_1 r34kfx r34kn r34kx r3900 r3k r4000 r4100 r4111 r4120 r4130 r4300 r4400 r4600 r4650 r4700 r4k r4kc r4kec r4kem r4kep r4km r4kp r4ksc r4ksd r5000 r5400 r5500 r5k r5kc r5kf r6000 r6k r7000 r74kc r74kf r74kf1_1 r74kf2_1 r74kf3_2 r74kfx r74kx r7k r8000 r8k r9000 r9k rm7000 rm7k rm9000 rm9k sb1 sb1a sr71000 sr71k vr4100 vr4111 vr4120 vr4130 vr4300 vr5000 vr5400 vr5500 vr5k xlp xlr
....

Steps to Reproduce

Create cav_octeon3 platform project on Linux host:
   /home/user/WRL6/wrlinux-6/wrlinux/configure --enable-board=cav-octeon3 --enable-build=profiling --enable-ccache=yes --enable-checkout-all-layers=yes --enable-jobs=4 --enable-kernel=standard --enable-parallel-pkgbuilds=4 --enable-rm-oldimgs=yes --enable-rootfs=glibc_small+debug --enable-win-sdk=yes --with-sstate-dir=/.wrl6_sstate --with-template=feature/analysis,feature/code_coverage,feature/lttng-init,feature/lttng2,feature/oprofile

make fs and make export-sdk

Copy and extract resulting SDK on Windows 7 host, import into Workbench.

Create example application project, e.g. clientserver, and set buildspec to cav-octeon3-glibc_small-mips32-octeon3-layers  (only Cavium selection presented.)

Build example application and observe build failure:
 Command: make --no-print-directory BUILD_SPEC=cav-octeon3-glibc_small-mips32-octeon3-layers DEBUG_MODE=1 TRACE=1
Working Directory: D:/Demo/WRLinux6/workspace/clientserver/cav-octeon3-glibc_small-mips32-octeon3-layers
if [ ! -d "`dirname "client/Debug/Objects/client.o"`" ]; then mkdir -p "`dirname "client/Debug/Objects/client.o"`"; fi;echo  "building client/Debug/Objects/client.o ";export PATH=D:/Demo/WRLinux6/wrlinux-6/layers/binary-toolchain-4.8-22-other/bin/:$PATH;   mips-wrs-linux-gnu-gcc -O -fno-omit-frame-pointer -g -feliminate-unused-debug-types -pipe -meb -mabi=32 -mhard-float -march=octeon3 --sysroot=D:/Demo/WRLinux6/workspace/cav_sdk/sysroots/mips32-octeon3-wrs-linux      -MD -MP -c -DARCH=mips -o "client/Debug/Objects/client.o" "D:/Demo/WRLinux6/workspace/clientserver/client.c"
building client/Debug/Objects/client.o 
mips-wrs-linux-gnu-gcc: error: unrecognized argument in option '-march=octeon3'
mips-wrs-linux-gnu-gcc: note: valid arguments to '-march=' are: 10000 1004kc 1004kf 1004kf1_1 1004kf2_1 10k 12000 12k 14000 14k 16000 16k 2000 20kc 24kc 24kec 24kef 24kef1_1 24kef2_1 24kefx 24kex 24kf 24kf1_1 24kf2_1 24kfx 24kx 2k 3000 34kc 34kf 34kf1_1 34kf2_1 34kfx 34kn 34kx 3900 3k 4000 4100 4111 4120 4130 4300 4400 4600 4650 4700 4k 4kc 4kec 4kem 4kep 4km 4kp 4ksc 4ksd 5000 5400 5500 5k 5kc 5kf 6000 6k 7000 74kc 74kf 74kf1_1 74kf2_1 74kf3_2 74kfx 74kx 7k 8000 8k 9000 9k from-abi loongson2e loongson2f loongson3a m4k mips1 mips2 mips3 mips32 mips32r2 mips4 mips64 mips64r2 native octeon octeon+ octeon2 orion r10000 r1004kc r1004kf r1004kf1_1 r1004kf2_1 r10k r12000 r12k r14000 r14k r16000 r16k r2000 r20kc r24kc r24kec r24kef r24kef1_1 r24kef2_1 r24kefx r24kex r24kf r24kf1_1 r24kf2_1 r24kfx r24kx r2k r3000 r34kc r34kf r34kf1_1 r34kf2_1 r34kfx r34kn r34kx r3900 r3k r4000 r4100 r4111 r4120 r4130 r4300 r4400 r4600 r4650 r4700 r4k r4kc r4kec r4kem r4kep r4km r4kp r4ksc r4ksd r5000 r5400 r5500 r5k r5kc r5kf r6000 r6k r7000 r74kc r74kf r74kf1_1 r74kf2_1 r74kf3_2 r74kfx r74kx r7k r8000 r8k r9000 r9k rm7000 rm7k rm9000 rm9k sb1 sb1a sr71000 sr71k vr4100 vr4111 vr4120 vr4130 vr4300 vr5000 vr5400 vr5500 vr5k xlp xlr
D:\Demo\WRLinux6\utilities-1.0\x86-win32\bin\make.exe: *** [client/Debug/Objects/client.o] Error 1
Build Failed in Project 'clientserver' (Process Exit Value was 2):   2014-10-03 10:54:34   (Elapsed Time: 00:00)

Other Downloads


Live chat
Online