devshell link error

Patrick ONeil - October 19, 2010

I use this to get to devshell:

bitbake -c devshell linux

Then, from the devshell, I do:

make

I get:

CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-mips CALL scripts/checksyscalls.sh <stdin>:1421:2: warning: #warning syscall marker not implemented <stdin>:1425:2: warning: #warning syscall trace not implemented CHK include/linux/compile.h LD init/mounts.o mips-montavista-linux-gnu-ld: unrecognized option '-Wl,-rpath-link,/user/oneil/core/pjmips/tmp/staging/mips-mv-linux/usr/lib' mips-montavista-linux-gnu-ld: use the --help option for usage information make[1]: *** [init/mounts.o] Error 1 make: *** [init] Error 2

Anyone else seen this? What's the resolution?

 

--Pat ONeil

Hughes Network Systems, Inc.

Share this

Comments

re: devshell link error

devshell sets the compilation environment for user programs, but the kernel requires a different environment. As a workaround, after "bitbake -c devshell linux", try: eval $(bitbake -e | grep ^TOPDIR=) # this just sets TOPDIR source $TOPDIR/bin/kenv.sh # sets the kernel compilation environment.

Seems to work.

Seems to work. Thanks.

 

--Pat