Opened 6 years ago

Closed 6 years ago

#58351 closed defect (duplicate)

OpenBLAS: build error ld: unexpected token: !tapi-tbd-v3

Reported by: wolfig (Wolfgang Geithner) Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: michaelld (Michael Dickens)
Port: OpenBLAS

Description (last modified by mf2k (Frank Schima))

I am trying to install Inkscape 0.92.4 on a 2017 Macbook pro with Macos 10.14.4 (Mojave). Using macports 2.5.4 and XCode 10.2 I execute

> sudo port install inkscape

The port fails with an error when compiling OpenBLAS: (excerpt from main.log which is attached)

[...] line 12150
:info:build /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c cblat2.f  -o cblat2.o
:info:build sblat2.f:2985:5:
:info:build     60 CONTINUE
:info:build      1
:info:build Warning: Label 60 at (1) defined but not used [-Wunused-label]
:info:build sblat2.f:1695:55:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                        1
:info:build Warning: Unused dummy argument 'y' at (1) [-Wunused-dummy-argument]
:info:build sblat2.f:1695:63:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                                1
:info:build Warning: Unused dummy argument 'ys' at (1) [-Wunused-dummy-argument]
:info:build sblat2.f:1695:59:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                            1
:info:build Warning: Unused dummy argument 'yy' at (1) [-Wunused-dummy-argument]
:info:build /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c zblat2.f  -o zblat2.o
:info:build dblat2.f:2985:5:
:info:build     60 CONTINUE
:info:build      1
:info:build Warning: Label 60 at (1) defined but not used [-Wunused-label]
:info:build dblat2.f:1695:55:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                        1
:info:build Warning: Unused dummy argument 'y' at (1) [-Wunused-dummy-argument]
:info:build dblat2.f:1695:63:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                                1
:info:build Warning: Unused dummy argument 'ys' at (1) [-Wunused-dummy-argument]
:info:build dblat2.f:1695:59:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                            1
:info:build Warning: Unused dummy argument 'yy' at (1) [-Wunused-dummy-argument]
:info:build cblat2.f:3082:5:
:info:build     60 CONTINUE
:info:build      1
:info:build Warning: Label 60 at (1) defined but not used [-Wunused-label]
:info:build cblat2.f:1731:55:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                        1
:info:build Warning: Unused dummy argument 'y' at (1) [-Wunused-dummy-argument]
:info:build cblat2.f:1731:63:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                                1
:info:build Warning: Unused dummy argument 'ys' at (1) [-Wunused-dummy-argument]
:info:build cblat2.f:1731:59:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                            1
:info:build Warning: Unused dummy argument 'yy' at (1) [-Wunused-dummy-argument]
:info:build zblat2.f:3090:5:
:info:build     60 CONTINUE
:info:build      1
:info:build Warning: Label 60 at (1) defined but not used [-Wunused-label]
:info:build zblat2.f:1736:55:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                        1
:info:build Warning: Unused dummy argument 'y' at (1) [-Wunused-dummy-argument]
:info:build zblat2.f:1736:63:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                                1
:info:build Warning: Unused dummy argument 'ys' at (1) [-Wunused-dummy-argument]
:info:build zblat2.f:1736:59:
:info:build       $                  INCMAX, A, AA, AS, X, XX, XS, Y, YY, YS, YT, G,
:info:build                                                            1
:info:build Warning: Unused dummy argument 'yy' at (1) [-Wunused-dummy-argument]
:info:build dblat2.f:425:0:
:info:build       $                   LDAS, LX, LY, M, ML, MS, N, NARGS, NC, ND, NK,
:info:build  
:info:build Warning: 'nargs' may be used uninitialized in this function [-Wmaybe-uninitialized]
:info:build sblat2.f:425:0:
:info:build       $                   LDAS, LX, LY, M, ML, MS, N, NARGS, NC, ND, NK,
:info:build  
:info:build Warning: 'nargs' may be used uninitialized in this function [-Wmaybe-uninitialized]
:info:build zblat2.f:437:0:
:info:build       $                   LDAS, LX, LY, M, ML, MS, N, NARGS, NC, ND, NK,
:info:build  
:info:build Warning: 'nargs' may be used uninitialized in this function [-Wmaybe-uninitialized]
:info:build cblat2.f:435:0:
:info:build       $                   LDAS, LX, LY, M, ML, MS, N, NARGS, NC, ND, NK,
:info:build  
:info:build Warning: 'nargs' may be used uninitialized in this function [-Wmaybe-uninitialized]
:info:build /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c sblat3.f  -o sblat3.o
:info:build /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c dblat3.f  -o dblat3.o
:info:build sblat3.f:2663:5:
:info:build     60 CONTINUE
:info:build      1
:info:build Warning: Label 60 at (1) defined but not used [-Wunused-label]
:info:build sblat3.f:1214:36:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                     1
:info:build Warning: Unused dummy argument 'b' at (1) [-Wunused-dummy-argument]
:info:build sblat3.f:1214:40:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                         1
:info:build Warning: Unused dummy argument 'bb' at (1) [-Wunused-dummy-argument]
:info:build sblat3.f:1214:44:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                             1
:info:build Warning: Unused dummy argument 'bs' at (1) [-Wunused-dummy-argument]
:info:build dblat3.f:2663:5:
:info:build     60 CONTINUE
:info:build      1
:info:build Warning: Label 60 at (1) defined but not used [-Wunused-label]
:info:build dblat3.f:1214:36:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                     1
:info:build Warning: Unused dummy argument 'b' at (1) [-Wunused-dummy-argument]
:info:build dblat3.f:1214:40:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                         1
:info:build Warning: Unused dummy argument 'bb' at (1) [-Wunused-dummy-argument]
:info:build dblat3.f:1214:44:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                             1
:info:build Warning: Unused dummy argument 'bs' at (1) [-Wunused-dummy-argument]
:info:build /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c cblat3.f  -o cblat3.o
:info:build cblat3.f:3273:5:
:info:build     60 CONTINUE
:info:build      1
:info:build Warning: Label 60 at (1) defined but not used [-Wunused-label]
:info:build cblat3.f:1242:36:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                     1
:info:build Warning: Unused dummy argument 'b' at (1) [-Wunused-dummy-argument]
:info:build cblat3.f:1242:40:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                         1
:info:build Warning: Unused dummy argument 'bb' at (1) [-Wunused-dummy-argument]
:info:build cblat3.f:1242:44:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                             1
:info:build Warning: Unused dummy argument 'bs' at (1) [-Wunused-dummy-argument]
:info:build /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c zblat3.f  -o zblat3.o
:info:build zblat3.f:3279:5:
:info:build     60 CONTINUE
:info:build      1
:info:build Warning: Label 60 at (1) defined but not used [-Wunused-label]
:info:build zblat3.f:1244:36:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                     1
:info:build Warning: Unused dummy argument 'b' at (1) [-Wunused-dummy-argument]
:info:build zblat3.f:1244:40:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                         1
:info:build Warning: Unused dummy argument 'bb' at (1) [-Wunused-dummy-argument]
:info:build zblat3.f:1244:44:
:info:build       $                  A, AA, AS, B, BB, BS, C, CC, CS, CT, G )
:info:build                                             1
:info:build Warning: Unused dummy argument 'bs' at (1) [-Wunused-dummy-argument]
:info:build /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64  -mavx2  -o sblat1 sblat1.o ../libopenblas-r1.a -lpthread -lgfortran -lpthread -lgfortran 
:info:build ld: unexpected token: !tapi-tbd-v3 file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd' for architecture x86_64
:info:build collect2: error: ld returned 1 exit status
:info:build make[1]: *** [sblat1] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build cblat3.f:1445:0:
:info:build                             ISAME( 8 ) = BETS.EQ.BETA
:info:build  
:info:build Warning: 'IMAGPART_EXPR <bets>' may be used uninitialized in this function [-Wmaybe-uninitialized]
:info:build cblat3.f:1445:0: Warning: 'REALPART_EXPR <bets>' may be used uninitialized in this function [-Wmaybe-uninitialized]
:info:build zblat3.f:1447:0:
:info:build                             ISAME( 8 ) = BETS.EQ.BETA
:info:build  
:info:build Warning: 'IMAGPART_EXPR <bets>' may be used uninitialized in this function [-Wmaybe-uninitialized]
:info:build zblat3.f:1447:0: Warning: 'REALPART_EXPR <bets>' may be used uninitialized in this function [-Wmaybe-uninitialized]
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_OpenBLAS/OpenBLAS/work/OpenBLAS-0.3.5/test'
:info:build make: *** [tests] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_OpenBLAS/OpenBLAS/work/OpenBLAS-0.3.5'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_OpenBLAS/OpenBLAS/work/OpenBLAS-0.3.5" && /usr/bin/make -j4 -w all AR=/opt/local/bin/ar RANLIB=/opt/local/bin/ranlib 
:info:build Exit code: 2
:error:build Failed to build OpenBLAS: command execution failed
:debug:build Error code: CHILDSTATUS 1308 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_OpenBLAS/OpenBLAS/main.log for details.
version:1
[...]

