Opened 5 years ago

Closed 23 months ago

#59945 closed defect (fixed)

botan +universal: build failure

Reported by: TheLastLovemark Owned by: Dean M Greer <38226388+Gcenx@…>
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: cooljeanius (Eric Gallager)
Port: botan

Description

Initial port -v -d install libkdcraw +docs +universal build failed, cleaned botan and tried to rebuild botan only. That failed too.

botan log file attached.

Attachments (1)

botan_main.log (712.5 KB) - added by TheLastLovemark 5 years ago.

Download all attachments as: .zip

Change History (19)

Changed 5 years ago by TheLastLovemark

Attachment: botan_main.log added

comment:1 Changed 5 years ago by mf2k (Frank Schima)

Summary: libkdcraw fails to build because botan fails to buildbotan +universal: build failure

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

what is your exact current SDK setup, please?

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

$ port -v installed botan
The following ports are currently installed:
  botan @2.10.0_1+universal (active) platform='darwin 17' archs='i386 x86_64' date='2020-01-11T07:47:34-0800'

comment:4 Changed 5 years ago by TheLastLovemark

I have SDK 10.13.4 and 10.14

10.14 = the default SDK installed with XCode 10.1/CLT for XCode 10.1

attachment:ticket:59938:macosx10.13.sdk_screenshot.png <--- current SDK setup per my recent clang-3.7 issue

Last edited 2 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 5 years ago by TheLastLovemark

does the build look for all available SDKs? or does it start on the first one it finds?

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

Did you undo all that sdk renaming you did?

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

:info:build ld: warning: ignoring file /opt/local/lib/libbotan-2.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libbotan-2.dylib

Nothing to do with SDKs, it's incorrecty linking against an already-installed non-universal version of itself.

comment:8 Changed 5 years ago by TheLastLovemark

@Ken: Yes.

MacOSX10.14.sdk <--- default symlink name

MacOSX.sdk <--- actual 10.14 SDK files

MacOSX10.13.sdk <--- 10.13 SDK files extracted from the official 9.4.1 CLT pkg file

@Joshua Root: How do I fix?

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

ok. Just uninstall or deactivate the previous non-universal botan then pls, and you should be ok.

comment:10 Changed 5 years ago by TheLastLovemark

botan +universal successfully installed after uninstalling botan.

attempting install of libkdcraw again

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

not sure what Josh & Ryan might want to do with this ticket. Ideally Botan would not link against the already-installed version, but lots of ports have this issue...

comment:12 in reply to:  11 Changed 5 years ago by TheLastLovemark

Replying to kencu:

not sure what Josh & Ryan might want to do with this ticket. Ideally Botan would not link against the already-installed version, but lots of ports have this issue...

I got botan installed, but still having problems with libkdcraw. I'm fine with this ticked being closed as the botan issue is resolved.

comment:13 Changed 5 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed

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

Really don't like closing these kinds of issues without doing anything, because they will just crop up again and again. Even adding a new symbol to the library and using it in the executable will cause the build to fail in the not-uncommon event that the old version is installed while building. The build system is broken and at minimum upstream should be notified.

comment:15 Changed 5 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: closedreopened

comment:16 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:17 Changed 23 months ago by kencu (Ken)

a potential universal fix, that works with arm64/x86_64 at least:

https://github.com/macports/macports-ports/pull/17135

not tested to see if it fixes the situation where an older or different botan library is already installed, but wouldn't expect it to, if that is still an issue.

comment:18 Changed 23 months ago by Dean M Greer <38226388+Gcenx@…>

Owner: set to Dean M Greer <38226388+Gcenx@…>
Resolution: fixed
Status: reopenedclosed

In 4fdf0eee0bd52de8e65b5dfb7328f3aaa79c4ee9/macports-ports (master):

botan: fix cross-arch universal building

allows universal arm64/x86_64 and others
closes: #59945

Note: See TracTickets for help on using tickets.