I have seen this before, but have not backported the test to fix it. Here is the problem: We try to put in the option -Wno-long-double, which does not generate an error code for cpp and we do not recognize the error message. We now have more messages recognized, and this will not fail in dev (I believe). This is a change in gcc that screws 2.3.3. Then the error cascades to screw up the size_t, mode_t, and off_t test.
Can you run configure from petsc-dev to verify my explanation? Thanks, Matt On Sat, Apr 5, 2008 at 3:42 PM, Adam C Powell IV <[EMAIL PROTECTED]> wrote: > Greetings, > > Due to a change somewhere in the toolchain, PETSc configuration suddenly > stopped working on Debian unstable. The error message in configure.log > is: > > TEST checkSizeof from > config.types(/home/hazelsct/petsc-2.3.3/python/BuildSystem/config/types.py:246) > TESTING: checkSizeof from > config.types(/home/hazelsct/petsc-2.3.3/python/BuildSystem/config/types.py:246) > Determines the size of type "typeName", and defines SIZEOF_"typeName" to be > the size > Checking for size of type: char > Pushing language C > sh: mpicc -c -o conftest.o -fPIC -Wall -Wwrite-strings -Wno-long-double > -Wno-strict-aliasing -g3 conftest.c > Executing: mpicc -c -o conftest.o -fPIC -Wall -Wwrite-strings > -Wno-long-double -Wno-strict-aliasing -g3 conftest.c > sh: > Possible ERROR while running compiler: ret = 256 > error message = {In file included from conftest.c:4: > /usr/include/sys/types.h:72: error: conflicting types for 'mode_t' > conffix.h:6: error: previous declaration of 'mode_t' was here > /usr/include/sys/types.h:88: error: conflicting types for 'off_t' > conffix.h:7: error: previous declaration of 'off_t' was here > In file included from /usr/include/sys/types.h:147, > from conftest.c:4: > /usr/lib/gcc/x86_64-linux-gnu/4.2.3/include/stddef.h:214: error: conflicting > types for 'size_t' > conffix.h:4: error: previous declaration of 'size_t' was here > cc1: error: unrecognized command line option "-Wno-long-double" > } > Source: > #include "confdefs.h" > #include "conffix.h" > > #include <sys/types.h> > #if STDC_HEADERS > #include <stdlib.h> > #include <stdio.h> > #include <stddef.h> > #endif > > int main() { > FILE *f = fopen("conftestval", "w"); > > if (!f) exit(1); > fprintf(f, "%lu\n", (unsigned long)sizeof(char)); > ; > return 0; > } > Compile failed inside link > > > ********************************************************************************* > UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for > details): > > --------------------------------------------------------------------------------------- > Unable to determine sizeof_char > > ********************************************************************************* > > Trouble is, I can't find conffix.h anywhere in order to change it. And > "grep conffix petsc-2.3.3/python/BuildSystem/*" and */* etc. doesn't > turn up anything useful. > > How can I investigate further, to try to fix this? > > -Adam > -- > GPG fingerprint: D54D 1AEE B11C CE9B A02B C5DD 526F 01E8 564E E4B6 > > Engineering consulting with open source tools > http://www.opennovation.com/ > > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]