Opened 9 years ago

Last modified 8 years ago

#49386 new defect

Binutils @2.24_0 fails to install

Reported by: Haefler1985 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: liangz@…, macports@…, mojca (Mojca Miklavec)
Port: binutils

Description

Binutils fails to install. Find attached log file for details.

sudo port install binutils
--->  Computing dependencies for binutils
--->  Installing binutils @2.24_0
Error: org.macports.install for port binutils returned: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_binutils/binutils/work/destroot

Info: there is a more recent version of binutils available http://www.gnu.org/software/binutils/binutils.html. Maybe this update solves the issue?

Attachments (3)

binutils.log (9.7 KB) - added by Haefler1985 9 years ago.
binutils_2.log (73.0 KB) - added by Haefler1985 9 years ago.
binutils_3.log (72.3 KB) - added by liangz@… 9 years ago.

Download all attachments as: .zip

Change History (14)

Changed 9 years ago by Haefler1985

Attachment: binutils.log added

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

"no destroot found" means you need to "sudo port clean binutils" and try again.

comment:2 Changed 9 years ago by Haefler1985

Thanks, it did help somehow. Never the less I get an error.

sudo port clean binutils
--->  Cleaning binutils
sudo port install binutils
--->  Computing dependencies for binutils
--->  Fetching archive for binutils
--->  Attempting to fetch binutils-2.24_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/binutils
--->  Attempting to fetch binutils-2.24_0.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/binutils
--->  Attempting to fetch binutils-2.24_0.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/binutils
--->  Fetching distfiles for binutils
--->  Attempting to fetch binutils-2.24.tar.bz2 from ftp://ftp.lip6.fr/pub/gnu/binutils
--->  Verifying checksums for binutils                                               
--->  Extracting binutils
--->  Configuring binutils
--->  Building binutils
Error: org.macports.build for port binutils returned: command execution failed

For details see new log-file.

Changed 9 years ago by Haefler1985

Attachment: binutils_2.log added

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

The log says the reason it failed to build is:

:info:build In file included from ./cp-demangle.c:128:
:info:build ./../include/libiberty.h:88:23: error: expected ';' after top level declarator
:info:build extern void expandargv PARAMS ((int *, char ***));
:info:build                       ^
:info:build                       ;
:info:build ./../include/libiberty.h:92:21: error: expected ';' after top level declarator
:info:build extern int writeargv PARAMS ((char **, FILE *));
:info:build                     ^
:info:build                     ;

but I do not see this problem on my El Capitan system; it builds fine for me so there is something different about your system. What version of Xcode do you have?

comment:4 Changed 9 years ago by Haefler1985

I hope this is the information you are looking for:

Apple LLVM version 7.0.0 (clang-700.1.76)
Xcode Version 7.1 (7B91b)

comment:5 in reply to:  4 Changed 9 years ago by liangz@…

Replying to ben.haefele@…:

I hope this is the information you are looking for:

Apple LLVM version 7.0.0 (clang-700.1.76)
Xcode Version 7.1 (7B91b)

How does it going I think I have the same problem. I have uploaded my log file (binutils_3.log). version information is given in the log file.

Changed 9 years ago by liangz@…

Attachment: binutils_3.log added

comment:6 Changed 9 years ago by liangz@…

Cc: liangz@… added

Cc Me!

comment:7 Changed 9 years ago by macports@…

Had the same problem with clang 7.0.2 on El Capitan. The errors made it seem like the "ansidecl.h" file in ../include when argv.c in ibiberty was being compiled wasn't even being read. A look at the command line revealed /opt/local/include was being looked at before ../include. Sure enough, in my /opt/local/include was ANOTHER ansidecl.h, apparently insufficient to the task. So I moved it out of the way, cleaned and the binutils built OK for me.

DId not bother to investigate where that ansidecl.h was from or why it's def of the PARAMS macro and friends was no good.

comment:8 Changed 9 years ago by macports@…

...seems the /opt/local/binutils.h may have been from the gdb port....

comment:9 Changed 9 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:10 Changed 8 years ago by mojca (Mojca Miklavec)

Cc: mojca added

comment:11 Changed 8 years ago by mojca (Mojca Miklavec)

  • Meanwhile binutils has been upgraded to 2.27, see #51935. Can you please try again?
  • I don't see /opt/local/binutils.h in gdb, but there is ansidecl.h.
Note: See TracTickets for help on using tickets.