Opened 12 years ago

Closed 11 years ago

#39229 closed defect (invalid)

libstdcxx +universal: configure failure

Reported by: alex.caldas@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: libstdcxx

Description (last modified by larryv (Lawrence Velázquez))

Hi,

I'm trying to install the libstdcxx.
I tried to remove the ld, so when i install the libstdcxx it'll be a dependence.
I tried to install the gcc 4.7 ad 4.8.
I tried to compile with the clang3-3

I saw some posts talking about this problem, but i wasn't able to find a solution.

Now the problem is (i compiled by hand after the error).

Main.log

:info:configure checking for libitm support... yes
:info:configure checking for libsanitizer support... yes
:info:configure checking for gcc... /opt/local/bin/gcc-apple-4.2 -arch i386 -arch x86_64
:info:configure checking for C compiler default output file name... 
:info:configure configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/work/build':
:info:configure configure: error: C compiler cannot create executables
:info:configure See `config.log' for more details.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/work/build" && ../gcc-4.8.0/configure --prefix=/opt/local --build=x86_64-apple-darwin12 --includedir=/opt/local/include/gcc48 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.8 --with-gxx-include-dir=/opt/local/include/gcc48/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --enable-languages=c++ --disable-bootstrap --with-pkgversion="MacPorts gcc48 4.8.0_0+universal" 
:info:configure Exit code: 77
:error:configure org.macports.configure for port libstdcxx returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for libstdcxx: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Please see the log file for port libstdcxx for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/main.log

config.log

stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin12'
target_alias=''
target_configargs=''
target_configdirs='target-libgcc target-libbacktrace target-libgloss target-newlib target-libgomp target-libatomic target-libitm target-libstdc++-v3 target-libmudflap target-libsanitizer target-libssp target-libquadmath target-libgfortran target-boehm-gc target-libffi target-zlib target-libjava target-libobjc target-libada target-libgo target-rda'
target_cpu='x86_64'
target_noncanonical='x86_64-apple-darwin12'
target_os='darwin12'
target_subdir='x86_64-apple-darwin12'
target_vendor='apple'
tooldir=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag=''
host_makefile_frag='config/mh-darwin'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77

Mac OS 10.8.3

Command sudo port install libstdcxx +universal

Attachments (2)

main.log (40.3 KB) - added by alex.caldas@… 12 years ago.
Main.log
config.log (13.9 KB) - added by alex.caldas@… 12 years ago.
Config.log

Download all attachments as: .zip

Change History (10)

comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Port: libstdcxx added

As I already said in your other ticket, you’ll have to attach complete logs if you want help.

Please run these commands…

% sudo port clean libstdcxx
% sudo port selfupdate
% sudo port install libstdcxx +universal

…and attach the main.log and config.log files, using the “Attach file” button above.

% port logfile libstdcxx
% echo `port work libstdcxx`/build/config.log

Changed 12 years ago by alex.caldas@…

Attachment: main.log added

Main.log

Changed 12 years ago by alex.caldas@…

Attachment: config.log added

Config.log

comment:2 Changed 12 years ago by alex.caldas@…

Files Attached

comment:3 Changed 12 years ago by larryv (Lawrence Velázquez)

Your main.log says this:

:notice:configure --->  Configuring libstdcxx
:debug:configure Using compiler 'MacPorts Apple gcc 4.2'

But your config.log says this:

configure:4192: checking for C compiler version
configure:4201: /opt/local/bin/gcc-apple-4.2 -arch i386 -arch x86_64 --version >&5
../gcc-4.8.0/configure: line 4203: /opt/local/bin/gcc-apple-4.2: No such file or directory
configure:4212: $? = 127

I’ll assume you’re not overriding the compiler selection anywhere, either on the command line or in macports.conf. (You’d better correct me if I’m wrong.) The libstdcxx port does blacklist older versions of Clang and LLVM-GCC; maybe yours are too old, somehow.

Please paste the output of these commands.

% /usr/bin/xcodebuild -version
% /usr/bin/clang --version
% /usr/bin/llvm-gcc --version

comment:4 in reply to:  3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

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

The libstdcxx port blacklists {llvm-gcc-4.2 < 2336.1} (#29104) and {clang < 425} (#36116). That leaves apple-gcc-4.2. MacPorts 2.1.x does not automatically add dependencies for compilers. There's a block of about a dozen lines that we've been adding to ports which adds such dependencies as needed, so we could do that, or we could just let the release of MacPorts 2.2 solve it, whenever that happens. For now, the workaround would be either to upgrade Xcode and the command line tools to the latest version, or install the apple-gcc42 port.

comment:5 Changed 11 years ago by alex.caldas@…

Hi, No, i'm not overriding the compiler.

/usr/bin/xcodebuild -version
Xcode 4.6.2
Build version 4H1003

/usr/bin/clang --version
Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix

/usr/bin/llvm-gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Note that i really don't have the in the /opt/local gcc-4.2

ls /opt/local/bin/gcc-*
/opt/local/bin/gcc-ar-mp-4.8		/opt/local/bin/gcc-mp-4.8		/opt/local/bin/gcc-nm-mp-4.8		/opt/local/bin/gcc-ranlib-mp-4.8

I already have the XCode in the last version, if i try to install the command line it tells me that the command line is already installed (Its true) is there a way to update the command line tools?

Regards, Alex.

comment:6 Changed 11 years ago by alex.caldas@…

Note: I updated the command line tools too

comment:7 Changed 11 years ago by alex.caldas@…

Updated the command line tools and now it seems to be good to go. It installed \o/

comment:8 in reply to:  7 Changed 11 years ago by larryv (Lawrence Velázquez)

Resolution: invalid
Status: newclosed

No idea how you had Xcode 4.6 installed with such an abysmally ancient version of Clang, but I guess it’s a moot point now.

Note: See TracTickets for help on using tickets.