Opened 11 years ago

Closed 11 years ago

#39208 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), larryv (Lawrence Velázquez)
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).

r/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/work/build/./gcc/ -B/opt/local/x86_64-apple-darwin12/bin/ -B/opt/local/x86_64-apple-darwin12/lib/ -isystem /opt/local/x86_64-apple-darwin12/include -isystem /opt/local/x86_64-apple-darwin12/sys-include   
checking for suffix of object files... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/work/build/x86_64-apple-darwin12/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2

How can i solve it?

Change History (7)

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

The log returns

: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

comment:2 in reply to:  description ; Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: jeremyhu@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…
Port: libstdcxx added
Summary: Error compiling sudo port install libstdcxx +universallibstdcxx +universal: configure failure

Replying to alex.caldas@…:

I tried to remove the ld, so when i install the libstdcxx it'll be a dependence.

What do you mean by “remove the ld”? What exactly did you do?

comment:3 in reply to:  2 ; Changed 11 years ago by alex.caldas@…

Replying to larryv@…:

Replying to alex.caldas@…:

I tried to remove the ld, so when i install the libstdcxx it'll be a dependence.

What do you mean by “remove the ld”? What exactly did you do?

I removed the LD package (i saw to do that in another ticket), i did it and the port downloaded it again (so the problem is not the LD version.

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

Cc: larryv@… added

Replying to alex.caldas@…:

I removed the LD package (i saw to do that in another ticket), i did it and the port downloaded it again (so the problem is not the LD version.

There should have been no reason to do that. If your ld64 port were outdated, MacPorts would have tried to upgrade it before building libstdcxx.

We need to see the logs from your build attempt. Please run these commands.

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

If the install fails again, attach main.log and config.log. Their locations are given by these commands.

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

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

I changed the command, now it start the compilation and after a lot of time it returns.

New command: sudo port install libstdcxx +universal configure.compiler=macports-clang-3.3

:info:build In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:68:0,
:info:build                  from ../../../../gcc-4.8.0/libsanitizer/asan/asan_malloc_mac.cc:16:
:info:build /usr/include/MacTypes.h:693:63: error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8'
:info:build  Debugger(void)                                                __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
:info:build                                                                ^
:info:build /usr/include/MacTypes.h:705:63: error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8'
:info:build  DebugStr(ConstStr255Param debuggerMsg)                        __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
:info:build                                                                ^
:info:build /usr/include/MacTypes.h:752:63: error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8'
:info:build  SysBreak(void)                                                __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
:info:build                                                                ^
:info:build /usr/include/MacTypes.h:764:63: error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8'
:info:build  SysBreakStr(ConstStr255Param debuggerMsg)                     __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
:info:build                                                                ^
:info:build /usr/include/MacTypes.h:776:63: error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8'
:info:build  SysBreakFunc(ConstStr255Param debuggerMsg)                    __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
:info:build                                                                ^
:info:build ../../../../gcc-4.8.0/libsanitizer/asan/asan_malloc_mac.cc:187:20: warning: always_inline function might not be inlinable [-Wattributes]
:info:build  void ALWAYS_INLINE free_common(void *context, void *ptr) {
:info:build                     ^
:info:build make[3]: *** [asan_malloc_mac.lo] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build config.status: creating Makefile
:info:build config.status: creating testsuite/Makefile
:info:build config.status: creating libitm.spec
:info:build config.status: creating config.h
:info:build config.status: executing default-1 commands
:info:build mv -f .deps/asan_interceptors.Tpo .deps/asan_interceptors.Plo
:info:build Adding multilib support to Makefile in ../../../../gcc-4.8.0/libitm
:info:build with_multisubdir=i386
:info:build config.status: executing depfiles commands
:info:build mv -f .deps/asan_allocator2.Tpo .deps/asan_allocator2.Plo
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/work/build/x86_64-apple-darwin12/libsanitizer/asan'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/work/build/x86_64-apple-darwin12/libsanitizer'
:info:build make[1]: *** [all-target-libsanitizer] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build config.status: executing libtool commands
:info:build config.status: executing gstdint.h commands
:info:build config.status: executing depfiles commands
:info:build config.status: executing libtool commands
:info:build config.status: executing gstdint.h commands
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/libstdcxx/work/build" && /usr/bin/make -j4 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port libstdcxx returned: command execution failed
:debug:build Error code: CHILDSTATUS 51912 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for libstdcxx: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build 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

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

Note Mac OSX 10.8.3

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

Resolution: invalid
Status: newclosed

Replying to alex.caldas@…:

New command: sudo port install libstdcxx +universal configure.compiler=macports-clang-3.3

We don’t support end users setting portfile options on the command line. That functionality is a tool for portfile developers. Sorry, you’re on your own.

Open a new ticket if you have problems building libstdcxx with default settings.

Note: See TracTickets for help on using tickets.