[MacPorts] #28537: db46 configure shell command failed
#28537: db46 configure shell command failed --------------------------------+------------------------------------------- Reporter: jbasch94@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: db46, configure | Port: db46 --------------------------------+------------------------------------------- db46 fails during configure on Mac OS X 10.6.6 with Xcode 3.2.5 and the Java Developer Update installed. NOTE: This is not the Java header issue, it's a different error and I have tried the fixes supplied in those threads to no avail. The log file is attached. It seems to be a problem with the C compiler. -- Ticket URL: <https://trac.macports.org/ticket/28537> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28537: db46: cannot run C compiled programs --------------------------------+------------------------------------------- Reporter: jbasch94@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: db46 --------------------------------+------------------------------------------- Changes (by ryandesign@…): * keywords: db46, configure => * cc: blair (removed) * cc: ryandesign@… (added) * owner: macports-tickets@… => blair@… Comment: FYI, the Cc field must contain complete email addresses. The log says: {{{ :info:configure checking whether the C compiler works... configure: error: cannot run C compiled programs. :info:configure If you meant to cross compile, use `--host'. :info:configure See `config.log' for more details. }}} So please attach that config.log so we can see what it says. -- Ticket URL: <https://trac.macports.org/ticket/28537#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28537: db46: cannot run C compiled programs --------------------------------+------------------------------------------- Reporter: jbasch94@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: db46 --------------------------------+------------------------------------------- Comment(by jmr@…): {{{ configure:3955: checking for C compiler default output file name configure:3982: /usr/bin/gcc-4.2 -O2 -arch x86_64 -I/opt/local/include -L/opt/local/lib -arch x86_64 conftest.c >&5 configure:3985: $? = 0 configure:4023: result: a.out configure:4040: checking whether the C compiler works configure:4050: ./a.out ../dist/configure: line 4051: ./a.out: Bad CPU type in executable }}} Is your machine 32-bit? -- Ticket URL: <https://trac.macports.org/ticket/28537#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28537: db46: cannot run C compiled programs --------------------------------+------------------------------------------- Reporter: jbasch94@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: db46 --------------------------------+------------------------------------------- Comment(by jbasch94@…): Replying to [comment:2 jmr@…]:
{{{ configure:3955: checking for C compiler default output file name configure:3982: /usr/bin/gcc-4.2 -O2 -arch x86_64 -I/opt/local/include -L/opt/local/lib -arch x86_64 conftest.c >&5 configure:3985: $? = 0 configure:4023: result: a.out configure:4040: checking whether the C compiler works configure:4050: ./a.out ../dist/configure: line 4051: ./a.out: Bad CPU type in executable }}}
Yes.
Is your machine 32-bit?
-- Ticket URL: <https://trac.macports.org/ticket/28537#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28537: db46: cannot run C compiled programs --------------------------------+------------------------------------------- Reporter: jbasch94@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: db46 --------------------------------+------------------------------------------- Comment(by ryandesign@…): Replying to [comment:3 jbasch94@…]:
Replying to [comment:2 jmr@…]:
Is your machine 32-bit?
Yes.
Then you shouldn't try to build 64-bit. :) Look in your macports.conf. Set build_arch to i386, and set universal_archs to i386 ppc. Then clean db46 and try again. {{{ sudo port clean db46 }}} -- Ticket URL: <https://trac.macports.org/ticket/28537#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28537: db46: cannot run C compiled programs --------------------------------+------------------------------------------- Reporter: jbasch94@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: db46 --------------------------------+------------------------------------------- Comment(by jbasch94@…): Thanks. New install. I overlooked that. -- Ticket URL: <https://trac.macports.org/ticket/28537#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28537: db46: cannot run C compiled programs ---------------------------------+------------------------------------------ Reporter: jbasch94@… | Owner: blair@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: db46 | ---------------------------------+------------------------------------------ Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: MacPorts ships with a macports.conf where the build_arch is commented out, meaning the code in MacPorts base takes over, and it chooses the default build_arch based on your machine's capabilities. That code is here: [browser:trunk/base/src/macports1.0/macports.tcl?rev=74924#L826] and its behavior is described by the comment in macports.conf, which reads: {{{ # CPU architecture to compile for. Defaults to i386 or ppc on Mac OS X 10.5 # and earlier, depending on the CPU type detected at runtime. On Mac OS X 10.6 # the default is x86_64 if the CPU supports it, i386 otherwise. #build_arch i386 }}} So I don't know how you ended up with a configuration that tried to build 64-bit on a machine that can't do that, unless you changed the macports.conf yourself to say that. -- Ticket URL: <https://trac.macports.org/ticket/28537#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28537: db46: cannot run C compiled programs ---------------------------------+------------------------------------------ Reporter: jbasch94@… | Owner: blair@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: db46 | ---------------------------------+------------------------------------------ Comment(by jbasch94@…):
So I don't know how you ended up with a configuration that tried to build 64-bit on a machine that can't do that, unless you changed the macports.conf yourself to say that.
It's a mystery to me. I hadn't changed it, but it was set to x86_64 somehow. Thanks for your help. -- Ticket URL: <https://trac.macports.org/ticket/28537#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts