Error in frontend build

405 views
Skip to first unread message

Bill Tantzen

unread,
Jun 27, 2022, 2:36:45 PM6/27/22
to DSpace Technical Support
When installing the dspace 7.3 frontend, install throws an error.  This is seemingly harmless so far??  It does not prevent 'yarn build:prod' from completing normally, and the frontend appears to function normally, but I'm naturally suspicious of (and curious about) the error.  Anybody else encounter this?

At the very end of 'yarn install' I get the following error:

make: Entering directory `/usr/local/projects/current/dspace-7.3/node_modules/nice-napi/build'
  CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
  AR(target) Release/obj.target/../node-addon-api/nothing.a
  COPY Release/nothing.a
  CXX(target) Release/obj.target/nice_napi/binding.o
g++: error: unrecognized command line option ‘-std=gnu++14’
make: *** [Release/obj.target/nice_napi/binding.o] Error 1
make: Leaving directory `/usr/local/projects/current/dspace-7.3/node_modules/nice-napi/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/node-v16.15.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 3.10.0-1160.36.2.el7.x86_64
gyp ERR! command \"/swadm/usr/local/node-v16.15.1-linux-x64/bin/node\" \"/swadm/usr/local/node-v16.15.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /usr/local/projects/current/dspace-7.3/node_modules/nice-napi
Done in 107.21s.

A subsequent call to 'yarn install' completes normally -- without actually doing anything.

Thanks for your ideas!
~~Bill

--
Human wheels spin round and round
While the clock keeps the pace... -- John Mellencamp
________________________________________________________________
Bill Tantzen    University of Minnesota Libraries
612-626-9949 (U of M)    612-325-1777 (cell)

Tim Donohue

unread,
Jun 27, 2022, 3:00:30 PM6/27/22
to DSpace Technical Support, Bill Tantzen
Hi Bill,

I've tried reproducing this on my end with 7.3 by running "yarn clean" (should remove everything from node_modules) and then a new "yarn install".  I cannot seem to reproduce this...a "yarn install" always succeeds for me with no errors.

Maybe try that yourself (a yarn clean followed by a yarn install) and see if it happens again?  If so, we might need more details on your setup.  You also might want to check the messages just above​ the error message...just to see if there are any other hints as to what is going on...maybe a connection issue where something couldn't be downloaded?

Overall, I'm not aware of this error. That said it is possible it is harmless (since everything else succeeds) as it's possible it's an optional dependency that is failing to install.

Tim

From: 'Bill Tantzen' via DSpace Technical Support <dspac...@googlegroups.com>
Sent: Monday, June 27, 2022 1:36 PM
To: DSpace Technical Support <dspac...@googlegroups.com>
Subject: [dspace-tech] Error in frontend build
 
--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/CADgrb7Guj53YiQTckmmh6exAg3p9AFJXpHWNtvr4yb2T4KW1Ag%40mail.gmail.com.

Bill Tantzen

unread,
Jun 27, 2022, 3:02:52 PM6/27/22
to Tim Donohue, DSpace Technical Support
It seems as if my gcc is out-of-date.  Unfortunately I am not able to upgrade the compiler on this centrally managed server, so I will simply have to hope for the best!
~~Bill
Reply all
Reply to author
Forward
0 new messages