Opened 17 years ago

Closed 8 years ago

#14619 closed defect (wontfix)

Error when installing postgresql83 +universal

Reported by: tbou@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: postgresql83

Description (last modified by jmpalacios (Juan Manuel Palacios))

MacBookPro-TBOU:~ thierry$ sudo port install postgresql83-server +universal
Password:
--->  Fetching postgresql83
--->  Attempting to fetch postgresql-8.3.0.tar.bz2 from http://ftp8.us.postgresql.org/postgresql/source/v8.3.0/
--->  Verifying checksum(s) for postgresql83
--->  Extracting postgresql83
--->  Configuring postgresql83
--->  Building postgresql83
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.0" && gnumake " returned error 2
Command output: /usr/bin/ld: warning optimizer/SUBSYS.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning port/SUBSYS.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning postmaster/SUBSYS.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning regex/SUBSYS.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning rewrite/SUBSYS.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning storage/SUBSYS.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning tcop/SUBSYS.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning tsearch/SUBSYS.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning utils/SUBSYS.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning ../../src/timezone/SUBSYS.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libz.1.dylib referenced from: /opt/local/lib/libxslt.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libiconv.2.dylib referenced from: /opt/local/lib/libxslt.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture i386
/usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libz.1.dylib referenced from: /opt/local/lib/libxslt.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libiconv.2.dylib referenced from: /opt/local/lib/libxslt.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: Undefined symbols:
_deflate referenced from libcrypto.0 expected to be defined in /opt/local/lib/libz.1.dylib
_deflateEnd referenced from libcrypto.0 expected to be defined in /opt/local/lib/libz.1.dylib
_deflateInit_ referenced from libcrypto.0 expected to be defined in /opt/local/lib/libz.1.dylib
_inflate referenced from libcrypto.0 expected to be defined in /opt/local/lib/libz.1.dylib
_inflateEnd referenced from libcrypto.0 expected to be defined in /opt/local/lib/libz.1.dylib
_inflateInit_ referenced from libcrypto.0 expected to be defined in /opt/local/lib/libz.1.dylib
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccqSVeI7.out (No such file or directory)
gnumake[2]: *** [postgres] Error 1
gnumake[1]: *** [all] Error 2
gnumake: *** [all] Error 2

Error: The following dependencies failed to build: postgresql83
Error: Status 1 encountered during processing.

Attachments (4)

patch_universal_Portfile_postgresql83 (1.5 KB) - added by Veence (Vincent) 16 years ago.
Patch to Postgresql83 Portfile
ld.sh (399 bytes) - added by Veence (Vincent) 16 years ago.
ld.sh shell tool to be placed in ${portpatch}/files
patch_pg_config_h (463 bytes) - added by Veence (Vincent) 16 years ago.
Patch to the src/include/pg_config.h file, to be placed in ${portpath}/files
combined_updated_universal.patch (2.8 KB) - added by kevin@… 15 years ago.
A single patch that applies against trunk to enable i386 x86_64 (and maybe others) universal build

Download all attachments as: .zip

Change History (18)

comment:1 Changed 17 years ago by jmroot (Joshua Root)

Cc: jwa@… added
Owner: changed from macports-tickets@… to mww@…

Assigning to maintainers.

comment:2 Changed 16 years ago by jmpalacios (Juan Manuel Palacios)

Description: modified (diff)

comment:3 Changed 16 years ago by Veence (Vincent)

Postgresql83 will not build universal files with the default Portfile. I encounter three problems:

  1. Build process uses ld directly, and ld cannot handle more than one arch at a time;
  2. SIZEOF_UNSIGNED_LONG in src/include/pg_config.h does not change according to arch;
  3. On my late 2008 MacBook with gcc-4.0.1, I cannot build postgres83 because gcc-4.0 crashes with a bus error at some point (I have opened a ticket in the Apple bugtracker for this).

I have attached a fix in three files:

  1. A ld.sh shell script that replaces direct ld calls by a tool that analyses the line and extracts the output file out of the args;
  2. A modified Portfile that:
    1. Appends to the ld.sh the necessary calls to ld with the correct archs and a final call to lipo to join the separate .o files;
    2. Alters the src/Makefile.global file to replace direct ld calls by calls to our ld.sh script tool;
    3. Defines a universal variant and a gcc42 variant to avoid the 3rd problem cited above;
  3. A patch file to fix problem #2, patch applied after the configuration phase.

The ld.sh and patch_pg_config_h should be stored in a ${portpath}/files subdirectory.

Please test and tell me.
V.

Changed 16 years ago by Veence (Vincent)

Patch to Postgresql83 Portfile

Changed 16 years ago by Veence (Vincent)

Attachment: ld.sh added

ld.sh shell tool to be placed in ${portpatch}/files

Changed 16 years ago by Veence (Vincent)

Attachment: patch_pg_config_h added

