Summary: | www-client/chromium-120.0.6099.109 failed to compile in gen/net/http/transport_security_state_static.h | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | François Valenduc <francoisvalenduc> |
Component: | Current packages | Assignee: | Chromium Project <chromium> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | kangie |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | full build log |
Description
François Valenduc
2023-12-13 13:35:36 UTC
Created attachment 879005 [details]
full build log
Build fails exactly in the same way on archlinux. [31mFAILED: [0mgen/net/http/transport_security_state_static.h python3.11 ../../build/gn_run_binary.py transport_security_state_generator ../../net/http/transport_security_state_static.json ../../net/http/transport_security_state_static_pins.json ../../net/http/transport_security_state_static.pins ../../net/http/transport_security_state_static.template gen/net/http/transport_security_state_static.h transport_security_state_generator failed with exit code -4 Strangely, on another system, it works correctly: grep gen/net/http/transport_security_state_static.h /var/tmp/notmpfs/portage/www-client/chromium-120.0.6099.109/temp/build.log [18950/57659] python3.11 ../../build/gn_run_binary.py transport_security_state_generator ../../net/http/transport_security_state_static.json ../../net/http/transport_security_state_static_pins.json ../../net/http/transport_security_state_static.pins ../../net/http/transport_security_state_static.template gen/net/http/transport_security_state_static.h Compilation is not yet finished, but it is way paste the point where it fails. Nobody has ideas on this mysterious problem ? Meanwhile compilation has obviously ended and it worked on one of my computer, but not on another one. It always fails with the same error in gen/net/http/transport_security_state_static.h, like in archlinux. Could you try with app-alternatives/ninja[samurai,-reference]? It sometimes gives better error messages. Also, could you try running the failing command manually in the workdir to see if we get more output? I've taken a quick look at the logs. I obviously can't repro this, but it's very odd.
> FAILED: gen/net/http/transport_security_state_static.h
> python3.11 ../../build/gn_run_binary.py transport_security_state_generator ../../net/http/transport_security_state_static.json ../../net/http/transport_security_state_static_pins.json ../../net/http/transport_security_state_static.pins ../../net/http/transport_security_state_static.template gen/net/http/transport_security_state_static.h
>transport_security_state_generator failed with exit code -4
Contextually it seems to be failing to generate a header file from soome json files?
To debug it'll be worth working out what that does and where it exits with exit code -4.
Ok, it's actually supposed to compile and run this as part of the build.
> https://github.com/chromium/chromium/blob/45d4943870ee2c9429e468b8e297ff6d34909556/net/tools/transport_security_state_generator/transport_security_state_generator.cc
I can's see where the -4 exit code is coming from, but does it (or rather the compiled tool `transport_security_state_generator` exist?
I guess I had to run this: /var/tmp/portage/www-client/chromium-120.0.6099.109/work/chromium-120.0.6099.109/out/Release# python3.11 ../../build/gn_run_binary.py transport_security_state_generator ../../net/http/transport_security_state_static.json ../../net/http/transport_security_state_static_pins.json ../../net/http/transport_security_state_static.pins ../../net/http/transport_security_state_static.template gen/net/http/transport_security_state_static.h It doesn't give more clues: transport_security_state_generator failed with exit code -4 zsh: exit 252 python3.11 ../../build/gn_run_binary.py transport_security_state_generator I finally found that this was caused by wrongly defined CFLAGS. I set again -march=native and it compiles correctly. What did you have before...? This were my previous CFLAGS: "-O2 -pipe -march=skylake -mabm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=8192 This has worked up to chromium-120.0.6099.71. Here an extract of lscpu: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 46 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Vendor ID: GenuineIntel Model name: Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz CPU family: 6 Model: 63 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 16 Stepping: 2 BogoMIPS: 4801.97 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid tsc_known_freq pni pclmul qdq vmx ssse3 fma cx16 pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsg sbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt arat vnmi umip md_clear arch_capabilities |