Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 2023 10:43:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        haskell@FreeBSD.org
Subject:   [Bug 271928] lang/ghc: 'make configure' fails with bad --target argument if lang/gcc is installed.
Message-ID:  <bug-271928-16154-d2pymn6hNY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271928-16154@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271928-16154@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271928

--- Comment #6 from Mark Evenson <evenson.not.org@gmail.com> ---
I had to patch the `pre-install` target's configure with the CXX compiler in
order to get this build, otherwise I ran into problems finding libstdc++,
otherwise:

[…]
configure:7672: $CC is not gcc; assuming it's a reasonably new C compiler       
configure:7678: checking whether CC supports -no-pie                            
configure:7688: result: no                                                      
configure:7694: checking for extra options to pass gcc when compiling via C     
configure:7708: result:                                                         
configure:7716: checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and
CPPFLAGS                                                     
configure:7810: result: done                                                    
configure:7815: checking Setting up CONF_CC_OPTS_STAGE0,
CONF_GCC_LINKER_OPTS_STAGE0, CONF_LD_LINKER_OPTS_STAGE0 and
CONF_CPP_OPTS_STAGE0    
configure:7909: result: done                                                    
configure:7914: checking Setting up CONF_CC_OPTS_STAGE1,
CONF_GCC_LINKER_OPTS_STAGE1, CONF_LD_LINKER_OPTS_STAGE1 and
CONF_CPP_OPTS_STAGE1    
configure:8008: result: done                                                    
configure:8014: checking Setting up CONF_CC_OPTS_STAGE2,
CONF_GCC_LINKER_OPTS_STAGE2, CONF_LD_LINKER_OPTS_STAGE2 and
CONF_CPP_OPTS_STAGE2    
configure:8108: result: done                                                    
configure:8220: checking C++ standard library flavour                           
configure:8233: result: libstdc++                                               
configure:2: checking for linkage against 'stdc++'                              
configure:15: result: failed                                                    
configure:2: checking for linkage against 'stdc++ supc++'                       
configure:15: result: failed                                                    
configure:8279: error: Failed to find C++ standard library  
[…]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271928-16154-d2pymn6hNY>