Patch to the src/include/pg_config.h file, to be placed in ${portpath}/files

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Port: postgresql83 added
Summary: Error when installing postgresql83-server +universalError when installing postgresql83 +universal on Tiger

Can we use the muniversal portgroup instead?

"can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libz.1.dylib" seems to be Tiger-specific; see #18276. If this error persists, maybe the fix from that ticket will help.

comment:5 Changed 16 years ago by chairos@…

I am having a similar problem on Leopard:

jon@euterpe:~$ sudo port install   postgresql83@+python+universal
--->  Fetching postgresql83
--->  Verifying checksum(s) for postgresql83
--->  Extracting postgresql83
--->  Configuring postgresql83
--->  Building postgresql83
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.6" && gnumake " returned error 2
Command output: /usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -L../../src/port -L/opt/local/lib -arch ppc -arch i386 -mmacosx-version-min=10.5 -L/opt/local/lib  -L/opt/local/lib   access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o tsearch/SUBSYS.o utils/SUBSYS.o ../../src/timezone/SUBSYS.o ../../src/port/libpgport_srv.a -lxslt -lxml2 -lssl -lcrypto -lm -o postgres
ld warning: in access/SUBSYS.o, file is not of required architecture
ld warning: in bootstrap/SUBSYS.o, file is not of required architecture
ld warning: in catalog/SUBSYS.o, file is not of required architecture
ld warning: in parser/SUBSYS.o, file is not of required architecture
ld warning: in commands/SUBSYS.o, file is not of required architecture
ld warning: in executor/SUBSYS.o, file is not of required architecture
ld warning: in lib/SUBSYS.o, file is not of required architecture
ld warning: in libpq/SUBSYS.o, file is not of required architecture
ld warning: in main/SUBSYS.o, file is not of required architecture
ld warning: in nodes/SUBSYS.o, file is not of required architecture
ld warning: in optimizer/SUBSYS.o, file is not of required architecture
ld warning: in port/SUBSYS.o, file is not of required architecture
ld warning: in postmaster/SUBSYS.o, file is not of required architecture
ld warning: in regex/SUBSYS.o, file is not of required architecture
ld warning: in rewrite/SUBSYS.o, file is not of required architecture
ld warning: in storage/SUBSYS.o, file is not of required architecture
ld warning: in tcop/SUBSYS.o, file is not of required architecture
ld warning: in tsearch/SUBSYS.o, file is not of required architecture
ld warning: in utils/SUBSYS.o, file is not of required architecture
ld warning: in ../../src/timezone/SUBSYS.o, file is not of required architecture
Undefined symbols for architecture ppc:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccLeIYr0.out (No such file or directory)
gnumake[2]: *** [postgres] Error 1
gnumake[1]: *** [all] Error 2
gnumake: *** [all] Error 2

Error: Status 1 encountered during processing.

I have the same problem when building without the python variant.

comment:6 Changed 16 years ago by griff.rees@…

I've got the same problem if I build +universal with i386 and x86_64:

sudo port install postgresql83 +universal
--->  Fetching postgresql83
--->  Verifying checksum(s) for postgresql83
--->  Extracting postgresql83
--->  Configuring postgresql83
--->  Building postgresql83
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.6" && gnumake " returned error 2
Command output: gnumake[3]: Nothing to be done for `all'.
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o zic.o zic.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o ialloc.o ialloc.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o scheck.o scheck.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv zic.o ialloc.o scheck.o localtime.o -L../../src/port -L/opt/local/lib -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -L/opt/local/lib  -L/opt/local/lib  -lpgport -lxslt -lxml2 -lssl -lcrypto -lz -lreadline -lm  -o zic
gnumake -C backend all
gnumake -C ../../src/port all
gnumake[3]: Nothing to be done for `all'.
prereqdir=`cd parser/ >/dev/null && pwd` && \
          cd ../../src/include/parser/ && rm -f parse.h && \
          ln -s "$prereqdir/parse.h" .
gnumake -C utils fmgroids.h
AWK='awk' /bin/sh Gen_fmgrtab.sh ../../../src/include/catalog/pg_proc.h
cd ../../src/include/utils/ && rm -f fmgroids.h && \
            ln -s ../../../src/backend/utils/fmgroids.h .
gnumake -C access all
gnumake -C common SUBSYS.o
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o heaptuple.o heaptuple.c
heaptuple.c: In function 'heap_fill_tuple':
heaptuple.c:250: error: duplicate case value
heaptuple.c:250: error: previously used here
heaptuple.c: In function 'DataFill':
heaptuple.c:383: error: duplicate case value
heaptuple.c:383: error: previously used here
lipo: can't figure out the architecture type of: /var/tmp//cciUqm4i.out
gnumake[4]: *** [heaptuple.o] Error 1
gnumake[3]: *** [common-recursive] Error 2
gnumake[2]: *** [access-recursive] Error 2
gnumake[1]: *** [all] Error 2
gnumake: *** [all] Error 2

