facebookincubator / Glean

System for collecting, deriving and working with facts about source code.
https://glean.software/
Other
966 stars 43 forks source link

Build on Intel Pentium N4200 #418

Closed oquechy closed 11 months ago

oquechy commented 11 months ago

On my machine, at (green) revision d1d09ea2c89dd865c6b7ba44f6b3edd6a76beede fails on "Build glass" and "Run tests" steps.

Build glass:

$ env LD_LIBRARY_PATH="$HOME/.hsthrift/lib" PKG_CONFIG_PATH="$HOME/.hsthrift/lib/pkgconfig" make glass
...
[65 of 69] Compiling Glean.Database.Janitor ( glean/db/Glean/Database/Janitor.hs, /home/oquechy/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/l/db/build/db/Glean/Database/Janitor.o, /home/oquechy/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/l/db/build/db/Glean/Database/Janitor.dyn_o )

glean/db/Glean/Database/Janitor.hs:491:29: error:
    Variable not in scope:
      retention_required_properties :: HashMap.HashMap Text Text
    |
491 |       filter (hasProperties retention_required_properties) $
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: cabal: Failed to build lib:db from glean-0.1.0.0 (which is required by exe:glass-server from glean-0.1.0.0).

Run tests:

$ env LD_LIBRARY_PATH="$HOME/.hsthrift/lib" PKG_CONFIG_PATH="$HOME/.hsthrift/lib/pkgconfig" cabal test glean:tests -f-hack-tests
...
Test suite glean-snapshot-flow: RUNNING...
Cases: 1  Tried: 0  Errors: 0  Failures: 0I1212 20:43:58.305759 186278 Open.hs:448] test/xrefs: opening
*** Aborted at 1702410238 (Unix time, try 'date -d @1702410238') ***
*** Signal 4 (SIGILL) (0x14e03fe) received by PID 186278 (pthread TID 0x7fd7d1eae2c0) (linux TID 186278) (code: illegal operand), stack trace: ***
/home/oquechy/.hsthrift/lib/libfolly.so.0.58.0-dev(_ZN5folly10symbolizer17getStackTraceSafeEPmm+0x2b)[0x7fd7d4f697fb]
/home/oquechy/.hsthrift/lib/libfolly.so.0.58.0-dev(_ZN5folly10symbolizer21SafeStackTracePrinter15printStackTraceEb+0x25)[0x7fd7d4f6ac85]
/home/oquechy/.hsthrift/lib/libfolly.so.0.58.0-dev(+0x28b46e)[0x7fd7d4f6946e]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x1441f)[0x7fd7d2fa141f]
/home/oquechy/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/t/glean-snapshot-flow/build/glean-snapshot-flow/glean-snapshot-flow(_ZN5folly18NamedThreadFactory9newThreadEONS_8FunctionIFvvEEE+0x7e)[0x14e03fe]
/home/oquechy/.hsthrift/lib/libfolly.so.0.58.0-dev(_ZN5folly18ThreadPoolExecutor10addThreadsEm+0x1c6)[0x7fd7d4efece6]
/home/oquechy/.hsthrift/lib/libfolly.so.0.58.0-dev(_ZN5folly18ThreadPoolExecutor13setNumThreadsEm+0xcc)[0x7fd7d4efe9ec]
/home/oquechy/.hsthrift/lib/libfolly.so.0.58.0-dev(_ZN5folly21CPUThreadPoolExecutorC1ESt4pairImmESt10shared_ptrINS_13ThreadFactoryEENS0_7OptionsE+0x1bd)[0x7fd7d4eccf6d]
/home/oquechy/.hsthrift/lib/libfolly.so.0.58.0-dev(+0x354a38)[0x7fd7d5032a38]
/home/oquechy/.hsthrift/lib/libfolly.so.0.58.0-dev(_ZN5folly6detail15SingletonHolderINS_21CPUThreadPoolExecutorEE14createInstanceEv+0x317)[0x7fd7d5033697]
/home/oquechy/.hsthrift/lib/libfolly.so.0.58.0-dev(+0x354958)[0x7fd7d5032958]
/home/oquechy/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/t/glean-snapshot-flow/build/glean-snapshot-flow/glean-snapshot-flow(_ZN5folly13hazptr_domainISt6atomicE30invoke_reclamation_in_executorEi+0x8c)[0xb4db2c]
/home/oquechy/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/t/glean-snapshot-flow/build/glean-snapshot-flow/glean-snapshot-flow[0xb4b825]
/home/oquechy/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/t/glean-snapshot-flow/build/glean-snapshot-flow/glean-snapshot-flow[0xb318d6]
/home/oquechy/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/t/glean-snapshot-flow/build/glean-snapshot-flow/glean-snapshot-flow[0xb28d37]
/home/oquechy/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/t/glean-snapshot-flow/build/glean-snapshot-flow/glean-snapshot-flow[0xb212d0]
/home/oquechy/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/t/glean-snapshot-flow/build/glean-snapshot-flow/glean-snapshot-flow[0xb39114]
/home/oquechy/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/t/glean-snapshot-flow/build/glean-snapshot-flow/glean-snapshot-flow[0x64661d]
(safe mode, symbolizer not available)

In CI, fails on "Build hsthrift and Glean" step:

$ env LD_LIBRARY_PATH="$HOME/.hsthrift/lib" PKG_CONFIG_PATH="$HOME/.hsthrift/lib/pkgconfig" make
...
Error: cabal-3.8.1.0: can't find source for Glean/Schema/CodemarkupCSharp in glean/schema/hs, glean/schema/thrift/gen-hs2, /__w/Glean/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/l/schema/build/schema/autogen, /__w/Glean/Glean/dist-newstyle/build/x86_64-linux/ghc-8.10.7/glean-0.1.0.0/l/schema/build/global-autogen
facebook-github-bot commented 11 months ago

Hi @oquechy!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

netlify[bot] commented 11 months ago

Deploy Preview for fb-oss-glean canceled.

Name Link
Latest commit 35d1b2fdd00fc0434b5f8e0fe547c89c91b95079
Latest deploy log https://app.netlify.com/sites/fb-oss-glean/deploys/6579c76cccc4ad000810a43b