Opened 10 months ago

Last modified 10 months ago

#68679 new defect

libgcc-devel @14-20231001_0: awk: illegal statement; awk: syntax error

Reported by: ramc77 Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: x86_64 Cc:
Port: libgcc-devel

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Dear users,
I get this error every time:

ramchand@Rams-MacBook-Pro ~ % sudo port install gcc-devel
--->  Computing dependencies for gcc-devel
The following dependencies will be installed:  libgcc-devel
Continue? [Y/n]: Y
--->  Fetching archive for libgcc-devel
--->  Attempting to fetch libgcc-devel-14-20231001_0+stdlib_flag.darwin_23.x86_64.tbz2 from https://packages.macports.org/libgcc-devel
--->  Attempting to fetch libgcc-devel-14-20231001_0+stdlib_flag.darwin_23.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/libgcc-devel
--->  Attempting to fetch libgcc-devel-14-20231001_0+stdlib_flag.darwin_23.x86_64.tbz2 from http://fco.it.packages.macports.org/libgcc-devel
--->  Fetching distfiles for libgcc-devel
--->  Verifying checksums for libgcc-devel
--->  Extracting libgcc-devel
--->  Configuring libgcc-devel
--->  Building libgcc-devel                              
Error: Failed to build libgcc-devel: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc-devel/libgcc-devel/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port gcc-devel failed

please help me

Attachments (2)

main.log (726.9 KB) - added by ramc77 10 months ago.
Log file
main2.log (741.2 KB) - added by ramc77 10 months ago.
second log file

Download all attachments as: .zip

Change History (8)

comment:1 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: libgcc-devel added

We can't make any diagnoses unless you attach the main.log file.

Changed 10 months ago by ramc77

Attachment: main.log added

Log file

comment:2 Changed 10 months ago by ramc77

I have attached log file

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

Hmm, the errors in the log are awk: illegal statement and awk: syntax error.

Is your awk the standard one included with macOS or something else?

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

Keywords: x86_64 added
Summary: failed to get install gcc-devel on intel MacBook Sonomalibgcc-devel @14-20231001_0: awk: illegal statement; awk: syntax error

We see the same awk errors on our x86_64 buildbot workers.

arm64 systems have a different problem documented in #68421.

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

You could try:

sudo port clean {lib,}gcc-devel
sudo port install gawk
sudo port install gcc-devel

comment:6 Changed 10 months ago by ramc77

---> No broken files found. ---> No broken ports found. ---> Some of the ports you installed have notes:

gawk has the following notes:

readline support has been removed from gawk. If you need to run gawk interactively, install rlwrap:

sudo port install rlwrap

and run gawk using rlwrap:

rlwrap gawk ...

ramchand@Rams-MacBook-Pro ~ % sudo port install gcc-devel Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'. ---> Computing dependencies for gcc-devel The following dependencies will be installed: libgcc-devel Continue? [Y/n]: Y ---> Fetching archive for libgcc-devel ---> Attempting to fetch libgcc-devel-14-20231001_0+stdlib_flag.darwin_23.x86_64.tbz2 from https://packages.macports.org/libgcc-devel ---> Attempting to fetch libgcc-devel-14-20231001_0+stdlib_flag.darwin_23.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/libgcc-devel ---> Attempting to fetch libgcc-devel-14-20231001_0+stdlib_flag.darwin_23.x86_64.tbz2 from https://nue.de.packages.macports.org/libgcc-devel ---> Building libgcc-devel Error: Failed to build libgcc-devel: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc-devel/libgcc-devel/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port gcc-devel failed ramchand@Rams-MacBook-Pro ~ %

Changed 10 months ago by ramc77

Attachment: main2.log added

second log file

Note: See TracTickets for help on using tickets.