Compile BRL-CAD with GCC trunkBRL-CAD
Status: ClosedTime to complete: 100 hrs Mentors: Jacob B, Ch3ckTags: gcc, windows, macosx, compile, unix, linux, bsdBeginner

BRL-CAD builds pervasively on a number of different operating systems, hardware, and compilers. We actively seek out new compilation environments and like to get them working as best as we can. We regularly build with Microsoft Visual Studio (the professional one you have to pay for), GCC, and a number of other compilers.

This task involves attempting to compile BRL-CAD using the latest and greatest version of GNU's C compiler (GCC) directly from their source repository. You'll need to download our source code, CMake, checkout the GCC source code, and compile your compiler. It's not complicated, but will take some time to compile GCC if you never have done so from scratch before. Once you get GCC built, then it's time to compile BRL-CAD. Keep notes of everything you do along the way! You'll report back any failures and otherwise document all the steps you take. Submit a complete build log and your notes documenting everything you did.

We will create follow-on tasks if you make any fixes that get the build working. You MUST first compile BRL-CAD successfully with any other compiler before claiming this task.

Resources:

  • http://brlcad.org/wiki/Compiling
  • http://www.cmake.org/
  • https://gcc.gnu.org/install/download.html
Uploaded Work
File name/URLFile sizeDate submitted
https://drive.google.com/folderview?id=0B1...n/aDecember 14 2014 10:32 UTC
Comments
Brin Tayloron December 1 2014 22:03 UTCTask Claimed

I would like to work on this task.

Jacob B on December 1 2014 22:06 UTCTask Assigned

This task has been assigned to Brin Taylor. You have 100 hours to complete this task, good luck!

Melange on December 5 2014 02:06 UTCTask due soon

There are less than 24 hours left until the deadline, please submit your work soon.

Brin Tayloron December 5 2014 02:46 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Arnavon December 11 2014 09:58 UTCTask Claimed

I would like to work on this task.

Deepak on December 11 2014 10:11 UTCTask Assigned

This task has been assigned to Arnav. You have 100 hours to complete this task, good luck!

Arnavon December 12 2014 08:09 UTCClaim Removed

The claim on this task has been removed, someone else can claim it now.

Vamshi Balanagaon December 14 2014 03:38 UTCTask Claimed

I would like to work on this task.

Sean on December 14 2014 03:54 UTCTask Assigned

This task has been assigned to Vamshi Balanaga. You have 100 hours to complete this task, good luck!

Vamshi Balanagaon December 14 2014 10:31 UTC

I have the latest version of gcc, I downloaded, built and installed cmake, downloaded and built brl-cad. But when I tried to compile I got two errors. One was just a warning, but the second error was in several places and the same thing every time. I'm uploading a link to a google doc folder with screenshots and a log in which I wrote down the steps involved.

Vamshi Balanagaon December 14 2014 10:36 UTC

IS this all I have to do? Or do I have to figure out the reason for the error, and fix it?

wltanon December 14 2014 11:31 UTC

Of course, the best would be to troubleshoot and fix the problem, then submit logs for a successful build (along with what you did to fix it).


But if think there's nothing else that can be done on your side, then hit the "Mark Task as Completed" button to submit the work for review. If there's really a legitimate issue beyond your control, then they'll most probably close the task. Otherwise, they'll send it back to you for further editing and work.

Vamshi Balanagaon December 14 2014 12:03 UTCReady for review

The work on this task is ready to be reviewed.

Ch3ck on December 14 2014 12:15 UTCGood work

Could you please upload the build log files to your drive? In the mean time have you attempted to resolve the build errors?

Ch3ck on December 14 2014 12:18 UTCGCC version

your gcc --version is 4.8.1. have you tried compiling with gcc 4.9.1. that's the latest gcc available to my knowledge.


See what you can do.

Ch3ck on December 14 2014 12:18 UTCTask Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Vamshi Balanagaon December 14 2014 13:28 UTC

I uploaded the build log. I'm trying to install and compile using gcc 4.9

Ch3ck on December 14 2014 13:42 UTC

Nice, trying installing and compiling from gcc 4.9.2 that should be the latest and let's see how it goes ;)

Vamshi Balanagaon December 15 2014 14:56 UTC

I installed and repeated the process with gcc 4.9.2 and have uploaded the build.log and several screenshots.


 

Vamshi Balanagaon December 15 2014 14:56 UTCReady for review

The work on this task is ready to be reviewed.

Sean on December 15 2014 15:21 UTCTask Closed

Congratulations, this task has been completed successfully.

Sean on December 15 2014 15:23 UTCawesome!

Vamshi, this is perfect, thanks!  Apparently GCC added a new compilation warning and some of our code is affected, which is what those -Werror=unprototyped-calls errors are all about. If you'd like to fix those, that would make a fantastic follow-on task.  Just e-mail contest@brlcad.org if this interests you.