龙芯处理器下面的golang第三方库或框架实地编译与运行测试

编译运行机器环境:

CPU龙芯3A3000
操作系统中标麒麟v7.0
gcc版本4.9

先说不能用的吧:

godror:用于访问oracle的,编译项目没有问题,但是运行时依赖的oracle Instant Client没有mips架构的.so库文件。

其他常用的编译运行没问题的(直接贴的go build的时候自动下载第三方库的内容,太多了懒得整理名称了):

go: downloading github.com/lib/pq v1.3.0
go: downloading github.com/robfig/cron/v3 v3.0.1
go: downloading github.com/kardianos/service v1.0.0
go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0
go: downloading github.com/Shopify/sarama v1.25.0
go: downloading go.uber.org/zap v1.10.0
go: downloading github.com/appleboy/gin-jwt/v2 v2.6.3
go: downloading github.com/gin-gonic/gin v1.5.0
go: downloading github.com/spf13/viper v1.6.2
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/google/uuid v1.1.1
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading gopkg.in/yaml.v2 v2.2.8
go: downloading github.com/spf13/afero v1.1.2
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/spf13/cast v1.3.0
go: downloading github.com/ugorji/go v1.1.7
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/mattn/go-isatty v0.0.9
go: downloading github.com/eapache/go-resiliency v1.1.0
go: downloading golang.org/x/net v0.0.0-20190522155817-f3200d17e092
go: downloading github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a
go: downloading github.com/ugorji/go/codec v1.1.7
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading gopkg.in/ini.v1 v1.51.0
go: downloading github.com/magiconair/properties v1.8.1
go: downloading gopkg.in/jcmturner/gokrb5.v7 v7.2.3
go: downloading go.uber.org/multierr v1.1.0
go: downloading golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
go: downloading github.com/eapache/queue v1.1.0
go: downloading github.com/pierrec/lz4 v2.2.6+incompatible
go: downloading github.com/gin-contrib/sse v0.1.0
go: downloading golang.org/x/text v0.3.0
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: downloading github.com/klauspost/compress v1.9.7
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading go.uber.org/atomic v1.4.0
go: downloading gopkg.in/go-playground/validator.v9 v9.29.1
go: downloading github.com/leodido/go-urn v1.1.0
go: downloading github.com/go-playground/universal-translator v0.16.0
go: downloading github.com/go-playground/locales v0.12.1
go: downloading github.com/golang/protobuf v1.3.2
go: downloading github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21
go: downloading github.com/jcmturner/gofork v0.0.0-20190328161633-dc7c13fece03
go: downloading gopkg.in/jcmturner/dnsutils.v1 v1.0.1
go: downloading gopkg.in/jcmturner/rpc.v1 v1.1.0
go: downloading github.com/hashicorp/go-uuid v1.0.1
go: downloading golang.org/x/crypto v0.0.0-20190404164418-38d8ce5564a5
go: downloading gopkg.in/jcmturner/aescts.v1 v1.0.1
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/nsqio/go-nsq v1.0.8
go: downloading github.com/knocknote/vitess-sqlparser v0.0.0-20200129061755-eb7ce11aa4dd
go: downloading github.com/juju/errors v0.0.0-20170703010042-c7d06af17c68

其实就是有涉及到cgo的小心点,要看cgo引用的东西有没有对应的龙芯架构的库文件,别的和x86架构区别不大,程序编译后跑起来也很快,比java快多了。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

peihexian

你的鼓励是我创作的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值