Opened 4 years ago
Closed 4 years ago
#62298 closed defect (fixed)
beekeeper-studio @1.9.4: error: unrecognized command line option '-stdlib=libc++'
Reported by: | cooljeanius (Eric Gallager) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | Cc: | herbygillot (Herby Gillot) | |
Port: | beekeeper-studio |
Description
Attempting to upgrade from 1.9.2 to 1.9.4 results in the following error for me:
gyp verb command build [] gyp verb build type Release gyp verb architecture x64 gyp verb node dev dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/.home/.node-gyp/15.8.0 gyp verb `which` succeeded for `make` /usr/bin/make gyp info spawn make gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ] c++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION="3.5.5"' -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/.home/.node-gyp/15.8.0/include/node -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/.home/.node-gyp/15.8.0/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/.home/.node-gyp/15.8.0/deps/openssl/config -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/.home/.node-gyp/15.8.0/deps/openssl/openssl/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/.home/.node-gyp/15.8.0/deps/uv/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/.home/.node-gyp/15.8.0/deps/zlib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/.home/.node-gyp/15.8.0/deps/v8/include -I../src/libsass/include -O3 -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++ -fno-strict-aliasing -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp c++: error: unrecognized command line option '-stdlib=libc++' make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/beekeeper-studio-beekeeper-studio-fc57047/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (node:events:378:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) gyp ERR! System Darwin 20.3.0 gyp ERR! command "/opt/local/bin/node" "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/beekeeper-studio-beekeeper-studio-fc57047/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/work/beekeeper-studio-beekeeper-studio-fc57047/node_modules/node-sass gyp ERR! node -v v15.8.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. Command failed: yarn --frozen-lockfile Exit code: 1 Error: Failed to build beekeeper-studio: command execution failed DEBUG: Error code: NONE DEBUG: Backtrace: command execution failed while executing "$procedure $targetname" Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_beekeeper-studio/beekeeper-studio/main.log for details. DEBUG: invalid command name "::ui_init" while executing "::ui_init $priority $prefix $channels($priority) {*}$args" ("uplevel" body line 2) invoked from within "uplevel 1 $body" Error: Follow https://guide.macports.org/#project.tickets to report a bug.
I'm on Big Sur with Xcode 12.4.
Attachments (1)
Change History (7)
Changed 4 years ago by cooljeanius (Eric Gallager)
comment:1 Changed 4 years ago by herbygillot (Herby Gillot)
I've committed a change: [79c0c6cbc446479bade9428ef802e6ca01df3042/macports-ports]
We'll need some time (maybe 2-3 hrs?) for it to propogate to the MacPorts mirrors, but hopefully this helps.
comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Eric, this has the same origin as a previous ticket you filed: You have used sudo port select gcc
to select a gcc, and this port incorrectly uses that selected gcc to build this port.
Herby, you can see in the build log that this did not do what you wanted:
DEBUG: system -W /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_databases_beekeeper-studio/beekeeper-studio/work/beekeeper-studio-1.9.4: CSC_IDENTITY_AUTO_DISCOVERY=false yarn --frozen-lockfile
You should have been able to observe this on your system prior to committing.
The variable build.env
contains only what the portfile sets. MacPorts adds other variables to the environment internally; they are not reflected in build.env
. If all of the environment variables that MacPorts sets are desired, as they usually are, then the port should not override the build phase; it should use the standard build phase normally instead.
comment:3 follow-ups: 4 6 Changed 4 years ago by herbygillot (Herby Gillot)
Thanks for making that clear, @ryandesign.
@cooljeanius, is the port building after fixing compiler selection? If so, then I suppose this ticket can be closed?
comment:4 Changed 4 years ago by cooljeanius (Eric Gallager)
Replying to herbygillot:
Thanks for making that clear, @ryandesign.
@cooljeanius, is the port building after fixing compiler selection? If so, then I suppose this ticket can be closed?
The port builds successfully after I apply the patch from this pull request that I just opened: https://github.com/macports/macports-ports/pull/10050
After that pull request is merged, this ticket can be closed.
comment:5 Changed 4 years ago by cooljeanius (Eric Gallager)
comment:6 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to herbygillot:
@cooljeanius, is the port building after fixing compiler selection? If so, then I suppose this ticket can be closed?
A port that uses the compiler the user has selected is wrong; it needs to be fixed to use the compiler MacPorts dictates, as Eric's commit does.
main.log for beekeeper-studio