Обсуждение: BUG #5251: compilation fails in 32-bit mode
The following bug has been logged online: Bug reference: 5251 Logged by: Jyrki Wahlstedt Email address: jyrki.wahlstedt@wahlstedt.fi PostgreSQL version: 8.4.2 Operating system: OS X 10.6.2 Description: compilation fails in 32-bit mode Details: Trying to make a universal build leads to following: /usr/bin/gcc-4.2 -no-cpp-precomp -O2 -arch x86_64 -arch i386 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -I/opt/local/include/libxml2 -I/opt/local/include -c -o heaptuple.o heaptuple.c heaptuple.c: In function 'heap_fill_tuple': heaptuple.c:196: error: duplicate case value heaptuple.c:196: error: previously used here lipo: can't figure out the architecture type of: /var/tmp//ccrMKGuv.out The background to this is that I'm a maintainer of PostgreSQL in MacPorts, and need a universal build for another software. A similar problem has been found earlier, see http://trac.macports.org/ticket/17090 for details.
On Sun, Dec 20, 2009 at 1:12 PM, Jyrki Wahlstedt <jyrki.wahlstedt@wahlstedt.fi> wrote: > Trying to make a universal build leads to following: > /usr/bin/gcc-4.2 -no-cpp-precomp -O2 -arch x86_64 -arch i386 -Wall > I'm not sure where you've gone wrong but I know others facing the same problem have found that they need to run configure twice, once for each architecture and make sure to use the right Makefile parameters and the right configure.h for each build. Isn't x86_64 for a 64-bit architecture? -- greg
Fyi, i've been seeing this on Snow Leopard too despite configuring for each arch flag. I didn't get time to look in depth yet though. On 12/21/09, Greg Stark <gsstark@mit.edu> wrote: > On Sun, Dec 20, 2009 at 1:12 PM, Jyrki Wahlstedt > <jyrki.wahlstedt@wahlstedt.fi> wrote: >> Trying to make a universal build leads to following: >> /usr/bin/gcc-4.2 -no-cpp-precomp -O2 -arch x86_64 -arch i386 -Wall >> > > I'm not sure where you've gone wrong but I know others facing the same > problem have found that they need to run configure twice, once for > each architecture and make sure to use the right Makefile parameters > and the right configure.h for each build. Isn't x86_64 for a 64-bit > architecture? > > -- > greg > > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-bugs > -- Dave Page EnterpriseDB UK: http://www.enterprisedb.com