Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#65759 closed defect (duplicate)

librsvg @2.54.4: build fails for big sur; doc generation fails

Reported by: M-Rick Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: librsvg

Description (last modified by mascguy (Christopher Nielsen))

I am trying to build ports that depend on librsvg. I always get the same error.

info:build gi-docgen generate -C ./librsvg.toml --content-dir=../doc ../Rsvg-2.0.gir
:info:build ERROR: Could not find GIR dependency in the search paths: GLib-2.0
:info:build INFO: Loading config file: ./librsvg.toml
:info:build INFO: Theme name: Basic
:info:build INFO: Output directory: librsvg/work/librsvg-2.54.4/doc
:info:build INFO: Parsing GIR file
:info:build make[2]: *** [build.stamp] Error 1
:info:build make[2]: Leaving directory `librsvg/work/librsvg-2.54.4/doc'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `librsvg/work/librsvg-2.54.4'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `librsvg/work/librsvg-2.54.4'
:info:build Command failed:  cd "librsvg/work/librsvg-2.54.4" && /usr/bin/make -j4 -w all CFLAGS=" -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64" LDFLAGS="-lobjc -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -arch x86_64" 
:info:build Exit code: 2

Attachments (3)

main.log (746.6 KB) - added by M-Rick 2 years ago.
main.2.log (171.2 KB) - added by M-Rick 2 years ago.
Install as a binary sudo port -b install librsvg
main.3.log (760.0 KB) - added by M-Rick 2 years ago.
With the full release of XCode

Download all attachments as: .zip

Change History (18)

Changed 2 years ago by M-Rick

Attachment: main.log added

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

Cc: mascguy removed
Description: modified (diff)
Keywords: lbrsvg removed
Owner: set to mascguy
Priority: HighNormal
Status: newassigned

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

Description: modified (diff)

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

It looks like you don't have the full version of Xcode installed, only the command-line tools:

sysinfo Xcode none

Can you install the full version of Xcode, matching the CLT? It looks like you might be using version 13.0, but you can verify via xcodebuild -version.

Once that's been done, run sudo port clean --work --logs librsvg, and then try installing again.

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

You should also try forcing a binary install via sudo port -b install librsvg. That way, it won't have to be built at all.

comment:5 in reply to:  4 Changed 2 years ago by M-Rick

Replying to mascguy:

You should also try forcing a binary install via sudo port -b install librsvg. That way, it won't have to be built at all.

I really like the idea because it reminds me the apt command in Ubuntu, but unfortunately, it failed 😞

aymeric$ sudo /opt/local/gnome/bin/port install -b librsvg
--->  Computing dependencies for librsvg
Error: Failed to archivefetch librsvg: Binary-only mode requested with no usable archive sites configured
Error: See /opt/local/gnome/var/macports/logs/_opt_local_gnome_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_librsvg/librsvg/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port librsvg failed

Changed 2 years ago by M-Rick

Attachment: main.2.log added

Install as a binary sudo port -b install librsvg

comment:6 in reply to:  3 Changed 2 years ago by M-Rick

Replying to mascguy:

It looks like you don't have the full version of Xcode installed, only the command-line tools:

sysinfo Xcode none

Can you install the full version of Xcode, matching the CLT? It looks like you might be using version 13.0, but you can verify via xcodebuild -version.

Once that's been done, run sudo port clean --work --logs librsvg, and then try installing again.

I installed the complete version of Xcode. But same result, failed again 😞

aymeric$ sudo port install librsvg
--->  Computing dependencies for librsvg
--->  Fetching distfiles for librsvg
--->  Verifying checksums for librsvg
--->  Extracting librsvg
--->  Applying patches to librsvg
--->  Configuring librsvg
--->  Building librsvg                                   
Error: Failed to build librsvg: command execution failed 
Error: See /opt/local/gnome/var/macports/logs/_opt_local_gnome_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_librsvg/librsvg/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port librsvg failed
:error:build Failed to build librsvg: command execution failed
:debug:build Error code: CHILDSTATUS 18293 2
: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"

Changed 2 years ago by M-Rick

Attachment: main.3.log added

With the full release of XCode

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

Ah, from the logs, I just noticed you installed MacPorts in a custom location:

/opt/local/gnome

And while that shouldn't cause any technical problems, there is one major consequence: Every single package must be built from source.

Was that intentional?

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

Replying to mascguy:

Ah, from the logs, I just noticed you installed MacPorts in a custom location:

/opt/local/gnome

No worries regardless, though. I'll re-review the logs, and do some more digging.

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

Reviewing the logs, I noticed one key item: Version 2.54.4 is being installed, which suggests your ports tree is outdated. The current version is 2.54.5, and includes a change to specifically fix the issue you're encountering.

Can you update your ports via sudo port selfupdate, and then upgrade all installed ports via sudo port -N upgrade outdated?

Finally, once that's been done, try re-installing librsvg.

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

Summary: librsvg won't buildlibrsvg @2.54.4: build fails for big sur; doc generation fails

Duplicate of issue:65741

comment:11 in reply to:  7 ; Changed 2 years ago by M-Rick

Replying to mascguy:

Ah, from the logs, I just noticed you installed MacPorts in a custom location:

/opt/local/gnome

And while that shouldn't cause any technical problems, there is one major consequence: Every single package must be built from source.

Was that intentional?

Yes because I didn't want to break my existing MacPorts installation.

comment:12 in reply to:  11 Changed 2 years ago by mascguy (Christopher Nielsen)

Replying to M-Rick:

Replying to mascguy:

Ah, from the logs, I just noticed you installed MacPorts in a custom location:

Yes because I didn't want to break my existing MacPorts installation.

No worries, everything should still work fine. Let me know how things look, after you've updated and retried the install.

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

Resolution: duplicate
Status: assignedclosed

Closing, since this is the same problem fixed via issue:65741.

If you're still encountering issues after updating, please let us know.

comment:14 in reply to:  9 ; Changed 2 years ago by M-Rick

Replying to mascguy:

Reviewing the logs, I noticed one key item: Version 2.54.4 is being installed, which suggests your ports tree is outdated. The current version is 2.54.5, and includes a change to specifically fix the issue you're encountering.

Can you update your ports via sudo port selfupdate, and then upgrade all installed ports via sudo port -N upgrade outdated?

Finally, once that's been done, try re-installing librsvg.

This It worked. libsrvg has built without problem. Thank you for your help.

comment:15 in reply to:  14 Changed 2 years ago by mascguy (Christopher Nielsen)

Replying to M-Rick:

This worked, libsrvg has built without problem. Thank you for your help.

You bet, glad the issue is resolved!

Note: See TracTickets for help on using tickets.