文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== ansi2html - Linux コンソールの ANSI カラー出力を HTML 変換 ====== {{linux:ansi2html_dmesg.png?600|ansi2html dmesg}}\\ ソースコード: [[https://github.com/kilobyte/colorized-logs|GitHub - kilobyte/colorized-logs: tools for logs with ANSI color]]\\ [[https://github.com/pycontribs/ansi2html|pycontribs/ansi2html: Convert text with ansi color codes to HTML]]\\ **ansi2html** コマンドは Linux ターミナルのカラー出力を HTML へ変換する。\\ ===== インストール ===== **ansi2html** コマンドは **colorized-logs** または **python3-ansi2html** パッケージに含まれています😊\\ **pipetty** コマンドなども必要な場合は **colorized-logs** パッケージをインストールする。\\ **Fedora**\\ <WRAP color_term> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269">dnf</font> provides ansi2html </pre></html></WRAP> <WRAP color_result><html><pre> Last metadata expiration check: 6 days, 8:00:19 ago on 2021年03月24日 02時11分04秒. colorized-logs-2.5-4.fc33.x86_64 : Tools for logs with ANSI color Repo : fedora Matched from: Filename : /usr/bin/<span class="BOLD"></span><span class=HIM>ansi2html</span> python3-<span class="BOLD"></span><span class=HIM>ansi2html</span>-1.5.1-10.fc33.noarch : Python module that converts text with ANSI color to HTML Repo : fedora Matched from: Filename : /usr/bin/<span class="BOLD"></span><span class=HIM>ansi2html</span> </pre></html></WRAP> </WRAP> ここでは **colorized-logs** パッケージをインストールする。\\ <WRAP color_term> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">dnf</font> install <font color="#A347BA">-y</font> colorized-logs </pre></html></WRAP> <WRAP color_result_long min-width_600><html><pre> Last metadata expiration check: 5:46:09 ago on 2021年03月30日 04時39分50秒. Dependencies resolved. ==================================================================================================== Package Architecture Version Repository Size ==================================================================================================== Installing: <span class="BOLD"></span><span class=HIG>colorized-logs</span> x86_64 2.5-4.fc33 fedora 31 k Transaction Summary ==================================================================================================== Install 1 Package Total download size: 31 k Installed size: 75 k Downloading Packages: colorized-logs-2.5-4.fc33.x86_64.rpm 87 kB/s | 31 kB 00:00 ---------------------------------------------------------------------------------------------------- Total 15 kB/s | 31 kB 00:02 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : colorized-logs-2.5-4.fc33.x86_64 1/1 Running scriptlet: colorized-logs-2.5-4.fc33.x86_64 1/1 Verifying : colorized-logs-2.5-4.fc33.x86_64 1/1 Installed: colorized-logs-2.5-4.fc33.x86_64 Complete! </pre></html></WRAP> </WRAP> **DietPi**\\ <WRAP color_term> <WRAP color_command><html><pre> <font color="#AFFF00"><b>$</b></font> <font color="#26A269">apt-file</font> search ansi2html </pre></html></WRAP> <WRAP color_result><html><pre> colorized-logs: /usr/bin/ansi2html colorized-logs: /usr/share/man/man1/ansi2html.1.gz gitlab: /usr/share/gitlab/lib/gitlab/ci/ansi2html.rb gitlab: /usr/share/gitlab/spec/lib/gitlab/ci/ansi2html_spec.rb </pre></html></WRAP> <WRAP color_command><html><pre> <font color="#AFFF00"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">apt</font> install <font color="#A347BA">-y</font> colorized-logs </pre></html></WRAP> <WRAP color_result><html><pre> Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: less Suggested packages: colordiff colormake ccze colortail The following NEW packages will be installed: colorized-logs less 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 132 kB of archives. After this operation, 302 kB of additional disk space will be used. Get:1 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf less armhf 551-2 [117 kB] Get:2 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf colorized-logs armhf 2.5-1 [14.9 kB] Fetched 132 kB in 2s (59.0 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package less. (Reading database ... 67623 files and directories currently installed.) Preparing to unpack .../archives/less_551-2_armhf.deb ... Unpacking less (551-2) ... Selecting previously unselected package colorized-logs. Preparing to unpack .../colorized-logs_2.5-1_armhf.deb ... Unpacking colorized-logs (2.5-1) ... Setting up less (551-2) ... Setting up colorized-logs (2.5-1) ... Processing triggers for mailcap (3.69) ... </pre></html></WRAP> </WRAP> ===== Linux ターミナルのカラー出力を HTML へ変換 ===== <WRAP color_term> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269">dmesg</font> <font color="#A347BA">--color=always</font> <font color="#2A7BDE"><b>|</b></font> <font color="#26A269">ansi2html</font> <font color="#2A7BDE"><b>></b></font> dmesg.html </pre></html></WRAP> <WRAP color_result_long><html><pre> <span class=GRN>[ 0.000000] </span>Linux version 5.4.91-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 9.3.0 (GCC)) #1 SMP Mon Jan 25 18:39:31 UTC 2021 <span class=GRN>[ 0.000000] </span><span class=YEL>Command line</span>: initrd=\initrd.img panic=-1 nr_cpus=4 swiotlb=force pty.legacy_count=0 <span class=GRN>[ 0.000000] </span>KERNEL supported cpus: <span class=GRN>[ 0.000000] </span> Intel GenuineIntel <span class=GRN>[ 0.000000] </span> AMD AuthenticAMD <span class=GRN>[ 0.000000] </span> Centaur CentaurHauls <span class=GRN>[ 0.000000] </span><span class=YEL>x86/fpu</span>: Supporting XSAVE feature 0x001: 'x87 floating point registers' <span class=GRN>[ 0.000000] </span><span class=YEL>x86/fpu</span>: Supporting XSAVE feature 0x002: 'SSE registers' <span class=GRN>[ 0.000000] </span><span class=YEL>x86/fpu</span>: Supporting XSAVE feature 0x004: 'AVX registers' <span class=GRN>[ 0.000000] </span><span class=YEL>x86/fpu</span>: xstate_offset[2]: 576, xstate_sizes[2]: 256 <span class=GRN>[ 0.000000] </span><span class=YEL>x86/fpu</span>: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format. <span class=GRN>[ 0.000000] </span>BIOS-provided physical RAM map: <span class=GRN>[ 0.000000] </span><span class=YEL>BIOS-e820</span>: [mem 0x0000000000000000-0x000000000009ffff] usable <span class=GRN>[ 0.000000] </span><span class=YEL>BIOS-e820</span>: [mem 0x00000000000e0000-0x00000000000e0fff] reserved <span class=GRN>[ 0.000000] </span><span class=YEL>BIOS-e820</span>: [mem 0x0000000000100000-0x00000000001fffff] ACPI data <span class=GRN>[ 0.000000] </span><span class=YEL>BIOS-e820</span>: [mem 0x0000000000200000-0x00000000f7ffffff] usable <span class=GRN>[ 0.000000] </span><span class=YEL>BIOS-e820</span>: [mem 0x0000000100000000-0x00000002041fffff] usable <span class=GRN>[ 0.000000] </span><span class=YEL>NX (Execute Disable) protection</span>: active <span class=GRN>[ 0.000000] </span>DMI not present or invalid. <span class=GRN>[ 0.000000] </span><span class=YEL>Hypervisor detected</span>: Microsoft Hyper-V <span class=GRN>[ 0.000000] </span><span class=YEL>Hyper-V</span>: features 0x2e7f, privilege high: 0x3b8030, hints 0x26c2c, misc 0xe0bed7b2 <span class=GRN>[ 0.000000] </span>Hyper-V Host Build:21322-10.0-1-0.1000 <span class=GRN>[ 0.000000] </span><span class=YEL>Hyper-V</span>: LAPIC Timer Frequency: 0x1e8480 <span class=GRN>[ 0.000000] </span><span class=YEL>tsc</span>: Marking TSC unstable due to running on Hyper-V <span class=GRN>[ 0.000000] </span><span class=YEL>Hyper-V</span>: Using hypercall for remote TLB flush <span class=GRN>[ 0.000000] </span><span class=YEL>clocksource</span>: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns <span class=GRN>[ 0.000002] </span><span class=YEL>tsc</span>: Detected 2394.559 MHz processor <span class=GRN>[ 0.000012] </span><span class=YEL>e820</span>: update [mem 0x00000000-0x00000fff] usable ==> reserved <span class=GRN>[ 0.000014] </span><span class=YEL>e820</span>: remove [mem 0x000a0000-0x000fffff] usable <span class=GRN>[ 0.000016] </span>last_pfn = 0x204200 max_arch_pfn = 0x400000000 <span class=GRN>[ 0.000047] </span><span class=YEL>MTRR default type</span>: uncachable <span class=GRN>[ 0.000047] </span>MTRR fixed ranges disabled: <span class=GRN>[ 0.000049] </span> 00000-FFFFF uncachable <span class=GRN>[ 0.000049] </span>MTRR variable ranges disabled: <span class=GRN>[ 0.000049] </span> 0 disabled <span class=GRN>[ 0.000050] </span> 1 disabled <span class=GRN>[ 0.000050] </span> 2 disabled <span class=GRN>[ 0.000050] </span> 3 disabled <span class=GRN>[ 0.000051] </span> 4 disabled <span class=GRN>[ 0.000051] </span> 5 disabled <span class=GRN>[ 0.000051] </span> 6 disabled <span class=GRN>[ 0.000052] </span> 7 disabled <span class=GRN>[ 0.000052] </span>Disabled <span class=GRN>[ 0.000053] </span><span class=YEL>x86/PAT</span>: MTRRs disabled, skipping PAT initialization too. <span class=GRN>[ 0.000061] </span>CPU MTRRs all blank - virtualized system. <span class=GRN>[ 0.000062] </span><span class=YEL>x86/PAT</span>: Configuration [0-7]: WB WT UC- UC WB WT UC- UC <span class=GRN>[ 0.000063] </span>last_pfn = 0xf8000 max_arch_pfn = 0x400000000 <span class=GRN>[ 0.000565] </span><span class=YEL>RAMDISK</span>: [mem 0x03035000-0x03043fff] <span class=GRN>[ 0.000570] </span><span class=YEL>ACPI</span>: Early table checksum verification disabled <span class=GRN>[ 0.000585] </span><span class=YEL>ACPI</span>: RSDP 0x00000000000E0000 000024 (v02 VRTUAL) <span class=GRN>[ 0.000588] </span><span class=YEL>ACPI</span>: XSDT 0x0000000000100000 000044 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001) <span class=GRN>[ 0.000593] </span><span class=YEL>ACPI</span>: FACP 0x0000000000101000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001) <span class=GRN>[ 0.000597] </span><span class=YEL>ACPI</span>: DSDT 0x00000000001011B8 01E184 (v02 MSFTVM DSDT01 00000001 MSFT 05000000) <span class=GRN>[ 0.000600] </span><span class=YEL>ACPI</span>: FACS 0x0000000000101114 000040 <span class=GRN>[ 0.000603] </span><span class=YEL>ACPI</span>: OEM0 0x0000000000101154 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001) <span class=GRN>[ 0.000605] </span><span class=YEL>ACPI</span>: SRAT 0x000000000011F33C 0002F0 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001) <span class=GRN>[ 0.000608] </span><span class=YEL>ACPI</span>: APIC 0x000000000011F62C 000068 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001) <span class=GRN>[ 0.000614] </span><span class=YEL>ACPI</span>: Local APIC address 0xfee00000 <span class=GRN>[ 0.000897] </span>Zone ranges: <span class=GRN>[ 0.000898] </span> DMA [mem 0x0000000000001000-0x0000000000ffffff] <span class=GRN>[ 0.000900] </span> DMA32 [mem 0x0000000001000000-0x00000000ffffffff] <span class=GRN>[ 0.000901] </span> Normal [mem 0x0000000100000000-0x00000002041fffff] <span class=GRN>[ 0.000901] </span>Movable zone start for each node <span class=GRN>[ 0.000902] </span>Early memory node ranges <span class=GRN>[ 0.000903] </span><span class=YEL> node 0</span>: [mem 0x0000000000001000-0x000000000009ffff] <span class=GRN>[ 0.000904] </span><span class=YEL> node 0</span>: [mem 0x0000000000200000-0x00000000f7ffffff] <span class=GRN>[ 0.000904] </span><span class=YEL> node 0</span>: [mem 0x0000000100000000-0x00000002041fffff] <span class=GRN>[ 0.001546] </span><span class=YEL>Zeroed struct page in unavailable ranges</span>: 16225 pages <span class=GRN>[ 0.001548] </span>Initmem setup node 0 [mem 0x0000000000001000-0x00000002041fffff] <span class=GRN>[ 0.001549] </span><span class=YEL>On node 0 totalpages</span>: 2080927 <span class=GRN>[ 0.001550] </span><span class=YEL> DMA zone</span>: 59 pages used for memmap <span class=GRN>[ 0.001551] </span><span class=YEL> DMA zone</span>: 22 pages reserved <span class=GRN>[ 0.001551] </span><span class=YEL> DMA zone</span>: 3743 pages, LIFO batch:0 <span class=GRN>[ 0.001595] </span><span class=YEL> DMA32 zone</span>: 16320 pages used for memmap <span class=GRN>[ 0.001596] </span><span class=YEL> DMA32 zone</span>: 1011712 pages, LIFO batch:63 <span class=GRN>[ 0.024987] </span><span class=YEL> Normal zone</span>: 16648 pages used for memmap <span class=GRN>[ 0.024988] </span><span class=YEL> Normal zone</span>: 1065472 pages, LIFO batch:63 <span class=GRN>[ 0.026203] </span><span class=YEL>ACPI</span>: Local APIC address 0xfee00000 <span class=GRN>[ 0.026212] </span><span class=YEL>ACPI</span>: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1]) <span class=GRN>[ 0.026816] </span><span class=YEL>IOAPIC[0]</span>: apic_id 4, version 17, address 0xfec00000, GSI 0-23 <span class=GRN>[ 0.026820] </span><span class=YEL>ACPI</span>: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) <span class=GRN>[ 0.026823] </span><span class=YEL>ACPI</span>: IRQ9 used by override. <span class=GRN>[ 0.026826] </span>Using ACPI (MADT) for SMP configuration information <span class=GRN>[ 0.026836] </span><span class=YEL>smpboot</span>: Allowing 4 CPUs, 0 hotplug CPUs <span class=GRN>[ 0.026849] </span>[mem 0xf8000000-0xffffffff] available for PCI devices <span class=GRN>[ 0.026850] </span>Booting paravirtualized kernel on Hyper-V <span class=GRN>[ 0.026852] </span><span class=YEL>clocksource</span>: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns <span class=GRN>[ 0.158906] </span><span class=YEL>setup_percpu</span>: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:4 nr_node_ids:1 <span class=GRN>[ 0.159312] </span><span class=YEL>percpu</span>: Embedded 50 pages/cpu s167256 r8192 d29352 u524288 <span class=GRN>[ 0.159316] </span><span class=YEL>pcpu-alloc</span>: s167256 r8192 d29352 u524288 alloc=1*2097152 <span class=GRN>[ 0.159317] </span><span class=YEL>pcpu-alloc</span>: [0] 0 1 2 3 <span class=GRN>[ 0.159329] </span><span class=YEL>Built 1 zonelists, mobility grouping on. Total pages</span>: 2047878 <span class=GRN>[ 0.159330] </span><span class=YEL>Kernel command line</span>: initrd=\initrd.img panic=-1 nr_cpus=4 swiotlb=force pty.legacy_count=0 <span class=GRN>[ 0.161456] </span><span class=YEL>Dentry cache hash table entries</span>: 1048576 (order: 11, 8388608 bytes, linear) <span class=GRN>[ 0.162492] </span><span class=YEL>Inode-cache hash table entries</span>: 524288 (order: 10, 4194304 bytes, linear) <span class=GRN>[ 0.162553] </span><span class=YEL>mem auto-init</span>: stack:off, heap alloc:off, heap free:off <span class=GRN>[ 0.185016] </span><span class=YEL>Memory</span>: 4094392K/8323708K available (16390K kernel code, 1624K rwdata, 3180K rodata, 1572K init, 2216K bss, 243108K reserved, 0K cma-reserved) <span class=GRN>[ 0.185360] </span><span class=YEL>SLUB</span>: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 <span class=GRN>[ 0.185366] </span><span class=YEL>Kernel/User page tables isolation</span>: enabled <span class=GRN>[ 0.185378] </span><span class=YEL>ftrace</span>: allocating 44895 entries in 176 pages <span class=GRN>[ 0.200924] </span><span class=YEL>rcu</span>: Hierarchical RCU implementation. <span class=GRN>[ 0.200926] </span><span class=YEL>rcu</span>: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4. <span class=GRN>[ 0.200926] </span> All grace periods are expedited (rcu_expedited). <span class=GRN>[ 0.200927] </span><span class=YEL>rcu</span>: RCU calculated value of scheduler-enlistment delay is 10 jiffies. <span class=GRN>[ 0.200927] </span><span class=YEL>rcu</span>: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 <span class=GRN>[ 0.203376] </span>Using NULL legacy PIC <span class=GRN>[ 0.203377] </span><span class=YEL>NR_IRQS</span>: 16640, nr_irqs: 456, preallocated irqs: 0 <span class=GRN>[ 0.203871] </span><span class=YEL>random</span>: crng done (trusting CPU's manufacturer) <span class=GRN>[ 0.203891] </span><span class=YEL>Console</span>: colour dummy device 80x25 <span class=GRN>[ 0.203894] </span><span class=YEL>printk</span>: console [tty0] enabled <span class=GRN>[ 0.203899] </span><span class=YEL>ACPI</span>: Core revision 20190816 <span class=GRN>[ 0.204020] </span>Failed to register legacy timer interrupt <span class=GRN>[ 0.204021] </span><span class=YEL>APIC</span>: Switch to symmetric I/O mode setup <span class=GRN>[ 0.204041] </span><span class=YEL>Hyper-V</span>: Using IPI hypercalls <span class=GRN>[ 0.204041] </span><span class=YEL>Hyper-V</span>: Using enlightened APIC (xapic mode) <span class=GRN>[ 0.204146] </span>Calibrating delay loop (skipped), value calculated using timer frequency.. 4789.11 BogoMIPS (lpj=23945590) <span class=GRN>[ 0.204148] </span><span class=YEL>pid_max</span>: default: 32768 minimum: 301 <span class=GRN>[ 0.204159] </span><span class=YEL>LSM</span>: Security Framework initializing <span class=GRN>[ 0.204177] </span><span class=YEL>Mount-cache hash table entries</span>: 16384 (order: 5, 131072 bytes, linear) <span class=GRN>[ 0.204189] </span><span class=YEL>Mountpoint-cache hash table entries</span>: 16384 (order: 5, 131072 bytes, linear) <span class=GRN>[ 0.204403] </span><span class=YEL>Last level iTLB entries</span>: 4KB 512, 2MB 8, 4MB 8 <span class=GRN>[ 0.204404] </span><span class=YEL>Last level dTLB entries</span>: 4KB 512, 2MB 32, 4MB 32, 1GB 0 <span class=GRN>[ 0.204407] </span><span class=YEL>Spectre V1 </span>: Mitigation: usercopy/swapgs barriers and __user pointer sanitization <span class=GRN>[ 0.204408] </span><span class=YEL>Spectre V2 </span>: Mitigation: Full generic retpoline <span class=GRN>[ 0.204409] </span><span class=YEL>Spectre V2 </span>: Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch <span class=GRN>[ 0.204409] </span><span class=YEL>Spectre V2 </span>: Enabling Restricted Speculation for firmware calls <span class=GRN>[ 0.204410] </span><span class=YEL>Spectre V2 </span>: mitigation: Enabling conditional Indirect Branch Prediction Barrier <span class=GRN>[ 0.204411] </span><span class=YEL>Spectre V2 </span>: User space: Mitigation: STIBP via seccomp and prctl <span class=GRN>[ 0.204412] </span><span class=YEL>Speculative Store Bypass</span>: Mitigation: Speculative Store Bypass disabled via prctl and seccomp <span class=GRN>[ 0.204415] </span><span class=YEL>SRBDS</span>: Unknown: Dependent on hypervisor status <span class=GRN>[ 0.204416] </span><span class=YEL>MDS</span>: Vulnerable: Clear CPU buffers attempted, no microcode <span class=GRN>[ 0.204580] </span><span class=YEL>Freeing SMP alternatives memory</span>: 48K <span class=GRN>[ 0.204663] </span><span class=YEL>smpboot</span>: CPU0: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz (family: 0x6, model: 0x3a, stepping: 0x9) <span class=GRN>[ 0.204982] </span><span class=YEL>Performance Events</span>: unsupported p6 CPU model 58 no PMU driver, software events only. <span class=GRN>[ 0.205006] </span><span class=YEL>rcu</span>: Hierarchical SRCU implementation. <span class=GRN>[ 0.205063] </span><span class=YEL>smp</span>: Bringing up secondary CPUs ... <span class=GRN>[ 0.205119] </span><span class=YEL>x86</span>: Booting SMP configuration: <span class=GRN>[ 0.205120] </span><span class=YEL>.... node #0, CPUs</span>: #1 <span class=GRN>[ 0.205640] </span><span class="BOLD">MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details.</span> <span class=GRN>[ 0.205640] </span><span class="BLK BWHI"></span><span class="BLK BRED"> #2 #3</span> <span class=GRN>[ 0.205640] </span><span class=YEL>smp</span>: Brought up 1 node, 4 CPUs <span class=GRN>[ 0.205640] </span><span class=YEL>smpboot</span>: Max logical packages: 1 <span class=GRN>[ 0.205640] </span><span class=YEL>smpboot</span>: Total of 4 processors activated (19156.47 BogoMIPS) <span class=GRN>[ 0.226388] </span>node 0 initialised, 996552 pages in 20ms <span class=GRN>[ 0.226470] </span><span class=YEL>devtmpfs</span>: initialized <span class=GRN>[ 0.226470] </span><span class=YEL>clocksource</span>: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns <span class=GRN>[ 0.226470] </span><span class=YEL>futex hash table entries</span>: 1024 (order: 4, 65536 bytes, linear) <span class=GRN>[ 0.226470] </span><span class=YEL>xor</span>: automatically using best checksumming function avx <span class=GRN>[ 0.226470] </span><span class=YEL>NET</span>: Registered protocol family 16 <span class=GRN>[ 0.226470] </span><span class=YEL>ACPI</span>: bus type PCI registered <span class=GRN>[ 0.226470] </span><span class=YEL>PCI</span><span class=RED>: Fatal: No config space access function found</span> <span class=GRN>[ 0.227530] </span>HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages <span class=GRN>[ 0.234294] </span><span class=YEL>raid6</span>: Forced to use recovery algorithm intx1 <span class=GRN>[ 0.234294] </span><span class=YEL>raid6</span>: Forced gen() algo avx2x4 <span class=GRN>[ 0.234294] </span><span class=YEL>ACPI</span>: Added _OSI(Module Device) <span class=GRN>[ 0.234294] </span><span class=YEL>ACPI</span>: Added _OSI(Processor Device) <span class=GRN>[ 0.234294] </span><span class=YEL>ACPI</span>: Added _OSI(3.0 _SCP Extensions) <span class=GRN>[ 0.234294] </span><span class=YEL>ACPI</span>: Added _OSI(Processor Aggregator Device) <span class=GRN>[ 0.234294] </span><span class=YEL>ACPI</span>: Added _OSI(Linux-Dell-Video) <span class=GRN>[ 0.234294] </span><span class=YEL>ACPI</span>: Added _OSI(Linux-Lenovo-NV-HDMI-Audio) <span class=GRN>[ 0.234294] </span><span class=YEL>ACPI</span>: Added _OSI(Linux-HPI-Hybrid-Graphics) <span class=GRN>[ 0.247360] </span><span class=YEL>ACPI</span>: 1 ACPI AML tables successfully acquired and loaded <span class=GRN>[ 0.248339] </span><span class=YEL>ACPI</span>: Interpreter enabled <span class=GRN>[ 0.248339] </span><span class=YEL>ACPI</span>: (supports S0 S5) <span class=GRN>[ 0.248339] </span><span class=YEL>ACPI</span>: Using IOAPIC for interrupt routing <span class=GRN>[ 0.248339] </span><span class=YEL>PCI</span>: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug <span class=GRN>[ 0.248339] </span><span class=YEL>ACPI</span>: Enabled 2 GPEs in block 00 to 0F <span class=GRN>[ 0.248339] </span><span class=YEL>iommu</span>: Default domain type: Translated <span class=GRN>[ 0.248339] </span>SCSI subsystem initialized <span class=GRN>[ 0.248363] </span><span class=YEL>hv_vmbus</span>: Vmbus version:5.0 <span class=GRN>[ 0.248363] </span><span class=YEL>PCI</span>: Using ACPI for IRQ routing <span class=GRN>[ 0.248363] </span><span class=YEL>PCI</span><span class="BOLD">: System does not support PCI</span> <span class=GRN>[ 0.248363] </span><span class=YEL>hv_vmbus</span>: Unknown GUID: c376c1c3-d276-48d2-90a9-c04748072c60 <span class=GRN>[ 0.248363] </span><span class=YEL>clocksource</span>: Switched to clocksource hyperv_clocksource_tsc_page <span class=GRN>[ 0.359068] </span><span class=YEL>VFS</span>: Disk quotas dquot_6.6.0 <span class=GRN>[ 0.359078] </span><span class=YEL>VFS</span>: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) <span class=GRN>[ 0.359096] </span><span class=YEL>FS-Cache</span>: Loaded <span class=GRN>[ 0.359120] </span><span class=YEL>pnp</span>: PnP ACPI init <span class=GRN>[ 0.359314] </span><span class=YEL>pnp 00:00</span>: Plug and Play ACPI device, IDs PNP0b00 (active) <span class=GRN>[ 0.359332] </span><span class=YEL>pnp</span>: PnP ACPI: found 1 devices <span class=GRN>[ 0.367685] </span><span class=YEL>NET</span>: Registered protocol family 2 <span class=GRN>[ 0.367932] </span><span class=YEL>tcp_listen_portaddr_hash hash table entries</span>: 4096 (order: 4, 65536 bytes, linear) <span class=GRN>[ 0.367945] </span><span class=YEL>TCP established hash table entries</span>: 65536 (order: 7, 524288 bytes, linear) <span class=GRN>[ 0.368045] </span><span class=YEL>TCP bind hash table entries</span>: 65536 (order: 8, 1048576 bytes, linear) <span class=GRN>[ 0.368607] </span><span class=YEL>TCP</span>: Hash tables configured (established 65536 bind 65536) <span class=GRN>[ 0.368635] </span><span class=YEL>UDP hash table entries</span>: 4096 (order: 5, 131072 bytes, linear) <span class=GRN>[ 0.368655] </span><span class=YEL>UDP-Lite hash table entries</span>: 4096 (order: 5, 131072 bytes, linear) <span class=GRN>[ 0.368702] </span><span class=YEL>NET</span>: Registered protocol family 1 <span class=GRN>[ 0.369162] </span><span class=YEL>RPC</span>: Registered named UNIX socket transport module. <span class=GRN>[ 0.369163] </span><span class=YEL>RPC</span>: Registered udp transport module. <span class=GRN>[ 0.369164] </span><span class=YEL>RPC</span>: Registered tcp transport module. <span class=GRN>[ 0.369165] </span><span class=YEL>RPC</span>: Registered tcp NFSv4.1 backchannel transport module. <span class=GRN>[ 0.369167] </span><span class=YEL>PCI</span>: CLS 0 bytes, default 64 <span class=GRN>[ 0.369204] </span>Trying to unpack rootfs image as initramfs... <span class=GRN>[ 0.369336] </span><span class=YEL>Freeing initrd memory</span>: 60K <span class=GRN>[ 0.369339] </span><span class=YEL>PCI-DMA</span>: Using software bounce buffering for IO (SWIOTLB) <span class=GRN>[ 0.369340] </span><span class=YEL>software IO TLB</span>: mapped [mem 0xf4000000-0xf8000000] (64MB) <span class=GRN>[ 0.369377] </span><span class=YEL>KVM</span>: vmx: using Hyper-V Enlightened VMCS <span class=GRN>[ 0.372918] </span><span class=YEL>kvm</span><span class=RED>: already loaded the other module</span> <span class=GRN>[ 0.375220] </span>Initialise system trusted keyrings <span class=GRN>[ 0.375372] </span><span class=YEL>workingset</span>: timestamp_bits=46 max_order=21 bucket_order=0 <span class=GRN>[ 0.376455] </span><span class=YEL>squashfs</span>: version 4.0 (2009/01/31) Phillip Lougher <span class=GRN>[ 0.376687] </span><span class=YEL>NFS</span>: Registering the id_resolver key type <span class=GRN>[ 0.376691] </span>Key type id_resolver registered <span class=GRN>[ 0.376692] </span>Key type id_legacy registered <span class=GRN>[ 0.376695] </span>Installing knfsd (copyright (C) 1996 okir@monad.swb.de). <span class=GRN>[ 0.377635] </span>Key type cifs.idmap registered <span class=GRN>[ 0.377721] </span><span class=YEL>fuse</span>: init (API version 7.31) <span class=GRN>[ 0.377915] </span>SGI XFS with ACLs, security attributes, realtime, scrub, repair, no debug enabled <span class=GRN>[ 0.378331] </span><span class=YEL>9p</span>: Installing v9fs 9p2000 file system support <span class=GRN>[ 0.378348] </span><span class=YEL>FS-Cache</span>: Netfs '9p' registered for caching <span class=GRN>[ 0.378503] </span><span class=YEL>FS-Cache</span>: Netfs 'ceph' registered for caching <span class=GRN>[ 0.378506] </span><span class=YEL>ceph</span>: loaded (mds proto 32) <span class=GRN>[ 0.382334] </span><span class=YEL>NET</span>: Registered protocol family 38 <span class=GRN>[ 0.382337] </span>Key type asymmetric registered <span class=GRN>[ 0.382337] </span>Asymmetric key parser 'x509' registered <span class=GRN>[ 0.382349] </span>Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250) <span class=GRN>[ 0.382682] </span><span class=YEL>hv_vmbus</span>: registering driver hv_pci <span class=GRN>[ 0.382959] </span><span class=YEL>ACPI</span>: AC Adapter [AC1] (on-line) <span class=GRN>[ 0.383313] </span><span class=YEL>Serial</span>: 8250/16550 driver, 4 ports, IRQ sharing disabled <span class=GRN>[ 0.383877] </span>Non-volatile memory driver v1.3 <span class=GRN>[ 0.384079] </span><span class=YEL>battery</span>: ACPI: Battery Slot [BAT1] (battery present) <span class=GRN>[ 0.386519] </span><span class=YEL>brd</span>: module loaded <span class=GRN>[ 0.387580] </span><span class=YEL>loop</span>: module loaded <span class=GRN>[ 0.387620] </span><span class=YEL>hv_vmbus</span>: registering driver hv_storvsc <span class=GRN>[ 0.387676] </span><span class=YEL>Ethernet Channel Bonding Driver</span>: v3.7.1 (April 27, 2011) <span class=GRN>[ 0.388382] </span><span class=YEL>wireguard</span>: WireGuard 1.0.0 loaded. See www.wireguard.com for information. <span class=GRN>[ 0.388383] </span><span class=YEL>wireguard</span>: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. <span class=GRN>[ 0.388409] </span><span class=YEL>tun</span>: Universal TUN/TAP device driver, 1.6 <span class=GRN>[ 0.388519] </span>PPP generic driver version 2.4.2 <span class=GRN>[ 0.388651] </span>PPP BSD Compression module registered <span class=GRN>[ 0.388653] </span>PPP Deflate Compression module registered <span class=GRN>[ 0.388659] </span>PPP MPPE Compression module registered <span class=GRN>[ 0.388661] </span><span class=YEL>NET</span>: Registered protocol family 24 <span class=GRN>[ 0.388669] </span><span class=YEL>hv_vmbus</span>: registering driver hv_netvsc <span class=GRN>[ 0.388801] </span><span class=YEL>VFIO - User Level meta-driver version</span>: 0.3 <span class=GRN>[ 0.388969] </span><span class=YEL>hv_vmbus</span>: registering driver hyperv_keyboard <span class=GRN>[ 0.389324] </span><span class=YEL>rtc_cmos 00:00</span>: RTC can wake from S4 <span class=GRN>[ 0.389718] </span><span class=YEL>scsi host0</span>: storvsc_host_t <span class=GRN>[ 0.392400] </span><span class=YEL>rtc_cmos 00:00</span>: registered as rtc0 <span class=GRN>[ 0.392412] </span><span class=YEL>rtc_cmos 00:00</span>: alarms up to one month, 114 bytes nvram <span class=GRN>[ 0.392814] </span><span class=YEL>device-mapper</span>: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com <span class=GRN>[ 0.393034] </span><span class=YEL>device-mapper</span>: raid: Loading target version 1.14.0 <span class=GRN>[ 0.393143] </span><span class=YEL>hv_utils</span>: Registering HyperV Utility Driver <span class=GRN>[ 0.393144] </span><span class=YEL>hv_vmbus</span>: registering driver hv_utils <span class=GRN>[ 0.393195] </span><span class=YEL>hv_vmbus</span>: registering driver hv_balloon <span class=GRN>[ 0.393211] </span><span class=YEL>dxgk:err</span><span class=RED>: dxg_drv_init Version: 5</span> <span class=GRN>[ 0.393215] </span><span class=YEL>hv_vmbus</span>: registering driver dxgkrnl <span class=GRN>[ 0.393242] </span><span class=YEL>drop_monitor</span>: Initializing network drop monitor service <span class=GRN>[ 0.393259] </span>Mirror/redirect action on <span class=GRN>[ 0.393349] </span><span class=YEL>hv_utils</span><span class=RED>: cannot register PTP clock: 0</span> <span class=GRN>[ 0.393541] </span><span class=YEL>IPVS</span>: Registered protocols (TCP, UDP) <span class=GRN>[ 0.393562] </span><span class=YEL>IPVS</span>: Connection hash table configured (size=4096, memory=64Kbytes) <span class=GRN>[ 0.394059] </span><span class=YEL>IPVS</span>: ipvs loaded. <span class=GRN>[ 0.394060] </span><span class=YEL>IPVS</span>: [rr] scheduler registered. <span class=GRN>[ 0.394061] </span><span class=YEL>IPVS</span>: [wrr] scheduler registered. <span class=GRN>[ 0.394062] </span><span class=YEL>IPVS</span>: [sh] scheduler registered. <span class=GRN>[ 0.394112] </span><span class=YEL>ipip</span>: IPv4 and MPLS over IPv4 tunneling driver <span class=GRN>[ 0.395396] </span><span class=YEL>ipt_CLUSTERIP</span>: ClusterIP Version 0.8 loaded successfully <span class=GRN>[ 0.395885] </span>Initializing XFRM netlink socket <span class=GRN>[ 0.396015] </span><span class=YEL>NET</span>: Registered protocol family 10 <span class=GRN>[ 0.396428] </span><span class=YEL>hv_balloon</span>: Using Dynamic Memory protocol version 2.0 <span class=GRN>[ 0.397334] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[ 0.397512] </span>Segment Routing with IPv6 <span class=GRN>[ 0.398610] </span><span class=YEL>hv_balloon</span>: Cold memory discard enabled <span class=GRN>[ 0.398939] </span><span class=YEL>sit</span>: IPv6, IPv4 and MPLS over IPv4 tunneling driver <span class=GRN>[ 0.399091] </span><span class=YEL>NET</span>: Registered protocol family 17 <span class=GRN>[ 0.399122] </span>Bridge firewalling registered <span class=GRN>[ 0.399131] </span><span class=YEL>8021q</span>: 802.1Q VLAN Support v1.8 <span class=GRN>[ 0.399166] </span><span class=YEL>sctp</span>: Hash tables configured (bind 256/256) <span class=GRN>[ 0.399258] </span><span class=YEL>9pnet</span>: Installing 9P2000 support <span class=GRN>[ 0.399273] </span>Key type dns_resolver registered <span class=GRN>[ 0.399288] </span>Key type ceph registered <span class=GRN>[ 0.399545] </span><span class=YEL>libceph</span>: loaded (mon/osd proto 15/24) <span class=GRN>[ 0.399547] </span><span class=YEL>hv_vmbus</span>: registering driver hv_sock <span class=GRN>[ 0.399682] </span><span class=YEL>NET</span>: Registered protocol family 40 <span class=GRN>[ 0.399711] </span><span class=YEL>IPI shorthand broadcast</span>: enabled <span class=GRN>[ 0.399837] </span>registered taskstats version 1 <span class=GRN>[ 0.399845] </span>Loading compiled-in X.509 certificates <span class=GRN>[ 0.400303] </span>Btrfs loaded, crc32c=crc32c-generic <span class=GRN>[ 0.401452] </span><span class=YEL>rtc_cmos 00:00</span>: setting system clock to 2021-03-19T21:06:27 UTC (1616187987) <span class=GRN>[ 0.401478] </span><span class="BOLD">Unstable clock detected, switching default tracing clock to "global" If you want to keep using the local clock, then add: "trace_clock=local" on the kernel command line</span> <span class=GRN>[ 0.403529] </span><span class=YEL>Freeing unused kernel image memory</span>: 1572K <span class=GRN>[ 0.423944] </span><span class=YEL>hv_pci a8492c6e-d071-4bc1-a290-ee2afbaf08e9</span>: PCI VMBus probing: Using version 0x10002 <span class=GRN>[ 0.424806] </span><span class=YEL>hv_pci a8492c6e-d071-4bc1-a290-ee2afbaf08e9</span>: PCI host bridge to bus d071:00 <span class=GRN>[ 0.425127] </span><span class=YEL>pci d071:00:00.0</span>: [1414:008e] type 00 class 0x030200 <span class=GRN>[ 0.432843] </span><span class=YEL>hv_vmbus</span>: Unknown GUID: 6e382d18-3336-4f4b-acc4-2b7703d4df4a <span class=GRN>[ 0.432905] </span><span class=YEL>hv_vmbus</span>: Unknown GUID: dde9cbc0-5060-4436-9448-ea1254a5d177 <span class=GRN>[ 0.474332] </span><span class=YEL>Write protecting the kernel read-only data</span>: 22528k <span class=GRN>[ 0.476631] </span><span class=YEL>Freeing unused kernel image memory</span>: 1992K <span class=GRN>[ 0.477923] </span><span class=YEL>Freeing unused kernel image memory</span>: 916K <span class=GRN>[ 0.478148] </span>Run /init as init process <span class=GRN>[ 2.710822] </span><span class=YEL>IPv6</span>: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready <span class=GRN>[ 3.093020] </span><span class=YEL>scsi 0:0:0:0</span>: Direct-Access Msft Virtual Disk 1.0 PQ: 0 ANSI: 5 <span class=GRN>[ 3.094631] </span><span class=YEL>sd 0:0:0:0</span>: Attached scsi generic sg0 type 0 <span class=GRN>[ 3.109524] </span><span class=YEL>sd 0:0:0:0</span>: [sda] 536870912 512-byte logical blocks: (275 GB/256 GiB) <span class=GRN>[ 3.109527] </span><span class=YEL>sd 0:0:0:0</span>: [sda] 4096-byte physical blocks <span class=GRN>[ 3.110039] </span><span class=YEL>sd 0:0:0:0</span>: [sda] Write Protect is off <span class=GRN>[ 3.110042] </span><span class=YEL>sd 0:0:0:0</span>: [sda] Mode Sense: 0f 00 00 00 <span class=GRN>[ 3.111507] </span><span class=YEL>sd 0:0:0:0</span>: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA <span class=GRN>[ 3.406889] </span><span class=YEL>sd 0:0:0:0</span>: [sda] Attached SCSI disk <span class=GRN>[ 3.510709] </span><span class=YEL>EXT4-fs (sda)</span>: mounted filesystem with ordered data mode. Opts: (null) <span class=GRN>[ 3.619610] </span><span class=YEL>hv_pci 30d1b8c5-2b62-4982-b88c-14def9bcd2c5</span>: PCI VMBus probing: Using version 0x10002 <span class=GRN>[ 3.761035] </span><span class=YEL>hv_pci 30d1b8c5-2b62-4982-b88c-14def9bcd2c5</span>: PCI host bridge to bus 2b62:00 <span class=GRN>[ 3.761038] </span><span class=YEL>pci_bus 2b62:00</span>: root bus resource [mem 0xe00000000-0xe00002fff window] <span class=GRN>[ 3.761853] </span><span class=YEL>pci 2b62:00:00.0</span>: [1af4:1049] type 00 class 0x010000 <span class=GRN>[ 3.767071] </span><span class=YEL>pci 2b62:00:00.0</span>: reg 0x10: [mem 0xe00000000-0xe00000fff 64bit] <span class=GRN>[ 3.768699] </span><span class=YEL>pci 2b62:00:00.0</span>: reg 0x18: [mem 0xe00001000-0xe00001fff 64bit] <span class=GRN>[ 3.769695] </span><span class=YEL>pci 2b62:00:00.0</span>: reg 0x20: [mem 0xe00002000-0xe00002fff 64bit] <span class=GRN>[ 3.777366] </span><span class=YEL>pci 2b62:00:00.0</span>: BAR 0: assigned [mem 0xe00000000-0xe00000fff 64bit] <span class=GRN>[ 3.778372] </span><span class=YEL>pci 2b62:00:00.0</span>: BAR 2: assigned [mem 0xe00001000-0xe00001fff 64bit] <span class=GRN>[ 3.779338] </span><span class=YEL>pci 2b62:00:00.0</span>: BAR 4: assigned [mem 0xe00002000-0xe00002fff 64bit] <span class=GRN>[ 4.133206] </span>Adding 2097152k swap on /swap/file. Priority:-2 extents:1 across:2097152k <span class=GRN>[ 5.364497] </span><span class=YEL>scsi 0:0:0:1</span>: Direct-Access Msft Virtual Disk 1.0 PQ: 0 ANSI: 5 <span class=GRN>[ 5.364939] </span><span class=YEL>sd 0:0:0:1</span>: Attached scsi generic sg1 type 0 <span class=GRN>[ 5.366239] </span><span class=YEL>sd 0:0:0:1</span>: [sdb] 536870912 512-byte logical blocks: (275 GB/256 GiB) <span class=GRN>[ 5.366242] </span><span class=YEL>sd 0:0:0:1</span>: [sdb] 4096-byte physical blocks <span class=GRN>[ 5.366432] </span><span class=YEL>sd 0:0:0:1</span>: [sdb] Write Protect is off <span class=GRN>[ 5.366434] </span><span class=YEL>sd 0:0:0:1</span>: [sdb] Mode Sense: 0f 00 00 00 <span class=GRN>[ 5.366810] </span><span class=YEL>sd 0:0:0:1</span>: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA <span class=GRN>[ 5.370215] </span><span class=YEL>sd 0:0:0:1</span>: [sdb] Attached SCSI disk <span class=GRN>[ 5.717026] </span><span class=YEL>EXT4-fs (sdb)</span>: recovery complete <span class=GRN>[ 5.719229] </span><span class=YEL>EXT4-fs (sdb)</span>: mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered <span class=GRN>[ 5.732089] </span><span class=YEL>FS-Cache</span><span class=RED>: Duplicate cookie detected</span> <span class=GRN>[ 5.732093] </span><span class=YEL>FS-Cache</span><span class=RED>: O-cookie c=00000000c3d31845 [p=00000000b229a3bf fl=222 nc=0 na=1]</span> <span class=GRN>[ 5.732094] </span><span class=YEL>FS-Cache</span><span class=RED>: O-cookie d=00000000edcd1005 n=0000000073b35055</span> <span class=GRN>[ 5.732094] </span><span class=YEL>FS-Cache</span><span class=RED>: O-key=[10] '34323934393337383438'</span> <span class=GRN>[ 5.732098] </span><span class=YEL>FS-Cache</span><span class=RED>: N-cookie c=0000000029a08174 [p=00000000b229a3bf fl=2 nc=0 na=1]</span> <span class=GRN>[ 5.732099] </span><span class=YEL>FS-Cache</span><span class=RED>: N-cookie d=00000000edcd1005 n=000000006dd1ac16</span> <span class=GRN>[ 5.732099] </span><span class=YEL>FS-Cache</span><span class=RED>: N-key=[10] '34323934393337383438'</span> <span class=GRN>[ 5.958511] </span><span class=YEL>hv_pci 0230a7c4-efca-47ea-9d15-b8d4162460a3</span>: PCI VMBus probing: Using version 0x10002 <span class=GRN>[ 6.031445] </span><span class=YEL>hv_pci 0230a7c4-efca-47ea-9d15-b8d4162460a3</span>: PCI host bridge to bus efca:00 <span class=GRN>[ 6.031447] </span><span class=YEL>pci_bus efca:00</span>: root bus resource [mem 0xe00004000-0xe00006fff window] <span class=GRN>[ 6.032171] </span><span class=YEL>pci efca:00:00.0</span>: [1af4:1049] type 00 class 0x010000 <span class=GRN>[ 6.034328] </span><span class=YEL>pci efca:00:00.0</span>: reg 0x10: [mem 0xe00004000-0xe00004fff 64bit] <span class=GRN>[ 6.035348] </span><span class=YEL>pci efca:00:00.0</span>: reg 0x18: [mem 0xe00005000-0xe00005fff 64bit] <span class=GRN>[ 6.036289] </span><span class=YEL>pci efca:00:00.0</span>: reg 0x20: [mem 0xe00006000-0xe00006fff 64bit] <span class=GRN>[ 6.042691] </span><span class=YEL>pci efca:00:00.0</span>: BAR 0: assigned [mem 0xe00004000-0xe00004fff 64bit] <span class=GRN>[ 6.043397] </span><span class=YEL>pci efca:00:00.0</span>: BAR 2: assigned [mem 0xe00005000-0xe00005fff 64bit] <span class=GRN>[ 6.044066] </span><span class=YEL>pci efca:00:00.0</span>: BAR 4: assigned [mem 0xe00006000-0xe00006fff 64bit] <span class=GRN>[ 6.675294] </span><span class=YEL>cgroup</span><span class="BOLD">: systemd (147) created nested cgroup for controller "memory" which has incomplete hierarchy support. Nested cgroups may change behavior in the future.</span> <span class=GRN>[ 6.675295] </span><span class=YEL>cgroup</span><span class="BOLD">: "memory" requires setting use_hierarchy to 1 on the root</span> <span class=GRN>[ 49.193919] </span><span class=YEL>hv_balloon</span>: Max. dynamic memory size: 8130 MB <span class=GRN>[ 4076.736267] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[58651.616048] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[115801.510965] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[140567.612418] </span><span class=YEL>scsi 0:0:0:2</span>: Direct-Access Msft Virtual Disk 1.0 PQ: 0 ANSI: 5 <span class=GRN>[140567.617345] </span><span class=YEL>sd 0:0:0:2</span>: Attached scsi generic sg2 type 0 <span class=GRN>[140567.619640] </span><span class=YEL>sd 0:0:0:2</span>: [sdc] 536870912 512-byte logical blocks: (275 GB/256 GiB) <span class=GRN>[140567.619647] </span><span class=YEL>sd 0:0:0:2</span>: [sdc] 4096-byte physical blocks <span class=GRN>[140567.619962] </span><span class=YEL>sd 0:0:0:2</span>: [sdc] Write Protect is off <span class=GRN>[140567.619968] </span><span class=YEL>sd 0:0:0:2</span>: [sdc] Mode Sense: 0f 00 00 00 <span class=GRN>[140567.620320] </span><span class=YEL>sd 0:0:0:2</span>: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA <span class=GRN>[140567.647215] </span><span class=YEL>sd 0:0:0:2</span>: [sdc] Attached SCSI disk <span class=GRN>[140567.682754] </span><span class=YEL>EXT4-fs (sdc)</span>: mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered <span class=GRN>[140677.565867] </span><span class=YEL>EXT4-fs (sdc)</span>: mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered <span class=GRN>[140678.605424] </span><span class=YEL>hv_pci ca92d1a4-4c1e-4052-b7b3-236b5f0ebb70</span>: PCI VMBus probing: Using version 0x10002 <span class=GRN>[140678.683448] </span><span class=YEL>hv_pci ca92d1a4-4c1e-4052-b7b3-236b5f0ebb70</span>: PCI host bridge to bus 4c1e:00 <span class=GRN>[140678.683452] </span><span class=YEL>pci_bus 4c1e:00</span>: root bus resource [mem 0xe00008000-0xe0000afff window] <span class=GRN>[140678.684819] </span><span class=YEL>pci 4c1e:00:00.0</span>: [1af4:1049] type 00 class 0x010000 <span class=GRN>[140678.687984] </span><span class=YEL>pci 4c1e:00:00.0</span>: reg 0x10: [mem 0xe00008000-0xe00008fff 64bit] <span class=GRN>[140678.688961] </span><span class=YEL>pci 4c1e:00:00.0</span>: reg 0x18: [mem 0xe00009000-0xe00009fff 64bit] <span class=GRN>[140678.689934] </span><span class=YEL>pci 4c1e:00:00.0</span>: reg 0x20: [mem 0xe0000a000-0xe0000afff 64bit] <span class=GRN>[140678.696947] </span><span class=YEL>pci 4c1e:00:00.0</span>: BAR 0: assigned [mem 0xe00008000-0xe00008fff 64bit] <span class=GRN>[140678.697666] </span><span class=YEL>pci 4c1e:00:00.0</span>: BAR 2: assigned [mem 0xe00009000-0xe00009fff 64bit] <span class=GRN>[140678.698399] </span><span class=YEL>pci 4c1e:00:00.0</span>: BAR 4: assigned [mem 0xe0000a000-0xe0000afff 64bit] <span class=GRN>[142941.489967] </span><span class=YEL>EXT4-fs (sdc)</span>: mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered <span class=GRN>[142941.510843] </span><span class=YEL>FS-Cache</span><span class=RED>: Duplicate cookie detected</span> <span class=GRN>[142941.511027] </span><span class=YEL>FS-Cache</span><span class=RED>: O-cookie c=00000000af988317 [p=00000000b229a3bf fl=222 nc=0 na=1]</span> <span class=GRN>[142941.511028] </span><span class=YEL>FS-Cache</span><span class=RED>: O-cookie d=00000000edcd1005 n=000000003b77323b</span> <span class=GRN>[142941.511029] </span><span class=YEL>FS-Cache</span><span class=RED>: O-key=[10] '34333039323331343236'</span> <span class=GRN>[142941.511033] </span><span class=YEL>FS-Cache</span><span class=RED>: N-cookie c=000000007c84384f [p=00000000b229a3bf fl=2 nc=0 na=1]</span> <span class=GRN>[142941.511034] </span><span class=YEL>FS-Cache</span><span class=RED>: N-cookie d=00000000edcd1005 n=000000007fbdad8c</span> <span class=GRN>[142941.511034] </span><span class=YEL>FS-Cache</span><span class=RED>: N-key=[10] '34333039323331343236'</span> <span class=GRN>[143185.728632] </span><span class=YEL>EXT4-fs (sdc)</span>: mounted filesystem with ordered data mode. Opts: discard,errors=remount-ro,data=ordered <span class=GRN>[143185.743548] </span><span class=YEL>FS-Cache</span><span class=RED>: Duplicate cookie detected</span> <span class=GRN>[143185.743551] </span><span class=YEL>FS-Cache</span><span class=RED>: O-cookie c=000000007cde7055 [p=00000000b229a3bf fl=222 nc=0 na=1]</span> <span class=GRN>[143185.743552] </span><span class=YEL>FS-Cache</span><span class=RED>: O-cookie d=00000000edcd1005 n=00000000d8434e4f</span> <span class=GRN>[143185.743552] </span><span class=YEL>FS-Cache</span><span class=RED>: O-key=[10] '34333039323535383439'</span> <span class=GRN>[143185.743555] </span><span class=YEL>FS-Cache</span><span class=RED>: N-cookie c=000000007715f8c4 [p=00000000b229a3bf fl=2 nc=0 na=1]</span> <span class=GRN>[143185.743556] </span><span class=YEL>FS-Cache</span><span class=RED>: N-cookie d=00000000edcd1005 n=0000000024c33a1d</span> <span class=GRN>[143185.743556] </span><span class=YEL>FS-Cache</span><span class=RED>: N-key=[10] '34333039323535383439'</span> <span class=GRN>[147066.976928] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[154251.435802] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[196908.591661] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[201032.525087] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[213253.770253] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[223539.354245] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[228883.357907] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[248253.626232] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[253800.553722] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[262850.318119] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[270326.754068] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[280212.389173] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[281569.923583] </span><span class=YEL>init</span><span class=RED>: (110) ERROR: LogException:33: TELEMETRY: (null) No such file or directory @d:\os\src\onecore\VM\linux\mountutil\mountutilcpp.h:19 (MountEnum)</span> <span class=GRN>[286101.650493] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[288247.362168] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 <span class=GRN>[298912.708070] </span><span class=YEL>hv_utils</span>: TimeSync IC version 4.0 </pre></html></WRAP> </WRAP> ===== ビルドのカラー出力を変換 ===== <WRAP color_term> <WRAP color_command><html><pre> <font color="#0087FF"><b>$</b></font> <font color="#26A269">pipetty</font> make <font color="#A347BA">-C</font> build <font color="#2A7BDE"><b>|</b></font> <font color="#26A269">ansi2html</font> <font color="#2A7BDE"><b>|</b></font> <font color="#26A269">tee</font> build.html </pre></html></WRAP> <WRAP color_result_long><html><pre> make: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[1]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 3%] Built target libhamcore make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 6%] Built target hamcorebuilder make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 7%] Built target hamcore-archive-build make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' <span class=MAG></span><span class=HIM>Scanning dependencies of target cedar</span> make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' [ 7%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Account.c.o</span> [ 8%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Admin.c.o</span> [ 9%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/AzureClient.c.o</span> [ 10%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/AzureServer.c.o</span> [ 11%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Bridge.c.o</span> [ 12%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeUnix.c.o</span> [ 12%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeWin32.c.o</span> [ 13%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/CM.c.o</span> [ 14%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Cedar.c.o</span> [ 15%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/CedarPch.c.o</span> [ 16%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Client.c.o</span> [ 17%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Command.c.o</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:</span> In function ‘<span class="BOLD">CheckThread1</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:278:15:</span> <span class=HIM>warning: </span>cast to pointer from integer of different size [<span class=HIM>-Wint-to-pointer-cast</span>] 278 | InputToNull(<span class=HIM>(</span>void *)check_thread_global_1); | <span class=HIM>^</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:</span> In function ‘<span class="BOLD">CheckMemory</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:568:16:</span> <span class=HIM>warning: </span>cast to pointer from integer of different size [<span class=HIM>-Wint-to-pointer-cast</span>] 568 | InputToNull(<span class=HIM>(</span>void *)(UINT)(((UCHAR *)pp[i])[j] = j % 256)); | <span class=HIM>^</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:</span> In function ‘<span class="BOLD">StrToPortList</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:7855:19:</span> <span class=HIM>warning: </span>cast to pointer from integer of different size [<span class=HIM>-Wint-to-pointer-cast</span>] 7855 | if (IsInList(o, <span class=HIM>(</span>void *)n)) | <span class=HIM>^</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:7861:10:</span> <span class=HIM>warning: </span>cast to pointer from integer of different size [<span class=HIM>-Wint-to-pointer-cast</span>] 7861 | Add(o, <span class=HIM>(</span>void *)n); | <span class=HIM>^</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:</span> In function ‘<span class="BOLD">PsClusterSettingMember</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:7938:17:</span> <span class=HIM>warning: </span>cast from pointer to integer of different size [<span class=HIM>-Wpointer-to-int-cast</span>] 7938 | t.Ports[i] = <span class=HIM>(</span>UINT)LIST_DATA(ports, i); | <span class=HIM>^</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:</span> In function ‘<span class="BOLD">CmdEvalHostAndPort</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:8010:39:</span> <span class=HIM>warning: </span>cast from pointer to integer of different size [<span class=HIM>-Wpointer-to-int-cast</span>] 8010 | ret = ParseHostPort(tmp, NULL, NULL, <span class=HIM>(</span>UINT)param); | <span class=HIM>^</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:</span> In function ‘<span class="BOLD">PsWgkEnum</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:10676:26:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">CopyStrToUni</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 10676 | key = CopyStrToUni(<span class=HIM>wgk->Key</span>); | <span class=HIM>~~~^~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:8</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 69 | wchar_t *CopyStrToUni(<span class=HIC>char *str</span>); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:10677:26:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">CopyStrToUni</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 10677 | hub = CopyStrToUni(<span class=HIM>wgk->Hub</span>); | <span class=HIM>~~~^~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:8</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 69 | wchar_t *CopyStrToUni(<span class=HIC>char *str</span>); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:10678:27:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">CopyStrToUni</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 10678 | user = CopyStrToUni(<span class=HIM>wgk->User</span>); | <span class=HIM>~~~^~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:8</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 69 | wchar_t *CopyStrToUni(<span class=HIC>char *str</span>); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:</span> In function ‘<span class="BOLD">PsPortsUDPSet</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Command.c:22757:17:</span> <span class=HIM>warning: </span>cast from pointer to integer of different size [<span class=HIM>-Wpointer-to-int-cast</span>] 22757 | t.Ports[i] = <span class=HIM>(</span>UINT)LIST_DATA(ports, i); | <span class=HIM>^</span> [ 17%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Connection.c.o</span> [ 18%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Console.c.o</span> [ 19%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/DDNS.c.o</span> [ 20%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Database.c.o</span> [ 21%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/EM.c.o</span> [ 22%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/EtherLog.c.o</span> [ 22%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Hub.c.o</span> [ 23%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/IPC.c.o</span> [ 24%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Layer3.c.o</span> [ 25%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Link.c.o</span> [ 26%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Listener.c.o</span> [ 27%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Logging.c.o</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Logging.c:</span> In function ‘<span class="BOLD">PacketLogParseProc</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Logging.c:1576:32:</span> <span class=HIM>warning: </span>taking address of packed member of ‘<span class="BOLD">struct PKT</span>’ may result in an unaligned pointer value [<span class=HIM>-Waddress-of-packed-member</span>] 1576 | ICMPV6_HEADER_INFO *icmp = <span class=HIM>&p->ICMPv6HeaderPacketInfo</span>; | <span class=HIM>^~~~~~~~~~~~~~~~~~~~~~~~~~</span> [ 28%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/NM.c.o</span> [ 28%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Nat.c.o</span> [ 29%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/NativeStack.c.o</span> [ 30%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/NullLan.c.o</span> [ 31%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto.c.o</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:</span> In function ‘<span class="BOLD">ProtoLog</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:20:29:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">CopyStrToUni</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 20 | proto_name = CopyStrToUni(<span class=HIM>session->Impl->Name()</span>); | <span class=HIM>^~~~~~~~~~~~~~~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 69 | wchar_t *CopyStrToUni(<span class=HIC>char *str</span>); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:</span> In function ‘<span class="BOLD">ProtoContainerCompare</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:72:28:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">StrCmpi</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 72 | return StrCmpi(<span class=HIM>container_1->Name</span>, container_2->Name); | <span class=HIM>~~~~~~~~~~~^~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:39:19:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 39 | int StrCmpi(<span class=HIC>char *str1</span>, char *str2); | <span class=HIC>~~~~~~^~~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:72:47:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">StrCmpi</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 72 | return StrCmpi(container_1->Name, <span class=HIM>container_2->Name</span>); | <span class=HIM>~~~~~~~~~~~^~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:39:31:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 39 | int StrCmpi(char *str1, <span class=HIC>char *str2</span>); | <span class=HIC>~~~~~~^~~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:</span> In function ‘<span class="BOLD">ProtoSessionNew</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:407:26:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">CopyIP</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 407 | CopyIP(&session->SrcIp, <span class=HIM>src_ip</span>); | <span class=HIM>^~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:270</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Network.h:1266:26:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">IP *</span>’ but argument is of type ‘<span class="BOLD">const IP *</span>’ 1266 | void CopyIP(IP *dst, <span class=HIC>IP *src</span>); | <span class=HIC>~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:409:26:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">CopyIP</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 409 | CopyIP(&session->DstIp, <span class=HIM>dst_ip</span>); | <span class=HIM>^~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:270</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Network.h:1266:26:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">IP *</span>’ but argument is of type ‘<span class="BOLD">const IP *</span>’ 1266 | void CopyIP(IP *dst, <span class=HIC>IP *src</span>); | <span class=HIC>~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:</span> In function ‘<span class="BOLD">ProtoSetListenIP</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:458:38:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">Copy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 458 | Copy(&proto->UdpListener->ListenIP, <span class=HIM>ip</span>, sizeof(proto->UdpListener->ListenIP)); | <span class=HIM>^~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">void *</span>’ but argument is of type ‘<span class="BOLD">const IP *</span>’ 182 | void Copy(void *dst, <span class=HIC>void *src</span>, UINT size); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:</span> In function ‘<span class="BOLD">ProtoHandleConnection</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:513:19:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">StrCmp</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 513 | if (StrCmp(<span class=HIM>tmp->Name</span>, protocol) == 0) | <span class=HIM>~~~^~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:38:18:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char * const</span>’ 38 | int StrCmp(<span class=HIC>char *str1</span>, char *str2); | <span class=HIC>~~~~~~^~~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:513:27:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">StrCmp</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 513 | if (StrCmp(tmp->Name, <span class=HIM>protocol</span>) == 0) | <span class=HIM>^~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:38:30:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 38 | int StrCmp(char *str1, <span class=HIC>char *str2</span>); | <span class=HIC>~~~~~~^~~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:558:38:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">CopyStrToUni</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 558 | proto_name = CopyStrToUni(<span class=HIM>container->Name</span>); | <span class=HIM>~~~~~~~~~^~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char * const</span>’ 69 | wchar_t *CopyStrToUni(<span class=HIC>char *str</span>); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:651:38:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">CopyStrToUni</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 651 | wchar_t *proto_name = CopyStrToUni(<span class=HIM>impl->Name()</span>); | <span class=HIM>^~~~~~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:249</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Internat.h:69:29:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 69 | wchar_t *CopyStrToUni(<span class=HIC>char *str</span>); | <span class=HIC>~~~~~~^~~</span> [ 32%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_EtherIP.c.o</span> [ 33%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IKE.c.o</span> [ 33%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IPsec.c.o</span> [ 34%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IkePacket.c.o</span> [ 35%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_L2TP.c.o</span> [ 36%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_OpenVPN.c.o</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_OpenVPN.c:</span> In function ‘<span class="BOLD">OvsIsPacketForMe</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_OpenVPN.c:90:43:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">OvsParsePacket</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 90 | OPENVPN_PACKET *packet = OvsParsePacket(<span class=HIM>data</span>, size); | <span class=HIM>^~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Cedar/Cedar.h:1040</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:19</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_OpenVPN.c:8</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Cedar/Proto_OpenVPN.h:233:39:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">UCHAR *</span>’ {aka ‘<span class="BOLD">unsigned char *</span>’} but argument is of type ‘<span class="BOLD">const void *</span>’ 233 | OPENVPN_PACKET *OvsParsePacket(<span class=HIC>UCHAR *data</span>, UINT size); | <span class=HIC>~~~~~~~^~~~</span> [ 37%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_PPP.c.o</span> [ 38%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_SSTP.c.o</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_SSTP.c:</span> In function ‘<span class="BOLD">NewSstpServer</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_SSTP.c:1013:55:</span> <span class=HIM>warning: </span>passing argument 3 of ‘<span class="BOLD">StrCpy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 1013 | StrCpy(s->ClientHostName, sizeof(s->ClientHostName), <span class=HIM>hostname</span>); | <span class=HIM>^~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_SSTP.c:8</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:30:41:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 30 | UINT StrCpy(char *dst, UINT size, <span class=HIC>char *src</span>); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_SSTP.c:1014:59:</span> <span class=HIM>warning: </span>passing argument 3 of ‘<span class="BOLD">StrCpy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 1014 | StrCpy(s->ClientCipherName, sizeof(s->ClientCipherName), <span class=HIM>cipher</span>); | <span class=HIM>^~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_SSTP.c:8</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:30:41:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 30 | UINT StrCpy(char *dst, UINT size, <span class=HIC>char *src</span>); | <span class=HIC>~~~~~~^~~</span> [ 38%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_Win7.c.o</span> [ 39%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_WireGuard.c.o</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:</span> In function ‘<span class="BOLD">WgsOptionStringValue</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:46:13:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">StrCmp</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 46 | if (StrCmp(<span class=HIM>name</span>, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0) | <span class=HIM>^~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:38:18:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 38 | int StrCmp(<span class=HIC>char *str1</span>, char *str2); | <span class=HIC>~~~~~~^~~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:46:50:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">StrCmp</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 46 | if (StrCmp(name, "PresharedKey") == 0 || StrCmp(<span class=HIM>name</span>, "PrivateKey") == 0) | <span class=HIM>^~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:38:18:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 38 | int StrCmp(<span class=HIC>char *str1</span>, char *str2); | <span class=HIC>~~~~~~^~~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:</span> In function ‘<span class="BOLD">WgsProcessDatagrams</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:238:28:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">Copy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 238 | Copy(&session->IPLocal, <span class=HIM>&packet->DstIP</span>, sizeof(session->IPLocal)); | <span class=HIM>^~~~~~~~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">void *</span>’ but argument is of type ‘<span class="BOLD">const IP *</span>’ 182 | void Copy(void *dst, <span class=HIC>void *src</span>, UINT size); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:239:29:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">Copy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 239 | Copy(&session->IPRemote, <span class=HIM>&packet->SrcIP</span>, sizeof(session->IPRemote)); | <span class=HIM>^~~~~~~~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">void *</span>’ but argument is of type ‘<span class="BOLD">const IP *</span>’ 182 | void Copy(void *dst, <span class=HIC>void *src</span>, UINT size); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:</span> In function ‘<span class="BOLD">WgsDetectMessageType</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:402:27:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">IsZero</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 402 | if (IsZero(<span class=HIM>packet->Header.Reserved</span>, sizeof(packet->Header.Reserved)) == false) | <span class=HIM>~~~~~~~~~~~~~~^~~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:344:19:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">void *</span>’ but argument is of type ‘<span class="BOLD">const BYTE *</span>’ {aka ‘<span class="BOLD">const unsigned char *</span>’} 344 | bool IsZero(<span class=HIC>void *data</span>, UINT size); | <span class=HIC>~~~~~~^~~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:</span> In function ‘<span class="BOLD">WgsMSS</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:425:12:</span> <span class=HIM>warning: </span>passing argument 1 of ‘<span class="BOLD">IsIP4</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 425 | if (IsIP4(<span class=HIM>&session->IPRemote</span>)) | <span class=HIM>^~~~~~~~~~~~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:270</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Network.h:1268:16:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">IP *</span>’ but argument is of type ‘<span class="BOLD">const IP *</span>’ 1268 | bool IsIP4(<span class=HIC>IP *ip</span>); | <span class=HIC>~~~~^~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:</span> In function ‘<span class="BOLD">WgsIPCNew</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:465:53:</span> <span class=HIM>warning: </span>passing argument 3 of ‘<span class="BOLD">StrCpy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 465 | StrCpy(param.ClientName, sizeof(param.ClientName), <span class=HIM>WgsName()</span>); | <span class=HIM>^~~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:30:41:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 30 | UINT StrCpy(char *dst, UINT size, <span class=HIC>char *src</span>); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:</span> In function ‘<span class="BOLD">WgsCreateTransportData</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:824:32:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">Copy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 824 | Copy(ret->EncapsulatedPacket, <span class=HIM>data</span>, size); | <span class=HIM>^~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">void *</span>’ but argument is of type ‘<span class="BOLD">const void *</span>’ 182 | void Copy(void *dst, <span class=HIC>void *src</span>, UINT size); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:</span> In function ‘<span class="BOLD">WgsEncryptData</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:929:42:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">Copy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 929 | Copy(iv + sizeof(iv) - sizeof(counter), <span class=HIM>&counter</span>, sizeof(counter)); | <span class=HIM>^~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">void *</span>’ but argument is of type ‘<span class="BOLD">const UINT64 *</span>’ {aka ‘<span class="BOLD">const long unsigned int *</span>’} 182 | void Copy(void *dst, <span class=HIC>void *src</span>, UINT size); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:</span> In function ‘<span class="BOLD">WgsDecryptData</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:947:42:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">Copy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 947 | Copy(iv + sizeof(iv) - sizeof(counter), <span class=HIM>&counter</span>, sizeof(counter)); | <span class=HIM>^~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">void *</span>’ but argument is of type ‘<span class="BOLD">const UINT64 *</span>’ {aka ‘<span class="BOLD">const long unsigned int *</span>’} 182 | void Copy(void *dst, <span class=HIC>void *src</span>, UINT size); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:</span> In function ‘<span class="BOLD">WgsEphemeral</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1000:22:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">Copy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 1000 | Copy(ephemeral_dst, <span class=HIM>ephemeral_src</span>, WG_KEY_SIZE); | <span class=HIM>^~~~~~~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:243</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Memory.h:182:28:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">void *</span>’ but argument is of type ‘<span class="BOLD">const BYTE *</span>’ {aka ‘<span class="BOLD">const unsigned char *</span>’} 182 | void Copy(void *dst, <span class=HIC>void *src</span>, UINT size); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:</span> In function ‘<span class="BOLD">WgsHKDF</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1011:15:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">SetMdKey</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 1011 | SetMdKey(md, <span class=HIM>chaining_key</span>, WG_HASH_SIZE); | <span class=HIM>^~~~~~~~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:252</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Encrypt.h:433:29:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">void *</span>’ but argument is of type ‘<span class="BOLD">const BYTE *</span>’ {aka ‘<span class="BOLD">const unsigned char *</span>’} 433 | bool SetMdKey(MD *md, <span class=HIC>void *key</span>, UINT key_size); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1014:24:</span> <span class=HIM>warning: </span>passing argument 3 of ‘<span class="BOLD">MdProcess</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 1014 | MdProcess(md, secret, <span class=HIM>data</span>, data_size); | <span class=HIM>^~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:252</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Proto_WireGuard.c:1</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Encrypt.h:434:42:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">void *</span>’ but argument is of type ‘<span class="BOLD">const BYTE *</span>’ {aka ‘<span class="BOLD">const unsigned char *</span>’} 434 | UINT MdProcess(MD *md, void *dest, <span class=HIC>void *src</span>, UINT size); | <span class=HIC>~~~~~~^~~</span> [ 40%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Protocol.c.o</span> [ 41%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Radius.c.o</span> [ 42%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Remote.c.o</span> [ 43%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/SM.c.o</span> [ 43%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/SW.c.o</span> [ 44%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Sam.c.o</span> [ 45%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/SeLowUser.c.o</span> [ 46%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/SecureInfo.c.o</span> [ 47%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/SecureNAT.c.o</span> [ 48%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Server.c.o</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:</span> In function ‘<span class="BOLD">SiLoadConfigurationCfg</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:2751:35:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">CfgGetFolder</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 2751 | FOLDER *f = CfgGetFolder(f9, <span class=HIM>name</span>); | <span class=HIM>^~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:264</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:8</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Cfg.h:98:44:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 98 | FOLDER *CfgGetFolder(FOLDER *parent, <span class=HIC>char *name</span>); | <span class=HIC>~~~~~~^~~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:2755:42:</span> <span class=HIM>warning: </span>passing argument 3 of ‘<span class="BOLD">StrCpy</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 2755 | StrCpy(wgk->Key, sizeof(wgk->Key), <span class=HIM>name</span>); | <span class=HIM>^~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:246</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:8</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Str.h:30:41:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char *</span>’ 30 | UINT StrCpy(char *dst, UINT size, <span class=HIC>char *src</span>); | <span class=HIC>~~~~~~^~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:</span> In function ‘<span class="BOLD">SiLoadProtoCfg</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:6342:41:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">CfgGetFolder</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 6342 | FOLDER *ff = CfgGetFolder(f, <span class=HIM>container->Name</span>); | <span class=HIM>~~~~~~~~~^~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:264</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:8</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Cfg.h:98:44:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char * const</span>’ 98 | FOLDER *CfgGetFolder(FOLDER *parent, <span class=HIC>char *name</span>); | <span class=HIC>~~~~~~^~~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:</span> In function ‘<span class="BOLD">SiWriteProtoCfg</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:6396:44:</span> <span class=HIM>warning: </span>passing argument 2 of ‘<span class="BOLD">CfgCreateFolder</span>’ discards ‘<span class="BOLD">const</span>’ qualifier from pointer target type [<span class=HIM>-Wdiscarded-qualifiers</span>] 6396 | FOLDER *ff = CfgCreateFolder(f, <span class=HIM>container->Name</span>); | <span class=HIM>~~~~~~~~~^~~~~~</span> In file included from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Mayaqua.h:264</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/CedarPch.h:18</span>, from <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:8</span>: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/./Mayaqua/Cfg.h:84:47:</span> <span class=HIC>note: </span>expected ‘<span class="BOLD">char *</span>’ but argument is of type ‘<span class="BOLD">const char * const</span>’ 84 | FOLDER *CfgCreateFolder(FOLDER *parent, <span class=HIC>char *name</span>); | <span class=HIC>~~~~~~^~~~</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:</span> In function ‘<span class="BOLD">SiCalledDeleteIpTable</span>’: <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:7697:28:</span> <span class=HIM>warning: </span>cast to pointer from integer of different size [<span class=HIM>-Wint-to-pointer-cast</span>] 7697 | if (IsInList(h->IpTable, <span class=HIM>(</span>void *)key)) | <span class=HIM>^</span> <span class="BOLD">/home/tomoyan/work/SoftEtherVPN/src/Cedar/Server.c:7699:24:</span> <span class=HIM>warning: </span>cast to pointer from integer of different size [<span class=HIM>-Wint-to-pointer-cast</span>] 7699 | IP_TABLE_ENTRY *e = <span class=HIM>(</span>IP_TABLE_ENTRY *)key; | <span class=HIM>^</span> [ 49%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Session.c.o</span> [ 49%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/UT.c.o</span> [ 50%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/UdpAccel.c.o</span> [ 51%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/VG.c.o</span> [ 52%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/VLan.c.o</span> [ 53%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/VLanUnix.c.o</span> [ 54%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/VLanWin32.c.o</span> [ 54%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Virtual.c.o</span> [ 55%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/WaterMark.c.o</span> [ 56%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/WebUI.c.o</span> [ 57%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/WinUi.c.o</span> [ 58%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/Wpc.c.o</span> [ 59%] <span class=GRN>Building C object src/Cedar/CMakeFiles/cedar.dir/__/__/3rdparty/BLAKE2/sse/blake2s.c.o</span> [ 59%] <span class=GRN></span><span class=HIG>Linking C shared library ../../libcedar.so</span> make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 59%] Built target cedar make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 70%] Built target cpu_features make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 89%] Built target mayaqua make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 91%] Built target list_cpu_features make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' [ 92%] <span class=GRN></span><span class=HIG>Linking C executable ../../vpnserver</span> make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 93%] Built target vpnserver make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' [ 93%] <span class=GRN></span><span class=HIG>Linking C executable ../../vpnclient</span> make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 94%] Built target vpnclient make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' [ 95%] <span class=GRN></span><span class=HIG>Linking C executable ../../vpnbridge</span> make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 96%] Built target vpnbridge make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' [ 97%] <span class=GRN></span><span class=HIG>Linking C executable ../../vpncmd</span> make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [ 98%] Built target vpncmd make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' make[2]: Entering directory '/home/tomoyan/work/SoftEtherVPN/build' [ 99%] <span class=GRN></span><span class=HIG>Linking C executable ../../vpntest</span> make[2]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' [100%] Built target vpntest make[1]: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' make: Leaving directory '/home/tomoyan/work/SoftEtherVPN/build' </pre></html></WRAP> </WRAP> ===== ansi2html の出力内容 ===== <WRAP color_term> <WRAP color_command><html><pre> <span class=GRN>$</span> ls -al --color=always | ansi2html > fedora_ls-al.html </pre></html></WRAP> <WRAP color_result><html><pre> total 73540 drwx------ 7 tomoyan tomoyan 4096 6月 4 13:44 <span class=HIB>.</span> drwxr-xr-x 3 root root 4096 3月 14 15:05 <span class=HIB>..</span> -rw------- 1 tomoyan tomoyan 7005 6月 1 06:59 .bash_history -rw-r--r-- 1 tomoyan tomoyan 18 7月 27 2020 .bash_logout -rw-r--r-- 1 tomoyan tomoyan 141 7月 27 2020 .bash_profile -rw-r--r-- 1 tomoyan tomoyan 376 7月 27 2020 .bashrc drwxr-xr-x 3 tomoyan tomoyan 4096 6月 4 13:44 <span class=HIB>.cache</span> drwx------ 3 tomoyan tomoyan 4096 3月 31 14:15 <span class=HIB>.config</span> -rw-r--r-- 1 tomoyan tomoyan 0 6月 4 13:48 fedora_ls-al.html drwxr-xr-x 7 tomoyan tomoyan 4096 3月 14 15:22 <span class=HIB>genie</span> drwxr-xr-x 12 tomoyan tomoyan 4096 3月 19 04:01 <span class=HIB>openlitespeed</span> -rw-r--r-- 1 tomoyan tomoyan 75249876 3月 17 03:57 <span class=HIR>openlitespeed-1.7.9.tgz</span> drwxr-xr-x 5 tomoyan tomoyan 4096 6月 4 13:44 <span class=HIB>py39def</span> </pre></html></WRAP> </WRAP> <WRAP color_term> <WRAP color_mincode_long><code html fedora_ls-al.html> <!DOCTYPE html> <html> <head> <style type="text/css"> body {background-color: black;} pre { font-weight: normal; color: #bbb; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; } b {font-weight: normal} b.BOLD {color: #fff} b.ITA {font-style: italic} b.UND {text-decoration: underline} b.STR {text-decoration: line-through} b.UNDSTR {text-decoration: underline line-through} b.BLK {color: #000000} b.RED {color: #aa0000} b.GRN {color: #00aa00} b.YEL {color: #aa5500} b.BLU {color: #0000aa} b.MAG {color: #aa00aa} b.CYN {color: #00aaaa} b.WHI {color: #aaaaaa} b.HIK {color: #555555} b.HIR {color: #ff5555} b.HIG {color: #55ff55} b.HIY {color: #ffff55} b.HIB {color: #5555ff} b.HIM {color: #ff55ff} b.HIC {color: #55ffff} b.HIW {color: #ffffff} b.BBLK {background-color: #000000} b.BRED {background-color: #aa0000} b.BGRN {background-color: #00aa00} b.BYEL {background-color: #aa5500} b.BBLU {background-color: #0000aa} b.BMAG {background-color: #aa00aa} b.BCYN {background-color: #00aaaa} b.BWHI {background-color: #aaaaaa} </style> </head> <spanody> <pre>total 73540 drwx------ 7 tomoyan tomoyan 4096 6月 4 13:44 <span class=HIB>.</span> drwxr-xr-x 3 root root 4096 3月 14 15:05 <span class=HIB>..</span> -rw------- 1 tomoyan tomoyan 7005 6月 1 06:59 .bash_history -rw-r--r-- 1 tomoyan tomoyan 18 7月 27 2020 .bash_logout -rw-r--r-- 1 tomoyan tomoyan 141 7月 27 2020 .bash_profile -rw-r--r-- 1 tomoyan tomoyan 376 7月 27 2020 .bashrc drwxr-xr-x 3 tomoyan tomoyan 4096 6月 4 13:44 <span class=HIB>.cache</span> drwx------ 3 tomoyan tomoyan 4096 3月 31 14:15 <span class=HIB>.config</span> -rw-r--r-- 1 tomoyan tomoyan 0 6月 4 13:48 fedora_ll.html drwxr-xr-x 7 tomoyan tomoyan 4096 3月 14 15:22 <span class=HIB>genie</span> drwxr-xr-x 12 tomoyan tomoyan 4096 3月 19 04:01 <span class=HIB>openlitespeed</span> -rw-r--r-- 1 tomoyan tomoyan 75249876 3月 17 03:57 <span class=HIR>openlitespeed-1.7.9.tgz</span> drwxr-xr-x 5 tomoyan tomoyan 4096 6月 4 13:44 <span class=HIB>py39def</span> </pre> </body> </html> </code></WRAP> </WRAP> ===== 小枝🤤 画面出力と同時に ansi2html で HTML ファイルにも同時出力する🤔 ===== ==== 処理結果のパイプでエスケープカラーコードが失われないようにする...🤔 ==== まずは、処理結果を普通にパイプするとエスケープカラーコードが失われるので、オプションに <html><code>--color=always</code></html> を指定してエスケープカラーコードが失われないようにする...🤔\\ <WRAP color_term> <WRAP color_command><html><pre> <span class=GRN>$</span> ls -l --color=alway | cat </pre></html></WRAP> <WRAP color_result min-width_200><html><pre> 合計 12 lrwxrwxrwx 1 tomoyan tomoyan 20 8月 21 12:53 <span class=HIC>DataShare</span> -> <span class="BLU BGRN">/var/samba/DataShare</span> -rwxrwxrwx. 1 tomoyan tomoyan 99 8月 18 14:32 <span class=HIG>exec_jupyterlab.sh</span> -rw-r--r-- 1 tomoyan tomoyan 0 9月 18 15:34 ls-l.html drwxr-xr-x 1 tomoyan tomoyan 132 9月 18 15:19 <span class=HIB>my_projects</span> drwxr-xr-x. 1 tomoyan tomoyan 198 9月 17 14:05 <span class=HIB>pyJupyterLab</span> drwxrwxr-x. 1 tomoyan tomoyan 1334 9月 9 11:19 <span class=HIB>work</span> drwxr-xr-x. 1 tomoyan tomoyan 644 9月 10 11:32 <span class=HIB>ダウンロード</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>テンプレート</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>デスクトップ</span> drwxr-xr-x. 1 tomoyan tomoyan 84 9月 6 18:59 <span class=HIB>ドキュメント</span> drwxr-xr-x. 1 tomoyan tomoyan 54 8月 18 14:13 <span class=HIB>ビデオ</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>音楽</span> drwxr-xr-x. 1 tomoyan tomoyan 3530 9月 16 10:06 <span class=HIB>画像</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>公開</span> </pre></html></WRAP> </WRAP> ==== 処理結果をパイプすると画面で出力内容を確認することはできない😇 ==== <html><code>ls -l --color=always</code></html> の処理結果を <html><code>ansi2html</code></html> にパイプで渡すと、HTML ファイルには書き込まれるが画面には何も出力されないので出力内容が確認できない😇\\ <WRAP color_term> <WRAP color_command><html><pre> <span class=GRN>$</span> ls -l --color=alway | ansi2html > ls-l.html </pre></html></WRAP> <WRAP color_result><html><pre> </pre></html></WRAP> </WRAP> tee コマンドは画面出力とファイル出力を行うので <html><code>ansi2html</code></html> の処理結果は画面で確認しつつファイル出力できるが...🤔\\ 普通の出力結果で内容を確認したい😅\\ <WRAP color_term> <WRAP color_command><html><pre> <span class=GRN>$</span> ls -l --color=always | ansi2html | tee ls-l.html </pre></html></WRAP> <WRAP color_result_long><code css> <!DOCTYPE html> <html> <head> <style type="text/css"> body {background-color: black;} pre { font-weight: normal; color: #bbb; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; } b {font-weight: normal} b.BOLD {color: #fff} b.ITA {font-style: italic} b.UND {text-decoration: underline} b.STR {text-decoration: line-through} b.UNDSTR {text-decoration: underline line-through} b.BLK {color: #000000} b.RED {color: #aa0000} b.GRN {color: #00aa00} b.YEL {color: #aa5500} b.BLU {color: #0000aa} b.MAG {color: #aa00aa} b.CYN {color: #00aaaa} b.WHI {color: #aaaaaa} b.HIK {color: #555555} b.HIR {color: #ff5555} b.HIG {color: #55ff55} b.HIY {color: #ffff55} b.HIB {color: #5555ff} b.HIM {color: #ff55ff} b.HIC {color: #55ffff} b.HIW {color: #ffffff} b.BBLK {background-color: #000000} b.BRED {background-color: #aa0000} b.BGRN {background-color: #00aa00} b.BYEL {background-color: #aa5500} b.BBLU {background-color: #0000aa} b.BMAG {background-color: #aa00aa} b.BCYN {background-color: #00aaaa} b.BWHI {background-color: #aaaaaa} </style> </head> <spanody> <pre>合計 16 lrwxrwxrwx 1 tomoyan tomoyan 20 8月 21 12:53 <span class=HIC>DataShare</span> -> <span class="BLU BGRN">/var/samba/DataShare</span> -rw-r--r-- 1 tomoyan tomoyan 2645 9月 18 15:55 cat -rwxrwxrwx. 1 tomoyan tomoyan 99 8月 18 14:32 <span class=HIG>exec_jupyterlab.sh</span> -rw-r--r-- 1 tomoyan tomoyan 0 9月 18 16:23 ls-l.html drwxr-xr-x 1 tomoyan tomoyan 132 9月 18 15:19 <span class=HIB>my_projects</span> drwxr-xr-x. 1 tomoyan tomoyan 198 9月 17 14:05 <span class=HIB>pyJupyterLab</span> drwxrwxr-x. 1 tomoyan tomoyan 1334 9月 9 11:19 <span class=HIB>work</span> drwxr-xr-x. 1 tomoyan tomoyan 644 9月 10 11:32 <span class=HIB>ダウンロード</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>テンプレート</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>デスクトップ</span> drwxr-xr-x. 1 tomoyan tomoyan 84 9月 6 18:59 <span class=HIB>ドキュメント</span> drwxr-xr-x. 1 tomoyan tomoyan 54 8月 18 14:13 <span class=HIB>ビデオ</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>音楽</span> drwxr-xr-x. 1 tomoyan tomoyan 3530 9月 16 10:06 <span class=HIB>画像</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>公開</span> </pre> </body> </html> </code></WRAP> </WRAP> ==== 標準出力を tee コマンドで二重化して片方はパイプしてもう片方は画面出力することを考える...🤔 ==== tee コマンドは<wrap em>__標準出力と同時にファイル出力__</wrap>できる🤔\\ しかし、通常は標準出力はパイプで ansi2html コマンドに渡り、ファイル出力は画面では見られないので、結局そのままでは画面で処理内容を確認することは不可能です😢\\ ファイル出力を画面で確認できれば良いので、出力先を <html><code>/dev/tty</code></html> (現在の画面) に変更する...🤔 /dev/tty は画面をファイルとして扱える🤤\\ 出力を二重化できるということは、標準出力をパイプして他の処理に吸い取られても、ファイル出力を現在の画面で確認できることを意味します🤔\\ <WRAP color_term> <WRAP color_command><html><pre> <span class=GRN>$</span> ls -l --color=always | tee /dev/tty </pre></html></WRAP> <WRAP color_result><html><pre> 合計 16 lrwxrwxrwx 1 tomoyan tomoyan 20 8月 21 12:53 <span class=HIC>DataShare</span> -> <span class="BLU BGRN">/var/samba/DataShare</span> -rw-r--r-- 1 tomoyan tomoyan 2645 9月 18 15:55 cat -rwxrwxrwx. 1 tomoyan tomoyan 99 8月 18 14:32 <span class=HIG>exec_jupyterlab.sh</span> -rw-r--r-- 1 tomoyan tomoyan 0 9月 18 16:23 ls-l.html drwxr-xr-x 1 tomoyan tomoyan 132 9月 18 15:19 <span class=HIB>my_projects</span> drwxr-xr-x. 1 tomoyan tomoyan 198 9月 17 14:05 <span class=HIB>pyJupyterLab</span> drwxrwxr-x. 1 tomoyan tomoyan 1334 9月 9 11:19 <span class=HIB>work</span> drwxr-xr-x. 1 tomoyan tomoyan 644 9月 10 11:32 <span class=HIB>ダウンロード</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>テンプレート</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>デスクトップ</span> drwxr-xr-x. 1 tomoyan tomoyan 84 9月 6 18:59 <span class=HIB>ドキュメント</span> drwxr-xr-x. 1 tomoyan tomoyan 54 8月 18 14:13 <span class=HIB>ビデオ</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>音楽</span> drwxr-xr-x. 1 tomoyan tomoyan 3530 9月 16 10:06 <span class=HIB>画像</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>公開</span> 合計 16 lrwxrwxrwx 1 tomoyan tomoyan 20 8月 21 12:53 <span class=HIC>DataShare</span> -> <span class="BLU BGRN">/var/samba/DataShare</span> -rw-r--r-- 1 tomoyan tomoyan 2645 9月 18 15:55 cat -rwxrwxrwx. 1 tomoyan tomoyan 99 8月 18 14:32 <span class=HIG>exec_jupyterlab.sh</span> -rw-r--r-- 1 tomoyan tomoyan 0 9月 18 16:23 ls-l.html drwxr-xr-x 1 tomoyan tomoyan 132 9月 18 15:19 <span class=HIB>my_projects</span> drwxr-xr-x. 1 tomoyan tomoyan 198 9月 17 14:05 <span class=HIB>pyJupyterLab</span> drwxrwxr-x. 1 tomoyan tomoyan 1334 9月 9 11:19 <span class=HIB>work</span> drwxr-xr-x. 1 tomoyan tomoyan 644 9月 10 11:32 <span class=HIB>ダウンロード</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>テンプレート</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>デスクトップ</span> drwxr-xr-x. 1 tomoyan tomoyan 84 9月 6 18:59 <span class=HIB>ドキュメント</span> drwxr-xr-x. 1 tomoyan tomoyan 54 8月 18 14:13 <span class=HIB>ビデオ</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>音楽</span> drwxr-xr-x. 1 tomoyan tomoyan 3530 9月 16 10:06 <span class=HIB>画像</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>公開</span> </pre></html></WRAP> </WRAP> <html><code>stddata=$(ls -l --color=always | tee /dev/tty)</code></html> を実行すると、標準出力を変数に格納しながら /dev/tty (現在の画面) で確認できる😍\\ そして、一旦変数に格納した標準出力の内容を <html><code>echo "$stddata" | ansi2html > ls-l.html</code></html> で HTML ファイルへ出力します🤔\\ この方法で通常の画面出力で確認しながら、HTML ファイルへの出力も同時に行うことができる😻\\ <WRAP color_term> <WRAP color_command><html><pre> <span class=GRN>$</span> stddata=$(ls -l --color=always | tee /dev/tty) && echo "$stddata" | ansi2html > ls-l.html </pre></html></WRAP> <WRAP color_result><html><pre> 合計 16 lrwxrwxrwx 1 tomoyan tomoyan 20 8月 21 12:53 <span class=HIC>DataShare</span> -> <span class="BLU BGRN">/var/samba/DataShare</span> -rw-r--r-- 1 tomoyan tomoyan 2645 9月 18 15:55 cat -rwxrwxrwx. 1 tomoyan tomoyan 99 8月 18 14:32 <span class=HIG>exec_jupyterlab.sh</span> -rw-r--r-- 1 tomoyan tomoyan 0 9月 18 16:23 ls-l.html drwxr-xr-x 1 tomoyan tomoyan 132 9月 18 15:19 <span class=HIB>my_projects</span> drwxr-xr-x. 1 tomoyan tomoyan 198 9月 17 14:05 <span class=HIB>pyJupyterLab</span> drwxrwxr-x. 1 tomoyan tomoyan 1334 9月 9 11:19 <span class=HIB>work</span> drwxr-xr-x. 1 tomoyan tomoyan 644 9月 10 11:32 <span class=HIB>ダウンロード</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>テンプレート</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>デスクトップ</span> drwxr-xr-x. 1 tomoyan tomoyan 84 9月 6 18:59 <span class=HIB>ドキュメント</span> drwxr-xr-x. 1 tomoyan tomoyan 54 8月 18 14:13 <span class=HIB>ビデオ</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>音楽</span> drwxr-xr-x. 1 tomoyan tomoyan 3530 9月 16 10:06 <span class=HIB>画像</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>公開</span> </pre></html></WRAP> <WRAP color_command><html><pre> <span class=GRN>$</span> cat ls-l.html </pre></html></WRAP> <WRAP color_mincode_long><code javascript> <!DOCTYPE html> <html> <head> <style type="text/css"> body {background-color: black;} pre { font-weight: normal; color: #bbb; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; } b {font-weight: normal} b.BOLD {color: #fff} b.ITA {font-style: italic} b.UND {text-decoration: underline} b.STR {text-decoration: line-through} b.UNDSTR {text-decoration: underline line-through} b.BLK {color: #000000} b.RED {color: #aa0000} b.GRN {color: #00aa00} b.YEL {color: #aa5500} b.BLU {color: #0000aa} b.MAG {color: #aa00aa} b.CYN {color: #00aaaa} b.WHI {color: #aaaaaa} b.HIK {color: #555555} b.HIR {color: #ff5555} b.HIG {color: #55ff55} b.HIY {color: #ffff55} b.HIB {color: #5555ff} b.HIM {color: #ff55ff} b.HIC {color: #55ffff} b.HIW {color: #ffffff} b.BBLK {background-color: #000000} b.BRED {background-color: #aa0000} b.BGRN {background-color: #00aa00} b.BYEL {background-color: #aa5500} b.BBLU {background-color: #0000aa} b.BMAG {background-color: #aa00aa} b.BCYN {background-color: #00aaaa} b.BWHI {background-color: #aaaaaa} </style> </head> <spanody> <pre>合計 16 lrwxrwxrwx 1 tomoyan tomoyan 20 8月 21 12:53 <span class=HIC>DataShare</span> -> <span class="BLU BGRN">/var/samba/DataShare</span> -rw-r--r-- 1 tomoyan tomoyan 2645 9月 18 15:55 cat -rwxrwxrwx. 1 tomoyan tomoyan 99 8月 18 14:32 <span class=HIG>exec_jupyterlab.sh</span> -rw-r--r-- 1 tomoyan tomoyan 0 9月 18 16:23 ls-l.html drwxr-xr-x 1 tomoyan tomoyan 132 9月 18 15:19 <span class=HIB>my_projects</span> drwxr-xr-x. 1 tomoyan tomoyan 198 9月 17 14:05 <span class=HIB>pyJupyterLab</span> drwxrwxr-x. 1 tomoyan tomoyan 1334 9月 9 11:19 <span class=HIB>work</span> drwxr-xr-x. 1 tomoyan tomoyan 644 9月 10 11:32 <span class=HIB>ダウンロード</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>テンプレート</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>デスクトップ</span> drwxr-xr-x. 1 tomoyan tomoyan 84 9月 6 18:59 <span class=HIB>ドキュメント</span> drwxr-xr-x. 1 tomoyan tomoyan 54 8月 18 14:13 <span class=HIB>ビデオ</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>音楽</span> drwxr-xr-x. 1 tomoyan tomoyan 3530 9月 16 10:06 <span class=HIB>画像</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>公開</span> </pre> </body> </html> </code></WRAP> </WRAP> ===== スタイル一覧 ===== <html> <style> .dokuwiki .wrap_ansi2html table { width: 230px !important; /*border: solid 1px;*/ } .dokuwiki .wrap_ansi2html .table>tbody>tr>td, .dokuwiki .wrap_ansi2html .table>tbody>tr>th, .dokuwiki .wrap_ansi2html .table>tfoot>tr>td, .dokuwiki .wrap_ansi2html .table>tfoot>tr>th, .dokuwiki .wrap_ansi2html .table>thead>tr>td, .dokuwiki .wrap_ansi2html .table>thead>tr>th { /*border-top: inherit !important;*/ border: #ccc solid 1px; } .dokuwiki .wrap_ansi2html table, .dokuwiki .wrap_ansi2html table > tbody > tr { /*background-color: black;*/ font-size: 10px; } .dokuwiki .wrap_column { margin-right: 6px; } .dokuwiki .wrap_ansi2html .table-striped>tbody>tr:nth-of-type(odd) { background-color: transparent; } .dokuwiki .wrap_ansi2html .table-hover>tbody>tr:hover { background-color: rgba(255, 255, 255, 30%); } </style> </html> <WRAP group mintbl color_term ansi2html> <WRAP left column #col1> |<html><span class=BOLD>BOLD</span></html>|<html><span class=BOLD><b class=BOLD>BOLD</b></span></html>| |<html><span class=ITA>ITA</span></html>|<html><span class=ITA><b class=ITA>ITA</b></span></html>| |<html><span class=UND>UND</span></html>|<html><span class=UND><b class=UND>UND</b></span></html>| |<html><span class=STR>STR</span></html>|<html><span class=STR><b class=STR>STR</b></span></html>| |<html><span class=UNDSTR>UNDSTR</span></html>|<html><span class=UNDSTR><b class=UNDSTR>UNDSTR</b></span></html>| |<html><span class=BLK>BLK</span></html>|<html><span class=BLK><b class=BLK>BLK</b></span></html>| |<html><span class=RED>RED</span></html>|<html><span class=RED><b class=RED>RED</b></span></html>| |<html><span class=GRN>GRN</span></html>|<html><span class=GRN><b class=GRN>GRN</b></span></html>| |<html><span class=YEL>YEL</span></html>|<html><span class=YEL><b class=YEL>YEL</b></span></html>| |<html><span class=BLU>BLU</span></html>|<html><span class=BLU><b class=BLU>BLU</b></span></html>| ^ custom ^^ |<html><span class=DiYE>DiYE</span></html>|<html><span class=DiYE><b class=DiYE>DiYE</b></span></html>| |<html><span class=BoHIK>BoHIK</span></html>|<html><span class=BoHIK><b class=BoHIK>BoHIK</b></span></html>| </WRAP> <WRAP left column #col2> |<html><span class=MAG>MAG</span></html>|<html><span class=MAG><b class=MAG>MAG</b></span></html>| |<html><span class=CYN>CYN</span></html>|<html><span class=CYN><b class=CYN>CYN</b></span></html>| |<html><span class=WHI>WHI</span></html>|<html><span class=WHI><b class=WHI>WHI</b></span></html>| |<html><span class=HIK>HIK</span></html>|<html><span class=HIK><b class=HIK>HIK</b></span></html>| |<html><span class=HIR>HIR</span></html>|<html><span class=HIR><b class=HIR>HIR</b></span></html>| |<html><span class=HIG>HIG</span></html>|<html><span class=HIG><b class=HIG>HIG</b></span></html>| |<html><span class=HIY>HIY</span></html>|<html><span class=HIY><b class=HIY>HIY</b></span></html>| |<html><span class=HIB>HIB</span></html>|<html><span class=HIB><b class=HIB>HIB</b></span></html>| |<html><span class=HIM>HIM</span></html>|<html><span class=HIM><b class=HIM>HIM</b></span></html>| |<html><span class=HIC>HIC</span></html>|<html><span class=HIC><b class=HIC>HIC</b></span></html>| </WRAP> <WRAP left column #col3> |<html><span class=HIW>HIW</span></html>|<html><span class=HIW><b class=HIW>HIW</b></span></html>| |<html><span class=BBLK>BBLK</span></html>|<html><span class=BBLK><b class=BBLK>BBLK</b></span></html>| |<html><span class=BRED>BRED</span></html>|<html><span class=BRED><b class=BRED>BRED</b></span></html>| |<html><span class=BGRN>BGRN</span></html>|<html><span class=BGRN><b class=BGRN>BGRN</b></span></html>| |<html><span class=BYEL>BYEL</span></html>|<html><span class=BYEL><b class=BYEL>BYEL</b></span></html>| |<html><span class=BBLU>BBLU</span></html>|<html><span class=BBLU><b class=BBLU>BBLU</b></span></html>| |<html><span class=BMAG>BMAG</span></html>|<html><span class=BMAG><b class=BMAG>BMAG</b></span></html>| |<html><span class=BCYN>BCYN</span></html>|<html><span class=BCYN><b class=BCYN>BCYN</b></span></html>| |<html><span class=BWHI>BWHI</span></html>|<html><span class=BWHI><b class=BWHI>BWHI</b></span></html>| </WRAP> </WRAP> <WRAP color_term> <WRAP color_mincode><html><pre> <b class=BSc> <b class=BSc> </b> <b class=BScBLU> <span class=BScBLU> </b> <b class=BScHGRY> <b class=BScHGRY> </b> <b class=BScINDG> <b class=BScINDG> </b> </pre></html></WRAP> </WRAP> ※ ansi2html オリジナルカラーから当サイトテーマ用にアレンジしています🤔\\ ==== Dokuwiki 雛形 ==== <WRAP color_term> <WRAP color_mincode><code html> <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>command</b> subcommand <b class=HIK>--options</b> <b class=DiYE>...</b> </pre></html></WRAP> <WRAP color_result><html><pre> </pre></html></WRAP> <WRAP color_result_long><html><pre> </pre></html></WRAP> <WRAP color_mincode><html><pre> </pre></html></WRAP> <WRAP color_mincode_long><html><pre> </pre></html></WRAP> </WRAP> </code></WRAP> </WRAP> <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>command</b> subcommand <b class=HIK>--options</b> <b class=DiYE>...</b> </pre></html></WRAP> <WRAP color_result><html><pre> </pre></html></WRAP> </WRAP> <WRAP color_term> <WRAP color_mincode><code html> <WRAP color_term> <WRAP color_command><html><pre> (pyJupyterLab) <b class=GRN>$</b> <b class=HIY>pip</b> install jupyterlab-nvdashboard </pre></html></WRAP> <WRAP color_result><html><pre> ... Downloading https://www.piwheels.org/simple/bokeh/bokeh-2.4.3-py3-none-any.whl (18.5 MB) <b class=PipBAR>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</b> <b class=GRN>18.5/18.5 MB</b> <b class=RED>130.2 kB/s</b> eta <b class=CYN>0:00:00</b> </pre></html></WRAP> </WRAP> </code></WRAP> </WRAP> <WRAP color_term> <WRAP color_command><html><pre> (pyJupyterLab) <b class=GRN>$</b> <b class=HIY>pip</b> install jupyterlab-nvdashboard </pre></html></WRAP> <WRAP color_result><html><pre> ... Downloading https://www.piwheels.org/simple/bokeh/bokeh-2.4.3-py3-none-any.whl (18.5 MB) <b class=PipBAR>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</b> <b class=GRN>18.5/18.5 MB</b> <b class=RED>130.2 kB/s</b> eta <b class=CYN>0:00:00</b> </pre></html></WRAP> </WRAP> ===== ansi2html に処理結果をパイプする場合は '--color=auto' ではなく '--color=always' を指定する ===== RedHat 系 Linux では bash の alias が以下のように登録されています。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>alias</b> </pre></html></WRAP> <WRAP color_result><html><pre> alias diff='diff --color=auto' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' alias l.='ls -d .* --color=auto' alias ll='ls -l --color=auto' alias ls='ls --color=auto' alias zegrep='zegrep --color=auto' alias zfgrep='zfgrep --color=auto' alias zgrep='zgrep --color=auto' </pre></html></WRAP> </WRAP> 通常の <html><code>ls -l</code></html> も <html><code>--color=auto</code></html> と同じで、<wrap em>__処理結果をパイプするとエスケープカラーコードが失われる__</wrap>🤔\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>ls</b> <b class=HIK>-l</b> | <b class=HIY>cat</b> </pre></html></WRAP> <WRAP color_result><html><pre> 合計 20 lrwxrwxrwx 1 tomoyan tomoyan 20 8月 21 12:53 DataShare -> /var/samba/DataShare -rw-r--r-- 1 tomoyan tomoyan 2645 9月 18 15:55 cat -rwxrwxrwx. 1 tomoyan tomoyan 99 8月 18 14:32 exec_jupyterlab.sh -rw-r--r-- 1 tomoyan tomoyan 2341 9月 18 15:37 ls-l.html drwxr-xr-x 1 tomoyan tomoyan 132 9月 18 15:19 my_projects drwxr-xr-x. 1 tomoyan tomoyan 198 9月 17 14:05 pyJupyterLab drwxrwxr-x. 1 tomoyan tomoyan 1334 9月 9 11:19 work drwxr-xr-x. 1 tomoyan tomoyan 644 9月 10 11:32 ダウンロード drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 テンプレート drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 デスクトップ drwxr-xr-x. 1 tomoyan tomoyan 84 9月 6 18:59 ドキュメント drwxr-xr-x. 1 tomoyan tomoyan 54 8月 18 14:13 ビデオ drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 音楽 drwxr-xr-x. 1 tomoyan tomoyan 3530 9月 16 10:06 画像 drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 公開 </pre></html></WRAP> </WRAP> <html><code>--color=auto</code></html> が指定されていると__**パイプやリダイレクト**__ にエスケープカラーコードを出力しないので <html><code>--color=always</code></html> を指定し直す必要がある🤔\\ (alias が <html><code>--color=auto</code></html> である理由はパイプやリダイレクトで grep や sort されることを考慮していると思われる😅\\ **man ls** より\\ <WRAP prewrap 100% result> <code> ... --color[=WHEN] カラー出力をする。 WHEN には 'always' (デフォルト値)、 'never'、 'auto' が指定でき る。詳細は下記を参照 ... デフォルトまたは --color=never を指定した場合、ファイルの種類を判別するための カラー表示は無効となります。 --color=auto を指定した場合、標準出力が端末に接続 されている場合のみカラーコードを出力します。LS_COLORS 環境 変数によって動作 を設定できます。LS_COLORS を設定する場合は dircolors を使用してください。 ... </code> </WRAP> <html><code>--color=always</code></html> を指定すると処理結果をパイプやリダイレクトしてもエスケープカラーコードが失われることはない😊\\ <WRAP color_term> <WRAP color_command><html><pre> <span class=GRN>$</span> <b class=HIY>ls</b> <b class=HIK>-l --color=always</b> | <b class=HIY>cat</b> </pre></html></WRAP> <WRAP color_result><html><pre> 合計 16 lrwxrwxrwx 1 tomoyan tomoyan 20 8月 21 12:53 <span class=HIC>DataShare</span> -> <span class="BLU BGRN">/var/samba/DataShare</span> -rwxrwxrwx. 1 tomoyan tomoyan 99 8月 18 14:32 <span class=HIG>exec_jupyterlab.sh</span> -rw-r--r-- 1 tomoyan tomoyan 2341 9月 18 15:34 ls-l.html drwxr-xr-x 1 tomoyan tomoyan 132 9月 18 15:19 <span class=HIB>my_projects</span> drwxr-xr-x. 1 tomoyan tomoyan 198 9月 17 14:05 <span class=HIB>pyJupyterLab</span> drwxrwxr-x. 1 tomoyan tomoyan 1334 9月 9 11:19 <span class=HIB>work</span> drwxr-xr-x. 1 tomoyan tomoyan 644 9月 10 11:32 <span class=HIB>ダウンロード</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>テンプレート</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>デスクトップ</span> drwxr-xr-x. 1 tomoyan tomoyan 84 9月 6 18:59 <span class=HIB>ドキュメント</span> drwxr-xr-x. 1 tomoyan tomoyan 54 8月 18 14:13 <span class=HIB>ビデオ</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>音楽</span> drwxr-xr-x. 1 tomoyan tomoyan 3530 9月 16 10:06 <span class=HIB>画像</span> drwxr-xr-x. 1 tomoyan tomoyan 0 8月 18 08:54 <span class=HIB>公開</span> </pre></html></WRAP> </WRAP> ===== 参考文献 ===== [[https://unix.stackexchange.com/questions/44956/converting-colored-output-into-html|command line - Converting colored output into html - Unix & Linux Stack Exchange]]\\ [[https://github.com/pycontribs/ansi2html|pycontribs/ansi2html: Convert text with ansi color codes to HTML]]\\ [[https://wiki.archlinux.jp/index.php/%E3%82%B3%E3%83%B3%E3%82%BD%E3%83%BC%E3%83%AB%E3%81%AE%E3%82%AB%E3%83%A9%E3%83%BC%E5%87%BA%E5%8A%9B|コンソールのカラー出力 - ArchWiki]]\\ [[qita>soshiM/items/456b89ad968c068cbb90|grepコマンドの--color=alwaysオプションを使うべきではない - Qiita]]\\ [[qita>wnoguchi/items/2fc3ec11043d139dc6bb|teeコマンドの使い方 - Qiita]]\\ ==== 付録 ==== [[tw>tomoyan596/status/1376627564303687680|\$ top | lolcat とか... $ htop | lolcat とすると、虹色の出力が動いています😅💦💦💦 なにしてるんでしょうねぇ😇]]\\ [[tw>tomoyan596/status/1400928448332197894|ansi2htmlがbashのaliasだとhtml出力がカラーにならないのは何故でしょうねぇ🤔原因はまだ調べてませんけど...]]\\ linux/ansi2html.txt 最終更新: 2025/04/06 10:46by ともやん