kuoruan / openwrt-v2ray

V2Ray for OpenWrt
MIT License
2.22k stars 465 forks source link

Try to build for aarch64_cortex-a53 (RPi 3), but always fails. #9

Closed linanw closed 5 years ago

linanw commented 5 years ago

Having this error, not sure if any one had even successfully built for aarch64_cortex-a53 (RPi 3)?

..... go.starlark.net/resolve v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/congestion v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/wire go.starlark.net/internal/compile v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/flowcontrol v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/ackhandler go.starlark.net/starlark

Cleaning module download cache (golang/go#27455) go: finding v2ray.com/core/.go_work/build latest go: finding v2ray.com/core/.go_work latest can't load package: package v2ray.com/core/.go_work/build: unknown import path "v2ray.com/core/.go_work/build": cannot find module providing package v2ray.com/core/.go_work/build

make[2]: [/root/openwrt/build_dir/target-aarch64_cortex-a53_musl/v2ray-core-4.19.1/.built] Error 2 make[2]: Leaving directory `/root/openwrt/package/v2ray' time: package/v2ray/compile#38.00#33.45#106.38 make[1]: [package/v2ray/compile] Error 2 make[1]: Leaving directory `/root/openwrt' make: *** [package/v2ray/compile] Error 2 root@0ce88aac5df2:~/openwrt#

kuoruan commented 5 years ago

Did you try set proxy when build?

linanw commented 5 years ago

Did you try set proxy when build?

Hi Kuoruan, thanks for the super fast response. Nope, I don't have any proxy setting, actually I didn't get what proxy do you mean? I'm with direct network to ISP in Singapore. I built the code with a docker container I built myself with Ubuntu.

kuoruan commented 5 years ago

From openwrt hwdata, Raspberry Pi 3 use target brcm2708, arm_cortex-a53_neon-vfpv4 https://openwrt.org/toh/hwdata/raspberry_pi_foundation/raspberry_pi_3_bplus Why you build for aarch64_cortex-a53?

linanw commented 5 years ago

This used the SDK download from https://downloads.openwrt.org/releases/18.06.2/targets/brcm2708/bcm2710/.

aarch64_cortex-a53 is the only toolchain from it’s staging_dir/

Btw: I checked the 18.06 packages for arm_cortex-a53_neon-vfpv4, it is actually empty.

https://downloads.openwrt.org/releases/packages-18.06/arm_cortex-a53_neon-vfpv4/ (empty link)

Regards, Bruce


From: Xingwang Liao notifications@github.com Sent: Monday, June 10, 2019 11:23:59 AM To: kuoruan/openwrt-v2ray Cc: linanw; Author Subject: Re: [kuoruan/openwrt-v2ray] Try to build for aarch64_cortex-a53 (RPi 3), but always fails. (#9)

From openwrt hwdata, Raspberry Pi 3 use target brcm2708, arm_cortex-a53_neon-vfpv4 https://openwrt.org/toh/hwdata/raspberry_pi_foundation/raspberry_pi_3_bplushttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenwrt.org%2Ftoh%2Fhwdata%2Fraspberry_pi_foundation%2Fraspberry_pi_3_bplus&data=02%7C01%7C%7Cc61d05a97967456431b908d6ed531493%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636957338411314207&sdata=nb92M0bVPsR7I8amsAn2BLl%2B%2FObzDpFPVbuWj38JIeQ%3D&reserved=0 Why you build for aarch64_cortex-a53?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkuoruan%2Fopenwrt-v2ray%2Fissues%2F9%3Femail_source%3Dnotifications%26email_token%3DAA7DFBPKCRW6JEFGME4NR4LPZXCM7A5CNFSM4HWL4AW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXI2Q4Y%23issuecomment-500279411&data=02%7C01%7C%7Cc61d05a97967456431b908d6ed531493%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636957338411314207&sdata=o5V5hInIK8s7nxlBB5I8n%2Fdb2gYkfVazYPVyxx%2BvPHw%3D&reserved=0, or mute the threadhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA7DFBLMRUUU7NRAP242TALPZXCM7ANCNFSM4HWL4AWQ&data=02%7C01%7C%7Cc61d05a97967456431b908d6ed531493%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636957338411324211&sdata=0BGNZjPJUzAWUjY%2BEpM3k12gBykke%2BoZZ%2BuvfFDE0aQ%3D&reserved=0.

kuoruan commented 5 years ago

Build test passed with snapshot sdk in https://downloads.openwrt.org/snapshots/targets/brcm2708/bcm2710/

kuoruan commented 5 years ago

Golang modules support added on openwrt/packages@7dc1f3e0293588ebc544e8eee104043dd0dacaf5 So you need a sdk after this date. Or update the golang package to latest https://github.com/openwrt/packages/tree/master/lang/golang