Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Decking
GHC
Commits
d42eeec3
There was an error fetching the commit references. Please try again later.
Commit
d42eeec3
authored
16 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
Fix #3201: "ar: Bad file number" build error with MSYS and SplitObjs=YES
parent
ad9ca094
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mk/config.mk.in
+10
-0
10 additions, 0 deletions
mk/config.mk.in
rts/ghc.mk
+1
-1
1 addition, 1 deletion
rts/ghc.mk
rules/build-package-way.mk
+2
-2
2 additions, 2 deletions
rules/build-package-way.mk
with
13 additions
and
3 deletions
mk/config.mk.in
+
10
−
0
View file @
d42eeec3
...
@@ -777,6 +777,16 @@ LD_X = @LdXFlag@
...
@@ -777,6 +777,16 @@ LD_X = @LdXFlag@
# overflowing command-line length limits.
# overflowing command-line length limits.
LdIsGNULd
=
@LdIsGNULd@
LdIsGNULd
=
@LdIsGNULd@
# On MSYS, building with SplitObjs=YES fails with
# ar: Bad file number
# see #3201. We need to specify a smaller max command-line size
# to work around it. 32767 doesn't work; 30000 does.
ifeq
"$(Windows)" "YES"
XARGS
=
xargs
-s
30000
else
XARGS
=
xargs
endif
#
#
# In emergency situations, REAL_SHELL is used to perform shell commands
# In emergency situations, REAL_SHELL is used to perform shell commands
# from within the ghc driver script, by scribbling the command line to
# from within the ghc driver script, by scribbling the command line to
...
...
This diff is collapsed.
Click to expand it.
rts/ghc.mk
+
1
−
1
View file @
d42eeec3
...
@@ -160,7 +160,7 @@ $$(rts_$1_LIB) : $$(rts_$1_OBJS) rts/libs.depend
...
@@ -160,7 +160,7 @@ $$(rts_$1_LIB) : $$(rts_$1_OBJS) rts/libs.depend
else
else
$$(rts_$1_LIB)
:
$$(rts_$1_OBJS)
$$(rts_$1_LIB)
:
$$(rts_$1_OBJS)
$$(
RM
)
$$
@
$$(
RM
)
$$
@
echo
$$(
rts_
$1_OBJS
)
|
xargs
$$(
AR
)
$$(
EXTRA_AR_ARGS
)
$$
@
echo
$$(
rts_
$1_OBJS
)
|
$$(
XARGS
)
$$(
AR
)
$$(
EXTRA_AR_ARGS
)
$$
@
endif
endif
endef
endef
...
...
This diff is collapsed.
Click to expand it.
rules/build-package-way.mk
+
2
−
2
View file @
d42eeec3
...
@@ -52,11 +52,11 @@ else
...
@@ -52,11 +52,11 @@ else
ifeq
"$$($1_$2_SplitObjs)" "YES"
ifeq
"$$($1_$2_SplitObjs)" "YES"
$$($1_$2_$3_LIB)
:
$$($1_$2_$3_HS_OBJS) $$($1_$2_v_C_OBJS) $$($1_$2_v_S_OBJS)
$$($1_$2_$3_LIB)
:
$$($1_$2_$3_HS_OBJS) $$($1_$2_v_C_OBJS) $$($1_$2_v_S_OBJS)
$$(
RM
)
$$
@
$$(
RM
)
$$
@
(
echo
$$(
$1_$2_v_C_OBJS
)
$$(
$1_$2_v_S_OBJS
)
`
$$(
$1_$2_$3_MKSTUBOBJS
)
`
;
find
$$(
patsubst %.
$$(
$3_osuf
)
,%_split,
$$(
$1_$2_$3_HS_OBJS
))
-name
'*.
$$(
$3_osuf
)
'
-print
)
|
xargs
$$(
AR
)
$$(
EXTRA_AR_ARGS
)
$$
@
(
echo
$$(
$1_$2_v_C_OBJS
)
$$(
$1_$2_v_S_OBJS
)
`
$$(
$1_$2_$3_MKSTUBOBJS
)
`
;
find
$$(
patsubst %.
$$(
$3_osuf
)
,%_split,
$$(
$1_$2_$3_HS_OBJS
))
-name
'*.
$$(
$3_osuf
)
'
-print
)
|
$$(
XARGS
)
$$(
AR
)
$$(
EXTRA_AR_ARGS
)
$$
@
||
$(
RM
)
$$
@
else
else
$$($1_$2_$3_LIB)
:
$$($1_$2_$3_HS_OBJS) $$($1_$2_v_C_OBJS) $$($1_$2_v_S_OBJS)
$$($1_$2_$3_LIB)
:
$$($1_$2_$3_HS_OBJS) $$($1_$2_v_C_OBJS) $$($1_$2_v_S_OBJS)
$$(
RM
)
$$
@
$$(
RM
)
$$
@
echo
$$(
$1_$2_v_C_OBJS
)
$$(
$1_$2_v_S_OBJS
)
$$(
$1_$2_$3_HS_OBJS
)
`
$$(
$1_$2_$3_MKSTUBOBJS
)
`
|
xargs
$$(
AR
)
$$(
EXTRA_AR_ARGS
)
$$
@
echo
$$(
$1_$2_v_C_OBJS
)
$$(
$1_$2_v_S_OBJS
)
$$(
$1_$2_$3_HS_OBJS
)
`
$$(
$1_$2_$3_MKSTUBOBJS
)
`
|
$$(
XARGS
)
$$(
AR
)
$$(
EXTRA_AR_ARGS
)
$$
@
||
$(
RM
)
$$
@
endif
endif
endif
endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment