Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/test problems with latest git code for openwrt #4

Closed
karlp opened this issue Jan 6, 2014 · 3 comments
Closed

build/test problems with latest git code for openwrt #4

karlp opened this issue Jan 6, 2014 · 3 comments

Comments

@karlp
Copy link
Contributor

karlp commented Jan 6, 2014

This used to build without any help, but it's less happy now...

mips-openwrt-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I/home/karlp/src/smartgate_firmware/openwrt-aa/staging_dir/target-mips_uClibc-0.9.33.2/usr/include -I/home/karlp/src/smartgate_firmware/openwrt-aa/staging_dir/target-mips_uClibc-0.9.33.2/include -I/home/karlp/src/smartgate_firmware/openwrt-aa/staging_dir/toolchain-mips_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/karlp/src/smartgate_firmware/openwrt-aa/staging_dir/toolchain-mips_gcc-4.6-linaro_uClibc-0.9.33.2/include  -shared -o libpagekite.so pkerror.o pkproto.o pkconn.o pkblocker.o pkmanager.o pklogging.o pkstate.o utils.o pd_sha1.o pkwatchdog.o -lpthread -lssl -lcrypto -lm -lev
/home/karlp/src/smartgate_firmware/openwrt-aa/staging_dir/toolchain-mips_gcc-4.6-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.6.3/../../../../mips-openwrt-linux-uclibc/bin/ld: pkerror.o: relocation R_MIPS_HI16 against `pk_error' can not be used when making a shared object; recompile with -fPIC
pkerror.o: could not read symbols: Bad value
@karlp
Copy link
Contributor Author

karlp commented Jan 6, 2014

Also, the makefile tries to execute tests now, which is somewhat problematic for the cross compile environment

@karlp
Copy link
Contributor Author

karlp commented Jan 6, 2014

Further, I've done the normal fixups of trying "TARGET_CFLAGS+=$(FPIC)" and += -fPIC directly, with no effect :(

@karlp
Copy link
Contributor Author

karlp commented Jan 7, 2014

Nevermind, wasn't "clean" enough. I've fixed the openwrt makefile to properly add the right fpic stuff now, and it's building.

The tests are still being built, and then it attempts to run them, which will never work, but that's a different ticket I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant