473,396 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

error with configure (svn 64857)

Hi,

I have the following error when I run configure:

checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)

what can I do ?

Mathieu
Jul 10 '08 #1
7 2786
I have the following error when I run configure:
>
checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)

what can I do ?
Study config.log for the source of the problem.

Regards,
Martin
Jul 10 '08 #2
2008/7/10 "Martin v. Löwis" <ma****@v.loewis.de>:
>I have the following error when I run configure:

checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)

what can I do ?

Study config.log for the source of the problem.
Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ?

configure:21939: checking for wchar_t
configure:21970: icc -c -g -O2 conftest.c >&5
conftest.c(123): warning #279: controlling expression is constant
if ((ac__type_new_ *) 0)
^

configure:21976: $? = 0
configure:21991: result: yes
configure:21998: checking size of wchar_t
configure:22306: icc -o conftest -g -O2 conftest.c >&5
ld: library not found for -lgcc_s
configure:22309: $? = 1
configure: program exited with status 1

Mathieu
Jul 10 '08 #3
WDC
On Jul 10, 6:57*pm, "Mathieu Prevot" <mathieu.pre...@ens.frwrote:
2008/7/10 "Martin v. Löwis" <mar...@v.loewis.de>:
I have the following error when I run configure:
checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)
what can I do ?
Study config.log for the source of the problem.

Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ?

configure:21939: checking for wchar_t
configure:21970: icc -c -g -O2 *conftest.c >&5
conftest.c(123): warning #279: controlling expression is constant
* if ((ac__type_new_ *) 0)
* * * ^

configure:21976: $? = 0
configure:21991: result: yes
configure:21998: checking size of wchar_t
configure:22306: icc -o conftest -g -O2 * conftest.c *>&5
ld: library not found for -lgcc_s
configure:22309: $? = 1
configure: program exited with status 1

Mathieu
I think he wanted YOU to find the problem. The best way to learn is to
figure it out yourself! Good luck.
Jul 11 '08 #4
Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ?

I'm not so sure that there is anything wrong in configure. configure
doesn't pass -lgcc_s to icc; instead, icc is making this up on its
own. So I would guess you need to get libgcc_s onto you system in a
way that the linker finds it. Else you need to read the icc
documentation (but I'm fairly sure that icc is *required* to link
with libgcc_s, for interoperability with gcc-compiled binaries).

I'm somewhat puzzled that the wchar_t test is the one where it
crashes; this test comes fairly late, and configure has run multiple
compiler invocations before that.

Can you build any binaries at all with your icc installation?

Regards,
Martin
Jul 11 '08 #5
2008/7/11 "Martin v. Löwis" <ma****@v.loewis.de>:
>Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ?

I'm not so sure that there is anything wrong in configure. configure
doesn't pass -lgcc_s to icc; instead, icc is making this up on its
own. So I would guess you need to get libgcc_s onto you system in a
way that the linker finds it. Else you need to read the icc
documentation (but I'm fairly sure that icc is *required* to link
with libgcc_s, for interoperability with gcc-compiled binaries).

I'm somewhat puzzled that the wchar_t test is the one where it
crashes; this test comes fairly late, and configure has run multiple
compiler invocations before that.

Can you build any binaries at all with your icc installation?
Yes of course, I successfuly built and installed nmap, wget, so I
thought there was something in the python configure process.

If didn't investigate everything but I solved the problem by adding
the "-static-libgcc" option:

CFLAGS="-w -static-intel -static-libgcc"

I think one should commit changes so configure can manage this. I can
I want to help for further diagnosis or improvement. Also it seems
-Wall will be deprecated, and usually we use -w:

-w<n Control diagnostics, where <nis one of the following:

0 -- Display errors (same as -w)

1 -- Display warnings and errors (default)

2 -- Display remarks, warnings, and errors
Cheers,
Mathieu
Jul 11 '08 #6
2008/7/11 WDC <ki****@gmail.com>:
On Jul 10, 6:57 pm, "Mathieu Prevot" <mathieu.pre...@ens.frwrote:
>2008/7/10 "Martin v. Löwis" <mar...@v.loewis.de>:
>I have the following error when I run configure:
>checking size of wchar_t... configure: error: cannot compute sizeof (wchar_t)
>what can I do ?
Study config.log for the source of the problem.

Thank you Martin. How can I remove -lgcc_s and use the Intel equivalent ?

configure:21939: checking for wchar_t
configure:21970: icc -c -g -O2 conftest.c >&5
conftest.c(123): warning #279: controlling expression is constant
if ((ac__type_new_ *) 0)
^

configure:21976: $? = 0
configure:21991: result: yes
configure:21998: checking size of wchar_t
configure:22306: icc -o conftest -g -O2 conftest.c >&5
ld: library not found for -lgcc_s
configure:22309: $? = 1
configure: program exited with status 1

Mathieu

I think he wanted YOU to find the problem. The best way to learn is to
figure it out yourself! Good luck.
Yes WDC I know, but for some problems 1) we can gain much efficiency
with getting help from guys that are familiar with the environment and
2) we also allow the committers to know a problem and improve the
sources. That's the way an open source group works IMHO :)

Now that the problem is solved for me, it is for all MacOSX+Intel icc guys.

Cheers,
Mathieu
Jul 11 '08 #7
If didn't investigate everything but I solved the problem by adding
the "-static-libgcc" option:

CFLAGS="-w -static-intel -static-libgcc"

I think one should commit changes so configure can manage this.
I don't think that change should be made. I'm almost certain that it is
correct. Many people build Python with icc, and never reported any such
problem. So there must something be wrong with your icc installation.

Regards,
Martin
Jul 11 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: R. Rajesh Jeba Anbiah | last post by:
I'm searching for a pure svn client in PHP, but didn't find one yet. Also, I see many Wiki system designs are somewhat flawed as they didn't use incremental diff. Is there anyone who is aware of...
4
by: James Stroud | last post by:
Hello All, I have been moving to managing a lot of my code with SVN and I have found it to work extremely well. However, I'm not exactly sure how to deal with all of the .pyc files that get...
1
by: yinglcs | last post by:
Hi, i have a simple test which tries to load 'svn' moddule. # python -c "from svn import client" Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named...
2
by: Rob Cowie | last post by:
Hi all, I currently use easy_install to install packages from a custom, locally hosted package_index. The index consists of a single html doc with a list of package names and urls. All works...
1
by: Oltmans | last post by:
Hi all, I'm new to sub-version and still learning the process. We've a scenario in our office where we do a Svn-Update on a certain folder to fetch the latest code and then we deploy that...
0
by: Tomas | last post by:
Dear group. I have some big problems getting python to work with svn. Python SVN and SWIG is compiled from source. I have been testing Python 2.5.1 and 2.4.4 together with SWIG 1.3.25 and 1.3.33...
3
by: Bev in TX | last post by:
I am a complete newbie at building Python. I am trying to build it under MS Windows Vista (64-bit AMD) with MS VS2005. I'm doing that because I need debug libraries, which I did not see in the...
2
by: akhilesh.noida | last post by:
I am trying to compile glibc-2.5 for ARM based board. But I am getting errors while configuring it. Please check and give your inputs for resolving this. configure command : $...
0
by: Xionbox | last post by:
Hello everybody, The error I have seems very easy to solve, but for some odd reason I can't seem to solve it. Anyways, here's my "setup". I created a server running on localhost:1200 (telnet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.