Attachments (1)

main.log (3.1 MB) - added by wolfig (Wolfgang Geithner) 6 years ago.
main.log logfile

Change History (8)

Changed 6 years ago by wolfig (Wolfgang Geithner)

Attachment: main.log added

main.log logfile

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

In the future, please use WikiFormatting, fill in the Port field with the port that actually fails to build and add the port maintainer(s) to Cc (port info --maintainers OpenBLAS), if any.

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Cc: michaelld added
Description: modified (diff)
Owner: set to NicosPavlov
Port: OpenBLAS added
Status: newassigned

comment:3 Changed 6 years ago by mf2k (Frank Schima)

Summary: Inkscape port fails with Error in OpenBLAS compilationOpenBLAS: build error

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

:info:build ld: unexpected token: !tapi-tbd-v3 file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd' for architecture x86_64

please follow the steps here <https://trac.macports.org/ticket/58333#comment:8> and see if that fixes it for you, as it has worked for most people with this error.

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

Summary: OpenBLAS: build errorOpenBLAS: build error ld: unexpected token: !tapi-tbd-v3

comment:6 Changed 6 years ago by wolfig (Wolfgang Geithner)

Thank you so much! The link <​https://trac.macports.org/ticket/58333#comment:8> worked for me. Thumbs up!

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

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