LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-05-2015, 05:24 PM   #1
antuanS
LQ Newbie
 
Registered: Jun 2013
Location: Bordeaux - France
Distribution: Slackware
Posts: 14

Rep: Reputation: Disabled
qtCreator build with Errors on Slackware


Hi, I'm testing qtCreator with building a simple "Hello world". I run Slackware current with qt5+qtCreatr from Slackbuilds. When building "HelloWorld" i have some error messages.

Quote:
skipping incompatible /usr/X11R6/lib/libthread.so when searching for -lpthread
skipping incompatible /usr/X11R6/lib/libthread.a when searching for -lpthread
skipping incompatible /usr/X11R6/lib/libstdc++ when searching for -lstdc++
skipping incompatible /usr/X11R6/lib/libm.so when searching for -lm
skipping incompatible /usr/X11R6/lib/libm.a when searching for -lm
skipping incompatible /usr/X11R6/lib/libgcc_s.so when searching for -lgcc_s
skipping incompatible /usr/X11R6/lib/libc.so when searching for -lc
skipping incompatible /usr/X11R6/lib/libc.a when searching for -lc
skipping incompatible /usr/X11R6/lib/libgcc_s.so when searching for -lgcc_s
I understand that is relating to compiler, but don't know how to resolve the problem

Thanks in advance
 
Old 08-05-2015, 06:20 PM   #2
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 914

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
That looks very much like you're running a multilib system in which shared library objects are being searched for in /usr/lib rather than /usr/lib64. I think you'll have to revisit your building of qt5 and/or qt-creator (which work great here on a pure 64bit system).

chris
 
Old 08-05-2015, 06:35 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
Those are not errors, but messages resulting from your compiliation on a multilib computer. The linker should have found the correct 64-bit libraries after mentioning that it skipped the 32-bit libraries.
 
1 members found this post helpful.
Old 08-05-2015, 06:47 PM   #4
antuanS
LQ Newbie
 
Registered: Jun 2013
Location: Bordeaux - France
Distribution: Slackware
Posts: 14

Original Poster
Rep: Reputation: Disabled
yes it's right, it is a multilib. do i recompile with -
Code:
LDFLAGS="-L/usr/lib64"
?
 
1 members found this post helpful.
Old 08-05-2015, 07:10 PM   #5
antuanS
LQ Newbie
 
Registered: Jun 2013
Location: Bordeaux - France
Distribution: Slackware
Posts: 14

Original Poster
Rep: Reputation: Disabled
When using sbopkg, there are some problems of linkin libraries sometimes. with LDFAGS to lib64 this is resolved. Must we always put the LDFLAGS when building a package?
 
Old 08-06-2015, 03:14 AM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,651

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
sbopkg only doing based on the SlackBuild scripts and multilib is not officially supported by SBo project, so yes you need to insert the code manually
 
Old 08-06-2015, 05:05 PM   #7
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 914

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
antuanS,

Are those "skipping ..." messages emitted when building your qt-creator package or when you are compiling an application (the "Hello world" you mention) from within qt-creator?

Discussion about LDFLAGS in sbopkg doesn't seem relevant to a Hello World project within qt-creator.

On the other hand I don't believe LDFLAGS needs to be set to build qt-creator itself either; last night I built qt-creator3 in a 14.1 multilib partition with no LDFLAGS set. I have searched the log file of the build and can find no "skipping ..." messages at all. It runs perfectly as far as I can see and a small test project (a window with four tabs) builds and runs with no errors, no warnings, no "skipping ..." messages.

In any case its unclear why /usr/lib is being searched in the first place (although as Alien Bob has pointed out, the "skipping ..." messages are informative rather than error messages). Perhaps its because you're building in an environment in which you've already run /etc/profile.d/32dev.sh (or it was run automatically from ~/.bashrc, ~/.bash_profile etc.) - I think that would be a mistake. Do your building in a "clean" environment.

chris
 
Old 08-06-2015, 09:24 PM   #8
antuanS
LQ Newbie
 
Registered: Jun 2013
Location: Bordeaux - France
Distribution: Slackware
Posts: 14

Original Poster
Rep: Reputation: Disabled
Problem of flag hapen for some packages, not all time. I rebuild qt5 and t-creator with LDFLAGS and i reopen my test application on qt-creator and no warnings.
But now that you call me about /etc/profile.d/32dev.sh, i see that refers to /usr/lib directory. here are some lines

Quote:
# Modify the compilation/linking environment:
export PATH="/usr/bin/32:/usr/lib/qt/bin:$PATH"

# Change the shell prompt to make it clear that we are in 32bit mode:
PS1='\u@\h (32bit):\w\$ '
This is done from the build, but i am on 64bits current. I don't think that is comming from from bashrc. so this is strange
 
Old 08-08-2015, 06:53 AM   #9
antuanS
LQ Newbie
 
Registered: Jun 2013
Location: Bordeaux - France
Distribution: Slackware
Posts: 14

Original Poster
Rep: Reputation: Disabled
OK, I understand why. In fact this script is there if we compile 32-bit programs. It was all beast. Regarding Sbo and packages, I just try another tool called slpkg that some must surely know. And I must say that it has me completely amazed. no need to put flags, we choose what repository is used, and can even override slackpkg. Question dependencies, it rebuilds everything in a way completely clean. It is for me the Swiss army knife. Tell me if I tell ...
 
  


Reply

Tags
compile error, slackware -current


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GRUB2 build errors running slackware64-current (slackware 14) squid890 Slackware 10 07-02-2013 11:23 PM
SBOPKG(8) not list/show/build dependencies of SlackBuild scripts to build Slackware p xavi_slacky Slackware 3 06-13-2013 07:53 PM
QtCreator and Kubuntu 11.10 John S. Maude Linux - Software 0 11-02-2011 04:46 AM
[SOLVED] How do I search and replace in QtCreator? MTK358 Linux - Software 1 08-02-2010 06:44 PM
Wine build errors in Slackware 11.0 letitgo Slackware 14 02-22-2007 12:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration