Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected dylib files #450

Closed
claucece opened this Issue Oct 5, 2017 · 8 comments

Comments

Projects
None yet
3 participants
@claucece
Copy link
Member

claucece commented Oct 5, 2017

On macOs locally and on CI, while executing the tests, sometimes it will warn about unexpected dylib files:

# github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib
ld: warning: /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, ignoring unexpected dylib file
# github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gdk
ld: warning: /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, ignoring unexpected dylib file
# github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo
ld: warning: /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, ignoring unexpected dylib file
# github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango
ld: warning: /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, ignoring unexpected dylib file
# github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk
ld: warning: /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, ignoring unexpected dylib file
@olabini

This comment has been minimized.

Copy link
Contributor

olabini commented Nov 6, 2017

Any ideas why this happens?

@juniorz

This comment has been minimized.

Copy link
Member

juniorz commented Nov 8, 2017

I may be pointing out the obvious, but look at the double slashes in /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.

Building with go build -x -a (and maybe -v to help with debug) may help to identify which command is messing up with the path. I'll report back from macOS.

@juniorz juniorz self-assigned this Nov 8, 2017

@juniorz

This comment has been minimized.

Copy link
Member

juniorz commented Nov 13, 2017

This seems to be on clang side:

$ clang --version
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

$ go build -x -a

[...]

clang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -fno-common -o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/_all.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/_cgo_export.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/application.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/connect.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/gbinding.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/glib.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/gmain_context.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/gsource.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/gvariant.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/gvariantbuilder.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/gvariantclass.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/gvariantdict.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/gvariantiter.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/gvarianttype.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/list.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/menu.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/notifications.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/settings.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/settings_backend.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/settings_schema.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/settings_schema_source.cgo2.o $WO
RK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib/_obj/slist.cgo2.o -g -O2 -L/usr/local/Cellar/glib/2.54.1/lib -L/usr/local/opt/gettext/lib -Wl,-framework -Wl,CoreFoundation -Wl,-r -nostdlib -nopie
# github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/glib
ld: warning: /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, ignoring unexpected dylib file

[…]

clang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -fno-common -o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gdk/_obj/_all.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gdk/_obj/_cgo_export.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gdk/_obj/gdk.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gdk/_obj/gdk_pixbuf_format.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gdk/_obj/keys.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gdk/_obj/screen.cgo2.o -g -O2 -L/usr/local/Cellar/gtk+3/3.22.24/lib -L/usr/local/Cellar/pango/1.40.12/lib -L/usr/local/Cellar/gdk-pixbuf/2.36.11/lib -L/usr/local/Cellar/cairo/1.14.10/lib -L/usr/local/Cellar/glib/2.54.1/lib -L/usr/local/opt/gettext/lib -Wl,-framework -Wl,CoreFoundation -Wl,-r -nostdlib -nopie
# github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gdk
ld: warning: /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, ignoring unexpected dylib file

[…]

clang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -fno-common -o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/_all.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/_cgo_export.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/antialias.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/cairo.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/canvas.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/fillrule.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/format.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/linecap.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/linejoin.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/operator.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/pattern.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/status.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/surface.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/surfacetype.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/text.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/translations.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo/_obj/util.cgo2.o -g -O2 -L/usr/local/Cellar/cairo/1.14.10/lib -L/usr/local/Cellar/glib/2.54.1/lib -L/usr/local/opt/gettext/lib -Wl,-framework -Wl,CoreFoundation -Wl,-r -nostdlib -nopie
# github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/cairo
ld: warning: /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, ignoring unexpected dylib file

[…]

clang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -fno-common -o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/_all.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/_cgo_export.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/pango-attributes.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/pango-context.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/pango-font.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/pango-glyph-item.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/pango-glyph.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/pango-gravity.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/pango-layout.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/pango-types.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/pango.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango/_obj/pangocairo.cgo2.o -g -O2 -L/usr/local/Cellar/pango/1.40.12/lib -L/usr/local/Cellar/glib/2.54.1/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/cairo/1.14.10/lib -Wl,-framework -Wl,CoreFoundation -Wl,-r -nostdlib -nopie
# github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/pango
ld: warning: /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, ignoring unexpected dylib file

[…]

clang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -fno-common -o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/_all.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/_cgo_export.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/aboutdialog.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/accel.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/actionbar_since_3_12.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/app_chooser.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/application.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/application_since_3_12.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/application_since_3_14.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/application_window.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/color_chooser.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/combo_box.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/gtk.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/gtk_export.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/gtk_since_3_10.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/gtk_since_3_12.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/gtk_since_3_16.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/gtk_since_3_8.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/info_bar.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/label.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/level_bar.cgo
2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/level_bar_since_3_8.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/menu_shell.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/menu_since_3_22.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/popover_since_3_12.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/print.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/print_since_3_16.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/settings.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/stack_since_3_12.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/stackswitcher_since_3_10.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/style.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/text_iter.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/text_mark.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/text_view.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/tree_view.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/tree_view_column.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/version.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/widget.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/widget_since_3_12.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/widget_since_3_14.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/widget_since_3_8.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/window.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk/_obj/window_since_3_10.cgo2.o $WORK/github.com/coyim/coyim/vendor/github.com/got
k3/gotk3/gtk/_obj/window_since_3_12.cgo2.o -g -O2 -L/usr/local/Cellar/gtk+3/3.22.24/lib -L/usr/local/Cellar/pango/1.40.12/lib -L/usr/local/Cellar/atk/2.26.1/lib -L/usr/local/Cellar/cairo/1.14.10/lib -L/usr/local/Cellar/gdk-pixbuf/2.36.11/lib -L/usr/local/Cellar/glib/2.54.1/lib -L/usr/local/opt/gettext/lib -Wl,-framework -Wl,CoreFoundation -Wl,-r -nostdlib -nopie
# github.com/coyim/coyim/vendor/github.com/gotk3/gotk3/gtk
ld: warning: /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation, ignoring unexpected dylib file

It seems clang knows CoreFoundation is not used by gtk/gdk/glib/pango/cairo

@olabini

This comment has been minimized.

Copy link
Contributor

olabini commented Aug 20, 2018

Hm. Is this something we need to care about or can we ignore it?

@claucece

This comment has been minimized.

Copy link
Member Author

claucece commented Aug 20, 2018

It might be related to: golang/go#26073

So, I guess we can ignore.

@olabini

This comment has been minimized.

Copy link
Contributor

olabini commented Aug 20, 2018

@claucece - did you try following the instructions and updating XCode and the command line tools?

@claucece

This comment has been minimized.

Copy link
Member Author

claucece commented Aug 20, 2018

It works now @olabini . I just get now gtk warnings :) You can close.

@olabini

This comment has been minimized.

Copy link
Contributor

olabini commented Aug 20, 2018

Great, thanks!

@olabini olabini closed this Aug 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.