Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#65830 closed defect (worksforme)

gegl: build fails for 10.13; llvm-objdump-14: error: unknown argument '-c'

Reported by: dyne2meter Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: cctools Cc: cooljeanius (Eric Gallager)
Port: gegl

Description

perhaps you should add... ;-C

:info:build Package babl-0.1 was not found in the pkg-config search path.
:info:build Perhaps you should add the directory containing `babl-0.1.pc'
:info:build to the PKG_CONFIG_PATH environment variable
:info:build No package 'babl-0.1' found
:info:build g-ir-scanner: link: /usr/bin/clang -arch x86_64 -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gegl/gegl/work/build/tmp-introspecttttll_es/Gegl-0.4 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gegl/gegl/work/build/tmp-introspecttttll_es/Gegl-0.4.o -L. -Wl,-rpath,. -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gegl/gegl/work/build/gegl -Wl,-rpath,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gegl/gegl/work/build/gegl -lgegl-0.4 -lbabl-0.1 -lglib-2.0 -lintl -lgio-2.0 -lgobject-2.0 -lm -lgmodule-2.0 -lgirepository-1.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
:info:build --- stderr ---
:info:build /opt/local/libexec/llvm-14/bin/llvm-objdump: error: unknown argument '-c'
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/bin/g-ir-scanner", line 99, in <module>
:info:build     sys.exit(scanner_main(sys.argv))
:info:build   File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 609, in scanner_main
:info:build     shlibs = create_binary(transformer, options, args)
:info:build   File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 434, in create_binary
:info:build     shlibs = resolve_shlibs(options, binary, options.libraries)
:info:build   File "/opt/local/lib/gobject-introspection/giscanner/shlibs.py", line 185, in resolve_shlibs
:info:build     _resolve_non_libtool(options, binary, non_libtool))
:info:build   File "/opt/local/lib/gobject-introspection/giscanner/shlibs.py", line 105, in _resolve_non_libtool
:info:build     output = subprocess.check_output(args)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 420, in check_output
:info:build     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 524, in run
:info:build     raise CalledProcessError(retcode, process.args,
:info:build subprocess.CalledProcessError: Command '['otool', '-L', '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gegl/gegl/work/build/tmp-introspecttttll_es/Gegl-0.4']' returned non-zero exit status 1.
:info:build [237/1239] /usr/bin/clang -Ioperations/common-gpl3+/gegl-common-gpl3.dylib.p -Ioperations/common-gpl3+ -I../gegl-0.4.38/operations/common-gpl3+ -I. -I../gegl-0.4.38 -Igegl -I../gegl-0.4.38/gegl -Igegl/buffer -I../gegl-0.4.38/gegl/buffer -Igegl/graph -I../gegl-0.4.38/gegl/graph -Igegl/module -I../gegl-0.4.38/gegl/module -Igegl/opencl -I../gegl-0.4.38/gegl/opencl -Igegl/operation -I../gegl-0.4.38/gegl/operation -Igegl/process -I../gegl-0.4.38/gegl/process -Igegl/property-types -I../gegl-0.4.38/gegl/property-types -Iopencl -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/json-glib-1.0 -I/opt/local/include -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -DHAVE_CONFIG_H -Ofast -DGEGL_ENABLE_DEBUG -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-deprecated-declarations -ftree-vectorize -Wmissing-prototypes -Wold-style-definition -pipe -Os -arch x86_64 -DGEGL_OP_BUNDLE -MD -MQ operations/common-gpl3+/gegl-common-gpl3.dylib.p/shadows-highlights-correction.c.o -MF operations/common-gpl3+/gegl-common-gpl3.dylib.p/shadows-highlights-correction.c.o.d -o operations/common-gpl3+/gegl-common-gpl3.dylib.p/shadows-highlights-correction.c.o -c ../gegl-0.4.38/operations/common-gpl3+/shadows-highlights-correction.c
:info:build [238/1239] /usr/bin/clang -Ioperations/common-gpl3+/gegl-common-gpl3.dylib.p -Ioperations/common-gpl3+ -I../gegl-0.4.38/operations/common-gpl3+ -I. -I../gegl-0.4.38 -Igegl -I../gegl-0.4.38/gegl -Igegl/buffer -I../gegl-0.4.38/gegl/buffer -Igegl/graph -I../gegl-0.4.38/gegl/graph -Igegl/module -I../gegl-0.4.38/gegl/module -Igegl/opencl -I../gegl-0.4.38/gegl/opencl -Igegl/operation -I../gegl-0.4.38/gegl/operation -Igegl/process -I../gegl-0.4.38/gegl/process -Igegl/property-types -I../gegl-0.4.38/gegl/property-types -Iopencl -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/json-glib-1.0 -I/opt/local/include -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -DHAVE_CONFIG_H -Ofast -DGEGL_ENABLE_DEBUG -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-deprecated-declarations -ftree-vectorize -Wmissing-prototypes -Wold-style-definition -pipe -Os -arch x86_64 -DGEGL_OP_BUNDLE -MD -MQ operations/common-gpl3+/gegl-common-gpl3.dylib.p/shadows-highlights.c.o -MF operations/common-gpl3+/gegl-common-gpl3.dylib.p/shadows-highlights.c.o.d -o operations/common-gpl3+/gegl-common-gpl3.dylib.p/shadows-highlights.c.o -c ../gegl-0.4.38/operations/common-gpl3+/shadows-highlights.c
:info:build [239/1239] /usr/bin/clang -Ioperations/common-gpl3+/gegl-common-gpl3.dylib.p -Ioperations/common-gpl3+ -I../gegl-0.4.38/operations/common-gpl3+ -I. -I../gegl-0.4.38 -Igegl -I../gegl-0.4.38/gegl -Igegl/buffer -I../gegl-0.4.38/gegl/buffer -Igegl/graph -I../gegl-0.4.38/gegl/graph -Igegl/module -I../gegl-0.4.38/gegl/module -Igegl/opencl -I../gegl-0.4.38/gegl/opencl -Igegl/operation -I../gegl-0.4.38/gegl/operation -Igegl/process -I../gegl-0.4.38/gegl/process -Igegl/property-types -I../gegl-0.4.38/gegl/property-types -Iopencl -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/json-glib-1.0 -I/opt/local/include -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -DHAVE_CONFIG_H -Ofast -DGEGL_ENABLE_DEBUG -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-deprecated-declarations -ftree-vectorize -Wmissing-prototypes -Wold-style-definition -pipe -Os -arch x86_64 -DGEGL_OP_BUNDLE -MD -MQ operations/common-gpl3+/gegl-common-gpl3.dylib.p/shift.c.o -MF operations/common-gpl3+/gegl-common-gpl3.dylib.p/shift.c.o.d -o operations/common-gpl3+/gegl-common-gpl3.dylib.p/shift.c.o -c ../gegl-0.4.38/operations/common-gpl3+/shift.c
:info:build [240/1239] /usr/bin/clang -Ioperations/common-gpl3+/gegl-common-gpl3.dylib.p -Ioperations/common-gpl3+ -I../gegl-0.4.38/operations/common-gpl3+ -I. -I../gegl-0.4.38 -Igegl -I../gegl-0.4.38/gegl -Igegl/buffer -I../gegl-0.4.38/gegl/buffer -Igegl/graph -I../gegl-0.4.38/gegl/graph -Igegl/module -I../gegl-0.4.38/gegl/module -Igegl/opencl -I../gegl-0.4.38/gegl/opencl -Igegl/operation -I../gegl-0.4.38/gegl/operation -Igegl/process -I../gegl-0.4.38/gegl/process -Igegl/property-types -I../gegl-0.4.38/gegl/property-types -Iopencl -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/json-glib-1.0 -I/opt/local/include -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -DHAVE_CONFIG_H -Ofast -DGEGL_ENABLE_DEBUG -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-deprecated-declarations -ftree-vectorize -Wmissing-prototypes -Wold-style-definition -pipe -Os -arch x86_64 -DGEGL_OP_BUNDLE -MD -MQ operations/common-gpl3+/gegl-common-gpl3.dylib.p/softglow.c.o -MF operations/common-gpl3+/gegl-common-gpl3.dylib.p/softglow.c.o.d -o operations/common-gpl3+/gegl-common-gpl3.dylib.p/softglow.c.o -c ../gegl-0.4.38/operations/common-gpl3+/softglow.c
:info:build [241/1239] /usr/bin/clang -Ioperations/common-gpl3+/gegl-common-gpl3.dylib.p -Ioperations/common-gpl3+ -I../gegl-0.4.38/operations/common-gpl3+ -I. -I../gegl-0.4.38 -Igegl -I../gegl-0.4.38/gegl -Igegl/buffer -I../gegl-0.4.38/gegl/buffer -Igegl/graph -I../gegl-0.4.38/gegl/graph -Igegl/module -I../gegl-0.4.38/gegl/module -Igegl/opencl -I../gegl-0.4.38/gegl/opencl -Igegl/operation -I../gegl-0.4.38/gegl/operation -Igegl/process -I../gegl-0.4.38/gegl/process -Igegl/property-types -I../gegl-0.4.38/gegl/property-types -Iopencl -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/json-glib-1.0 -I/opt/local/include -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -DHAVE_CONFIG_H -Ofast -DGEGL_ENABLE_DEBUG -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-deprecated-declarations -ftree-vectorize -Wmissing-prototypes -Wold-style-definition -pipe -Os -arch x86_64 -DGEGL_OP_BUNDLE -MD -MQ operations/common-gpl3+/gegl-common-gpl3.dylib.p/mosaic.c.o -MF operations/common-gpl3+/gegl-common-gpl3.dylib.p/mosaic.c.o.d -o operations/common-gpl3+/gegl-common-gpl3.dylib.p/mosaic.c.o -c ../gegl-0.4.38/operations/common-gpl3+/mosaic.c
:info:build [242/1239] /usr/bin/clang -Ioperations/common-gpl3+/gegl-common-gpl3.dylib.p -Ioperations/common-gpl3+ -I../gegl-0.4.38/operations/common-gpl3+ -I. -I../gegl-0.4.38 -Igegl -I../gegl-0.4.38/gegl -Igegl/buffer -I../gegl-0.4.38/gegl/buffer -Igegl/graph -I../gegl-0.4.38/gegl/graph -Igegl/module -I../gegl-0.4.38/gegl/module -Igegl/opencl -I../gegl-0.4.38/gegl/opencl -Igegl/operation -I../gegl-0.4.38/gegl/operation -Igegl/process -I../gegl-0.4.38/gegl/process -Igegl/property-types -I../gegl-0.4.38/gegl/property-types -Iopencl -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/json-glib-1.0 -I/opt/local/include -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -DHAVE_CONFIG_H -Ofast -DGEGL_ENABLE_DEBUG -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-deprecated-declarations -ftree-vectorize -Wmissing-prototypes -Wold-style-definition -pipe -Os -arch x86_64 -DGEGL_OP_BUNDLE -MD -MQ operations/common-gpl3+/gegl-common-gpl3.dylib.p/sinus.c.o -MF operations/common-gpl3+/gegl-common-gpl3.dylib.p/sinus.c.o.d -o operations/common-gpl3+/gegl-common-gpl3.dylib.p/sinus.c.o -c ../gegl-0.4.38/operations/common-gpl3+/sinus.c
:info:build [243/1239] /usr/bin/clang -Ioperations/common-gpl3+/gegl-common-gpl3.dylib.p -Ioperations/common-gpl3+ -I../gegl-0.4.38/operations/common-gpl3+ -I. -I../gegl-0.4.38 -Igegl -I../gegl-0.4.38/gegl -Igegl/buffer -I../gegl-0.4.38/gegl/buffer -Igegl/graph -I../gegl-0.4.38/gegl/graph -Igegl/module -I../gegl-0.4.38/gegl/module -Igegl/opencl -I../gegl-0.4.38/gegl/opencl -Igegl/operation -I../gegl-0.4.38/gegl/operation -Igegl/process -I../gegl-0.4.38/gegl/process -Igegl/property-types -I../gegl-0.4.38/gegl/property-types -Iopencl -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/json-glib-1.0 -I/opt/local/include -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu11 -O2 -g -DHAVE_CONFIG_H -Ofast -DGEGL_ENABLE_DEBUG -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-deprecated-declarations -ftree-vectorize -Wmissing-prototypes -Wold-style-definition -pipe -Os -arch x86_64 -DGEGL_OP_BUNDLE -MD -MQ operations/common-gpl3+/gegl-common-gpl3.dylib.p/spiral.c.o -MF operations/common-gpl3+/gegl-common-gpl3.dylib.p/spiral.c.o.d -o operations/common-gpl3+/gegl-common-gpl3.dylib.p/spiral.c.o -c ../gegl-0.4.38/operations/common-gpl3+/spiral.c
:info:build ninja: build stopped: subcommand failed.
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gegl/gegl/work/build" && /opt/local/bin/ninja -j8 -v 
:info:build Exit code: 1
:error:build Failed to build gegl: command execution failed
:debug:build Error code: CHILDSTATUS 99514 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback 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_graphics_gegl/gegl/main.log for details.

Attachments (2)

main.log.gz (16.1 KB) - added by dyne2meter 2 years ago.
log
main.log.2.gz (72.3 KB) - added by dyne2meter 2 years ago.
log from trace

Download all attachments as: .zip

Change History (11)

Changed 2 years ago by dyne2meter

Attachment: main.log.gz added

log

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

Cc: mascguy removed
Owner: set to mascguy
Status: newassigned

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

Can you test with trace mode enabled (sudo port -st destroot gegl), and attach the log?

Changed 2 years ago by dyne2meter

Attachment: main.log.2.gz added

log from trace

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

It looks like trace mode solves the issue, so that's a good sign. And if you simply want to get past this, install via: sudo port -t install gegl.

But we should still try to determine the root cause, to avoid other ports failing without trace mode.

Can you provide the output from port installed cctools?

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

Summary: gegl build failsgegl: build fails for 10.13; llvm-objdump-14: error: unknown argument '-c'

comment:5 in reply to:  3 Changed 2 years ago by mascguy (Christopher Nielsen)

Replying to mascguy:

But we should still try to determine the root cause, to avoid other ports failing without trace mode.

Can you provide the output from port installed cctools?

More background: You need to ensure you're using the preferred version of cctools, which varies depending on the combination of macOS and Xcode. Otherwise you'll encounter issues, per the following notes in the portfile:

# llvm-11 changed the arguments accepted by llvm-objdump
# this causes a number of errors in scripts that still use the old arguments
# we will default to +llvm11 when xcode changes to require the new arguments
# see https://reviews.llvm.org/D92310 and https://trac.macports.org/ticket/61852

So in short, run sudo port install cctools, to ensure you're using the preferred version. And then try installing gegl again, without trace mode.

Finally, let us know whether all is well, after that's been done.

comment:6 Changed 2 years ago by dyne2meter

Yes, that works. cctools gets me again. Now I'm a believer in the designated version.

comment:7 in reply to:  6 Changed 2 years ago by mascguy (Christopher Nielsen)

Resolution: worksforme
Status: assignedclosed

Replying to dyne2meter:

Yes, that works. cctools gets me again. Now I'm a believer in the designated version.

No worries, glad the issue is resolved!

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

Keywords: cctools added

comment:9 Changed 2 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.