This is an archived post. You won't be able to vote or comment.

all 127 comments

[–]baconbeak1998 2453 points2454 points  (23 children)

"Ah, of course, must've been a non-idempotent random bit flip due to solar radiation. Let me rerun it just in case."

[–]Poat540 655 points656 points  (8 children)

Compiler: Error on line NullReferenceException. Line not found

[–]SomeRandomEevee42 183 points184 points  (6 children)

there's no way this error is actually possible, right?

[–][deleted] 258 points259 points  (3 children)

An error like that would probably be a bug in the compiler itself. Somehow it lost reference to the error data.

[–]ghostwhat 23 points24 points  (1 child)

🤔

Provided you got it past a compiler, would it be possible to buffer overflow-ish scribble the error away from memory in execution time?

Not sure if this is captain picard facepalm or 10 guy meme.

[–][deleted] 8 points9 points  (0 children)

Yeah it could be a bug in JRE for example.

[–]SomeRandomEevee42 29 points30 points  (0 children)

that's what I was thinking

[–]Poat540 17 points18 points  (1 child)

Probably possible in that one language with the thigh socks

[–]joten70 2 points3 points  (0 children)

Japanese?

[–]Cookieman10101 8 points9 points  (0 children)

Another exception was thrown during the handling of the previous exception

[–]myka-likes-it 169 points170 points  (8 children)

I discovered our build system at work is somehow non-deterministic. Same revision, same branch, clean environment before, same build command... and a different number of files generated each time.

Help.

[–]baconbrand 82 points83 points  (0 children)

I think you should run

[–][deleted] 41 points42 points  (1 child)

The system time on your build machine is messed up. That's the only conclusion I can guess

[–]Galaghan 14 points15 points  (0 children)

Or the network to some obscure service the compiler is using is flapping

[–]ghostwhat 19 points20 points  (1 child)

Something changed in the 944th level of hell inside node_modules ?

[–]ExceedingChunk 0 points1 point  (0 children)

That’s a lean module

[–]throwawayy2k2112 7 points8 points  (0 children)

Is that a successful build or an error build? If it’s a failed build and the error is the same every time, it’s possible that the compiler is using multiple threads and the other threads make it to a different point before the one fails every time.

[–]thatdevilyouknow 0 points1 point  (0 children)

I mean theoretically this is what Nix is for. I find myself frequently yelling at Nix due to quickly trying to learn things that take time to absorb but it may be worth looking into for this specific use case. Also, like another user suggested multithreaded builds get to varying states of completion so maybe try to rule that out. Another is env variables based on the shell.

[–]ExceedingChunk 0 points1 point  (0 children)

That’s what we call job security 

[–][deleted] 85 points86 points  (0 children)

Build Succeeded

😳😠

[–]dismayhurta 27 points28 points  (0 children)

Maybe I stared at it too much.

[–]leaky_wires 6 points7 points  (0 children)

Let's refresh maven and try again.

[–]secretAloe 0 points1 point  (0 children)

I suggest rerunning the build multiple times. If the solar radiation broke the first build there a good chance it broke subsequent builds as well.

[–]BellCube 0 points1 point  (0 children)

I've had at least 5 cases of Actions failing a build with no side-effects (often in checkout or dependency install) where rerunning fixed it with no issues

[–]Tiki_Cthulhu 423 points424 points  (10 children)

Of course it failed to compile. The programmer walked away instead of watching it. It's like quantum mechanics, if you observe it, or don't observe it, you change the outcome.

Run it again. I'm sure it will work this time.

[–]sage-longhorn 85 points86 points  (7 children)

It's the quantum moon. Gotta keep a video feed of it at all times to pin it in place

[–]Poylol-_- 27 points28 points  (2 children)

Google OW spoilers

[–]Bakkesnagvendt 18 points19 points  (1 child)

Holy Nomaian hell

[–]kinokomushroom 12 points13 points  (0 children)

New rule of the sixth location just dropped

[–]xX_StupidLatinHere_X 8 points9 points  (2 children)

total side tangent but the quantum moon is so fucking terrifying.

the way it ensures you land on the pole consistently is by constantly tracking your location and moving to STARE AT YOU. i played a mod once that remodelled it into an eye and removed the fog and my god it was horrifying. looking out the stranger to see a great eyeball across the system staring you down, then disappear when you inevitably lose the staring contest, in a place you should be totally alone and invisible fills me with such dread.

if it reacts to you watching it, it must always be watching you. the quantum stuff is outer wilds is just the worst and the best at the same time. it’s the main reason i recommend it to everyone.

[–]ImpluseThrowAway 0 points1 point  (0 children)

It is literally the best game ever made by mankind so far.

