Re: configure: error: in `/opt/bw/build/gcc-4.7.4_OpenBSD_alpha_21164.002/alpha-unknown-openbsd7.8/libgomp'

Basile Starynkevitch <[email protected]> Sun, 12 Apr 2026 12:19:26 +0200
Newsgroups gmane.comp.gcc.help
Message-ID <[email protected]>
On Fri, 2026-04-10 at 15:01 -0400, Dennis Clarke via Gcc-help wrote:
> 
> Well this is now past the point of annoying in that I really do not
> know 
> why GNU ld can not locate crt1.o for GNU OpenMP Runtime Library. Seen
> in
> stage1 bootstrap for libgomp :
> 
> configure:3664: checking for C compiler default output file name
> configure:3686: 
> /opt/bw/build/gcc-4.7.4_OpenBSD_alpha_21164.002/./gcc/xgcc 
> -B/opt/bw/build/gcc-4.7.4_OpenBSD_alpha_21164.002/./gcc/ 
> -B/opt/bw/imed/gcc4/alpha-unknown-openbsd7.8/bin/ 
> -B/opt/bw/imed/gcc4/alpha-unknown-openbsd7.8/lib/ -isystem 
> /opt/bw/imed/gcc4/alpha-unknown-openbsd7.8/include -isystem 
> /opt/bw/imed/gcc4/alpha-unknown-openbsd7.8/sys-include    -g -O2 -
> mieee 
>   conftest.c  >&5
> /usr/bin/ld: crt1.o: No such file: No such file or directory
> collect2: error: ld returned 1 exit status
> configure:3690: $? = 1
> configure:3727: result:
> configure: failed program was:
> > /* confdefs.h */
> > #define PACKAGE_NAME "GNU OpenMP Runtime Library"
> > #define PACKAGE_TARNAME "libgomp"
> > #define PACKAGE_VERSION "1.0"
> > #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
> > #define PACKAGE_BUGREPORT ""
> > #define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
> > #define PACKAGE "libgomp"
> > #define VERSION "1.0"
> > /* end confdefs.h.  */
> > 
> > int
> > main ()
> > {
> > 
> >   ;
> >   return 0;
> > }
> configure:3733: error: in 
> `/opt/bw/build/gcc-4.7.4_OpenBSD_alpha_21164.002/alpha-unknown-
> openbsd7.8/libgomp':
> configure:3736: error: C compiler cannot create executables
> 
> However the compiler seems to be fine and it is the GNU linker that
> is 
> confused in some way. The compiler in question is the result of stuff
> happening in stage1 :



Did you try some LD_LIBRARY_PATH setting, some tuning of
/etc/ld.so.conf before running configure?

What exactly are your options to configure?

Or add some verbose flag for the linker?

Regards



-- 

Basile STARYNKEVITCH                           
<[email protected]>
8 rue de la Faïencerie                      
http://starynkevitch.net/Basile/  
92340 Bourg-la-Reine                        
https://github.com/bstarynk
France                               
https://github.com/RefPerSys/RefPerSys
                  https://orcid.org/0000-0003-0908-5250