https://sourceware.org/bugzilla/show_bug.cgi?id=30092
Bug ID: 30092
Summary: Build failed due to directory gas/doc was not created
Product: binutils
Version: 2.40
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: robinlee.sysu at gmail dot com
Target Milestone: ---
binutils 2.40 failed to build with an error log:
cp: cannot create regular file 'doc/asconfig.texi': No such file or directory
The direct cause is that 'gas/doc' directory was not created in the build
directory.
A quick workaround is to manually 'mkdir gas/doc' before running make.
Also simple code fix:
diff --git a/gas/doc/local.mk b/gas/doc/local.mk
index f611a50913c..07dc5b4527e 100644
--- a/gas/doc/local.mk
+++ b/gas/doc/local.mk
@@ -41,6 +41,7 @@ TEXI2DVI = texi2dvi -I "$(srcdir)/%D%" -I %D% -I
"$(srcdir)/../libiberty" \
%D%/asconfig.texi: %D%/$(CONFIG).texi %D%/$(am__dirstamp)
$(AM_V_at)rm -f %D%/asconfig.texi
+ $(AM_V_at)-test -d %D% || $(MKDIR_P) %D%
$(AM_V_GEN)cp $(srcdir)/%D%/$(CONFIG).texi %D%/asconfig.texi
$(AM_V_at)chmod u+w %D%/asconfig.texi
But binutils 2.39 has no this issue.
--
You are receiving this mail because:
You are on the CC list for the bug.