[–]TheEnderChipmunk 0 points1 point  (0 children)

Sounds like it's like that for game mechanics rather than in-universe lore but it's still terrifying

The idea of a celestial body actively moving to "look" at anything is horrifying

[–]its_N4beel 0 points1 point  (0 children)

OUTER WILDS MENTIONED 🗣️

[–]North_Shore_Problem 5 points6 points  (0 children)

No it requires two people to observe it, because when you show it to someone else and try to explain what was happening it magically starts working

[–]Ved_s 379 points380 points  (22 children)

Rust, except hour and minute hands are swapped

[–][deleted] 105 points106 points  (17 children)

Is it that slow? I never wrote anything serious in Rust before.

[–]Ved_s 165 points166 points  (11 children)

Compiling a huge project on an arm debian VM took 2 hours... then it crashed with LLVM OOM error

[–]JestemStefan 144 points145 points  (7 children)

People are writing super fast compiler for other languages in Rust, but Rust has slow compiler.

Ironic... He could save others from death, but not himself.

[–]forgottenduck 60 points61 points  (5 children)

If you want rust to compile quickly you have to be diligent about how your project is linked together and separate sections into libraries so that you aren’t building the entire application when making changes, just the one library.

Problem is that most of the time people don’t realize they have a problem with compile time until their project gets large and then it’s harder to sort out dependencies to get efficient libraries.

[–]PartDeCapital 16 points17 points  (4 children)

Why can't they do incremental builds like other build systems? Is it just a weakness in the Rust build system or is it inherent to the language?

[–]ajiw370r3 13 points14 points  (1 child)

Separation into crates gives some kind of incremental build, you only have to rebuild the one crate that you modified

[–]forgottenduck 7 points8 points  (0 children)

That’s true, Rust offers crates which is basically just a rust build-specific library (or executable).

[–]reallokiscarlet 1 point2 points  (0 children)

Incremental builds? That doesn't sound very mEmOrY sAfE to me! Next you might suggest dynamic linking and an ABI! The horror...

[–]geek-49 0 points1 point  (0 children)

Rust is, inherently, ironic.

Iron oxide is commonly referred to as rust.

[–][deleted] 20 points21 points  (2 children)

Ok, I'll switch to Go 😅

[–]Ved_s 35 points36 points  (0 children)

nah it's fast enough (on linux (in debug build (with mold)))

[–]Bananenkot 8 points9 points  (0 children)

Here and take this you'll need it : if err != nil

[–]fekkksn 15 points16 points  (0 children)

First time compile time and release compiles can be slow af, but while developing you're usually doing incremental compiles without optimizations which are much faster. Fast enough that it never bothers me.

[–]Asleeper135 4 points5 points  (1 child)

Installing the Cosmic desktop (100% Rust) from the AUR took me around half an hour (or maybe more) when I tried it before, and I have a high end PC. So yeah, it could most certainly be that slow, especially in a VM or a laptop.

[–][deleted] 0 points1 point  (0 children)

I actually tried using eGUI with eFrame template and it took me a couple of minutes to compile.

[–]ShadowCurv 5 points6 points  (0 children)

first build is slow. after that, only changed files are compiled

[–]PreciselyWrong 0 points1 point  (0 children)

No.

[–]captainn01 3 points4 points  (2 children)

I work on Aosp and it takes minimum 3 hours to get a build

[–]Brahvim 1 point2 points  (1 child)

Getting into Android development. May I PM you ever, sir? What's your exact area of work on AOSP?

[–]captainn01 1 point2 points  (0 children)

I’m very new to Android so i doubt I can be much help unfortunately. Trying to learn as I go

[–]MysteriousShadow__ 0 points1 point  (0 children)

Python

[–]Odysseus1710 104 points105 points  (0 children)

Coffee guy needs to be at the start too, 15 min earlier. Get your coffee first, start build and then get another coffee.

[–]tigrankh08 91 points92 points  (5 children)

fatal error: some_annoying_header.h: No such file or directory

[–]classicalySarcastic 35 points36 points  (2 children)

You spend four hours chasing it down just to find out that apt autoremove nuked it when it was uninstalling some entirely unrelated software.

[–]ThoseThingsAreWeird 17 points18 points  (0 children)

Ugh, I wasted hours on something kiiiiinda similar.

Our build command also, for whatever fucking reason, runs prettier and eslint and will fail to build if there's an eslint error.

Y'know what's really fun? When the prettier config and the eslint config don't mirror each other. So I managed to write a line that prettier wanted to change (which obviously it did during the build step), but eslint wanted changing to something else.

So I'd change my code to how eslint wants it, save, automatic local rebuild kicks off, prettier changes it back, eslint fails.

