Opened 5 months ago

Closed 5 months ago

#70316 closed defect (fixed)

MoarVM @2024.06_0: getaddrinfo.c:162:10: error: call to undeclared function 'uv__idna_toascii

Reported by: kwolcott Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: MoarVM

Description (last modified by jmroot (Joshua Root))

Attempting to install MoarVM via building from source on Mac with M1 chip.

Sonoma 14.5

Just completed a self-update sequence:

 sudo port -v selfupdate
 port outdated
 sudo port -v -s upgrade outdated
 sudo port -v -s install rakudo
sudo port -v -s install rakudo

getaddrinfo.c:162:10: error: call to undeclared function 'uv__idna_toascii'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    rc = uv__idna_toascii(hostname,
         ^
1 error generated.
make: *** [3rdparty/libuv/src/unix/getaddrinfo.o] Error 1
make: *** Waiting for unfinished jobs....
40 warnings generated.
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_MoarVM/MoarVM/work/MoarVM-2024.06'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_MoarVM/MoarVM/work/MoarVM-2024.06" && /usr/bin/make -j8 -w all

Attachments (2)

MoarVM_main.log.bz2 (7.0 KB) - added by kwolcott 5 months ago.
MoarVM_main_July_2nd.log.bz2 (8.4 KB) - added by kwolcott 5 months ago.

Download all attachments as: .zip

Change History (11)

Changed 5 months ago by kwolcott

Attachment: MoarVM_main.log.bz2 added

comment:1 Changed 5 months ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: set to barracuda156
Status: newassigned
Summary: getaddrinfo.c:162:10: error: call to undeclared function 'uv__idna_toasciiMoarVM @2024.06_0: getaddrinfo.c:162:10: error: call to undeclared function 'uv__idna_toascii

comment:2 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

See also #68057 for the same error you reported in another port.

comment:3 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

This may be a different expression of the bug you previously filed against MoarVM in #69142.

comment:4 in reply to:  3 Changed 5 months ago by barracuda156

Replying to ryandesign:

This may be a different expression of the bug you previously filed against MoarVM in #69142.

Once I deactivated libuv port, I got this error instead:

compiling 3rdparty/libuv/src/unix/getaddrinfo.o
3rdparty/libuv/src/unix/getaddrinfo.c:162:10: error: call to undeclared function 'uv__idna_toascii'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    rc = uv__idna_toascii(hostname,
         ^
1 error generated.
make: *** [3rdparty/libuv/src/unix/getaddrinfo.o] Error 1
make: *** Waiting for unfinished jobs....

comment:5 Changed 5 months ago by barracuda156

What I do not get is why there is no problem on CI or buildbots.

(Locally I ran the build only on 10.6, and relied on CI for modern systems.)

comment:6 Changed 5 months ago by kwolcott

Is it possible that this is pertinent?

sudo port diagnose
Warning: The installed version of Xcode, 15.4, is newer than the versions currently known to MacPorts. It most likely works, but has not been tested. For your currently installed system, the following versions of Xcode are known to work: 15.3 15.2 15.1
Last edited 5 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

It is certainly possible that newer Xcode versions have different behaviors from old versions which can cause ports to fail to build. We use Xcode 15.2 on the macOS 14 buildbot workers at the moment. Xcode 15.3 is known to add new error conditions that have caused many ports to fail to build. However, in #69142, you were using Xcode 15.2 as well.

I was able to reproduce the failure in #69142 on macOS 12 if libuv was installed and trace mode was not used and I committed a fix for it; wait one hour and then run sudo port selfupdate and try again and see if that has helped with this new problem as well. If not, please attach the new main.log because it should contain more details since I have also turned off silent rules.

Changed 5 months ago by kwolcott

comment:8 Changed 5 months ago by kwolcott

Update: It successfully builds from source now!

Thanks!

comment:9 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Great!

Note: See TracTickets for help on using tickets.