Error: Status 1 encountered during processing.

I was able to get around this before by building +universal with *only* x86_64 enabled, but now I get (probably unrelated, but ...) :

--->  Configuring postgresql83
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.6" && ./configure --prefix=/opt/local --sysconfdir=/opt/local/etc/postgresql83 --bindir=/opt/local/lib/postgresql83/bin --libdir=/opt/local/lib/postgresql83 --includedir=/opt/local/include/postgresql83 --datadir=/opt/local/share/postgresql83 --mandir=/opt/local/share/man --without-docdir --with-includes=/opt/local/include --with-libraries=/opt/local/lib --with-openssl --with-bonjour --with-readline --with-zlib --with-libxml --with-libxslt --enable-thread-safety --enable-integer-datetimes --with-ossp-uuid --disable-dependency-tracking --host=unknown-apple-darwin9 --target=unknown-apple-darwin9 " returned error 1
Command output: configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i386-apple-darwin9.6.0
checking host system type... Invalid configuration `unknown-apple-darwin9': machine `unknown-apple' not recognized
configure: error: /bin/sh config/config.sub unknown-apple-darwin9 failed

Error: Status 1 encountered during processing.

comment:7 Changed 16 years ago by griff.rees@…

Also: the posted patch does not seem to apply cleanly, fails on hunk 2. I don't know that much about patching, but I guess the Portfile has changed and the line numbers have changed.

comment:8 Changed 16 years ago by griff.rees@…

Right, I seem to get a bit farther with the applied (albeit uncleanly) patch, but now there's a new error (this is with x86_64 and i386 enabled):

sudo port install postgresql83 +universal
--->  Fetching postgresql83
--->  Verifying checksum(s) for postgresql83
--->  Extracting postgresql83
--->  Configuring postgresql83
--->  Building postgresql83
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.6" && gnumake " returned error 2
Command output: /usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o network.o network.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o mac.o mac.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o inet_net_ntop.o inet_net_ntop.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o inet_net_pton.o inet_net_pton.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o ri_triggers.o ri_triggers.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o pg_lzcompress.o pg_lzcompress.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o pg_locale.o pg_locale.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o formatting.o formatting.c
formatting.c: In function 'timestamp_to_char':
formatting.c:3189: warning: integer constant is too large for 'long' type
formatting.c:3189: warning: integer constant is too large for 'long' type
formatting.c: In function 'timestamptz_to_char':
formatting.c:3221: warning: integer constant is too large for 'long' type
formatting.c:3221: warning: integer constant is too large for 'long' type
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o ascii.o ascii.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o quote.o quote.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o pgstatfuncs.o pgstatfuncs.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o encode.o encode.c
/usr/bin/gcc-4.0 -no-cpp-precomp -O2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch x86_64 -arch i386 -mmacosx-version-min=10.5 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -I/opt/local/include -I/opt/local/include/ossp -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/opt/local/include/libxml2  -I/opt/local/include  -c -o dbsize.o dbsize.c
dbsize.c: In function 'pg_size_pretty':
dbsize.c:394: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
lipo: can't figure out the architecture type of: /var/tmp//ccdmtXIN.out
gnumake[4]: *** [dbsize.o] Error 1
gnumake[3]: *** [adt-recursive] Error 2
gnumake[2]: *** [utils-recursive] Error 2
gnumake[1]: *** [all] Error 2
gnumake: *** [all] Error 2

Error: Status 1 encountered during processing.

comment:9 Changed 16 years ago by griff.rees@…

Oh: I just noticed the title of the ticket. I'm on leopard.

comment:10 Changed 16 years ago by griff.rees@…

And finally: for the record, changing macports.conf to only include x86_64 for universal returns the same _configuration_ error I mentioned above.

Changed 15 years ago by kevin@…

A single patch that applies against trunk to enable i386 x86_64 (and maybe others) universal build

comment:12 Changed 15 years ago by kevin@…

I have taken the 3 files added by 10.50 and combined them into a single patch that applies cleanly against trunk and allows postgresql83 8.3.7 to build with +universal. NOTE: It is important to use the +gcc42 variant to get this to build on Leopard.

comment:13 Changed 14 years ago by jmroot (Joshua Root)

Keywords: postgresql83 universal removed
Summary: Error when installing postgresql83 +universal on TigerError when installing postgresql83 +universal

Should be essentially the same fix as for 8.4 in r63149.

comment:14 Changed 8 years ago by mf2k (Frank Schima)

Cc: jyrkiwahlstedt removed
Owner: changed from mww@… to jyrkiwahlstedt
Status: newassigned

comment:15 Changed 8 years ago by jyrkiwahlstedt

Resolution: wontfix
Status: assignedclosed

postgresql83 is very much outdated

Note: See TracTickets for help on using tickets.