Opened 3 years ago

Closed 2 years ago

#64605 closed defect (fixed)

libtapi: error: could not convert 'result' from 'tapi::internal::API' to 'llvm::Expected<tapi::internal::API>'

Reported by: barracuda156 Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: powerpc, snowleopard, rosetta Cc: mascguy (Christopher Nielsen)
Port: libtapi

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

This is different from my earlier ticket: #64187 Here it almost built:

make[3]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libtapi/libtapi/work/build'
[ 92%] Built target LLVMCore
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libtapi/libtapi/work/build'
make[1]: *** [projects/libtapi/tools/libtapi/CMakeFiles/libtapi.dir/rule] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libtapi/libtapi/work/build'
make: *** [libtapi] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libtapi/libtapi/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libtapi/libtapi/work/build" && /usr/bin/make -j4 -w libtapi tapi VERBOSE=ON 
Exit code: 2
Error: Failed to build libtapi: command execution failed
Error: See /opt/local/var/macports/logs/_opt_PPCSnowLeopardPorts_devel_libtapi/libtapi/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.

Attachments (1)

main.log (1.2 MB) - added by barracuda156 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by barracuda156

Attachment: main.log added

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

Description: modified (diff)
Summary: libtapi fails on 92% for ppc on 10.6.8 Rosettalibtapi: error: could not convert 'result' from 'tapi::internal::API' to 'llvm::Expected<tapi::internal::API>'

The error in the attached log is:

/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_libtapi/libtapi/work/apple-libtapi-664b84/src/llvm/projects/libtapi/lib/Core/APIJSONSerializer.cpp:1202:10: error: could not convert 'result' from 'tapi::internal::API' to 'llvm::Expected<tapi::internal::API>'
   return result;
          ^~~~~~

comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added
Owner: set to catap
Status: newassigned

comment:3 Changed 2 years ago by catap (Kirill A. Korinsky)

Resolution: fixed
Status: assignedclosed

In d32d13a8f68b1aa83e7e5716a26ebead7220aae5/macports-ports (master):

libtapi: fixed build on old macOS

clang_dependency PG blacklists all clang 5+ and with restriction on
Portfile it makes all compilers are blacklisted.

Instead enforce clang-11-bootstrap when it is available.

Closes: #65757
Closes: #64605

Note: See TracTickets for help on using tickets.