Opened 7 years ago

Closed 7 years ago

#54471 closed defect (fixed)

clang-3.9 @3.9.1: Undefined symbols: _OSAtomicDecrement32 _OSAtomicDecrement32Barrier _OSAtomicDecrement64 _OSAtomicDecrement64Barrier _OSAtomicIncrement32 _OSAtomicIncrement32Barrier _OSAtomicIncrement64 _OSAtomicIncrement64Barrier

Reported by: kwodzicki Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc:
Port: clang-3.9

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I have been trying to install some packages that depend on clang-3.9 but it will not build. I have tried uninstalling all my clang versions, cleaning them, and re-installing and clang-3.9 fails every time. clang-3.7 & clang-3.8 build fine. Below is the output from the port command and I have attached the log file. It appears it is an issue with the libc++ and libstdc++ libraries, but I am not sure how to fix the problem as other forms have not be helpful to me.

--->  Fetching distfiles for clang-3.9
--->  Verifying checksums for clang-3.9
--->  Extracting clang-3.9
--->  Applying patches to clang-3.9
Warning: reinplace s|/usr/bin/env python|/Volumes/localdata/opt/local/bin/python2.7|g didn't change anything in /Volumes/localdata/opt/local/var/macports/build/_Volumes_localdata_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.9/clang-3.9/work/llvm-3.9.1.src/tools/clang/tools/scan-build/bin/set-xcode-analyzer
--->  Configuring clang-3.9
--->  Building clang-3.9
Error: Failed to build clang-3.9: command execution failed
Error: See /Volumes/localdata/opt/local/var/macports/logs/_Volumes_localdata_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.9/clang-3.9/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port clang-3.9 failed

Attachments (1)

main.log (3.5 MB) - added by kwodzicki 7 years ago.
clang-3.9_log_file

Change History (10)

Changed 7 years ago by kwodzicki

Attachment: main.log added

clang-3.9_log_file

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to jeremyhu
Status: newassigned
Summary: clang-3.9 will not buildclang-3.9 @3.9.1: Undefined symbols: _OSAtomicDecrement32 _OSAtomicDecrement32Barrier _OSAtomicDecrement64 _OSAtomicDecrement64Barrier _OSAtomicIncrement32 _OSAtomicIncrement32Barrier _OSAtomicIncrement64 _OSAtomicIncrement64Barrier

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

That's a weird error you're getting.... have you tried clang 4.0 instead?

What depends on clang 3.9 that you need?

comment:3 Changed 7 years ago by kwodzicki

I believe the port that depends on it is glib2, which is a dependency for a different port I am trying to install called ncarg.

Also, when I just tried to install clang-4.0 and it says it depends on clang-3.9, which won't install due to the error above.

Last edited 7 years ago by kwodzicki (previous) (diff)

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

clang-4.0 shouldn't depend on clang-3.9. Might you have your "default_compiler" in macports.conf set to clang-3.9? If so, try setting it back to clang-3.8, which I believe you have installed already from your log.

This doesn't explain exactly why you're getting the errors in the SDK, tho. Just trying to get you running.

comment:5 Changed 7 years ago by kwodzicki

After looking in the macports.conf file, I do not have a "default_compiler" option set at all.

As for clang-4.0, I ran 'port uninstall clang*' and then tried to install clang-4.0 and it says it depends on clang-3.7-9

port install clang-4.0

---> Computing dependencies for clang-4.0

The following dependencies will be installed:

clang-3.7

clang-3.8

clang-3.9

clang_select

llvm-4.0

Continue? [Y/n]:

Last edited 7 years ago by kwodzicki (previous) (diff)

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

Indeed so. Thanks for checking.

comment:7 Changed 7 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Yeah, those symbols were added in macOS 10.10. Looks like tsan should've been getting disabled on 10.9.

comment:8 Changed 7 years ago by jeremyhu (Jeremy Huddleston Sequoia)

comment:9 Changed 7 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: assignedclosed

In bd1eebf898d8825d920b1104d5e420184d0c8215/macports-ports:

clang-{3.9,4.0,devel}: Disable sanitizers on macOS 10.9

Fixes: #54471

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@…>

Note: See TracTickets for help on using tickets.