Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#15523 closed defect (fixed)

apr: 4-way universal build: duplicate case value

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: apr

Description

I'm trying to make a 4-way universal binary of apr. I have MacPorts trunk (@37237), Mac OS X 10.4.11, Xcode 2.4.1, MacBook Pro. I have universal_archs set to ppc i386 ppc64 x86_64 in macports.conf. Here's what apr says:

$ /mp/bin/port install apr build.jobs=1
--->  Fetching apr
--->  Verifying checksum(s) for apr
--->  Extracting apr
--->  Configuring apr
--->  Building apr with target all
Error: Target org.macports.build returned: shell command " cd "/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12" && nice -n 1 make all " returned error 2
Command output: /bin/sh /mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -arch ppc64 -arch x86_64 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/mp/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I./include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include/arch/unix -I./include/arch/unix -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include  -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo
/bin/sh /mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -arch ppc64 -arch x86_64 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/mp/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I./include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include/arch/unix -I./include/arch/unix -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include  -o strings/apr_cpystrn.lo -c strings/apr_cpystrn.c && touch strings/apr_cpystrn.lo
/bin/sh /mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -arch ppc64 -arch x86_64 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/mp/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I./include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include/arch/unix -I./include/arch/unix -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include  -o strings/apr_strnatcmp.lo -c strings/apr_strnatcmp.c && touch strings/apr_strnatcmp.lo
/bin/sh /mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -arch ppc64 -arch x86_64 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/mp/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I./include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include/arch/unix -I./include/arch/unix -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include  -o strings/apr_strings.lo -c strings/apr_strings.c && touch strings/apr_strings.lo
/bin/sh /mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -arch ppc64 -arch x86_64 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/mp/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I./include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include/arch/unix -I./include/arch/unix -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include  -o strings/apr_strtok.lo -c strings/apr_strtok.c && touch strings/apr_strtok.lo
/bin/sh /mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -arch ppc64 -arch x86_64 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/mp/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I./include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include/arch/unix -I./include/arch/unix -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include  -o strings/apr_fnmatch.lo -c strings/apr_fnmatch.c && touch strings/apr_fnmatch.lo
/bin/sh /mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/libtool --silent --mode=compile /usr/bin/gcc-4.0   -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -arch ppc64 -arch x86_64 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/mp/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I./include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include/arch/unix -I./include/arch/unix -I/mp/var/macports/build/_Users_rschmidt_macports_dports_devel_apr/work/apr-1.2.12/include  -o strings/apr_snprintf.lo -c strings/apr_snprintf.c && touch strings/apr_snprintf.lo
strings/apr_snprintf.c: In function 'conv_os_thread_t':
strings/apr_snprintf.c:503: error: duplicate case value
strings/apr_snprintf.c:501: error: previously used here
strings/apr_snprintf.c: In function 'conv_os_thread_t_hex':
strings/apr_snprintf.c:674: error: duplicate case value
strings/apr_snprintf.c:672: error: previously used here
strings/apr_snprintf.c: In function 'conv_os_thread_t':
strings/apr_snprintf.c:503: error: duplicate case value
strings/apr_snprintf.c:501: error: previously used here
strings/apr_snprintf.c: In function 'conv_os_thread_t_hex':
strings/apr_snprintf.c:674: error: duplicate case value
strings/apr_snprintf.c:672: error: previously used here
lipo: can't figure out the architecture type of: /var/tmp//ccxuzKTk.out
make[1]: *** [strings/apr_snprintf.lo] Error 1
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.
$

APR bug 43528 is for the same error message but it was closed as invalid in October 2007.

Change History (4)

comment:1 Changed 16 years ago by danielluke (Daniel J. Luke)

Status: newassigned

Can you try to replicate with the just-updated apr port (1.3.0)?

If it's still an issue, I'll have to set up quad-build here and see if I can generate a patch for it.

Thanks.

comment:2 Changed 16 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: assignedclosed

closing due to lack of response, please re-open with more information if this issue is still current.

Thanks.

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

Port: apr added

Yes, this is still an issue. It was re-filed as #17090.

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.