question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build for FreeBSD 11, _LIBCPP_TRIVIAL_PAIR_COPY_CTOR is no longer supported

See original GitHub issue

I’ve attempted to install sharp on FreeBSD 11. Build using node-gyp is producing the following error:

gmake: Entering directory '/home/randy/Develop/tkg/node_modules/sharp/build'
  TOUCH Release/obj.target/libvips-cpp.stamp
  CXX(target) Release/obj.target/sharp/src/common.o
../src/common.cc: In function 'std::tuple<vips::VImage, sharp::ImageType> sharp::OpenInput(sharp::InputDescriptor*, VipsAccess)':
../src/common.cc:225:38: error: 'to_string' is not a member of 'std'
               option->set("density", std::to_string(descriptor->density).data());
                                      ^
../src/common.cc:262:38: error: 'to_string' is not a member of 'std'
               option->set("density", std::to_string(descriptor->density).data());
                                      ^
gmake: *** [sharp.target.mk:151: Release/obj.target/sharp/src/common.o] Error 1
gmake: Leaving directory '/home/randy/Develop/tkg/node_modules/sharp/build'
gyp ERR! build error 
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System FreeBSD 11.1-BETA3
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

I’ve tried compiling with clang39, clang40, gcc48 and gcc5. The error above is the output from the gcc compiles.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lovellcommented, Jul 25, 2017

I’ve documented the gcc v4/v5 workaround in 6b34e8a. Let’s leave this open for a while in case others run into the same problem with the upstream www/node ports. Thanks for reporting this and providing help to debug/understand the problem.

0reactions
tankakatancommented, Jun 21, 2018

Great support, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

lang/gcc11: Needs build time warning for /tmp consumption
I avoid large tmpfs use by poudriere bulk runs via using USE_TMPFS="data". (In reply to Mark Millard from comment #4) portupgrade for me....
Read more >
Chapter 25. Updating and Upgrading FreeBSD
This utility supports binary security and errata updates to FreeBSD, without the need to manually compile and install the patch or a new...
Read more >
Chapter 4. Installing Applications: Packages and Ports
How to build third-party software from source using the Ports ... Packages that are no longer needed can be removed with pkg delete...
Read more >
FreeBSD 13.0-RELEASE Installation Instructions
This article gives some brief instructions on installing FreeBSD 13.0-RELEASE and upgrading the systems running earlier releases. Table of ...
Read more >
261977 – lang/gcc12-devel: enable LTO
The new LTO bootstrap makes the build dog slow. lang/gcc11-devel for ... But, as far as I can tell, there is no historical...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found