Opened 5 years ago

Closed 5 years ago

#58762 closed defect (worksforme)

(10.6.8 - libcxx-5.0.1) build libcxx failed

Reported by: mrkapqa Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: libcxx

Description

sudo port install libcxx +universal configure.compiler=macports-clang-3.3

--->  Attempting to fetch libcxx-5.0.1.src.tar.xz from https://distfiles.macports.org/llvm
--->  Verifying checksums for libcxx
--->  Extracting libcxx
--->  Applying patches to libcxx
--->  Configuring libcxx
--->  Building libcxx
Error: Failed to build libcxx: command execution failed

Attachments (1)

libcxx.log (65.5 KB) - added by mrkapqa 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by mrkapqa

Attachment: libcxx.log added

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

Owner: set to jeremyhu
Port: libcxx added
Status: newassigned

comment:2 Changed 5 years ago by kencu (Ken)

I don't believe anyone ever tried to build libcxx with clang-3.3. I would not expect that to be successful. That is most likely your problem here. I would just go with the defaults, as they seem to work.

If you're following LibcxxOnOlderSystems and running into trouble, please post a ticket with exactly where things went wrong. Some compilers have been deleted, and I might need to tweak those instructions again.

During bootstrapping 10.6.8 with LibcxxOnOlderSystems, you build clang-3.4 with the system tools, and then use that clang-3.4 to build an initial version of libcxx. Then you build clang-3.4 again against libc++ using the first version of clang-3.4, then build clang-3.7 with the new version of clang-3.4, then build clang-5.0 with clang-3.7.

And then, you build libcxx again with clang-5.0 to get the fully thread_local supporting libc++ OS we have all come to love. Once you are there, you can build clang-8.0 (and newer, if we remain interested)!

Last edited 5 years ago by kencu (Ken) (previous) (diff)

comment:3 Changed 5 years ago by mrkapqa

Hello ,

i just tried to follow a guid to get a program (Blackmagic Disk v.2.1) functioning on SL.

it suggested installing MacPorts and running

sudo port selfupdate sudo port install clang-3.3 -analyzer -python27 sudo port install libcxx +universal configure.compiler=macports-clang-3.3

The first two commands succeeded, the last one failed.

Hope i did not a foolish thing;

If i can, i will try to follow your suggestion instead

comment:4 Changed 5 years ago by kencu (Ken)

Oh, I see. Must be a very old guide.

Then if you just install libcxx you should be good

sudo port -v install libcxx

comment:5 Changed 5 years ago by mrkapqa

thanks, it results in the following

Error: Failed to deactivate libcxx: Active version of libcxx is not 5.0.1_4+emulated_tls+universal but 5.0.1_4+universal.
Warning: Failed to execute portfile from registry for libcxx @5.0.1_4+universal
--->  Deactivating libcxx @5.0.1_4+universal
--->  Activating libcxx @5.0.1_4+emulated_tls+universal
Last edited 5 years ago by mrkapqa (previous) (diff)

comment:6 Changed 5 years ago by mrkapqa

Now it is active

The following ports are currently installed:
  libcxx @5.0.1_4+emulated_tls+universal (active)
  libcxx @5.0.1_4+universal

Hope this is acceptable, the program would not start nontheless;

Please close this bug,

Thank you very much.

comment:7 Changed 5 years ago by kencu (Ken)

You have the right libcxx installed. Must be some other issue with that software now.

comment:8 Changed 5 years ago by kencu (Ken)

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.