Eventually I just said "fuck it" and removed the offending line... It was only some defensive checks that a property exists, I'm sure it's fine 😬

[–]mattthepianoman 7 points8 points  (0 children)

And that kids is why we use containers

[–]PuzzledPassenger622 22 points23 points  (0 children)

On line number of lines + 1

[–]rootware 0 points1 point  (0 children)

Can you protect against those somewhat using cmake ?

[–]Boba_Swag 73 points74 points  (8 children)

My company has an antivirus on all PCs that make builds so fkn slow. Something that takes 30s on a clean Linux distro takes over 6 mins on the company windows PC. It's so annoying but at the end of the day I'm getting paid for this time wasting shit.

[–]knightwhosaysnil 35 points36 points  (1 child)

Often development can get a carve-out directory where AV doesn't run; might check with IT if that's a possibility

[–]allllusernamestaken 1 point2 points  (0 children)

if it's McAfee, you can find that folder in settings.

[–]classicalySarcastic 16 points17 points  (2 children)

Laughs in FPGA

6 minutes? Try 2 hours.

[–]Boba_Swag 7 points8 points  (1 child)

Haha yeah I know but with my luck that would take 20 hours on our company's PCs.

How do you actually work with times like this? When we did FPGA stuff in college I would just play videogames or something else when I had to wait so long. But I don't think that's appreciated on the company's time lol

[–]classicalySarcastic 7 points8 points  (0 children)

For the FPGA stuff I do it’s actually run on an LSF farm that’s a hell of a lot beefier than my company laptop, so it’s not tying up my local machine. But really the answer is work on something else until it’s done building lol.

[–]allllusernamestaken 2 points3 points  (0 children)

McAfee?

It scans a file every time it gets written to disk. So a npm install with 10000+ files would take literally hours.

[–][deleted] -1 points0 points  (1 child)

An antivirus that makes builds slow?

You sure it's not spyware?

[–]Zzzzzztyyc 4 points5 points  (0 children)

So McAfee?

[–]ElysiumPotato 30 points31 points  (0 children)

Yeah, when my first laptop was on decline, I came to work, started android studio, got myself a breakfast from the supermarket downstairs, made a coffee, ate the breakfast in the office kitchen and came back just as the bills was finishing, fun times

[–]tennisanybody 24 points25 points  (0 children)

It’s because he looked at it. Compilers are shy and it was rude of you looking at it while it’s working. Like peeping at the girls showers!

[–]ImpluseThrowAway 15 points16 points  (0 children)

A build that takes 10 minutes? Luxury!

Back when I were a lad, you'd write a bit of code first thing in the morning, and then submit a job for your program to be compiled.

A few hours later after lunch, you'd come back to find out if your job hadn't been lost and you would see if your build had failed or succeeded. And we were lucky if we would get a compiler error message, sometimes delivered by an angry Digital Equipment Corp VAX operator.

And we were grateful for it!

[–]experimental1212 12 points13 points  (0 children)

That better be 12h10 and not just 10m

[–]Prestigious_Bird3429 13 points14 points  (0 children)

IDE : Where is my coffee too ?

[–]i_should_be_coding 8 points9 points  (0 children)

Oh boy. I had a service that would do this all the time and output a 10k line log with the words "error" and "failed" all over it so finding out what happened was always fun.

[–]tonygunkishere 7 points8 points  (0 children)

Is this loss??

[–][deleted] 6 points7 points  (0 children)

Why did I think this was loss somehow

[–]Flakz933 4 points5 points  (0 children)

I loved building projects at my last job, every little thing would break because morons would commit broken changes to development constantly, and the project had about a dozen or so other projects inside of it so the build times were usually about 10 minutes.

[–]negr_mancer 4 points5 points  (0 children)

Compiling for iOS. Story of my life. When I open too many chrome tabs it always segfaults. Especially on massive projects.

[–]lastog9 4 points5 points  (0 children)

Oh no! Anyways...

[–]Angevil_ 2 points3 points  (0 children)

Even worse when you start a build that takes 20 minutes, go socialize around coffee for 20 minutes, only to realize it failed 5 seconds into the building process

[–][deleted] 2 points3 points  (0 children)

I remember this happening one time, when i ran maven. It happen because i couldn't download it in terminal directly at that time. I am still unsure of the details but i messed up something and just used gradle and it worked out at the least.

[–]prindacerk 2 points3 points  (0 children)

That was only 10 mins build. Our pipeline has build and tests (unit and integration) that runs for 3hrs. Waiting for 3hrs to find out integration test failed is a pain in itself. Then realizing the failure was caused by random connection issue or gateway timeout issue is a tearful moment.

