公司同事弄了個華爲雲的ARM64服務器,讓我幫忙部署咱們的服務,因此先試用了一下。
整體感受還行,使用的CentOS系統,yum也能用,epel
源也能夠用。可是SCL軟件集
用不了。node
uname -a Linux unispace-arm 4.14.0-115.8.1.el7a.aarch64 #1 SMP Wed Jun 5 15:01:21 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
服務器配置還行,內存又13G多,4核心的CPU,可是這裏看不到CPU的頻率。
由於整體性能還行,也可以安裝clang,因此編譯代碼能夠直接在上面進行,不須要在本地交叉編譯了。
安裝了一下clang
,而後編譯了一下gdal-2.4.1.tar.gz 試了一下。
所有命令記錄以下:ios
# 安裝編譯環境 sudo yum install clang libcxx-devel sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100 sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100 # 安裝依賴項 sudo yum install --downloaddir=./centos.arm64/gdal --downloadonly gdal-devel cd centos.arm64/gdal rm gdal-devel-1.11.4-3.el7.aarch64.rpm gdal-libs-1.11.4-3.el7.aarch64.rpm sudo rpm -ivhU * --nodeps --force # 下載源碼包 wget http://download.osgeo.org/gdal/2.4.1/gdal-2.4.1.tar.gz tar -xzf gdal-2.4.1.tar.gz cd gdal-2.4.1 # 生成Makefile ./configure # 順利生產GDALmake.opt後,修改它,把gcc替換爲clang,g++替換爲clang++,並在CXXFLAGS中添加 -I/usr/include/c++/v1 # 編譯(4核心,應該用四個線程進行編譯的) make
速度很慢,因此我直接把它丟後臺去跑了。晚上11點多開始跑的,到早上九點半還沒跑完。
c++
cat /proc/cpuinfo processor : 0 BogoMIPS : 100.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 2 processor : 1 BogoMIPS : 100.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 2 processor : 2 BogoMIPS : 100.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 2 processor : 3 BogoMIPS : 100.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 2
sudo lshw description: Computer product: KVM Virtual Machine vendor: QEMU version: 1.0 width: 64 bits capabilities: smbios-3.0.0 dmi-3.0.0 smp configuration: boot=normal uuid=0D0B6108-9D3F-9247-BA32-582E68E9A292 *-core description: Motherboard physical id: 0 *-cpu description: CPU vendor: QEMU physical id: 400 bus info: cpu@0 version: 1.0 slot: CPU 0 size: 1MHz capacity: 2GHz capabilities: cpufreq configuration: cores=4 enabledcores=4 threads=1 *-memory description: System Memory physical id: 1000 size: 14GiB capabilities: ecc configuration: errordetection=multi-bit-ecc *-bank description: DIMM RAM vendor: QEMU physical id: 0 slot: DIMM 0 size: 14GiB *-firmware description: BIOS vendor: EFI Development Kit II / OVMF physical id: 0 version: 0.0.0 date: 02/06/2015 size: 96KiB capabilities: uefi virtualmachine *-pci description: Host bridge product: QEMU PCIe Host bridge vendor: Red Hat, Inc. physical id: 100 bus info: pci@0000:00:00.0 version: 00 width: 32 bits clock: 33MHz *-pci:0 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 1 bus info: pci@0000:00:01.0 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:38 memory:eff0000-eff0fff ioport:1000(size=8192) memory:f000000-f1fffff ioport:8000000000(size=2097152) *-pci description: PCI bridge product: Red Hat, Inc. vendor: Red Hat, Inc. physical id: 0 bus info: pci@0000:01:00.0 version: 00 width: 64 bits clock: 66MHz capabilities: pci msi pm pciexpress normal_decode bus_master cap_list resources: memory:f100000-f1000ff ioport:1000(size=4096) memory:f000000-f0fffff ioport:8000000000(size=1048576) *-usb description: USB controller product: 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller vendor: Intel Corporation physical id: 1 bus info: pci@0000:02:01.0 version: 10 width: 32 bits clock: 33MHz capabilities: ehci bus_master configuration: driver=ehci-pci latency=0 resources: irq:38 memory:f000000-f000fff *-usbhost product: EHCI Host Controller vendor: Linux 4.14.0-115.8.1.el7a.aarch64 ehci_hcd physical id: 1 bus info: usb@1 logical name: usb1 version: 4.14 capabilities: usb-2.00 configuration: driver=hub slots=6 speed=480Mbit/s *-usb:0 description: Mouse product: QEMU USB Tablet vendor: QEMU physical id: 1 bus info: usb@1:1 version: 0.00 serial: 42 capabilities: usb-2.00 configuration: driver=usbhid maxpower=100mA speed=480Mbit/s *-usb:1 description: Keyboard product: QEMU USB Keyboard vendor: QEMU physical id: 2 bus info: usb@1:2 version: 0.00 serial: 42 capabilities: usb-2.00 configuration: driver=usbhid maxpower=100mA speed=480Mbit/s *-generic description: Unclassified device product: Virtio memory balloon vendor: Red Hat, Inc. physical id: 2 bus info: pci@0000:02:02.0 version: 00 width: 64 bits clock: 33MHz capabilities: bus_master cap_list configuration: driver=virtio-pci latency=0 resources: iomemory:800-7ff irq:40 ioport:1000(size=32) memory:8000000000-8000003fff *-virtio0 UNCLAIMED description: Virtual I/O device physical id: 0 bus info: virtio@0 configuration: driver=virtio_balloon *-display description: Display controller product: Virtio GPU vendor: Red Hat, Inc. physical id: 3 bus info: pci@0000:02:03.0 version: 01 width: 64 bits clock: 33MHz capabilities: msix bus_master cap_list configuration: driver=virtio-pci latency=0 resources: iomemory:800-7ff irq:37 memory:f001000-f001fff memory:8000004000-8000007fff *-virtio1 UNCLAIMED description: Virtual I/O device physical id: 0 bus info: virtio@1 configuration: driver=virtio_gpu *-pci:1 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 1.1 bus info: pci@0000:00:01.1 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:38 memory:eff1000-eff1fff ioport:3000(size=4096) memory:f200000-f3fffff ioport:8000200000(size=2097152) *-scsi description: SCSI storage controller product: Virtio SCSI vendor: Red Hat, Inc. physical id: 0 bus info: pci@0000:03:00.0 version: 01 width: 64 bits clock: 33MHz capabilities: scsi msix pm pciexpress bus_master cap_list configuration: driver=virtio-pci latency=0 resources: iomemory:800-7ff irq:38 memory:f200000-f200fff memory:8000200000-8000203fff *-virtio2 UNCLAIMED description: Virtual I/O device physical id: 0 bus info: virtio@2 configuration: driver=virtio_scsi *-pci:2 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 1.2 bus info: pci@0000:00:01.2 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:38 memory:eff2000-eff2fff ioport:4000(size=4096) memory:f400000-f5fffff ioport:8000400000(size=2097152) *-network description: Ethernet controller product: Virtio network device vendor: Red Hat, Inc. physical id: 0 bus info: pci@0000:04:00.0 version: 01 width: 64 bits clock: 33MHz capabilities: msix pm pciexpress bus_master cap_list rom configuration: driver=virtio-pci latency=0 resources: iomemory:800-7ff irq:38 memory:f440000-f440fff memory:8000400000-8000403fff memory:f400000-f43ffff *-virtio3 description: Ethernet interface physical id: 0 bus info: virtio@3 logical name: eth0 serial: fa:16:3e:ae:e5:5f capabilities: ethernet physical configuration: autonegotiation=off broadcast=yes driver=virtio_net driverversion=1.0.0 ip=192.168.1.148 link=yes multicast=yes *-pci:3 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 1.3 bus info: pci@0000:00:01.3 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:38 memory:eff3000-eff3fff ioport:5000(size=4096) memory:f600000-f7fffff ioport:8000600000(size=2097152) *-scsi description: SCSI storage controller product: Virtio block device vendor: Red Hat, Inc. physical id: 0 bus info: pci@0000:05:00.0 version: 01 width: 64 bits clock: 33MHz capabilities: scsi msix pm pciexpress bus_master cap_list configuration: driver=virtio-pci latency=0 resources: iomemory:800-7ff irq:38 memory:f600000-f600fff memory:8000600000-8000603fff *-virtio4 description: Virtual I/O device physical id: 0 bus info: virtio@4 logical name: /dev/vda size: 40GiB (42GB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: driver=virtio_blk guid=fa5d4cb9-c419-4dbe-afbe-bfc942811628 logicalsectorsize=512 sectorsize=512 *-volume:0 description: Windows FAT volume vendor: mkfs.fat physical id: 1 bus info: virtio@4,1 logical name: /dev/vda1 logical name: /boot/efi version: FAT32 serial: 23b4-3a70 size: 1023MiB capacity: 1023MiB capabilities: boot fat initialized configuration: FATs=2 filesystem=fat mount.fstype=vfat mount.options=rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro name=EFI System Partition state=mounted *-volume:1 description: EXT4 volume vendor: Linux physical id: 2 bus info: virtio@4,2 logical name: /dev/vda2 logical name: / version: 1.0 serial: ff97999c-00a4-4eeb-857c-90aac853140d size: 38GiB capabilities: journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized configuration: created=2019-05-30 16:20:13 filesystem=ext4 lastmountpoint=/ modified=2019-07-02 21:37:36 mount.fstype=ext4 mount.options=rw,relatime,data=ordered mounted=2019-07-02 21:37:38 state=mounted *-pci:4 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 1.4 bus info: pci@0000:00:01.4 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:38 memory:eff4000-eff4fff ioport:6000(size=4096) memory:f800000-f9fffff ioport:8000800000(size=2097152) *-scsi description: SCSI storage controller product: Virtio block device vendor: Red Hat, Inc. physical id: 0 bus info: pci@0000:06:00.0 version: 01 width: 64 bits clock: 33MHz capabilities: scsi msix pm pciexpress bus_master cap_list configuration: driver=virtio-pci latency=0 resources: iomemory:800-7ff irq:38 memory:f800000-f800fff memory:8000800000-8000803fff *-virtio5 description: Virtual I/O device physical id: 0 bus info: virtio@5 logical name: /dev/vdb size: 40GiB (42GB) configuration: driver=virtio_blk logicalsectorsize=512 sectorsize=512 *-pci:5 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 1.5 bus info: pci@0000:00:01.5 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:38 memory:eff5000-eff5fff ioport:7000(size=4096) memory:fa00000-fbfffff ioport:8000a00000(size=2097152) *-pci:6 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 1.6 bus info: pci@0000:00:01.6 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:38 memory:eff6000-eff6fff ioport:8000(size=4096) memory:fc00000-fdfffff ioport:8000c00000(size=2097152) *-pci:7 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 1.7 bus info: pci@0000:00:01.7 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:38 memory:eff7000-eff7fff ioport:9000(size=4096) memory:fe00000-fffffff ioport:8000e00000(size=2097152) *-pci:8 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 2 bus info: pci@0000:00:02.0 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:39 memory:eff8000-eff8fff ioport:a000(size=4096) memory:10000000-101fffff ioport:8001000000(size=2097152) *-pci:9 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 2.1 bus info: pci@0000:00:02.1 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:39 memory:eff9000-eff9fff ioport:b000(size=4096) memory:10200000-103fffff ioport:8001200000(size=2097152) *-pci:10 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 2.2 bus info: pci@0000:00:02.2 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:39 memory:effa000-effafff ioport:c000(size=4096) memory:10400000-105fffff ioport:8001400000(size=2097152) *-pci:11 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 2.3 bus info: pci@0000:00:02.3 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:39 memory:effb000-effbfff ioport:d000(size=4096) memory:10600000-107fffff ioport:8001600000(size=2097152) *-pci:12 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 2.4 bus info: pci@0000:00:02.4 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:39 memory:effc000-effcfff ioport:e000(size=4096) memory:10800000-109fffff ioport:8001800000(size=2097152) *-pci:13 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 2.5 bus info: pci@0000:00:02.5 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:39 memory:effd000-effdfff ioport:f000(size=4096) memory:10a00000-10bfffff ioport:8001a00000(size=2097152) *-pci:14 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 2.6 bus info: pci@0000:00:02.6 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:39 memory:effe000-effefff ioport:10000(size=4096) memory:10c00000-10dfffff ioport:8001c00000(size=2097152) *-pci:15 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 2.7 bus info: pci@0000:00:02.7 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:39 memory:efff000-effffff ioport:11000(size=4096) memory:10e00000-10ffffff ioport:8001e00000(size=2097152) *-pci:16 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 3 bus info: pci@0000:00:03.0 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:40 memory:12a00000-12a00fff ioport:12000(size=4096) memory:11000000-111fffff ioport:8002000000(size=2097152) *-pci:17 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 3.1 bus info: pci@0000:00:03.1 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:40 memory:12a01000-12a01fff ioport:13000(size=4096) memory:11200000-113fffff ioport:8002200000(size=2097152) *-pci:18 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 3.2 bus info: pci@0000:00:03.2 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:40 memory:12a02000-12a02fff ioport:14000(size=4096) memory:11400000-115fffff ioport:8002400000(size=2097152) *-pci:19 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 3.3 bus info: pci@0000:00:03.3 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:40 memory:12a03000-12a03fff ioport:15000(size=4096) memory:11600000-117fffff ioport:8002600000(size=2097152) *-pci:20 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 3.4 bus info: pci@0000:00:03.4 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:40 memory:12a04000-12a04fff ioport:16000(size=4096) memory:11800000-119fffff ioport:8002800000(size=2097152) *-pci:21 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 3.5 bus info: pci@0000:00:03.5 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:40 memory:12a05000-12a05fff ioport:17000(size=4096) memory:11a00000-11bfffff ioport:8002a00000(size=2097152) *-pci:22 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 3.6 bus info: pci@0000:00:03.6 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:40 memory:12a06000-12a06fff ioport:18000(size=4096) memory:11c00000-11dfffff ioport:8002c00000(size=2097152) *-pci:23 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 3.7 bus info: pci@0000:00:03.7 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:40 memory:12a07000-12a07fff ioport:19000(size=4096) memory:11e00000-11ffffff ioport:8002e00000(size=2097152) *-pci:24 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 4 bus info: pci@0000:00:04.0 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:37 memory:12a08000-12a08fff ioport:1a000(size=4096) memory:12000000-121fffff ioport:8003000000(size=2097152) *-pci:25 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 4.1 bus info: pci@0000:00:04.1 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:37 memory:12a09000-12a09fff ioport:1b000(size=4096) memory:12200000-123fffff ioport:8003200000(size=2097152) *-pci:26 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 4.2 bus info: pci@0000:00:04.2 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:37 memory:12a0a000-12a0afff ioport:1c000(size=4096) memory:12400000-125fffff ioport:8003400000(size=2097152) *-pci:27 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 4.3 bus info: pci@0000:00:04.3 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:37 memory:12a0b000-12a0bfff ioport:1d000(size=4096) memory:12600000-127fffff ioport:8003600000(size=2097152) *-pci:28 description: PCI bridge product: QEMU PCIe Root port vendor: Red Hat, Inc. physical id: 4.4 bus info: pci@0000:00:04.4 version: 00 width: 32 bits clock: 33MHz capabilities: pci pciexpress msix normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:37 memory:12a0c000-12a0cfff ioport:1e000(size=4096) memory:12800000-129fffff ioport:8003800000(size=2097152) *-pnp00:00 product: PnP device PNP0c02 physical id: 1 capabilities: pnp configuration: driver=system