Hi Mark, I've got the same gcc as you do, FWIW.
I "fixed" that problem by adding "int foo = read..." and then "if (foo == foo)" (so that foo would be used). Now when trying to build utils, I get an error complaining that it can't find jkhgap.a. Is that because I haven't yet managed to install mysql? TIA, Greg ----- Original Message ----- From: "Mark Diekhans" <[email protected]> To: "Gregory Dougherty" <[email protected]> Cc: [email protected] Sent: Wednesday, July 28, 2010 11:18:49 AM GMT -06:00 US/Canada Central Subject: Re: [Genome] Weird Compile issue Hi Greg This compiles fine for me on ubunbtu 10.4 with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) So this seems very odd that you would get this. You can always edit inc/common.mk to delete the -Werror and keep moving forward. mark Gregory Dougherty <[email protected]> writes: > So, I'm trying to build the jksrc on an Ubuntu 10.04 machine with the latest > gcc that Ubuntu supports. I'm getting the following error: > > gcc -O -g -Wall -Werror -Wformat -Wimplicit -Wreturn-type -Wuninitialized > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_X86_64 > -Wall -Werror -Wformat -Wimplicit -Wreturn-type -Wuninitialized -I../inc > -I../../inc -I../../../inc -I../../../../inc -I../../../../../inc -o > pipeline.o -c pipeline.c > cc1: warnings being treated as errors > pipeline.c: In function ‘waitOnExec’: > pipeline.c:351: error: ignoring return value of ‘read’, declared with > attribute warn_unused_result > make: *** [pipeline.o] Error 1 > > This WAS a known error, fixed in May. And I have the fixed source code: > > static void waitOnExec(struct plProc *proc) > /* wait on exec to happen on this process */ > { > // execPipeChild will get EOF when exec happens > char buf[1]; > (void)read(proc->execPipeParent, buf, sizeof(buf)); > safeClose(&proc->execPipeParent); > } > > > So, any idea WHY I'm getting this error? _______________________________________________ Genome maillist - [email protected] https://lists.soe.ucsc.edu/mailman/listinfo/genome