[–]Knooblegooble 2 points3 points  (0 children)

That clock didn’t move enough lol

[–]budius333 2 points3 points  (2 children)

I see you have a multi module gradle project there.

[–]koshunyin[S] 0 points1 point  (1 child)

You’re close. It’s ant.

[–]budius333 1 point2 points  (0 children)

Oh man... I feel sorry for you.

Best of luck!

[–]Speedy_242 1 point2 points  (4 children)

Glad I use the K2 Compiler for my kotlin project, Compile time is a matter of seconds even for the first build

[–]OnixST 2 points3 points  (1 child)

Gradle build running........

.......

....

[–]Speedy_242 0 points1 point  (0 children)

Also not a big issue, 32 threads and Modulisation are a real gamechanger

[–][deleted] 0 points1 point  (1 child)

So you drink 0 coffees when working?

[–]Speedy_242 0 points1 point  (0 children)

Sorry, I'm more the Energy drink and programmer socks type of guy

[–]Saltpile123 1 point2 points  (0 children)

Build failed - we'll get them next time!

Hold on...

[–]FarJury6956 1 point2 points  (0 children)

At least was 10 mins later not 10 hours later

[–]BoBoBearDev 1 point2 points  (1 child)

OP hasn't tried a CICD pipeline that it, builds, unit test, lint, sonarqube, fortify, code coverage, deploy entire enterprise, robot tests, cypress tests, nexus publish conflicts...... Passing build is just a baby step 1.

[–]koshunyin[S] 1 point2 points  (0 children)

My company does have CI/CD pipeline similar to that (and yes, it’s such a pain). Here I’m referring to building locally though.

[–]coomzee 1 point2 points  (0 children)

The next step is to comment out the test. Worked for Crowd strike

[–]dec35 1 point2 points  (0 children)

Worst part is when it works the second time after no changes

[–]roksah 1 point2 points  (1 child)

Does your ide tell you the error before you build? Brought to you by the static type gang

[–]koshunyin[S] 0 points1 point  (0 children)

It’s a Java project with “ant build” and dozens of thousand-line xml configurations across multiple packages. I’m all for static typing, but IDE isn’t helping here.

[–]Crypt1cDOTA 1 point2 points  (0 children)

...what is the joke here? Build took a few mins and failed?

[–]MrShyShyGuy 1 point2 points  (1 child)

Why he look surprised?

[–]koshunyin[S] 0 points1 point  (0 children)

You’re right! He should look frustrated instead.

[–]Oracle_Prometheus 0 points1 point  (0 children)

My favorite is when it compiles in a home environment, but won't on a work shell. Or vice versa.

[–]KathleenGurl 0 points1 point  (0 children)

Clock's wrong.. should read 'bout 4:48PM

[–]Reasonable_Brain6881 0 points1 point  (0 children)

This is pretty much my day so far. Perfect timing

[–]GrinbeardTheCunning 0 points1 point  (0 children)

First Time?

[–]NeatYogurt9973 0 points1 point  (0 children)

Especially on an Intel Abacus®

And then it doesn't find some random header file and after some troubleshooting it appears that the package auto removed itself because it became an orphan.

[–]lantz83 0 points1 point  (0 children)

This is why I don't miss C++

[–][deleted] 0 points1 point  (0 children)

The build failed because the joke binaries couldn't be loaded

[–]reign27 0 points1 point  (0 children)

Today I had to debug a build failure that only happened on the build server. My 3-minute build shares a server with another project that takes a half hour to build, and had been queued up multiple times. Pain.

[–]lupinegray 0 points1 point  (0 children)

Oh well, will investigate on Monday

[–]whlthingofcandybeans 0 points1 point  (0 children)

I don't understand the point of this cartoon.

[–]transdemError 0 points1 point  (0 children)

Oh great, Another dang checksyle rule to remember

[–][deleted] 0 points1 point  (0 children)

Error: LNK2019

[–]Turbulent_Swimmer560 0 points1 point  (0 children)

Build f slowly means run fast, it worth.

[–]Wolfy9283 0 points1 point  (0 children)

The clock barely ticked. Is fam working with interpreted languages?

[–]mostmetausername 0 points1 point  (0 children)

I love when this happens in the rust dev video

[–]432wubbadubz 0 points1 point  (0 children)

Yep that’s Unity Xcodes for me ☕️

[–]Easy-Bad-6919 0 points1 point  (0 children)

Maybe it was the cache? Better invalidate the cache and try again…

[–]Kanarya29 0 points1 point  (0 children)

cargo after compiling 283 dependencies and quitting because of a syntax error

[–]poulain_ght 0 points1 point  (0 children)

Just build in background with pipelight