ERROR: A failure occurred in build()

Hi everyone,

I have a problem when I try to update Zotero.
After yay -Syu I have the following :

==> Starting pkgver()...
==> Sources are ready.
==> Making package: zotero 6.0.18-1 (ven. 11 nov. 2022 11:25:31)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: zotero

What should I do? Can anyone help me on this?

Thanks to all.

This is my config after inxi:

System:
  Kernel: 5.15.76-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=a1c5b3a5-98d5-45d9-80cf-f9d1d528a953 rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: KDE Plasma v: 5.26.2 tk: Qt v: 5.15.6 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: UX410UQK v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: UX410UQK v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: UX410UQK.301 date: 12/12/2016
Battery:
  ID-1: BAT0 charge: 20.8 Wh (100.0%) condition: 20.8/48.3 Wh (43.1%)
    volts: 11.4 min: 11.4 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
    status: not charging cycles: 425
Memory:
  RAM: total: 15.51 GiB used: 4.67 GiB (30.1%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-7500U bits: 64 type: MT MCP arch: Amber/Kaby Lake
    note: check gen: core 7 level: v3 note: check built: 2017 process: Intel 14nm
    family: 6 model-id: 0x8E (142) stepping: 9 microcode: 0xF0
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 709 high: 721 min/max: 400/3500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 717 2: 721 3: 700 4: 700
    bogomips: 23209
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp
    rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp
    syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi
    vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
    active: HDMI-A-2,eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:5916 class-ID: 0300
  Device-2: NVIDIA GM108M [GeForce 940MX] vendor: ASUSTeK driver: nouveau
    v: kernel non-free: 520.xx+ status: current (as of 2022-10) arch: Maxwell
    code: GMxxx process: TSMC 28nm built: 2014-19 pcie: gen: 1 speed: 2.5 GT/s
    lanes: 4 link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:134d
    class-ID: 0302
  Device-3: Chicony USB2.0 HD UVC WebCam type: USB driver: uvcvideo
    bus-ID: 1-6:3 chip-ID: 04f2:b57a class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa dri: iris,nouveau gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3200x1080 s-dpi: 96 s-size: 846x285mm (33.31x11.22")
    s-diag: 893mm (35.15")
  Monitor-1: HDMI-A-2 mapped: HDMI-2 pos: left model: NEC LCD73VM
    serial: <filter> built: 2007 res: 1280x1024 hz: 60 dpi: 96 gamma: 1.2
    size: 338x270mm (13.31x10.63") diag: 433mm (17") ratio: 5:4 modes:
    max: 1280x1024 min: 720x400
  Monitor-2: eDP-1 pos: primary,right model: ChiMei InnoLux 0x14d2
    built: 2016 res: 1920x1080 hz: 60 dpi: 158 gamma: 1.2
    size: 309x173mm (12.17x6.81") diag: 354mm (13.9") ratio: 16:9
    modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 22.2.1 renderer: Mesa Intel HD Graphics 620 (KBL
    GT2) direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  Sound API: ALSA v: k5.15.76-1-MANJARO running: yes
  Sound Interface: sndio v: N/A running: no
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.59 running: yes
Network:
  Device-1: Intel Wireless 8260 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:24f3 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-8:4 chip-ID: 8087:0a2b class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.14 TiB used: 809.42 GiB (69.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN520
    SDAPNUW-256G-1002 size: 238.47 GiB block-size: physical: 512 B
    logical: 512 B speed: 15.8 Gb/s lanes: 2 type: SSD serial: <filter>
    rev: 20110000 temp: 30.9 C scheme: MBR
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM035-1RK172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: SDM1 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 121.06 GiB size: 118.85 GiB (98.18%)
    used: 55.96 GiB (47.1%) fs: ext4 dev: /dev/nvme0n1p1 maj-min: 259:1
    label: N/A uuid: a1c5b3a5-98d5-45d9-80cf-f9d1d528a953
  ID-2: /boot/efi raw-size: 352 MiB size: 256 MiB (72.73%)
    used: 25 MiB (9.8%) fs: vfat dev: /dev/nvme0n1p3 maj-min: 259:3 label: SYSTEM
    uuid: 7CD3-09C5
  ID-3: /run/media/allaurus/DISK2 raw-size: 116.47 GiB
    size: 114.06 GiB (97.94%) used: 84.91 GiB (74.4%) fs: ext4
    dev: /dev/nvme0n1p2 maj-min: 259:2 label: DISK2
    uuid: 25fa0d7c-ee97-4e09-9cee-56e588a46adc
  ID-4: /run/media/allaurus/WDATA raw-size: 126.69 GiB
    size: 126.69 GiB (100.00%) used: 105.85 GiB (83.6%) fs: ntfs dev: /dev/sda1
    maj-min: 8:1 label: WDATA uuid: 7DA255D73858884A
  ID-5: /run/media/allaurus/XCHANGE raw-size: 804.83 GiB
    size: 804.83 GiB (100.00%) used: 562.67 GiB (69.9%) fs: ntfs dev: /dev/sda2
    maj-min: 8:2 label: XCHANGE uuid: 599F5638229BF333
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-3:2 info: HP X500 Optical Mouse type: Mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s
    power: 100mA chip-ID: 03f0:0941 class-ID: 0301
  Device-2: 1-6:3 info: Chicony USB2.0 HD UVC WebCam type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 04f2:b57a class-ID: 0e02 serial: <filter>
  Device-3: 1-8:4 info: Intel Bluetooth wireless interface type: Bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 8087:0a2b class-ID: e001
  Hub-2: 2-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 53.0 C pch: 41.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 3100
Info:
  Processes: 223 Uptime: 1h 57m wakeups: 1 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6
  Packages: 1925 pm: pacman pkgs: 1915 libs: 414 tools: octopi,pamac,yay
  pm: flatpak pkgs: 6 pm: snap pkgs: 4 Shell: Zsh v: 5.9 default: Bash
  v: 5.1.16 running-in: konsole inxi: 3.3.23

1 Like

Hi @allaurus, and welcome!

In order for us, or anyone for that matter, to be able to provide assistance, more information is necessary. To that end, please see:

Hope you manage!


:bangbang: Tip: :bangbang:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby improving legibility and making it much easier for those trying to be of assistance.

:bangbang: Also, since your language doesn’t look like English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Please edit your post accordingly.

Hi @Mirdarthos and thank you for all the tips.
I hope that now my message is more clearly stated.

As you can see this is the problem. Line 98

The problem here is that the script is made for archlinux and at this point there are different dependencies.

You can also use the binary script:

pamac build zotero-bin
2 Likes

Thank you @megavolt it worked.

--openssl-legacy-provider -option was added in node version 17

nodejs-lts-gallium version 16 was installed on my system

I swapped to nodejs version 19, however zotero still failed to build with same error

switching to zotero-bin also worked for me

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.