Opened 4 months ago

Last modified 4 months ago

#54638 assigned defect

mesa @17.1.6_0: error: implicit declaration of function 'fstatat' is invalid in C99

Reported by: tehcog (tehcog) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: tiger leopard snowleopard lion mountainlion mavericks Cc: rlhamil, MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), devernay (Frédéric Devernay), mojca (Mojca Miklavec)
Port: mesa

Description

mesa-17.1.6_0 will not build mp 2.4.1, Mavericks

Aug 18 15:19:58 NerdCenter === Update MacPorts
Aug 18 15:19:58 NerdCenter --->  Updating MacPorts base sources using rsync
Aug 18 15:20:03 NerdCenter MacPorts base version 2.4.1 installed,
Aug 18 15:20:03 NerdCenter MacPorts base version 2.4.1 downloaded.
Aug 18 15:20:03 NerdCenter --->  MacPorts base is already the latest version
Aug 18 15:20:03 NerdCenter === Update Portfiles
Aug 18 15:20:03 NerdCenter --->  Updating the ports tree
Aug 18 15:20:10 NerdCenter
Aug 18 15:20:10 NerdCenter === List Outdated Ports
Aug 18 15:20:10 NerdCenter mesa                           @12.0.1_2+osmesa+python27
Aug 18 15:20:10 NerdCenter
Aug 18 15:20:10 NerdCenter === Clean Outdated Ports
Aug 18 15:20:10 NerdCenter --->  Cleaning mesa
Aug 18 15:20:11 NerdCenter
Aug 18 15:20:11 NerdCenter === Fetch Outdated Ports
Aug 18 15:20:11 NerdCenter --->  Fetching distfiles for mesa
Aug 18 15:20:11 NerdCenter
Aug 18 15:20:11 NerdCenter === Upgrade Outdated Ports (port -p upgrade --enforce-variants outdated)
Aug 18 15:20:14 NerdCenter --->  Computing dependencies for mesa
Aug 18 15:20:14 NerdCenter --->  Fetching archive for mesa
Aug 18 15:20:17 NerdCenter --->  Attempting to fetch mesa-17.1.6_0+osmesa+python27.darwin_13.x86_64.tbz2 from https://packages.macports.org/mesa
Aug 18 15:20:17 NerdCenter --->  Attempting to fetch mesa-17.1.6_0+osmesa+python27.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/mesa
Aug 18 15:20:18 NerdCenter --->  Attempting to fetch mesa-17.1.6_0+osmesa+python27.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/mesa
Aug 18 15:20:19 NerdCenter --->  Verifying checksums for mesa
Aug 18 15:20:19 NerdCenter --->  Extracting mesa
Aug 18 15:20:20 NerdCenter --->  Applying patches to mesa
Aug 18 15:20:20 NerdCenter --->  Configuring mesa
Aug 18 15:21:10 NerdCenter --->  Building mesa
Aug 18 15:21:16 NerdCenter Error: Failed to build mesa: command execution failed
Aug 18 15:21:16 NerdCenter Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_mesa/mesa/main.log for details.
Aug 18 15:21:16 NerdCenter Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Aug 18 15:21:16 NerdCenter
Aug 18 15:21:16 NerdCenter === List Inactive Duplicate Ports
Aug 18 15:21:17 NerdCenter
Aug 18 15:21:17 NerdCenter === Uninstall Inactive Duplicate Ports
Aug 18 15:21:17 NerdCenter Error: No ports matched the given expression
Aug 18 15:21:17 NerdCenter
Aug 18 15:21:17 NerdCenter === Upgrade Done

Attachments (1)

main.log (122.1 KB) - added by tehcog (tehcog) 4 months ago.
main.log

Download all attachments as: .zip

Change History (12)

Changed 4 months ago by tehcog (tehcog)

main.log

comment:1 Changed 4 months ago by tehcog (tehcog)

Possible duplicate (see #54637)

Last edited 4 months ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:2 Changed 4 months ago by kencu (Ken)

No, it looks like a different error:

:info:build disk_cache.c:465:11: error: implicit declaration of function 'fstatat' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
628	:info:build       if (fstatat(dirfd(dir), entry->d_name, &sb, 0) == 0) {
629	:info:build           ^
630	:info:build 1 warning and 1 error generated.

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

  • Keywords tiger leopard snowleopard lion mountainlion mavericks added
  • Owner set to jeremyhu
  • Status changed from new to assigned
  • Summary changed from mesa-17.1.6_0 will not build mp 2.4.1, Mavericks to mesa @17.1.6_0: error: implicit declaration of function 'fstatat' is invalid in C99

According to man fstatat on Sierra, "The fstatat() system call appeared in OS X 10.10". So mesa will not build on earlier systems right now.

comment:4 Changed 4 months ago by rlhamil

  • Cc rlhamil added

comment:6 Changed 4 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

  • Cc MarcusCalhoun-Lopez added

comment:7 Changed 4 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

In ec7db4f8f3638a645c96b5498ef21245a63630fe/macports-ports:

mesa: disable functionality to build on old systems

No revbump since port either builds correctly or not at all.
See #54638
See #54643

comment:8 Changed 4 months ago by jeremyhu (Jeremy Huddleston Sequoia)

fstatat requires kernel support for proper functionality.

I wrote userland versions of them a few years ago and can use those without GPL taint.

Leaving this open as a reminder to fix that and revert the disabled code.

comment:9 Changed 4 months ago by devernay (Frédéric Devernay)

  • Cc devernay added

comment:10 Changed 4 months ago by mojca (Mojca Miklavec)

  • Cc mojca added

comment:11 Changed 4 months ago by mojca (Mojca Miklavec)

It looks like we need to rebuild wine-devel at least. I can do that once I confirm that it works on one worker.

Note: See TracTickets for help on using tickets.