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

Some problems when cross compile FRR #1344

Closed
w-silence-w opened this issue Oct 20, 2017 · 4 comments
Closed

Some problems when cross compile FRR #1344

w-silence-w opened this issue Oct 20, 2017 · 4 comments
Assignees

Comments

@w-silence-w
Copy link

bleow are my configure result:
FRRouting configuration

FRR version : 3.1-dev
host operating system : linux-gnueabi
source code location : ../frr
compiler : arm-fsl-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7 --sysroot=/opt/fsl-qoriq/2.0/sysroots/cortexa7hf-vfp-neon-fsl-linux-gnueabi -std=gnu11
compiler flags : -I/home/silence/work/cross-compiler/buildout/json-c/include -I../ -fno-omit-frame-pointer -funwind-tables -Wall -Wextra -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -pthread
make : make
linker flags : -L/home/silence/work/cross-compiler/buildout/json-c/lib -L/home/silence/work/cross-compiler/buildout/readline/lib -rdynamic -ldl -lm -lcrypt -ljson-c -lrt -lreadline -ltermcap -lm
state file directory : /var/run
config file directory : /home/silence/work/cross-compiler/buildout/frr/etc
example directory : /home/silence/work/cross-compiler/buildout/frr/etc
module directory : /home/silence/work/cross-compiler/buildout/frr/lib/frr/modules
user to run as : root
group to run as : root
group for vty sockets :
config file mask : 0600
log file mask : 0600
zebra protobuf enabled : no

BUT when i make,some error occurred:

CC ospfd/ospf_memory.o
CC ospfd/ospf_neighbor.o
CC ospfd/ospf_network.o
CC ospfd/ospf_nsm.o
CC ospfd/ospf_opaque.o
CC ospfd/ospf_packet.o
CC ospfd/ospf_ri.o
CC ospfd/ospf_route.o
CC ospfd/ospf_routemap.o
CC ospfd/ospf_spf.o
CC ospfd/ospf_te.o
make[3]: Entering directory '/home/silence/work/cross-compiler/src/frrbuild/hosttools'
make[3]: *** No rule to make target 'lib/route_types.h'。 Stop。
make[3]: Leaving directory '/home/silence/work/cross-compiler/src/frrbuild/hosttools'
Makefile:4680: recipe for target 'hosttools/lib/clippy' failed
make[2]: *** [hosttools/lib/clippy] Error 2
make[2]: Leaving directory '/home/silence/work/cross-compiler/src/frrbuild'
Makefile:4165: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/silence/work/cross-compiler/src/frrbuild'
Makefile:1831: recipe for target 'all' failed
make: *** [all] Error 2

I don't know what can i do next

@lucize
Copy link
Contributor

lucize commented Oct 20, 2017

clippy is a bit complicated look at #958

@troglobit
Copy link
Contributor

Same here, while cross-compiling FRR v4.0 for a variety of platforms. Hopefully someone can have a look at hosttools/clippy et al for the stable/4.0 series. I tried looking into it, but it's a bit over my head since you seem to be moving away from the traditional recursive build and some makefiles are hand made without proper $(top_srcdir) prefix I dunno?

@lucize
Copy link
Contributor

lucize commented Mar 13, 2018

On openwrt, python host doesn't compile well with zlib enabled, for the moment I couldn't find the fix, I just disable zlib patch and the pip-install from host, who needs zlib

Maybe a bug report to python mantainers?

@ton31337
Copy link
Member

duplicate of #2131. closing.

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

5 participants